Skip to content

Feature/mu pc#17

Merged
matthewbehrend merged 17 commits intomainfrom
feature/muPC
Apr 17, 2026
Merged

Feature/mu pc#17
matthewbehrend merged 17 commits intomainfrom
feature/muPC

Conversation

@matthewbehrend
Copy link
Copy Markdown
Collaborator

Introduces maximal-update parameterization (muPC) to FabricPC, including new node types (LinearResidual, SkipConnection, edge-based scaling, depth computation, and multi-GPU training support. Introduces associative memory StorkeyHopfield as a composable node in predictive coding networks.

… config handling in existing nodes to remove mutable from argument default.
…eld node with learnable hopfield_strength parameter wrapped in softplus to ensure positive values.
…tion and tests; add CIFAR-100 data loader and demo for muPC; Remove redundant recurrency in StorkeyHopfield implementation. MNIST classifer performs equally with StorkeyHopfield replacing a hidden linear layer. Added recall test demos for StorkeyHopfield.
…ogic; add more demo examples to test mupc - still debugging via tests. Revise Storkey node design to remove pass through signal; add hopfield fewshot demo testing a network with a hopfield node under conditions of data scarcity and noise: results in stat-sig accuracy gain versus control MLP network. StorkeyHopfield node validated.
…g skip connections instead of depth heuristic. Extends muPC to arbitrary graphs, accounting for node in_degree. Changed default weight initialization of hopfield node to Xavier. Update docstrings and comments.
…pdate documentation and tests for clarity. muPC demo now working to > 16 layers. Fix hopfield node by restoring probe passthrough signal and applying blending of probe and projection according to hopfield strength. Hopfield demo now producing U shaped response to hopfield strength and stat-sig improvement over vanilla MLP in noisy few shot conditions.
…nd the variance of activation jacobians in the gradient flow. Add CIFAR-10 data loader and resnet18 demo; replace ReLU with Tanh activation in muPC mnist demo. Add comprehensive documentation in docs/user_guides/ that covers intro, tutorials, and API.
….helpers with jax_setup for improved environment configuration. Consolidated mupc ab experiment into resnet18 example. added JPC_fc_resent comparison of JPC to FabricPC implementations of muPC
…with improve variance scaling. Replace learning rate terminology with inference rate when referring to inference phase. Adjust mupc demo default values. Remove energy metrics from demo outputs for clarity.
…g on skip connections to avoid the vanishing signal with in_degree scaling. Improve variance scaling internal to transformer node. Refactor mupc_demo to use fully connection resnet and leverage new SkipConnection.
…niform scaling. Update mupc_demo to reflect changes in training epochs and inference rate. Integrate SkipConnection nodes into transformer_demo for improved architecture flexibility.
… muPC scaling logic

- Introduced LinearResidual node combining linear transformation with identity skip connection.
- Updated SlotSpec to include is_variance_scalable for per-slot scaling control.
- Refactored muPC scaling algorithm to use edge-based scaling based on slot properties.
- Enhanced graph construction to accommodate new scaling logic.
- Updated mupc_demo to support new LinearResidual mode for reduced graph depth.
…he slot is a skip connection path in the network. muPC resnet depth counts nodes with skip connection slots. Updated mupc demo. Improved resnet18 demo. Refactored v1 transformer demo with new skip connection nodes and refactored transformer v1 node to internally implement mupc scaling.
@matthewbehrend matthewbehrend merged commit 68e7700 into main Apr 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant