Local Learning in Neural Networks Without Global Backpropagation
Capabilities
- 01 / 06
BCM Hebbian Optimizer
Association weights updated by with a sliding threshold EMA of squared activity, metaplasticity and -adaptive rate.
- 02 / 06
Local Learning Without Global Backpropagation
Training a network with ten coordinated local rules computed analytically under
torch.no_grad(), with no computation graph. - 03 / 06
Precision-Weighted Predictive Coding Optimizer
Per-column prediction error divided by learned ; updated by analytical outer product with plasticity gate and gradient clipping.
- 04 / 06
Precision Estimate via Softplus
; updated by chain rule through softplus with sigmoid clamped to .
- 05 / 06
Neuromodulatory Plasticity Gate
, multiplying all learning rates; neutral state gives about 0.14.
- 06 / 06
Brainstem Projection Learning
DA, NE, ACh and 5-HT projections learn Hebbian correlations with error magnitude, , inverse error and error stability; clamped to at fractional LR.
Abstract
A system and method for training neural networks using exclusively local learning rules without global backpropagation. The system comprises a learning manager that orchestrates ten interoperating local learning mechanisms: (1) a precision-weighted predictive coding optimizer computing analytical weight updates from per-column prediction errors normalized by learned precision estimates; (2) a BCM Hebbian optimizer with anti-Hebbian decorrelation and error modulation for self-organizing lateral associations; (3) a neuromodulatory plasticity gate multiplicatively combining dopamine, acetylcholine, norepinephrine, and serotonin signals to gate all learning; (4) brainstem projection learning via analytical Hebbian correlation with error signals; (5) subcortical Hebbian learning for thalamic relay, cortical workspace, cerebellar forward model, and lateral connections; (6) dendritic backpropagation within individual columns through SwiGLU nonlinearity with bootstrap-safe error signals; (7) reward-modulated three-factor learning; (8) micro-downscaling for continuous homeostatic regulation of synaptic weights; (9) sigma-squared emergency guards for precision parameter stabilization; and (10) analytical local output correction for language model heads using the delta rule with low-rank decomposition. All weight updates are computed analytically under torch.no_grad(), eliminating the gradient computation graph and reducing training memory consumption by approximately three-fold compared to backpropagation.
Status
Open research. This document was first drafted in the form of a patent specification, which is why it speaks of an invention and of claims. No patent application was filed and the lab does not intend to file one: where the text mentions a related or co-pending patent application, it means a companion document in this set, and none of them was filed. The work is published here as open research.
1. Field
The present invention relates to machine learning and artificial neural networks. More particularly, the invention relates to systems and methods for training neural network architectures using exclusively local learning rules derived from neuroscience, wherein all synaptic weight updates are computed analytically from locally available signals at each processing unit without requiring global backpropagation of error gradients through the network. The invention encompasses predictive coding optimizers, Bienenstock–Cooper–Munro (BCM) Hebbian learning with anti-Hebbian decorrelation, neuromodulatory plasticity gating, brainstem projection learning, subcortical Hebbian learning, dendritic backpropagation within individual processing columns, reward-modulated three-factor learning, micro-downscaling for continuous homeostasis, precision variance emergency stabilization, and analytical local output correction for language model heads.
2. Background
Limitations of Global Backpropagation
Since the seminal work of Rumelhart, Hinton, and Williams (1986), global backpropagation has been the dominant training algorithm for artificial neural networks. In backpropagation, an error signal computed at the output layer is propagated backwards through the entire network using the chain rule of calculus, and weight updates at every layer depend on gradients computed with respect to this global loss function. While effective in practice, global backpropagation suffers from several fundamental limitations.
First, backpropagation requires maintaining a complete computation graph of the forward pass, storing all intermediate activations for use during the backward pass. For deep networks with hundreds of layers and billions of parameters, this memory overhead constitutes a dominant fraction of total GPU VRAM consumption, often exceeding the memory required for the model weights themselves by a factor of three to ten.
Second, backpropagation imposes a strict sequential dependency: the backward pass cannot begin until the forward pass completes, and gradient updates at earlier layers must wait for gradient computation at later layers. This “backward locking” prevents true parallelism across layers and creates a computational bottleneck that scales linearly with network depth.
Third, and most critically for biological plausibility, backpropagation violates Dale’s law and the principle of locality that governs biological synaptic plasticity. In biological neural circuits, a synapse has access only to signals available at its pre-synaptic and post-synaptic terminals, supplemented by diffuse neuromodulatory signals. The synapse has no access to error gradients computed at distant neurons multiple layers away. This biological implausibility is not merely an aesthetic concern; it suggests that backpropagation may not discover the learning algorithms that evolution found effective over hundreds of millions of years of optimization.
Prior Art in Local Learning
Donald Hebb (1949) proposed the first local learning rule: “When an axon of cell A is near enough to excite a cell B and repeatedly or persistently takes part in firing it, some growth process or metabolic change takes place in one or both cells such that A’s efficiency, as one of the cells firing B, is increased.” This “fire together, wire together” principle forms the basis of associative learning but suffers from instability, pure Hebbian learning leads to unbounded weight growth.
Bienenstock, Cooper, and Munro (1982) introduced the BCM rule, which adds a sliding threshold such that synaptic modifications are potentiating when post-synaptic activity exceeds and depressing when below. This prevents runaway potentiation but does not address how prediction errors should guide learning.
Rao and Ballard (1999) proposed predictive coding as a model of cortical computation, wherein each cortical area generates predictions of activity in the area below it, and the resulting prediction errors drive local weight updates. Whittington and Bogacz (2017) showed that predictive coding can approximate backpropagation under certain conditions. However, these prior works remain theoretical and do not disclose a complete, implementable system for training large-scale neural networks using predictive coding combined with multiple complementary local learning rules.
Schultz (1997) demonstrated that midbrain dopamine neurons encode reward prediction errors, establishing a biological basis for reinforcement learning. However, prior art does not disclose how dopaminergic and other neuromodulatory signals can be integrated with predictive coding and Hebbian learning in a unified local learning framework for language modeling.
Sacramento et al. (2018) proposed dendritic error propagation as a biologically plausible alternative to backpropagation, wherein error signals propagate through dendritic compartments of pyramidal neurons rather than through a separate backward pathway. However, this work does not address integration with neuromodulatory gating, BCM homeostasis, or subcortical learning systems.
Deficiencies of the Prior Art
The prior art fails to disclose:
A complete system that trains a large-scale neural network using exclusively local learning rules with zero global backpropagation, achieving competitive language modeling performance.
A precision-weighted predictive coding optimizer wherein per-column prediction errors are normalized by learned precision estimates () computed through a softplus-transformed linear projection, with all updates computed analytically under
torch.no_grad().Integration of BCM-modulated Hebbian learning with error-modulated Hebbian learning, anti-Hebbian decorrelation, sigma-squared-adaptive learning rates, and metaplasticity-modulated learning rates in a single unified optimizer.
A neuromodulatory plasticity gate that multiplicatively combines four neuromodulator signals (dopamine, acetylcholine, norepinephrine, serotonin) to gate all learning in the network.
Analytical Hebbian learning rules for brainstem neuromodulator projections, wherein each projection weight learns to correlate with a specific aspect of prediction error.
Subcortical Hebbian learning rules for thalamic relay, cortical workspace, cerebellar forward model, and lateral inter-column connections.
Dendritic backpropagation within a single cortical column through SwiGLU nonlinearity with analytical chain rule computation for basal and apical dendritic gates.
Micro-downscaling as continuous homeostatic regulation of synaptic weights applied selectively to association weights while protecting gates, norms, and biases.
Sigma-squared emergency guards that detect and correct precision parameter divergence.
Analytical local output correction for language model heads using the delta rule on softmax error, with low-rank weight decomposition, computed without autograd.
3. Objects
It is a primary object of the present invention to provide a system and method for training neural networks using exclusively local learning rules that require no global backpropagation of error gradients, thereby eliminating the need to store a complete computation graph and reducing memory consumption by a factor of approximately three compared to standard backpropagation training.
It is a further object of the invention to provide a precision-weighted predictive coding optimizer in which each processing column independently minimizes its own prediction error using analytically computed weight updates, wherein the error signal is normalized by a learned precision estimate to enable automatic calibration of confidence.
It is another object of the invention to provide a BCM-modulated Hebbian learning system with anti-Hebbian decorrelation and error modulation, wherein self-organizing lateral associations arise from purely local correlational learning modulated by a sliding threshold that prevents runaway potentiation.
It is yet another object of the invention to provide a neuromodulatory plasticity gate that multiplicatively combines four neuromodulator signals to determine when, what, how broadly, and over what timescale learning occurs, thereby implementing reward-guided learning without global backpropagation.
It is a still further object of the invention to provide analytical Hebbian learning rules for brainstem neuromodulator projections, subcortical relay systems, and inter-column lateral connections, such that the entire neural network, including all subcortical processing modules, learns through purely local rules.
It is another object of the invention to provide dendritic backpropagation within individual processing columns, wherein top-down error signals propagate analytically through SwiGLU feedforward networks and dendritic gates, enabling learning in deep column internal pathways without requiring global gradient flow.
It is a further object of the invention to provide continuous homeostatic regulation through micro-downscaling of synaptic weights and emergency stabilization of precision parameters, ensuring training stability without external learning rate schedulers.
It is yet a further object of the invention to provide an analytical local output correction method for language model output heads, wherein the cross-entropy gradient is computed directly from softmax error and applied via the delta rule with low-rank weight decomposition, achieving language model training with zero autograd dependency.
4. Summary
The present invention provides a system and method for training neural networks using a coordinated ensemble of local learning rules that collectively replace global backpropagation. The system comprises ten interoperating learning mechanisms, each computing weight updates from signals locally available at the synapse being modified, supplemented only by globally broadcast neuromodulatory signals.
In a first aspect, the invention provides a predictive coding optimizer that operates on a hierarchical network of processing columns. Each column generates a prediction of its own input and computes a prediction error . A prediction weight matrix is updated according to:
where is a learned precision parameter computed via , and is the layer-normalized hidden state. The precision weight is updated via the chain rule through softplus:
All updates are computed under torch.no_grad() with explicit gradient norm clipping.
In a second aspect, the invention provides a BCM Hebbian optimizer with three complementary learning rules: (i) BCM-modulated Hebbian learning for association weights, (ii) anti-Hebbian lateral learning for decorrelation, and (iii) error-modulated Hebbian learning that blends correlational and error-driven signals with a configurable weight. The optimizer further incorporates sigma-squared-adaptive learning rates wherein uncertain columns learn faster, and metaplasticity-modulated learning rates that track weight change history.
In a third aspect, the invention provides a neuromodulatory plasticity gate that computes:
where DA (dopamine) gates whether to learn, ACh (acetylcholine) gates what to learn, NE (norepinephrine) modulates learning breadth, and 5-HT (serotonin) modulates temporal horizon. This plasticity signal multiplicatively gates all predictive coding and Hebbian updates.
In a fourth aspect, the invention provides brainstem projection learning wherein neuromodulator projections learn analytical Hebbian correlations: DA correlates with error magnitude, NE with prediction uncertainty (), ACh with inverse error (confidence), and 5-HT with error temporal stability.
In a fifth aspect, the invention provides subcortical Hebbian learning for thalamic relay weights, cortical workspace broadcast weights, cerebellar temporal prediction weights, and lateral inter-column connection weights, each using error-correlation Hebbian rules.
In a sixth aspect, the invention provides dendritic backpropagation within individual columns, wherein top-down error propagates analytically through SwiGLU feedforward networks via , , and , updating , , , basal dendritic gate , and apical dendritic gate .
In a seventh aspect, the invention provides reward-modulated three-factor learning with hippocampal surprise modulation.
In an eighth aspect, the invention provides micro-downscaling applied every steps: for synaptic association weights only, protecting gates, norms, and biases from downscaling.
In a ninth aspect, the invention provides a sigma-squared emergency guard that detects divergence of precision parameters and applies corrective scaling.
In a tenth aspect, the invention provides local output correction for language model heads using the analytical delta rule:
with gradient clipping and low-rank decomposition , for the production pathway.
5. Description of the Figures
is a system architecture diagram showing the local learning system of Claim 1, illustrating all six subsystems, predictive coding optimizer, BCM Hebbian optimizer, neuromodulatory plasticity gate, dendritic error propagation, local output correction, and the no-gradient context, and their interconnections within a hierarchical stack of processing columns.
is a method flow diagram showing the training method of Claim 2, illustrating the sequential steps of forward pass, prediction error computation, neuromodulatory plasticity signal computation, analytical weight updates, BCM Hebbian updates, dendritic error propagation, output correction, micro-downscaling, and precision monitoring, all within a no-gradient context.
is a block diagram showing the non-transitory computer-readable medium of Claim 3, illustrating the six instruction groups stored on the medium and their execution flow on a processor coupled to a graphics processing unit.
is a detailed diagram of the precision estimate computation and update of Claim 4, showing the chain rule through softplus, sigmoid clamping to , and the MSE-based gradient with dimension-invariant scaling.
is a detailed diagram of the BCM-modulated Hebbian learning rule of Claim 5, showing the BCM modulation function , the metaplasticity multiplier , and the sigma-squared-adaptive learning rate multiplier .
is a diagram of the error-modulated Hebbian mode of Claim 6, showing the blending of correlational BCM and error-driven signals via the configurable error weight parameter .
is a block diagram of the neuromodulatory plasticity gate of Claim 7, showing the four neuromodulator inputs (DA, ACh, NE, 5-HT), their multiplicative combination, and the affine transformations and that ensure learning never drops below half rate.
is a diagram of the brainstem module of Claim 8, showing the four learned projection weights and their analytical Hebbian correlation rules: DA with error magnitude, NE with prediction uncertainty (), ACh with inverse error, and 5-HT with error temporal stability.
is a diagram of the brainstem weight constraints of Claim 9, showing the clamping applied after each projection update and the fractional learning rate relationship to the Hebbian learning rate.
is a block diagram of the thalamic relay learning module of Claim 10, showing the relay input and output weight updates via error-correlation Hebbian rules and the aggregate error signals from served processing columns.
is a block diagram of the cortical workspace learning module of Claim 11, showing surprise-weighted Hebbian learning for write weights and error-reduction Hebbian learning for read weights.
is a diagram of the cerebellar learning module of Claim 12, showing the Marr–Albus–Ito delta rule on temporal prediction weights, with the climbing fiber error signal and parallel fiber–Purkinje cell synapse modification.
is a diagram of the lateral inter-column learning module of Claim 13, showing the send and receive weight updates between adjacent processing columns via error-correlation Hebbian rules.
is a detailed diagram of the dendritic gate learning of Claim 14, showing the basal dendritic gate weight (feedforward input from L4) and apical dendritic gate weight (top-down context), both modulating the feedforward network via sigmoid gating.
is a flowchart of the bootstrap-safe error signal selection of Claim 15, showing the detection of near-zero down-projection weight norm and the substitution of mean error magnitude broadcast signal during early training.
is a block diagram of the low-rank output correction of Claim 16, showing the production pathway matrices and , their analytical updates, and gradient norm clipping.
is a diagram of the precision weight update method of Claim 17, showing the chain rule through softplus for computing with MSE-based gradient and dimension-invariant scaling.
is a diagram of the sigma-squared-adaptive learning rate and metaplasticity multiplier of Claim 18, showing how columns with high prediction uncertainty learn faster via and how the metaplasticity multiplier tracks recent weight change magnitude.
is a diagram of the brainstem neuromodulator projection updates of Claim 19, showing the analytical Hebbian correlation rules for all four projections (DA, NE, ACh, 5-HT) at a fraction of the Hebbian learning rate.
is a diagram of the local modulatory circuit parameter updates of Claim 20, showing updates for L4 input projection, L1 top-down modulation, L6 thalamic feedback, oscillatory coupling, and interneuron weights.
is a diagram of the working memory gate and weight updates of Claim 21, showing surprise-proportional gate opening when prediction error exceeds a threshold, surprise-driven Hebbian write weight correlation, and error-reduction Hebbian read weight updates.
is a flowchart of the bootstrap-safe error signal selection method of Claim 22, showing the conditional substitution of mean error magnitude for chain-rule error when the down-projection weight norm falls below a threshold.
is a timing diagram of the micro-downscaling of Claim 23, showing the selective multiplication of synaptic weight matrices by every steps, with protected parameters (gates, norms, biases) excluded.
is a diagram of the precision parameter divergence monitor of Claim 24, showing the threshold check on exceeding 20.0 and the corrective multiplicative scaling of precision weight matrix and bias by 0.9.
is a diagram of the elastic weight consolidation of Claim 25, showing the elastic pull of column parameters toward anchor values weighted by per-parameter importance estimates for continual learning protection.
is a comprehensive diagram of the subcortical system learning of Claim 26, showing the analytical Hebbian rules for brainstem neuromodulator projections, thalamic relay weights, workspace broadcast weights, cerebellar prediction weights, and lateral inter-column connection weights.
6. Architectural Overview Figures
7. Claim Illustration Sheets
8. Detailed Description
The following detailed description discloses the preferred embodiment of the present invention. Reference is made to the accompanying drawings, which form a part hereof, and in which are shown by way of illustration specific embodiments in which the invention may be practiced.
System Overview
The disclosed system comprises a learning manager module that orchestrates ten distinct local learning mechanisms operating on a hierarchical network of processing columns (cortical columns) and associated subcortical processing modules. The learning manager executes a wake-step procedure on every training iteration, applying learning rules in a prescribed sequence. All weight updates are computed under torch.no_grad(), meaning the automatic differentiation graph is never constructed, never stored, and never traversed. This eliminates the approximately three-fold memory overhead that backpropagation imposes for storing intermediate activations and gradient tensors.
The ten learning mechanisms are:
Precision-weighted predictive coding optimizer
BCM Hebbian optimizer with anti-Hebbian decorrelation and error modulation
Neuromodulatory plasticity gate
Brainstem projection learning
Subcortical Hebbian learning
L5 dendritic backpropagation
Reward-modulated three-factor learning
Micro-downscaling (continuous homeostasis)
Sigma-squared emergency guard
Local output correction (delta rule on language model head)
Learning Mechanism 1: Precision-Weighted Predictive Coding Optimizer
Referring to Figure 7, the predictive coding optimizer implements local error minimization per processing column. The system operates on a hierarchical stack of processing columns, where each column receives input from the column below and generates a prediction of that input.
Prediction Error Computation
For each column , the prediction error is computed as:
where the superscript “detach” indicates that the target is detached from the computation graph, enforcing locality of learning. This detachment ensures that gradient information does not flow between columns through the error signal.
Precision-Weighted Loss
The local loss for column is:
where is the column’s precision parameter. The first term penalizes prediction error inversely weighted by precision (uncertain columns are penalized less for errors), and the second term prevents the trivial solution of infinite variance.
Precision Computation
The precision is computed from the layer-normalized hidden state via:
where is a linear projection from to 1, is a bias parameter, and prevents division by zero. The function ensures without hard clamping.
Analytical Weight Updates for
The weight update for the prediction matrix is derived analytically:
where is the predictive coding learning rate, is the neuromodulatory plasticity multiplier, and is the number of tokens in the batch. The computation proceeds as follows:
The weighted error is computed in float32 precision, producing a tensor of shape .
Both the weighted error and hidden state are reshaped to and respectively.
The outer product yields the gradient of shape .
Gradient norm clipping is applied: if , then .
The weight is updated: .
Analytical Weight Updates for
The precision parameter update is computed via the chain rule through softplus:
where uses mean (not sum) squared error to keep the gradient scale independent of model dimension. The sigmoid is clamped to for numerical stability. The weight and bias updates are:
Learning Mechanism 2: BCM Hebbian Optimizer with Anti-Hebbian Decorrelation
Referring to Figure 8, the Hebbian optimizer operates on the lateral association layer (L2/3) of each processing column, implementing self-organizing representation learning.
BCM-Modulated Hebbian Learning
The association weight matrix is a per-head matrix of shape where is the number of association heads and is the head dimension. The BCM update rule is:
where:
is the BCM modulation, with potentiation when post-synaptic activity exceeds and depression when below.
is the metaplasticity learning rate multiplier, which adapts based on the history of weight changes.
is the sigma-squared-adaptive multiplier, which increases learning rate for columns with high prediction uncertainty.
The diagonal is zeroed after each update to prevent self-reinforcement.
Structural plasticity masks are applied to respect pruned connections.
Weight norm is clamped to a maximum of 5.0 per head.
Error-Modulated Hebbian Learning
When prediction errors are available, the BCM update is blended with error-driven modulation:
where is a configurable error weight parameter. At , learning is pure BCM (blind correlation). At , learning is fully error-driven. The normalized error magnitude ensures scale invariance.
Anti-Hebbian Lateral Decorrelation
The lateral weight matrix is updated via anti-Hebbian learning:
where is the output of head reshaped to . The subtraction of the identity matrix drives outputs toward orthogonality, preventing representational collapse. Weight norm is clamped to 3.0.
Sigma-Squared Adaptive Learning Rate
The effective learning rate for each column is modulated by prediction uncertainty:
Columns with high (high uncertainty) learn faster because they have the most to learn, while columns with low (well-calibrated predictions) learn more conservatively.
BCM Threshold Update
The BCM threshold is updated as an exponential moving average of post-synaptic activity:
This sliding threshold is the mechanism that prevents runaway Hebbian learning. High activity raises the threshold, making further potentiation harder (homeostatic regulation).
Learning Mechanism 3: Neuromodulatory Plasticity Gate
Referring to Figure 10, the neuromodulatory plasticity gate computes a multiplicative signal that gates all learning in the system.
Plasticity Computation
The plasticity gate is computed from four neuromodulator signals:
where:
DA (dopamine): gates whether to learn. DA is high when prediction error is high (surprise), signaling that the current input deviates from expectations and should drive learning.
ACh (acetylcholine): gates what to learn. ACh is high during focused attention, selecting which synapses are eligible for modification.
NE (norepinephrine): modulates how broadly to learn. High NE broadens learning (exploration); low NE focuses learning (exploitation). The factor ensures learning never drops below half rate.
5-HT (serotonin): modulates temporal horizon. High 5-HT extends credit assignment over longer sequences; low 5-HT focuses on immediate outcomes. The factor operates analogously to NE.
At neutral neuromodulatory state (all signals at 0.5), the plasticity gate produces , providing a moderate baseline learning rate.
Developmental Modulation
The plasticity gate is further modulated by a developmental stage multiplier, which implements critical periods in the network’s learning:
where varies across training according to a developmental program that controls learning rate, Hebbian weighting, inhibitory strength, and structural plasticity rate.
Learning Mechanism 4: Brainstem Projection Learning
Referring to Figure 11, the brainstem module produces neuromodulatory signals from learned linear projections of the current representation. These projections learn via analytical Hebbian updates:
DA Projection
The dopamine projection learns to correlate with prediction error magnitude:
where is the per-token error magnitude and is the last column’s output .
NE Projection
The norepinephrine projection learns to correlate with prediction uncertainty:
ACh Projection
The acetylcholine projection learns to correlate with inverse error (confidence):
5-HT Projection
The serotonin projection learns to correlate with error temporal stability:
where is the mean hidden representation. All projection weights are clamped to .
Learning Mechanism 5: Subcortical Hebbian Learning
Referring to Figure 29, each subcortical system uses a biologically grounded local learning rule.
Thalamic Relay Learning
For each thalamic relay group serving a subset of columns, the relay input weight and output weight are updated via error-correlation Hebbian:
where is the aggregate error for the relay’s columns and . The relay gate opens bidirectionally based on aggregate error magnitude.
Cortical Workspace Learning
The workspace write weights learn via surprise-weighted Hebbian:
where per token. The workspace read weights learn via error-reduction Hebbian:
Cerebellar Forward Model Learning
The cerebellum implements the Marr–Albus–Ito learning rule: the climbing fiber carries prediction error, and the parallel fiber–Purkinje cell synapse is modified via the delta rule:
Lateral Inter-Column Learning
For each column and its neighbors :
where is the neighboring column’s projected output.
Learning Mechanism 6: L5 Dendritic Backpropagation
Referring to Figure 17, the L5 feedforward network within each column uses a SwiGLU nonlinearity: , followed by . Top-down error from the column above propagates analytically:
Error Signal Selection
For column , the teaching signal is the prediction error from column (the column above), telling column how predictable its output was. For the last column, its own error is used. The error is precision-weighted: .
Analytical Chain Rule Through SwiGLU
where is the gate projection, is the up projection, and is the input.
Dendritic Gate Updates
The basal dendritic gate modulates SwiGLU output based on feedforward input (L4 output). The apical dendritic gate modulates based on top-down context. Both learn via:
with an analogous expression for using the top-down signal.
Bootstrap-Safe Error Signal
Early in training, is near zero (identity-at-init), making via normal chain rule. The system detects this condition by checking and, when below threshold 0.01, substitutes a bootstrap error signal: the mean error magnitude per token broadcast to the feedforward dimension. This ensures dendritic gates receive a learning signal even before the main pathway has learned.
Learning Mechanism 7: Reward-Modulated Three-Factor Learning
The system supports reward-modulated Hebbian learning for hippocampal memory:
Positive reward boosts hippocampal surprise signals, strengthening encoding of rewarding experiences. Negative reward suppresses surprise, reducing encoding of aversive outcomes. This three-factor rule requires only locally available signals: pre-synaptic activity, post-synaptic activity, and a globally broadcast reward signal (dopamine).
Learning Mechanism 8: Micro-Downscaling
Referring to Figure 26, the system implements continuous homeostatic regulation via micro-downscaling applied every 10 training steps:
where is a configurable synaptic downscale parameter. Critically, downscaling is applied selectively:
Downscaled: , , , , , these are synaptic weights that are subject to Hebbian potentiation and require homeostatic regulation.
Protected: gate parameters, normalization weights, biases, decay time constants, these control circuit dynamics and must not be attenuated.
A weight is only downscaled if its absolute maximum exceeds , preventing downscaling of weights that are effectively zero.
Learning Mechanism 9: Sigma-Squared Emergency Guard
The system monitors precision parameters for divergence:
This guard detects the pathological condition where precision parameters grow unbounded, which would cause the precision-weighted prediction error to approach either zero (infinite confidence, ignoring errors) or infinity (zero confidence, amplifying noise). The multiplicative correction of 0.9 gently reduces the parameter toward a safe range.
Learning Mechanism 10: Local Output Correction
Referring to Figure 19, the local output correction implements the analytical delta rule for the language model head.
Analytical Cross-Entropy Gradient
For a linear language model head , the gradient of cross-entropy loss with respect to the logits is:
This is computed directly without autograd. Padding tokens (target ) are masked with a valid token mask.
Output Bias Update
with gradient norm clipping: if , then .
Low-Rank Production Pathway
The production pathway uses a low-rank decomposition where and :
Both updates are gradient-norm clipped to .
Local Parameter Updates for Modulatory Circuits
In addition to the ten primary mechanisms, the Hebbian optimizer provides local updates for parameters in modulatory circuits that do not participate in the main prediction pathway:
L4 Input Projection
The thalamic input layer L4 learns at (very slow for input layer stability):
L1 Top-Down Modulation
The top-down projection L1 learns via prediction-error Hebbian:
The L1 gate opens bidirectionally based on error magnitude, with a threshold centered at 1.0.
L6 Thalamic Feedback
The feedback projection L6 learns column state-to-error correlation:
where is the column state vector. The L6 gate is bidirectionally driven analogously to L1.
Oscillation Phase-Amplitude Coupling
Oscillatory coupling parameters (, , ) learn via phase-error anti-correlation: coupling is reduced where error aligns with oscillatory phase, and the oscillation output projection learns via error-correlation Hebbian.
Interneuron Weights
VIP interneurons learn to detect novelty (error-modulated activity), SST interneurons learn input suppression (inverse-error modulated), and PV interneurons learn veto thresholds (error-weighted activity). All at very slow learning rates () for inhibitory stability.
Working Memory Gates and Weights
When prediction error exceeds a threshold, working memory gates (NMDA, silent trace, phonological loop) open in proportion to surprise. Write weights learn via surprise-driven Hebbian correlation, and read weights learn via error-reduction Hebbian. All working memory weights are norm-guarded to 5.0.
Coordination and Sequencing
The learning manager applies all mechanisms in a specific sequence during each wake step:
Developmental modulation (critical period adjustment)
Neuromodulatory plasticity gate computation
Predictive coding updates (vertical connections)
L5 dendritic backpropagation (intra-column deep pathway)
Hebbian updates (lateral L2/3 associations)
Local parameter updates (L1/L4/L6/oscillations/interneurons/WM)
Structural plasticity (pruning and synaptogenesis)
Hebbian weight norm guards
EWC elastic pull (continual learning protection)
Micro-downscaling (homeostatic regulation)
Brainstem projection learning
Subcortical weight learning
Sigma-squared emergency guard
Wake step tracking
This ordering ensures that neuromodulatory gating is computed before it modulates learning, prediction errors are computed before they drive Hebbian and subcortical updates, and homeostatic regulation follows potentiation.
9. Examples
Example 1: Predictive Coding Update Execution
Consider a network with 12 processing columns, batch size , sequence length , and model dimension . At training step 100:
Column 5 generates prediction of its input .
Prediction error: , shape .
Precision: , shape . Suppose (the column is moderately uncertain).
Weighted error: , shape .
Reshape to for outer product computation.
, shape .
Gradient norm: suppose . Clip: .
Update: where is the plasticity gate.
The entire computation uses no autograd graph. Memory consumption is proportional to the tensors being manipulated, not to the full network depth.
Example 2: BCM Hebbian with Error Modulation
Column 3 performs error-modulated Hebbian learning with :
Pre-synaptic input: , shape . Reshape to heads: .
Post-synaptic output: , same shape.
BCM threshold: (running average of squared activity).
BCM modulation: .
Error modulation: per token. Normalize to mean 1.
Blended: .
Update per head: .
Zero diagonal, apply structural plasticity mask, clamp norm to 5.0.
Simultaneously, anti-Hebbian update: , clamped to norm 3.0.
Example 3: Neuromodulatory Gating During Surprising Input
At step 500, the network encounters an unexpected token sequence:
Brainstem computes: DA (high surprise high dopamine), NE (elevated arousal), 5-HT (short patience, predictions failing), ACh (moderate attention).
Plasticity gate: .
This is more than double the neutral baseline of , meaning all learning rules fire with increased strength for this surprising input.
Brainstem DA projection weight increases (correlating with the high error magnitude).
Brainstem 5-HT projection decreases (the instability of error reduces the serotonin stability signal).
Example 4: L5 Dendritic Backpropagation with Bootstrap
At training step 10 (early training), column 7:
was initialized to zeros. (bootstrap threshold).
Normal chain rule path: , dendritic gates would receive no learning signal.
Bootstrap fallback: per token, broadcast to .
Dendritic gate receives a meaningful error signal from step 1, enabling early learning.
At step 200, suppose : the system switches to normal chain rule , which is now non-trivial.
Example 5: Local Output Correction for Language Model Head
At step 300, the LM head processes 49,152 tokens over a vocabulary of 13,817:
Forward: , shape .
, computed in float32.
: scatter targets into one-hot, shape .
, shape .
Mask padding: .
Bias update: , clip norm to 1.0.
update: project hidden through , compute outer product with error.
update: project error through , compute outer product with hidden.
All updates applied. Zero autograd. Memory: only the tensors being manipulated.
Example 6: Micro-Downscaling Selectivity
At step 100 (divisible by 10), with :
Scale factor: .
For each column: (if ).
Similarly for , , , .
: NOT downscaled (intrinsic excitability, not a synapse).
: NOT downscaled (normalization scale).
, , : NOT downscaled (L5 SwiGLU core, updated by dendritic backpropagation, not Hebbian).
10. Industrial Applicability
The present invention has broad industrial applicability in any domain where neural networks require training with reduced memory consumption, improved biological plausibility, or enhanced continual learning capability.
GPU Memory Reduction for Large Language Model Training
The elimination of global backpropagation reduces training VRAM consumption by approximately a factor of three, as no intermediate activations need to be stored for the backward pass and no gradient computation graph is maintained. For a 106 million parameter model, this reduces VRAM usage from approximately 6 GB (with backpropagation) to approximately 2 GB (with local learning only). This enables training of larger models on commodity GPU hardware, including laptop-class GPUs with 6–8 GB VRAM.
Edge Device Training
The local learning rules disclosed herein enable on-device training and adaptation without the memory overhead of backpropagation, making the system suitable for edge deployment on mobile devices, embedded systems, and IoT hardware where VRAM is severely constrained.
Continual Learning Systems
The combination of micro-downscaling, sigma-squared emergency guards, EWC elastic pull, and neuromodulatory gating provides inherent resistance to catastrophic forgetting, enabling deployment in continual learning scenarios where the model must adapt to new data without losing previously learned capabilities.
Neuromorphic Hardware Acceleration
The local learning rules disclosed herein are inherently compatible with neuromorphic computing architectures (e.g., Intel Loihi, IBM TrueNorth, BrainChip Akida), which implement local Hebbian-like learning rules in silicon. The system can serve as a software simulation of algorithms intended for eventual neuromorphic hardware deployment.
Adaptive Language Processing
The neuromodulatory plasticity gating enables context-dependent learning rates: the system learns rapidly from surprising inputs (high dopamine), slowly from predictable inputs, and modulates exploration versus exploitation (norepinephrine) and temporal horizon (serotonin) dynamically. This is applicable to dialogue systems, real-time translation, and adaptive content generation.
11. Claims
We claim:
Claim 1
A system for training a neural network using local learning rules without global backpropagation, the system comprising:
a hierarchical neural network comprising a plurality of processing columns arranged in a stack, each processing column comprising a prediction weight matrix, a precision weight matrix, an association weight matrix, a lateral weight matrix, and a feedforward network with a gated nonlinearity;
a predictive coding optimizer configured to, for each processing column, compute a prediction error as the difference between the column’s input and the column’s prediction of that input, normalize the prediction error by a learned precision estimate computed via a softplus-transformed linear projection of the column’s hidden state, and update the prediction weight matrix and the precision weight matrix using analytical gradient expressions computed without constructing or traversing an automatic differentiation graph;
a Hebbian optimizer configured to update the association weight matrix of each processing column using a BCM-modulated Hebbian learning rule wherein the weight change is proportional to a post-synaptic activity modulated by a sliding threshold, and to update the lateral weight matrix using an anti-Hebbian decorrelation rule;
a neuromodulatory plasticity gate configured to compute a multiplicative plasticity signal from four neuromodulator values representing dopamine, acetylcholine, norepinephrine, and serotonin, and to apply the plasticity signal as a multiplier to the learning rates of both the predictive coding optimizer and the Hebbian optimizer;
a dendritic error propagation module configured to propagate error signals analytically through the gated nonlinearity of each processing column’s feedforward network, computing weight updates for down-projection, gate-projection, and up-projection weights using the analytical chain rule through a SiLU activation derivative, without global backpropagation; and
a local output correction module configured to compute an output error as the difference between a softmax of output logits and a one-hot encoding of target tokens, and to update output pathway weights using the delta rule applied to the output error and hidden representations, with gradient norm clipping, without constructing an automatic differentiation graph;
wherein all weight updates across the system are computed under a no-gradient context that prevents construction of a computation graph, thereby reducing training memory consumption compared to backpropagation-based training.
Claim 2
A method for training a neural network using local learning rules without global backpropagation, the method comprising:
performing a forward pass through a hierarchical neural network comprising a plurality of processing columns to produce per-column predictions, precision estimates, and output logits;
computing, for each processing column, a prediction error as the difference between the column’s input and the column’s prediction, and normalizing the prediction error by a precision estimate derived from a softplus-transformed projection of the column’s hidden state;
computing a neuromodulatory plasticity signal by multiplicatively combining four neuromodulator values, wherein a first neuromodulator gates whether learning occurs, a second neuromodulator gates what is learned, a third neuromodulator modulates learning breadth, and a fourth neuromodulator modulates temporal learning horizon;
updating prediction weight matrices of the processing columns using analytically computed precision-weighted outer products of normalized errors and hidden states, modulated by the plasticity signal, without constructing an automatic differentiation graph;
updating association weight matrices of the processing columns using a BCM-modulated Hebbian rule wherein weight changes are proportional to post-synaptic activity modulated by a sliding threshold, and updating lateral weight matrices using an anti-Hebbian decorrelation rule;
propagating top-down error signals analytically through a gated feedforward nonlinearity within each processing column to compute weight updates for the feedforward network using the analytical chain rule through a SiLU activation derivative;
computing an output error as the difference between a softmax distribution over output logits and a one-hot target distribution, and updating output pathway weights using the delta rule applied to the output error;
applying micro-downscaling to synaptic weight matrices at periodic intervals while excluding gate parameters, normalization parameters, and bias parameters from downscaling; and
monitoring precision parameters for divergence and applying corrective multiplicative scaling when a precision parameter exceeds a divergence threshold;
wherein all weight update steps are performed under a no-gradient context without constructing or traversing an automatic differentiation graph.
Claim 3
A non-transitory computer-readable medium storing instructions that, when executed by a processor coupled to a graphics processing unit, cause the processor to perform a method for training a neural network using local learning rules without global backpropagation, the method comprising:
computing, for each processing column in a hierarchical neural network, a precision-weighted prediction error by dividing a prediction error tensor by a learned precision estimate tensor, and computing an analytical weight update as an outer product of the precision-weighted error and a hidden state, divided by a token count;
computing a neuromodulatory plasticity gate as a product of a dopamine signal, an acetylcholine signal, and affine transformations of a norepinephrine signal and a serotonin signal, and applying the gate as a multiplicative modifier to all analytical weight updates;
updating association weights via a BCM-modulated Hebbian rule with a sliding activity threshold and updating lateral weights via an anti-Hebbian decorrelation rule, both modulated by the neuromodulatory plasticity gate;
propagating error signals through a SwiGLU feedforward nonlinearity within each column by computing a SiLU derivative as and analytically computing weight updates for down-projection, gate-projection, and up-projection matrices;
computing an output error as a softmax distribution minus a one-hot target distribution and updating output pathway weights via the delta rule with gradient norm clipping; and
periodically applying homeostatic downscaling selectively to synaptic weight matrices while protecting gate, normalization, and bias parameters;
wherein all computations in steps (a) through (f) are performed within a no-gradient execution context that suppresses automatic differentiation graph construction.
Claim 4
The system of Claim 1, wherein the predictive coding optimizer computes the precision estimate as:
and updates via the chain rule through softplus:
where and the sigmoid is clamped to .
Claim 5
The system of Claim 1, wherein the BCM-modulated Hebbian learning rule computes weight changes as:
where is a metaplasticity learning rate multiplier that adapts based on weight change history, and increases the learning rate for columns with high prediction uncertainty.
Claim 6
The system of Claim 1, wherein the Hebbian optimizer further comprises an error-modulated mode that blends correlational and error-driven signals:
where is a configurable error weight parameter.
Claim 7
The system of Claim 1, wherein the neuromodulatory plasticity gate computes:
such that at neutral neuromodulatory state with all signals at 0.5, the plasticity gate produces approximately 0.14.
Claim 8
The system of Claim 1, further comprising a brainstem module with learned projection weights, wherein the brainstem module computes the four neuromodulator values from an aggregate neural representation, and wherein the projection weights are updated via analytical Hebbian correlation rules:
a dopamine projection correlating with prediction error magnitude
a norepinephrine projection correlating with prediction uncertainty
an acetylcholine projection correlating with inverse prediction error, and
a serotonin projection correlating with prediction error temporal stability.
Claim 9
The system of Claim 8, wherein the brainstem projection weights are clamped to a range after each update, and wherein the brainstem learning rate is a fraction of the Hebbian learning rate.
Claim 10
The system of Claim 1, further comprising a thalamic relay learning module configured to update thalamic input and output weight matrices via error-correlation Hebbian rules using aggregate error signals from the processing columns served by each relay group.
Claim 11
The system of Claim 1, further comprising a cortical workspace learning module configured to update write weights via surprise-weighted Hebbian learning, wherein the surprise signal is the per-token error magnitude, and to update read weights via error-reduction Hebbian learning.
Claim 12
The system of Claim 1, further comprising a cerebellar learning module implementing a delta rule on temporal prediction weights, wherein a climbing fiber signal carries prediction error and parallel fiber–Purkinje cell synapses are modified via:
Claim 13
The system of Claim 1, further comprising a lateral inter-column learning module configured to update send and receive weights between adjacent processing columns via error-correlation Hebbian rules, strengthening connections between columns whose outputs reduce each other’s prediction errors.
Claim 14
The system of Claim 1, wherein the dendritic error propagation module further comprises:
a basal dendritic gate weight updated using error signals correlated with feedforward input from a thalamic input layer, and
an apical dendritic gate weight updated using error signals correlated with a top-down context signal
wherein both dendritic gates modulate the feedforward network output via sigmoid gating.
Claim 15
The system of Claim 1, wherein the dendritic error propagation module implements a bootstrap-safe error signal selection mechanism that detects when a down-projection weight norm is below a threshold and substitutes a mean error magnitude signal broadcast to the feedforward dimension, ensuring dendritic gates receive a learning signal during early training when the down-projection weight is near zero.
Claim 16
The system of Claim 1, wherein the local output correction module updates output pathway weights using a low-rank decomposition:
where and are production pathway matrices, and each update is gradient-norm clipped to a maximum norm of 1.0.
Claim 17
The method of Claim 2, wherein the step of updating prediction weight matrices further comprises computing precision weight updates via a chain rule through a softplus function:
where the MSE uses mean-squared-error over the model dimension to maintain gradient scale independence.
Claim 18
The method of Claim 2, wherein the step of updating association weight matrices further comprises modulating the BCM update by a sigma-squared adaptive learning rate multiplier and a metaplasticity multiplier that tracks the magnitude of recent weight changes.
Claim 19
The method of Claim 2, further comprising updating brainstem neuromodulator projection weights via analytical Hebbian correlation rules at a fraction of the Hebbian learning rate, wherein dopamine projection weights correlate with error magnitude, norepinephrine projection weights correlate with precision uncertainty, acetylcholine projection weights correlate with inverse error, and serotonin projection weights correlate with error temporal stability.
Claim 20
The method of Claim 2, further comprising updating local modulatory circuit parameters including:
L4 input projection weights via error-correlation at a reduced learning rate for input layer stability
L1 top-down modulation weights via prediction-error Hebbian correlation
L6 thalamic feedback weights via column state-to-error correlation
oscillatory coupling parameters via phase-error anti-correlation, and
interneuron weights via activity-dependent error-modulated plasticity at reduced learning rates for inhibitory stability.
Claim 21
The method of Claim 2, further comprising updating working memory gate parameters in proportion to prediction error surprise when the error exceeds a threshold, and updating working memory write weights via surprise-driven Hebbian correlation and read weights via error-reduction Hebbian correlation.
Claim 22
The method of Claim 2, wherein the step of propagating top-down error signals further comprises a bootstrap-safe error signal selection that, when a down-projection weight norm is below a threshold value, substitutes a mean error magnitude broadcast signal for the chain-rule-computed error signal.
Claim 23
The method of Claim 2, wherein the step of applying micro-downscaling comprises multiplying synaptic weight matrices by a factor every training steps, where is a configurable downscale parameter, and wherein the downscaling is applied only to association, lateral, distance, value, and output weight matrices, and not to gate parameters, normalization weights, biases, or feedforward core weights.
Claim 24
The method of Claim 2, wherein the step of monitoring precision parameters comprises checking whether the absolute maximum of a precision bias parameter exceeds a threshold of 20.0, and upon exceeding, multiplicatively scaling both the precision weight matrix and bias by a factor of 0.9.
Claim 25
The method of Claim 2, further comprising applying elastic weight consolidation by computing an elastic pull on column parameters toward anchor values weighted by per-parameter importance estimates, thereby protecting consolidated knowledge during continual learning.
Claim 26
The non-transitory computer-readable medium of Claim 3, wherein the method further comprises updating brainstem neuromodulator projections, thalamic relay weights, workspace broadcast weights, cerebellar prediction weights, and lateral inter-column connection weights, each using analytical Hebbian correlation rules that are specific to the biological function of the respective subcortical system.
License
PolyForm Noncommercial License 1.0.0This work is open research. Free for any noncommercial use: research, education, personal projects, evaluation, and nonprofit or public-sector use. Commercial use requires a separate license, available by contacting krrish@verace.in.