Dendritic Balance Learning for Predictive Processing
Core Concept
Dendritic Balance Learning implements predictive processing in cortical circuits by using compartmental neuron models where apical dendrites receive top-down predictions and basal dendrites receive bottom-up sensory input. The mismatch between predictions and input generates a dendritic prediction error that drives local synaptic plasticity, implementing a biologically plausible learning algorithm for hierarchical predictive coding.
Theoretical Foundation
1. Compartmental Neuron Model
Each pyramidal neuron has three functional compartments:
- Somatic compartment: Integrates inputs and generates output spikes
- Basal dendrites: Receive feedforward (bottom-up) sensory inputs
- Apical dendrites: Receive feedback (top-down) predictions from higher areas
The somatic voltage integrates: Vs = W_basal · x_bottom-up + W_apical · y_top-down + bias
2. Dendritic Prediction Error
The prediction error at the dendritic level: δ_d = V_basal - V_apical
Where V_basal is the depolarization from feedforward inputs and V_apical is the depolarization from feedback predictions.
3. Three-Phase Learning Protocol
- Forward phase: Present input, compute somatic output with current weights
- Target phase: Clamp output to target, observe dendritic mismatch
- Learning phase: Update weights based on prediction error
Implementation
Compartmental Neuron
import numpy as np
class CompartmentalNeuron:
def __init__(self, n_basal, n_apical):
self.W_basal = np.random.randn(n_basal) * 0.1
self.W_apical = np.random.randn(n_apical) * 0.1
self.bias = 0.0
self.gamma = 0.5 # coupling strength
def forward(self, x_basal, y_apical):
V_basal = np.dot(self.W_basal, x_basal) + self.bias
V_apical = np.dot(self.W_apical, y_apical)
V_soma = (1 - self.gamma) * V_basal + self.gamma * V_apical
return V_soma, V_basal, V_apical
def predict(self, y_apical):
return np.dot(self.W_apical, y_apical)
def compute_error(self, V_basal, V_apical):
return V_basal - V_apical
def update_weights(self, x_basal, y_apical, delta_d, lr=0.01):
self.W_basal += lr * delta_d * x_basal
self.W_apical -= lr * delta_d * y_apical # anti-Hebbian for predictions
Dendritic Predictive Coding Network
class DendriticPredictiveNetwork:
def __init__(self, layer_sizes):
self.layers = []
for i in range(len(layer_sizes) - 1):
n_basal = layer_sizes[i]
n_apical = layer_sizes[i + 1] if i < len(layer_sizes) - 2 else layer_sizes[i + 1]
self.layers.append(CompartmentalNeuron(n_basal, n_apical))
def forward_pass(self, x):
activations = [x]
predictions = []
for layer in self.layers:
V_soma, V_basal, V_apical = layer.forward(activations[-1], np.zeros_like(activations[-1]))
activations.append(np.tanh(V_soma))
predictions.append(V_apical)
return activations, predictions
def backward_pass(self, activations, target):
errors = []
# Output layer error
output_error = activations[-1] - target
errors.append(output_error)
# Propagate through layers
for i in range(len(self.layers) - 2, -1, -1):
delta_d = errors[-1]
self.layers[i].update_weights(
activations[i],
np.zeros_like(activations[i]),
delta_d
)
# Project error to lower layer
proj_error = self.layers[i].W_basal * delta_d
errors.append(proj_error)
return errors
def train_step(self, x, target, lr=0.01):
activations, predictions = self.forward_pass(x)
errors = self.backward_pass(activations, target)
# Update output layer
output_error = activations[-1] - target
self.layers[-1].update_weights(
activations[-2],
np.zeros_like(activations[-2]),
output_error,
lr
)
return activations[-1], output_error
Key Insights from Dendritic Balance Research
- Local Learning without Backpropagation: Dendritic prediction errors enable local weight updates that approximate backpropagation without requiring symmetric weights or global error signals.
- Top-Down Predictions as Regularizers: Apical dendritic inputs act as learned regularizers, constraining bottom-up processing to be consistent with higher-level expectations.
- Temporal Prediction: The framework naturally extends to temporal sequences where predictions about future states drive learning.
- Neuromodulation Gating: Acetylcholine and norepinephrine can gate dendritic plasticity, controlling when prediction errors lead to learning.
Pitfalls
- Compartmental Coupling Strength: The gamma parameter (coupling between compartments) critically affects learning dynamics. Too high: predictions dominate. Too low: no predictive influence.
- Weight Initialization: Apical weights should be initialized small to prevent predictions from overwhelming feedforward signals early in training.
- Error Propagation Depth: Prediction errors attenuate through layers. Consider skip connections or auxiliary losses for deep architectures.
- Biological Plausibility Trade-offs: While more plausible than backpropagation, the three-phase protocol requires precise timing that may be hard to implement in hardware.
Validation Methods
- Compare with Backpropagation: Verify that dendritic balance learning converges to similar solutions as standard backprop.
- Prediction Error Minimization: Track dendritic prediction errors during training - they should decrease monotonically.
- Ablation Studies: Remove apical compartment to verify predictive component is necessary for improved performance.
- Neurophysiological Validation: Compare model predictions with in vivo dendritic recordings showing prediction error signals.
