Solving Causal Inference with Spiking Networks
Given a generative model μ = U r + noise with non-negative causes r ≥ 0, the MAP inference problem reduces to minimizing a quadratic energy:
L(r) = 0.5 * (μ - U r)^T (μ - U r) + α * 1^T r + 0.5 * β * r^T r, s.t. r ≥ 0
Expand and collect terms into E(r) = -0.5 r^T W r + h^T r where W = -(U^T U + β I) and h = -U^T μ + α 1. Then:
- Rate-based network first: build dynamics
τ dr/dt = -r + [W r - h]+(or equivalent), verify it descendsE(r)and respectsr ≥ 0. - Spiking network second: replace rate units with integrate-and-fire neurons whose synaptic input matrix is
W, whose threshold/reset encodes the linear (α) and quadratic (β) regularization terms, and whose recurrent inhibition implements "explaining away" dynamically via spikes rather than through population-averaged rates. - Validate: show the network recovers the correct sparse combination of causes from a noisy mixture, and stress-test with spike-generation noise, timing jitter, and mistuned weights.
Progress:
- Step 1: Formalize the generative model (features, causes, noise, prior)
- Step 2: Derive the negative log-posterior / energy function
- Step 3: Identify regularization roles of each prior parameter (L1 vs L2)
- Step 4: Construct rate-based network dynamics that provably minimizes the energy
- Step 5: Map rate dynamics onto spiking (LIF) neurons with realistic synaptic kernels
- Step 6: Identify which biophysical mechanism implements each regularization/constraint term
- Step 7: Demonstrate explaining away emerges from tuned recurrent inhibition
- Step 8: Test robustness (internal noise, external jitter, mistuned connectivity)
- Step 9: Characterize where information lives (rates? timing? population covariation?)
Step 1–3: Formalize the problem
- Define feature vectors
u_i(columns ofU), cause coefficientsr_i ≥ 0, and a linear-Gaussian observation model. - Choose a prior on causes that is itself non-negative-truncated (e.g., truncated Gaussian) so the MAP problem is naturally an inequality-constrained QP.
- Recognize that the Laplace prior term (
α) enforces sparsity (L1-like penalty imposing a soft threshold), and the truncated-Gaussian term (β) enforces a smooth quadratic penalty (L2-like, effectively shifts self-inhibition/leak).
Step 4: Rate network
- Write
dr/dt = -r + [W r - h]+, withWsymmetric and negative (semi-)definite when feature vectors are independent or regularized. - Prove convergence with a Lyapunov argument: show
E(r)is non-increasing along trajectories and that fixed points lying in the non-negative orthant coincide with KKT points of the constrained QP. - Confirm the non-negative orthant is invariant under the dynamics (rectification prevents escape).
Step 5–6: Spiking implementation
- Map
Wonto recurrent synaptic weights with realistic time constants (not instantaneous coupling). - Encode the linear penalty
αas a global, uniform inhibitory offset/current (shifts effective threshold for all neurons equally — implements L1-style regularization). - Encode the quadratic penalty
βas a renormalized reset potential or leak (implements L2-style regularization; scales down each neuron's own contribution after each spike). - Use hard nonlinearities only at spike generation and reset — keep all sub-threshold interactions linear. This is the key simplicity constraint: linear synapses + threshold/reset nonlinearity, nothing else.
- Ensure the network is designed so that the time-averaged spike-count vector approximates the rate-network fixed point, i.e., spiking dynamics should track the same energy-descent trajectory in a coarse-grained sense.
Step 7: Explaining away
- Explaining away = when one cause sufficiently accounts for the observation, competing (correlated) causes are suppressed via inhibitory synaptic terms proportional to their feature-vector overlap (
U^T Uoff-diagonal terms). - In the spiking regime, this suppression should be dynamic and spike-triggered: a spike from one cause-neuron should transiently inhibit overlapping cause-neurons in a manner that reproduces the population-level competitive dynamics, not merely an averaged/rate description.
Step 8: Robustness tests
- Internally generated spike variability (e.g., Poisson-like irregularity from the LIF dynamics itself).
- Externally imposed timing jitter/noise added post-hoc to spike times.
- Mistuned recurrent weights (perturb
Waway from the exactU^T Ustructure) — check graceful degradation rather than catastrophic failure. - Report performance in terms of task accuracy (correct cause identification) under each perturbation, not just qualitative stability.
Step 9: Locate the code
- Test whether decoding accuracy depends on precise spike timing, single-neuron firing rate, or slow covariations across the population — favor the explanation that survives jitter/mistuning tests (typically: population-level slow covariation, not single-unit rate or precise timing).
Example 1:
Input: "We have N possible odor sources and an M-dimensional chemical observation vector. Build a plausible neural mechanism for inferring which odors are present."
Output: Construct U (odor feature matrix), formulate energy E(r) = -0.5 r^T(U^T U + βI) r + (U^T μ - α1)^T r, build LIF network with synaptic weights -(U^T U), global inhibitory bias implementing α, reset-voltage renormalization implementing β; show via simulation that presenting a mixture of 2 odors out of N=1000 causes only 2 neurons to sustain spiking, others silenced via explaining-away inhibition within a few spikes.
Example 2:
Input: "Show that a given recurrent spiking network with symmetric weights and linear-rectified reset performs gradient descent on a quadratic form."
Output: Define E(r) = -0.5 r^T W r + h^T r; show dE/dt = (W r - h - r)^T dr/dt ≤ 0 under the proposed dynamics whenever dr/dt = -r + [Wr - h]+; identify fixed points as KKT points of the QP with non-negativity constraints; conclude the network performs exact constrained optimization, not an approximation.
- Keep all recurrent interactions linear; push every needed nonlinearity into spike generation and reset — this is what makes the network both biologically plausible and analytically tractable.
- Always separate L1-like (global, uniform) and L2-like (per-neuron, reset-based) regularization mechanisms — conflating them obscures where sparsity vs. smoothness comes from.
- Prove convergence at the rate-network level first; only then argue (via simulation or coarse-graining) that the spiking network approximates the same fixed point.
- When claiming "explaining away," demonstrate it operationally: show suppression of a competing cause's spiking activity conditioned on another cause already explaining the observation — don't just assert it from the connectivity sign.
- Stress-test with at least three qualitatively different noise sources (intrinsic spiking irregularity, extrinsic timing jitter, weight mistuning) before claiming robustness.
- Frame the population code claim (rate vs. timing vs. covariation) as an empirical question resolved by the robustness tests, not an assumption.
- Don't add extra nonlinear interaction terms among neurons "for stability" — this breaks the clean mapping to the quadratic energy and undermines the exactness claim.
- Don't conflate the non-negativity constraint on causes with a rectified-linear activation function assumption without checking that trajectories starting in the non-negative orthant actually stay there.
- Don't claim spiking network optimality without checking that the connectivity matrix
Wis negative (semi-)definite (or regularized to be so) — otherwise the energy has no unique minimum. - Don't report robustness only qualitatively ("still works reasonably") — quantify accuracy degradation curves versus noise/mistuning magnitude.
- Don't assume precise spike timing carries the causal information without explicitly testing decoding under randomized-timing controls.