All models

Liquid Time-Constant Networks (LTC / LNN)

A continuous-time recurrent layer whose units have input-dependent time constants, solved with a fixed-step ODE solver.

Time series · 416 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (47 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
17.8K
Operations
416
Framework
PyTorch
Recurrent
Yes
Published
AAAI 2021
Cited by
5 (as of 28 October 2026)
Authors
Ramin Hasani, Mathias Lechner, Alexander Amini and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17957
Graph hash
508ce8ecf50a938c4fdc8a32f3ead853fb6a97fd1e891bd1c9395b0aa363e6c5
Skeleton hash
79a35a4c9532c480f1049f4f0299aeed8bbdde6d9935416892df8b488824629b
Architecture hash
d70d4fc0b9d1223d9d5568587de152baa636c825c34c8e5c07acc7b4a0dc7a58
Diagram SHA-256
b7074b29c6cae7422c3ac5e65d9bb28b20f753d6f18bd57c7c0cf06ee8159782
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

A Liquid Time-Constant network (LTC) is a recurrent neural network that runs in continuous time: its hidden state follows a differential equation and is computed by a numerical solver. Instead of declaring the dynamics by implicit nonlinearities, the authors build networks of linear first-order dynamical systems modulated by nonlinear interlinked gates. The resulting systems have time-constants that vary with the hidden state, which the paper calls liquid.

The paper states that the LTC equations are stiff and that Runge-Kutta based solvers are not suitable, so it designs a solver that fuses the explicit and the implicit Euler methods. In its experiments each RNN step consists of 6 ODE solver steps, which is also the setting of this model. Training uses vanilla backpropagation through time instead of an adjoint-based method, trading memory for numerical precision.

The original code is written for TensorFlow, and a PyTorch version was added to the sister repository ncps, which this model comes from. Against other RNN models, the paper reports between 5% to 70% performance improvement in four out of seven experiments and comparable performance in the other three. It also notes that LTCs show the vanishing gradient phenomenon and would not be the obvious choice for learning long-term dependencies in their current format.

Key idea. Liquid Time-Constant networks are time-continuous recurrent networks built from linear first-order dynamical systems modulated by nonlinear interlinked gates, giving time-constants that vary with the hidden state.

  • Liquid Time-Constant Network
  • LTC
  • liquid neural network
  • LNN
  • continuous-time RNN
  • neural ODE
  • time-continuous recurrent neural network
  • ncps
  • time-series prediction

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{hasani2020liquidtimeconstantnetworks,
      title={Liquid Time-constant Networks}, 
      author={Ramin Hasani and Mathias Lechner and Alexander Amini and Daniela Rus and Radu Grosu},
      year={2020},
      eprint={2006.04439},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2006.04439}, 
}