arXiv:2608.30695cs.LGAug 2026

Manuscript Offprint

arXiv:2608.30695

Liquid Gated Attention

Yiheng Jiang, Yuanbo Xu, Yongjian Yang

Yiheng Jiang, Yuanbo Xu, and Yongjian Yang

Abstract—Real-world time series often exhibit irregular sampling and extended temporal horizons, requiring models to capture continuous-time dynamics across arbitrary time intervals without prohibitive scaling costs. Conventional discrete-time methods typically project observations onto uniformly spaced indices, collapsing variable time intervals into static positional steps and discarding temporal distances between observations. Conversely, solver-dependent continuous-time models preserve temporal structure but rely on sequential numerical integration, precluding parallelization. While solver-free approximations bypass this computational overhead, no parallel architecture explicitly couples observed time intervals with input-driven state modulation, limiting their ability to distinguish genuine temporal dynamics from observational noise. To bridge this gap, we propose Liquid Gated Attention (LGA), a solver-free parallel temporal operator. By parameterizing an input-driven gating mechanism with observed time intervals, LGA introduces a continuous-time inductive bias and formulates hidden state evolution as a fast-weight associative memory, enabling parallel computation across the temporal dimension. By leveraging matrix associativity in non-causal encoding and a prefix scan in causal encoding, LGA achieves linear temporal complexity with respect to sequence length in both modes. To stabilize long-horizon optimization, we employ a sequence-level normalization that bounds the cumulative temporal decay. Building on this operator, we instantiate LFormer, a modular backbone for continuous-time representation learning. Evaluations across six tasks and sixteen datasets, spanning up to 17,984 steps, demonstrate LFormer's capabilities in long-range dependency modeling, fine-grained state tracking, and trajectory reconstruction from sparse and noisy observations. LFormer delivers competitive performance against state-of-the-art discrete-time and continuous-time baselines, alongside linear scaling efficiency confirmed by empirical benchmarks. These results illustrate how LGA embeds continuous-time dynamical principles into a parallel architecture, positioning LFormer as a scalable and versatile backbone for time series representation learning. Code is available at https://anonymous.4open.science/r/Liquid-Gated-Attention-6B55.

Index Terms—Continuous-time Model, Linear Attention, Time Series Analysis, Numerical Stability

I. INTRODUCTION

MONITORING real-world processes, such as physiological states [1], financial fluctuations [2], and biological signaling [3], typically yields complex time series that exhibit irregular sampling and can span extended temporal horizons. These properties present significant challenges for temporal modeling. Specifically, irregular sampling requires models to characterize continuous-time dynamics across arbitrary observed time intervals [4], [5]. Simultaneously, extended sequence lengths demand capturing long-range dependencies without prohibitive computational costs [6], [7]. Furthermore, realistic observational constraints call for algorithms that extract the underlying continuous-time process from sparse and noisy measurements [8], [9].

Most existing approaches operate within the discrete-time paradigm that projects continuous temporal trajectories onto uniformly spaced indices [10]. Despite excelling at handling regularly sampled data, this paradigm collapses variable intervals into static positional steps and discards the temporal distances between observations, which are necessary for accurate continuous-time dynamics modeling [4], [5], [10]. Recurrent neural networks (RNNs) [11], [12] and Transformers [13] represent two dominant discrete-time models. Standard RNNs compress temporal dependencies into sequential hidden states. To accommodate irregular observations, they typically rely on heuristic preprocessing strategies, such as binning [14] and imputation [15], which inject spurious states into the timeline and distorts the underlying continuous dynamics [5]. Moreover, their recurrence precludes parallelization along the temporal dimension. Transformers eliminate this sequential constraint through parallel self-attention. Yet, even when augmented with explicit temporal encoding [16]–[18], they collapse time intervals into static similarity weights between discrete tokens, lacking a dedicated mathematical mechanism to model continuous-time dynamics between observations [10]. Furthermore, their quadratic complexity limits scalability to extended temporal horizons.

To preserve temporal structure, continuous-time approaches formulate the state evolution as a differential equation parameterized by a neural network. Neural ordinary differential equations pioneered this formulation [19]. Subsequent extensions, including neural controlled and rough differential equations, accommodate irregularly sampled time series through continuous path integration [20], [21]. Rooted in differential calculus, these methods explicitly incorporate temporal distances between observations [5] and can naturally smooth high-frequency noise [8]. However, their forward pass relies on numerical solvers for sequential integration. This solver-dependent design introduces two bottlenecks. First, numerical solvers require multiple function evaluations per time step, and their sequential execution resists parallelization [22]. This computational overhead challenges these methods in large-scale or real-time deployments. Second, truncation errors can accumulate over extended integration horizons [23], progressively degrading the fidelity of learned dynamics.

These bottlenecks motivate solver-free alternatives that retain continuous-time dynamics while bypassing iterative integration. To render continuous state evolution directly evaluable, three principal strategies have emerged: closed-form approximations [22], linear state-space formulations [24], and truncated algebraic path signatures [25]. Despite eliminating the solver-induced computational overhead, these meth-

All authors are with the Mobile Intelligent Computing Laboratory, College of Computer Science and Technology, Jilin University, China (e-mail: jiangyh22@mails.jlu.edu.cn; yuanbox@jlu.edu.cn; yyj@jlu.edu.cn).

Corresponding author: Yuanbo Xu.

ods commit continuous-time dynamics to fixed mathematical forms. These compromises introduce specific trade-offs documented in their respective literature, including potential gradient decay in closed-form recurrence [22], constrained expressivity for nonlinear dynamics in linear state transitions [6], and information loss from truncated signatures [25]. Furthermore, within this paradigm, no parallel architecture explicitly couples observed time intervals with input-driven state modulation. Without this linkage, they struggle to distinguish noise from genuine state transitions [5], [9], which limits their robustness under sparse and noisy conditions.

Across these three paradigms, a critical gap emerges: no single approach simultaneously incorporates observed time intervals, enables parallel computation, and maintains observational noise robustness. Discrete-time models discard the underlying temporal metric. Solver-dependent continuous-time methods retain temporal fidelity and noise robustness but sacrifice parallelism. Solver-free approaches recover parallel scalability yet lack an explicit temporal-state transition link, compromising robustness to sparse and noisy measurements.

In this work, we address this trilemma via Liquid Gated Attention (LGA), a solver-free temporal operator reconciling observed time intervals, parallel computation, and observational noise robustness across four design steps:

(1) Continuous-time Gating. LGA derives its gating mechanism from the closed-form structure of a one-dimensional liquid time-constant (1D LTC) equation [26]. The resulting liquid gate jointly encodes temporal decay and input-driven modulation, providing a continuous-time inductive bias that attenuates high-frequency noise perturbations.

(2) Computational Efficiency. To avoid the computational overhead of numerical integration, we approximate the liquid gate via a learnable endpoint interpolation inspired by the trapezoidal rule. Fixing the interpolation weight at 0.5 recovers the classical trapezoidal rule with second-order local accuracy, whereas the generalized learnable configuration serves as a trainable numerical surrogate. This step parallelizes the gating calculation while preserving the continuous-time inductive bias.

(3) Expressive Capability. To capture complex long-range dependencies, we elevate the scalar state in 1D LTCs to a matrix-valued associative memory. Adopting a fast-weight programming framework [27], we translate the liquid gate into explicit modulation coefficients for attention features. This design preserves the continuous-time gating dynamics while yielding a parallel sequence operator that maintains linear temporal complexity with respect to sequence length in both non-causal and causal modes, the latter realized via a prefix scan.

(4) Numerical Safety. To stabilize long-horizon optimization, we introduce a sequence-level normalization that bounds the cumulative decay coefficients, preventing exponential underflow. This normalization operates as a regularized surrogate rather than an algebraically exact equivalent of the original LTC decay: it bounds the total decay budget while preserving the relative temporal distance allocation across the sequence.

Building upon the LGA operator, we instantiate LFormer, a modular backbone for continuous-time representation learning. LFormer constructs its deep temporal representations by interleaving decoupled multi-head LGA layers with channel-mixing blocks, connected via residual connections with layer normalization. LFormer directly processes discrete observations, while inheriting the continuous-time inductive bias, noise robustness, linear temporal complexity, and training stability properties from the underlying LGA operator.

This work delivers three primary contributions:

• A parallel continuous-time temporal operator. LGA unifies the input-driven and time-interval-coupled liquid gate, a trapezoidal-rule-inspired numerical integral surrogate, fast-weight associative memory, and sequence-level normalization into a single solver-free formulation.

• A modular backbone for continuous-time representation learning. LFormer instantiates LGA in a decoupled multi-head form within a residual architecture. This design enables linear-complexity parallel sequence modeling directly over discrete observations, while inheriting LGA's continuous-time inductive bias, noise robustness, and training stability properties.

• A comprehensive empirical validation across diverse temporal scenarios. Extensive evaluations across six distinct tasks and sixteen datasets demonstrate that LFormer achieves competitive performance compared to state-of-the-art discrete and continuous baselines. These outcomes highlight its capabilities in long-range dependency modeling, fine-grained state tracking, and trajectory reconstruction from sparse and noisy observations, while maintaining linear scaling efficiency and empirical training stability over extended temporal horizons.

Ultimately, these results illustrate how LGA embeds continuous-time dynamical principles into a parallel architecture, positioning LFormer as a scalable and versatile backbone for time series representation learning.

References (67)