Liquid Resistance Liquid Capacitance Networks

Mónika Farsang, Sophie A. Neubauer, Radu Grosu

TL;DR

Liquid-Resistance Liquid-Capacitance Networks (LRCs) upgrade bio-inspired Neural ODEs by introducing state-dependent, dynamic "liquid" membrane capacitance alongside liquid resistance. By factoring the neural time constant this way, LRCs dampen the stiff numerical oscillations that plague prior models (like LTCs), allowing lightweight 1-step Euler discretizations—termed LRC Units (LRCUs)—to achieve state-of-the-art accuracy, 2.5× faster training, and remarkably interpretable representations.

What Problem Does This Paper Address?

Continuous-time Neural ODEs rooted in biophysical models—specifically Electrical Equivalent Circuits (EECs) and Liquid Time-Constant networks (LTCs)—are well-suited for irregularly sampled time series and physical modeling. However, they suffer from numerical stiffness and high-frequency oscillations.

To stabilize them, practitioners must deploy expensive multi-step ODE solvers (such as Dormand-Prince or multi-unfolding hybrid Euler methods), which drastically slow training without fully curing oscillatory instability. The authors trace this stiffness to a flawed biological assumption: classical EECs and LTCs treat a neuron's membranal capacitance as fixed ($C = 1$). In real neurobiology, membrane capacitance varies non-linearly with cell state and incoming stimuli.

Methods

The authors introduce Liquid Resistance Liquid Capacitance Networks (LRCs), introducing a variable elastance term $\epsilon(w_i)$ (the reciprocal of capacitance) that dynamically modulates the update:

$$\dot{h}_i = \epsilon(w_i) \left( -\sigma(f_i) h_i + \tau(u_i) e_{li} \right)$$

where $\epsilon(w_i) \in [0, 1]$ can take either an asymmetric form ($\sigma(w_i)$) or a symmetric form ($\sigma(w_i + k_i) - \sigma(w_i - k_i)$).

Key innovations include:

  • Two-Factor Time Constant: The network decouples temporal dynamics into liquid resistance (synaptic conductance) and liquid capacitance (elastance), allowing the network to dynamically decelerate updates during gentle variations or accelerate them during stiff transitions.
  • LRC Units (LRCUs): When discretized with a 1st-order explicit Euler step ($\Delta t = 1$), LRCs collapse into an efficient gated recurrent unit. Unlike standard GRUs—whose time constant comprises only liquid capacitance—LRCUs retain both dynamic resistance and dynamic capacitance gating.
  • Theoretical Guarantees: The paper formally proves that LRCs strictly lower the system’s local Lipschitz constant relative to saturated LTCs (STCs), establishing a tighter upper bound on out-of-distribution and validation generalization errors.

Datasets

The authors evaluate their models across synthetic dynamical systems and established machine learning benchmarks:

  • Neural-ODE Dynamical Systems: Periodic Sinusoidal, Spiral sink, Non-linear Duffing Oscillator, and three configurations of the Lotka-Volterra predator-prey equations (Periodic, Asymptotic, and Non-linear).
  • Sequential & Irregular Time-Series Benchmarks:
  • Localization Data for Person Activity (irregularly sampled 3D sensor tracking).
  • IMDB Movie Reviews (sentiment classification).
  • Permuted Sequential MNIST (psMNIST) (stress-testing long-range recurrent dependencies).
  • Autonomous Driving Vision Benchmark: An end-to-end vision-based Lane-Keeping Task in closed-loop simulation under summer and winter conditions, tested against injected Gaussian sensor noise ($\sigma^2 \in \{0.1, 0.2\}$).

Key Insights and Ideas

  • Elastance Acts as an Adaptive Damper: By scaling the derivative between $0$ and $1$, the liquid capacitance suppresses stiff gradients without eliminating expressive dynamics, mathematically ensuring a smoother state trajectory.
  • Expensive Solvers Are No Longer Necessary: While vanilla LTCs fail to converge under a single explicit Euler step, LRCUs match or exceed continuous ODE performance with zero solver overhead.
  • Emergent Interpretability: In the lane-keeping driving policy, hidden neurons in symmetric LRCUs (LRCU-S) autonomously segregate into clear, human-interpretable steering roles (e.g., Cell 1 activates exclusively on right turns, Cell 2 on left turns), whereas LSTM and GRU neurons display erratic, noisy activations.
  • Noise Robustness via Low Lipschitz Bounds: The proven reduction in Lipschitz constants translates directly to empirical stability; visual saliency/attention maps remain centered on the road horizon even when high Gaussian noise is injected into the camera inputs.

Key Results

  • ODE Fitting: LRCs fit complex non-linear dynamics with substantially lower test loss than vanilla Neural ODEs (e.g., Duffing Oscillator: $0.003 \pm 0.001$ vs. $0.142 \pm 0.117$; Periodic Sinusoid: $0.019 \pm 0.005$ vs. $0.140 \pm 0.033$).
  • Computational Efficiency: On the lane-keeping task, single-unfolding Euler LRCUs cut training time from $\sim$10.1 minutes/epoch down to $\sim$4.1 minutes/epoch (a 2.5× speedup) while reaching a lower validation loss ($0.15$ vs. $0.22$).
  • RNN Benchmarks: Matching or exceeding parameter-matched gated RNNs:
  • Person Activity: 84.21% (LRCU-S) vs. 82.90% (LSTM) and 82.76% (GRU).
  • IMDB Sentiment: 87.00% (LRCU-A) vs. 86.56% (LSTM) and 86.32% (GRU).
  • psMNIST: 91.74% (LRCU-S) vs. 91.20% (LSTM) and 90.20% (GRU).
  • Closed-Loop Safety: In noisy lane keeping ($\sigma^2 = 0.2$), LRCU-A and LRCU-S maintained crash probabilities of 0.20 and 0.30, whereas GRU and MGU policies crashed with rates of 0.77 and 0.82.

Limitations and Future Work

  • Parameter Overhead per Cell: An LRC cell requires more parameters per hidden unit than an LSTM or GRU cell due to extra affine transformations for elastance and conductances (requiring fewer total units to maintain equivalent parameter counts).
  • Scale of Evaluation: The empirical evaluation focuses on classic low-to-medium dimensional benchmarks and a simulated driving task; scaling up to large-scale multimodal foundations or large language models remains unexplored.
  • Future Work: Extending biophysically grounded circuit mechanisms (such as multi-compartment dendritic dynamics or electrical gap junctions) into modern deep learning architectures.

Summary updated

BibTeX
@inproceedings{farsang2024liquid,
  author = {Mónika Farsang and Sophie A. Neubauer and Radu Grosu},
  title = {{Liquid Resistance Liquid Capacitance Networks}},
  booktitle = {NeuroAI @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=DzCxA1iovy},
}
Figure