betaFeedback

WorksComputer Science

Time Delay System for Sequence Modeling

Abstract

Existing sequence models share a critical limitation: they lack an explicit, interpretable mechanism for content-aware temporal recall. LSTMs compress everything into a single hidden state, thereby losing information about specific past events. Transformers attend to all tokens indiscriminately at quadratic cost, while state-space models like Mamba compress history into a fixed-dimensional state without explicit content-addressable memory. To address this gap, we introduce a novel framework grounded in nonlinear time-delay systems, in which the effective delay is dynamically estimated based on the semantic similarity between current and historical inputs. Our approach features three key innovations: (i) a differentiable semantic lag estimator that computes content-aware soft attention weights over history, producing a weighted historical context and similarity score; (ii) a diagonal state space with closed-form cumulative sum solution, achieving O(1) per-step complexity with no sequential loops; and (iii) an interpretable fuzzy semantic modulation mechanism that learns context-dependent rules for balancing instantaneous processing versus historical recall, where rule centers correspond to prototypical semantic contexts. Experimental results on text classification and generation outperform state-of-the-art methods.

Introduction

Existing sequence modeling architectures, such as Long Short-Term Memory (LSTM) [23], transformers, and Mamba [5], although achieving promising performance, share a limitation, that is, a lack of an explicit and interpretable mechanism for temporal recall. This limitation motivates our research on sequence modeling using nonlinear time-delay systems (TDS). In real-world sequential modeling problems, the relevance of historical information depends not only on temporal distance but also on semantic similarity between current and past inputs. Therefore, we propose a semantic delay-driven sequence modeling framework that explicitly estimates adaptive temporal recall based on semantic relevance. Instead of propagating through a single hidden state, as in recurrent neural networks (RNNs), or attending to all tokens, as in transformers, our proposed model dynamically determines which historical states influence the current computation more via differentiable semantic delay estimation and interpretable fuzzy semantic modulation.

Our approach presents three key contributions:

  • First, we propose a differentiable semantic lag estimator that computes contextual similarity scores over historical states and produces weighted semantic historical context through soft attention delay aggregation. This provides explicit semantic temporal recall and interpretable delay estimation.

  • Second, we design a hidden dynamics using a diagonal state-space structure with a closed-form cumulative sum solution, enabling fully parallelizable O(1) complexity per step without sequential recurrence or quadratic attention computation.

  • Third, we introduce an interpretable fuzzy semantic modulation mechanism that adaptively balances current input processing and delayed historical recall using learnable fuzzy rules, providing interpretable semantic control.

Related Work

Sequence modeling for NLP enables models to process and generate text by capturing temporal dependencies. Architectures such as recurrent neural networks and state-space models have been proposed to improve the modeling of temporal dependencies [23].

Recurrent Neural Networks and LSTM. Early sequence modeling approaches primarily relied on RNNs, which operate via a hidden state that evolves over time. However, they suffer from vanishing and exploding gradient problems, limiting their ability to capture long-range dependencies [3]. To address this, the LSTM [8] incorporates gating mechanisms to regulate information flow, improving its ability to model long-term dependencies. However, a core limitation of LSTM is that it captures temporal differences implicitly, without an explicit representation of how past information is delayed or propagated over time, as all time steps are compressed into the hidden state [18], making it difficult to interpret in human terms. This lack of explicit temporal semantics limits its ability to model human-like reasoning over the relationship between past contextual information and the present. Therefore, while LSTM can retain relevant information for longer sequences, it does not provide an interpretable mechanism for understanding how certain past inputs influence the current state.

State Space Models and Efficient Sequence Modeling. State space models (SSMs) have recently become a powerful framework for sequence modeling [21, 26, 29]. The classic state-space model is formulated as a latent state that evolves through structured linear transitions, enabling a continuous-time interpretation of sequences [14, 13]. In recent years, the Structured State Space sequence model (S4) was proposed by Gu et al. [6], which leveraged HiPPO-based projections to improve the model’s ability to process longer-range sequences while remaining computationally efficient. Later, the Mamba architecture proposed by Gu and Dao [5] introduced selective state space models, where input-dependent gating facilitates state transitions, enabling linear-time complexity while maintaining strong performance across long sequences. Despite these advancements, the SSM-based models primarily achieved computational and structural improvements rather than conceptual reasoning. Specifically, the content representation of structured state transitions remains largely obscured. The learned transition matrices and input-dependent parameters [6] do not explicitly encode semantically meaningful notions such as temporal delay, lag structure, or the relevance of past information, leaving the temporal dynamics still lacking interpretability.

Time-Delay Modeling in Dynamical Systems. Time-delay systems have been studied in control theory and dynamical systems to model temporal dependencies with explicit lags [10, 7]. In delay differential equations (DDEs), the system’s evolution depends on past states with a defined time delay, enabling explicit modeling of the relationship between temporal memories independent of position in time [25, 28, 27]. Recent work continues to investigate the delay structures in complex dynamical systems. Peddinti et al. [19] first introduced the Time Delay Neural Network (TDNN) for efficiently modeling long-range temporal dependencies in speech recognition while avoiding the high training cost of recurrent models. Huang et al. [9] proposed deeper TDNNs for acoustic modeling by increasing the depth of temporal context layers. Ji et al. [12] further improved TDNNs by introducing trainable and continuous time delays as learnable parameters, allowing the network to directly identify both the magnitude of delays and the underlying nonlinear dynamics from data. However, these approaches remain limited in the context of NLP. Existing TDNN-based models are primarily evaluated on low-dimensional time-series data and have not been widely scaled to high-dimensional sequence modeling tasks such as language understanding or generation. Additionally, traditional time delay networks does not explicitly incorporate semantic meanings to moderate temporal dynamics [11, 24], revealing the insufficient semantic awareness and interpretability of recent NLP model designs.

From the review, we can see that current sequence modeling approaches lack an explicit, interpretable mechanism for modeling how semantic information propagates over time with variable delay. RNNs and LSTMs encode temporal dependencies implicitly through hidden states and gating mechanisms. State-space models improve efficiency but remain black boxes. Interpretability methods are largely post-hoc and do not reflect internal temporal processes. Time-delay systems and fuzzy logic offer interpretability but are not well-integrated with modern semantic representations in NLP. This gap motivates the exploration of new approaches that can integrate semantic understanding, temporal delay, and interpretability. Our proposed semantic delay-driven fuzzy state update model addresses these limitations by integrating semantic delay estimation with fuzzy logic-based control, enabling both effective and interpretable sequence modeling.

Overall architecture of the proposed TDS model, semantic lag estimator, and fuzzy system

Figure 1. (1) is the overall architecture of our proposed TDS model. (2) is the semantic lag estimator, and (3) is the fuzzy system.

Methods

Motivation. Existing sequence models struggle with a fundamental problem: they cannot explicitly decide when to look back in history based on semantic relevance. LSTMs compress everything into a single hidden state, losing specific past events. Transformers look at everything but at quadratic cost—inefficient and unfocused. Mamba improves efficiency but still lacks an interpretable mechanism for content-aware recall. Our time delay system directly addresses this by introducing an explicit semantic lag estimator that answers: "Which past token is most relevant to what I’m seeing now?" This allows the model to dynamically retrieve and integrate specific historical information—much like how humans recall relevant memories when triggered by current input. Combined with interpretable fuzzy rules that learn when to trust the present versus the past, our approach achieves both the expressiveness of attention and the efficiency of linear recurrence, while offering a clear, mathematical foundation grounded in delay differential equations.

Problem Definition

In conventional recurrent or state-space language models, the evolution of the current hidden state s(t)s(t), (where tt is the current time) is assumed to depend only on the current input x(t)x(t) and the previous state s(t−1)s(t - 1). However, natural language often exhibits semantic delay τ(t)\tau(t): words or phrases can influence the meaning of future tokens after a variable time lag. To capture this, we introduce a nonlinear time-delay dynamical system as the foundation for sequence modeling.

Mathematical Foundation

Formally, let s(t)∈Rds(t) \in\mathbb{R}^{d} denote the current state (dd is the dimension of the state) and x(t)∈Rmx(t) \in\mathbb{R}^{m} the current input (e.g., token embedding, mm is the dimension of the input). The system evolves according to a nonlinear time-delay differential equation:

s˙(t)=f(s(t),s(t−τ(t)),x(t)),(1)\dot{s}(t) = f\left(s(t),s(t-\tau(t)),x(t)\right), \tag*{(1)}

where s˙(t)\dot{s}(t) is the change rate of the current state s(t)s(t); τ(t)∈[0,L]\tau(t) \in[0,L] denotes a time delay that can vary dynamically with the semantic context (LL is the maximum of τ\tau (τmax⁡\tau_{\max})); s(t−τ(t))s(t-\tau(t)) is delayed past state; and ff is a nonlinear function that can simultaneously process the current state, delayed past state and current input.

Functional Separation

According to the decomposition theory of multivariate functions, any smooth multivariate vector function ff can be decomposed at the reference state point s0s_0 as following,

f(s,sτ,x)=f(s,s0,x)+[f(s,sτ,x)−f(s,s0,x)](2)f(s,s_{\tau},x) = f(s,s_0,x) + [f(s,s_{\tau},x)-f(s,s_0,x)] \tag*{(2)}

where sτ=s(t−τ(t))s_{\tau}=s(t-\tau(t)). We can define two component functions based on the above split:

  • Instantaneous Function: F(s,x)=f(s,s0,x)F(s,x)=f(s,s_0,x), which captures the system’s behavior when the delayed state is at its reference value.

  • Delay Function: G(s,sτ,x)=f(s,sτ,x)−f(s,s0,x)G(s,s_{\tau},x)=f(s,s_{\tau},x)-f(s,s_0,x), which captures the deviation caused by the delayed state being different from the reference.

Substituting these two definitions back to Eq. (2), we can get

s˙(t)=F(s(t),x(t))+G(s(t),s(t−τ(t)),x(t)).(3)\dot{s}(t) = F(s(t),x(t)) + G(s(t),s(t-\tau(t)),x(t)). \tag*{(3)}

Eq. (3) is still complex since GG depends on both the current state s(t)s(t) and the delayed state s(t−τ(t))s(t-\tau(t)). For a more practical and interpretable model, we introduce a physically-motivated simplification: the primary function of the delay is to inject information from the past history, thus, we approximate the delay function as being independent of the current state as follows:

G(s(t),s(t−τ(t)),x(t))≈G~(s(t−τ(t)),x(t−τ(t)))(4)G(s(t),s(t-\tau(t)),x(t)) \approx\widetilde{G}(s(t-\tau(t)),x(t-\tau(t))) \tag*{(4)}

Hence, we can rewrite Eq. (3) as:

s˙(t)=F(s(t),x(t))+G(s(t−τ(t)),x(t−τ(t)))(5)\dot{s}(t) = F(s(t),x(t)) + G(s(t-\tau(t)),x(t-\tau(t))) \tag*{(5)}

where the first term F(⋅)F(\cdot) captures the instantaneous state evolution driven by the current input and the second term G(⋅)G(\cdot) introduces delayed feedback that depends on past states and inputs. We drop the tilde on GG for notation simplicity. Eq. (5) is the fundamental definition of a continuous nonlinear time-delay system. It subsumes the standard state-space model when τ(t)=0\tau(t)=0 and G≡0G\equiv0.

Structure Parameterization

To obtain a learnable form for neural network modeling, we introduce structured linear mappings and nonlinear activations as follows:

F(s(t),x(t))=ϕ(As(t)+Bx(t)),(6)F(s(t),x(t)) = \phi(\mathbf{A}s(t)+\mathbf{B}x(t)), \tag*{(6)}
G(s(t−τ(t)),x(t−τ(t)))=γψ(s^(t)Cx(t−τ(t))),(7)G(s(t-\tau(t)),x(t-\tau(t))) = \gamma\psi(\hat{s}(t)\mathbf{C}x(t-\tau(t))), \tag*{(7)}

where A,B,C∈Rd×d\mathbf{A},\mathbf{B},\mathbf{C} \in\mathbb{R}^{d \times d} are learnable matrices, ϕ(⋅)\phi(\cdot) and ψ(⋅)\psi(\cdot) are nonlinear activation functions (e.g., SiLU, ReLU), γ\gamma is a scalar weight controlling the influence of the delayed term, and s^(t)∈[0,1]\hat{s}(t) \in[0,1] is the semantic similarity between the current and delayed embeddings. Substituting Eq. (6) and Eq. (7) into Eq. (5) yields:

s˙(t)=ϕ(As(t)+Bx(t))+γψ(s^(t)Cx(t−τ(t))).(8)\dot{s}(t) = \phi(\mathbf{A}s(t)+\mathbf{B}x(t))+\gamma\psi(\hat{s}(t)\mathbf{C}x(t-\tau(t))). \tag*{(8)}

This equation describes a nonlinear dynamical system with both instantaneous and delayed semantic interactions.

Discretization

For sequential data (e.g., text), the system evolves in discrete time steps. Let the time discretization be tk=kΔtt_k = k\Delta t, and approximate the time derivative in Eq. (8) using the first-order forward difference:

s˙(tk)≈sk−sk−1Δt.(9)\dot{s}(t_k) \approx\frac{s_k-s_{k-1}}{\Delta t}. \tag*{(9)}

Substituting this into Eq. (8) gives:

sk−sk−1Δt=ϕ(Ask−1+Bxk)+γψ(s^kCxk−τk).(10)\frac{s_k-s_{k-1}}{\Delta t} = \phi\left(A s_{k-1} + B x_k\right) + \gamma\psi\left(\hat{s}_k C x_{k-\tau_k}\right). \tag*{(10)}

Rearranging terms leads to the discrete-time update:

sk=sk−1+Δt[ϕ(Ask−1+Bxk)+γψ(s^kCxk−τk)].(11)s_k = s_{k-1} + \Delta t\left[\phi\left(A s_{k-1} + B x_k\right) + \gamma\psi\left(\hat{s}_k C x_{k-\tau_k}\right)\right]. \tag*{(11)}

When the sampling step is normalized to Δt=1\Delta t = 1, the additive integration term can be absorbed into the nonlinear mappings, yielding a simplified discrete nonlinear delay model:

sk=ϕ(Ask−1+Bxk)+γψ(s^kCxk−τk),(12)s_k = \phi\left(A s_{k-1} + B x_k\right) + \gamma\psi\left(\hat{s}_k C x_{k-\tau_k}\right), \tag*{(12)}

which is the core discrete-time realization of our nonlinear time-delay system.

Semantic Lag Estimator

To calculate the second delay term γψ(s^kCxk−τk)\gamma\psi(\hat{s}_k C x_{k-\tau_k}), we first need to consider the semantic delay τ(t)\tau(t), which is determined by the similarity between the current input and its past history. We define a semantic lag estimator that computes the similarity SS between the current embedding xtx_t and each historical embedding xt−kx_{t-k} within the window, where each lag k=1,…,Lk = 1,\ldots,L and LL is the maximum number of semantic delay τ\tau. Here we define SS, the cosine similarity as follows:

sim⁡k=⟨xt,xt−k⟩∥xt∥2∥xt−k∥2,(13)\operatorname{sim}_k = \frac{\langle x_t,x_{t-k}\rangle}{\lVert x_t\rVert_2\lVert x_{t-k}\rVert_2}, \tag*{(13)}

where ∥⋅∥2\lVert\cdot\rVert_2 is the L2 norm. To suppress far-away history contexts, each similarity value is weighted by a temporal decay function wk=exp⁡(−λkα)w_k = \exp(-\lambda k^\alpha), where λ>0\lambda> 0 and α>0\alpha> 0 are hyperparameters controlling the rate of exponential decay. The combined semantic activation over the past history window Wt={xt−k}k=1LW_t = \{x_{t-k}\}_{k=1}^{L} is defined as s~t,k=wksim⁡k\tilde{s}_{t,k} = w_k\operatorname{sim}_k, and the normalized semantic confidence is

s^t=σ(∑k=1Ls~t,k),(14)\hat{s}_t = \sigma\left(\sum_{k=1}^{L}\tilde{s}_{t,k}\right), \tag*{(14)}

where σ(⋅)\sigma(\cdot) denotes the sigmoid function.

Hard selection (interpretable). The effective discrete delay is selected as the smallest lag exceeding an input-dependent threshold:

τt=min⁡{k∈{1,…,L}:s~t,k≥θ⋅σ(∥xt∥)},(15)\tau_t = \min\left\{k \in\{1,\ldots,L\}:\tilde{s}_{t,k} \ge\theta\cdot\sigma(\lVert x_t\rVert)\right\}, \tag*{(15)}

with corresponding similarity score s^t=s~t,τt\hat{s}_t = \tilde{s}_{t,\tau_t}. If no lag satisfies the condition, we set τt=0\tau_t = 0 and s^t=0\hat{s}_t = 0.

Soft selection (differentiable). To enable end-to-end training, we introduce a soft attention mechanism over lags:

αt,k:=exp⁡(κs~t,k)∑j=1Lexp⁡(κs~t,j)(κ>0),xˉthist:=∑k=1Lαt,kxt−k,s^tsoft:=∑k=1Lαt,ks~t,k.(16)\alpha_{t,k} := \frac{\exp\left(\kappa\tilde{s}_{t,k}\right)}{\sum_{j=1}^{L}\exp\left(\kappa\tilde{s}_{t,j}\right)} \qquad(\kappa> 0), \qquad \bar{x}^{\mathrm{hist}}_t := \sum_{k=1}^{L}\alpha_{t,k}x_{t-k}, \qquad \hat{s}^{\mathrm{soft}}_t := \sum_{k=1}^{L}\alpha_{t,k}\tilde{s}_{t,k}. \tag*{(16)}

Then, we have:

τtsoft=∑k=1Lk⋅αt,k.(17)\tau^{\mathrm{soft}}_t = \sum_{k=1}^{L} k\cdot\alpha_{t,k}. \tag*{(17)}

Substituting these expressions into Eq. (12) gives the continuous and differentiable soft-delay update:

sk=ϕ(Ask−1+Bxk)+γψ(s^ksoftCxˉkhist)(18)s_k = \phi\left(A s_{k-1} + B x_k\right) + \gamma\psi\left(\hat{s}^{\mathrm{soft}}_k C \bar{x}^{\mathrm{hist}}_k\right) \tag*{(18)}

with st=sˉt+Δtsofts_t = \bar{s}_t + \Delta^{\mathrm{soft}}_t. In the limit κ→∞\kappa\to\infty, the soft quantities concentrate on the minimal lag s~t,k\tilde{s}_{t,k}, and τtsoft\tau^{\mathrm{soft}}_t recovers the hard selection τt\tau_t, where sk∈Rds_k \in\mathbb{R}^d is the semantic state at time kk, xk∈Rdx_k \in\mathbb{R}^d is the current token embedding, A,B,C∈Rd×dA, B, C \in\mathbb{R}^{d \times d} are learnable matrices, ϕ,ψ\phi, \psi are nonlinear activation functions (e.g., SiLU, tanh), γ∈R\gamma\in\mathbb{R} is a global scaling parameter, s^ksoft∈R\hat{s}^{\mathrm{soft}}_k \in\mathbb{R} is the soft similarity score from the Semantic Lag Estimator, and xˉkhist∈Rd\bar{x}^{\mathrm{hist}}_k \in\mathbb{R}^d is the soft-weighted historical context.

Algorithm 1 Soft Semantic Lag Estimator

Require: Current embeddings Xcurr∈RB×H\mathbf{X}_{\mathrm{curr}} \in\mathbb{R}^{B \times H} or RB×T×H\mathbb{R}^{B \times T \times H}, History windows H∈RB×L×H\mathbf{H} \in\mathbb{R}^{B \times L \times H} or RB×T×L×H\mathbb{R}^{B \times T \times L \times H}, Parameters: projection Wproj\mathbf{W}_{\mathrm{proj}}, decay λ\lambda, α\alpha, temperature κ\kappa

Ensure: Attention weights α\alpha, weighted history xˉhist\bar{\mathbf{x}}^{\mathrm{hist}}, soft score s^soft\hat{s}^{\mathrm{soft}}

  1. Initialize: wu=exp⁡(−λuα)w_u = \exp(-\lambda u^\alpha), u=1,…,Lu = 1, \ldots, L ▷ Fixed decay weights

  2. Xcurrproj=WprojXcurr\mathbf{X}^{\mathrm{proj}}_{\mathrm{curr}} = \mathbf{W}_{\mathrm{proj}}\mathbf{X}_{\mathrm{curr}} ▷ Project to similarity space

  3. Hproj=WprojH\mathbf{H}^{\mathrm{proj}} = \mathbf{W}_{\mathrm{proj}}\mathbf{H}

  4. sim⁡=Xcurrproj⋅HprojT∥Xcurrproj∥⋅∥Hproj∥+ε\operatorname{sim} = \dfrac{\mathbf{X}^{\mathrm{proj}}_{\mathrm{curr}} \cdot\mathbf{H}^{\mathrm{proj}\mathsf{T}}}{\lVert\mathbf{X}^{\mathrm{proj}}_{\mathrm{curr}}\rVert\cdot\lVert\mathbf{H}^{\mathrm{proj}}\rVert+ \varepsilon} ▷ Cosine similarity

  5. s~k,u=sim⁡k,u⋅wu\tilde{s}_{k,u} = \operatorname{sim}_{k,u} \cdot w_u ▷ Apply temporal decay

  6. αk,u=exp⁡(κs~k,u)∑jexp⁡(κs~k,j)\alpha_{k,u} = \dfrac{\exp(\kappa\tilde{s}_{k,u})}{\sum_j \exp(\kappa\tilde{s}_{k,j})} ▷ Softmax over history

  7. xˉkhist=∑uαk,uxk−u\bar{\mathbf{x}}^{\mathrm{hist}}_k = \sum_u \alpha_{k,u}\mathbf{x}_{k-u} ▷ Weighted historical context

  8. s^ksoft=∑uαk,us~k,u\hat{s}^{\mathrm{soft}}_k = \sum_u \alpha_{k,u}\tilde{s}_{k,u} ▷ Soft similarity score

  9. return α\alpha, xˉhist\bar{\mathbf{x}}^{\mathrm{hist}}, s^soft\hat{s}^{\mathrm{soft}}

Fuzzy Semantic System

We define the delay correction term in the core equation Eq. (18) as:

dk=γψ(s^ksoftCxˉkhist),(19)\mathbf{d}_k = \gamma\psi\left(\hat{s}^{\mathrm{soft}}_k C\bar{\mathbf{x}}^{\mathrm{hist}}_k\right), \tag*{(19)}

and the equation simplifies to:

sk=ϕ(Ask−1+Bxk)+dk.(20)s_k = \phi\left(A s_{k-1} + B x_k\right) + \mathbf{d}_k. \tag*{(20)}

The core equation treats both terms with equal weight (coefficient 1 for each term). However, different semantic contexts require different balances. To address this, we introduce context-dependent modulation:

sk=f(zk)⋅ϕ(Ask−1+Bxk)+g(zk)⋅dk,(21)s_k = f(z_k) \cdot\phi\left(A s_{k-1} + B x_k\right) + g(z_k) \cdot\mathbf{d}_k, \tag*{(21)}

where zk∈Rdz_k \in\mathbb{R}^d is the semantic context vector, and f,g:Rd→Rf, g : \mathbb{R}^d \to\mathbb{R} are modulation functions.

Semantic Context Definition. The semantic context captures both the current and recently recalled information:

zk=sk−1+dk2.(22)z_k = \frac{s_{k-1} + \mathbf{d}_k}{2}. \tag*{(22)}

Fuzzy Rule-Based Parameterization. We employ a zero-order Takagi-Sugeno-Kang (TSK) fuzzy system with RR rules. Each rule rr has a prototypical semantic context cr∈Rdc_r \in\mathbb{R}^d, a consequent fr∈Rf_r \in\mathbb{R} for base update modulation, and a consequent gr∈Rg_r \in\mathbb{R} for delay correction modulation.

Membership Function. The unnormalized membership is given by a Gaussian radial basis function:

Algorithm 2 Fuzzy Semantic System

Require: Semantic context z∈RB×Hz \in\mathbb{R}^{B \times H} or RB×T×H\mathbb{R}^{B \times T \times H}, Parameters: rule centers {cr}r=1R⊂RH\{c_r\}_{r=1}^{R} \subset\mathbb{R}^{H}, rule weights {fr}r=1R,{gr}r=1R⊂R\{f_r\}_{r=1}^{R}, \{g_r\}_{r=1}^{R} \subset\mathbb{R}, width σ>0\sigma> 0

Ensure: Modulation vectors f^,g^\hat{f}, \hat{g} (same shape as zz)

1: μr(z)=exp⁡(−∥z−cr∥222σ2)∑j=1Rexp⁡(−∥z−cj∥222σ2)+ε\mu_r(z) = \frac{\exp\left(-\frac{\lVert z-c_r\rVert_2^2}{2\sigma^2}\right)}{\sum_{j=1}^{R}\exp\left(-\frac{\lVert z-c_j\rVert_2^2}{2\sigma^2}\right)+\varepsilon} ▷ Normalized membership

2: f^scalar=∑r=1Rμr(z)⋅fr\hat{f}_{\mathrm{scalar}} = \sum_{r=1}^{R}\mu_r(z)\cdot f_r ▷ Weighted average for ff

3: g^scalar=softplus⁡(∑r=1Rμr(z)⋅gr)\hat{g}_{\mathrm{scalar}} = \operatorname{softplus}\left(\sum_{r=1}^{R}\mu_r(z)\cdot g_r\right) ▷ Weighted average for gg (non-negative)

4: f^=f^scalar⋅1H,g^=g^scalar⋅1H\hat{f} = \hat{f}_{\mathrm{scalar}}\cdot\mathbf{1}_H,\quad\hat{g} = \hat{g}_{\mathrm{scalar}}\cdot\mathbf{1}_H ▷ Expand to hidden dimension

5: return f^,g^\hat{f},\hat{g}

μ~r(z)=exp⁡(−∥z−cr∥222σ2),(23)\tilde{\mu}_r(z)=\exp\left(-\frac{\lVert z-c_r\rVert_2^2}{2\sigma^2}\right), \tag*{(23)}

where σ>0\sigma> 0 is the width parameter. The normalized memberships are:

μr(z)=μ~r(z)∑j=1Rμ~j(z)+ε,ε=10−8,(24)\mu_r(z)=\frac{\tilde{\mu}_r(z)}{\sum_{j=1}^{R}\tilde{\mu}_j(z)+\varepsilon},\qquad\varepsilon=10^{-8}, \tag*{(24)}

which satisfy: 0≤μr(z)≤1,∑r=1Rμr(z)=10\leq\mu_r(z)\leq1,\quad\sum_{r=1}^{R}\mu_r(z)=1.

subsubsectionDefuzzifications. The modulation outputs are weighted averages of the rule consequents:

f(z)=∑r=1Rμr(z)⋅fr,g(z)=∑r=1Rμr(z)⋅gr.(25)f(z)=\sum_{r=1}^{R}\mu_r(z)\cdot f_r,\qquad g(z)=\sum_{r=1}^{R}\mu_r(z)\cdot g_r. \tag*{(25)}

Positivity Constraint. The delay modulation is constrained to be positive via the softplus function:

g~(z)=softplus⁡(g(z))=ln⁡(1+eg(z))>0.(26)\tilde{g}(z)=\operatorname{softplus}\left(g(z)\right)=\ln\left(1+e^{g(z)}\right)>0. \tag*{(26)}

Complete Fuzzy-Modulated State Update. Substituting all components, the complete system is:

fk=∑r=1Rμr(zk)fr,gk=ln⁡(1+exp⁡(∑r=1Rμr(zk)gr)).(27)f_k=\sum_{r=1}^{R}\mu_r(z_k)f_r,\qquad g_k=\ln\left(1+\exp\left(\sum_{r=1}^{R}\mu_r(z_k)g_r\right)\right). \tag*{(27)}

We can get the final updated core function as follows:

sk=fk⋅ϕ(Ask−1+Bxk)+gk⋅dk.(28)s_k=f_k\cdot\phi\left(A s_{k-1}+B x_k\right)+g_k\cdot d_k. \tag*{(28)}

Time Delay System

In Eq. (28), we need to recursively get sks_k using the last state sk−1s_{k-1}. To achieve fully vectorized computation without sequential loops, we restrict the state transition matrix AA to be diagonal. Let a=diag⁡(A)∈Rd\mathbf{a}=\operatorname{diag}(A)\in\mathbb{R}^{d} denote the diagonal elements. For Ask−1+BxkA s_{k-1}+B x_k, we apply the linear recurrence with diagonal state transition. The latent state hk∈Rdh_k\in\mathbb{R}^{d} evolves according to the element-wise recurrence:

hk=a⊙hk−1+bk,h0=0,(29)h_k=\mathbf{a}\odot h_{k-1}+b_k,\qquad h_0=0, \tag*{(29)}

where ⊙\odot denotes element-wise (Hadamard) multiplication, and bk=Bxk∈Rd\mathbf{b}_k = \mathbf{B}\mathbf{x}_k \in\mathbb{R}^{d} is the projected input.

Closed-Form Solution via Cumulative Sum. Unrolling the recurrence yields the closed-form expression:

hk=∑i=1k(a⊙(k−i)⊙bi)(30)\mathbf{h}_k = \sum_{i=1}^{k} \left(\mathbf{a}^{\odot(k-i)} \odot\mathbf{b}_i\right) \tag*{(30)}

where a⊙p\mathbf{a}^{\odot p} denotes element-wise exponentiation: (a⊙p)j=(aj)p(\mathbf{a}^{\odot p})_j = (a_j)^p. This can be computed efficiently using cumsum operation:

hk=a⊙k⊙cumsum⁡i=1k(a⊙−i⊙bi)(31)\mathbf{h}_k = \mathbf{a}^{\odot k} \odot\operatorname{cumsum}_{i=1}^{k}\left(\mathbf{a}^{\odot-i} \odot\mathbf{b}_i\right) \tag*{(31)}

where a⊙−i\mathbf{a}^{\odot-i} denotes element-wise reciprocal: (a⊙−i)j=(aj)−i(\mathbf{a}^{\odot-i})_j = (a_j)^{-i}.

Final State Update. The semantic state sk\mathbf{s}_k is obtained by combining the transformed latent state and delay correction with fuzzy modulation:

sk=f^k⊙ϕ(hk)+g^k⊙dk,(32)\mathbf{s}_k = \hat{\mathbf{f}}_k \odot\phi(\mathbf{h}_k) + \hat{\mathbf{g}}_k \odot\mathbf{d}_k, \tag*{(32)}

where ϕ\phi is a nonlinear activation function (e.g., SiLU).

Algorithm 3 Semantic Delay Processor (Full version is shown in Alg. 6.)

Require: Input tokens I∈NB×TI \in\mathbb{N}^{B \times T}, parameters Θ\Theta

Ensure: Final state sfinal∈RB×H\mathbf{s}_{\mathrm{final}} \in\mathbb{R}^{B \times H}, average state sˉ∈RB×H\bar{\mathbf{s}} \in\mathbb{R}^{B \times H}

  1. X=Dropout⁡(Embed⁡(I)+PosEnc⁡(1:T))\mathbf{X} = \operatorname{Dropout}(\operatorname{Embed}(I) + \operatorname{PosEnc}(1:T)) ▷ Embedding

  2. Xconv=GELU⁡(Conv⁡bi(X))\mathbf{X}_{\mathrm{conv}} = \operatorname{GELU}(\operatorname{Conv}_{\mathrm{bi}}(\mathbf{X})) ▷ Local context

  3. (α,Xˉhist,s^)=LagEstimator⁡(X,History⁡(X))(\alpha, \bar{\mathbf{X}}^{\mathrm{hist}}, \hat{\mathbf{s}}) = \operatorname{LagEstimator}(\mathbf{X}, \operatorname{History}(\mathbf{X})) ▷ Algorithm 1

  4. b=BX∈RB×T×H\mathbf{b} = \mathbf{B}\mathbf{X} \in\mathbb{R}^{B \times T \times H} ▷ Projected input

  5. d=γtanh⁡(s^⊙CXˉhist)\mathbf{d} = \gamma\tanh(\hat{\mathbf{s}} \odot\mathbf{C}\bar{\mathbf{X}}^{\mathrm{hist}}) ▷ Delay correction

  6. a=diag⁡(A), at=a⊙t\mathbf{a} = \operatorname{diag}(\mathbf{A}),\ \mathbf{a}^{t} = \mathbf{a}^{\odot t}

  7. h=a⊙t⊙CumSum⁡(b⊙a⊙−t)\mathbf{h} = \mathbf{a}^{\odot t} \odot\operatorname{CumSum}(\mathbf{b} \odot\mathbf{a}^{\odot-t}) ▷ Parallel scan

  8. (f^,g^)=FuzzySystem⁡(d/2)(\hat{\mathbf{f}}, \hat{\mathbf{g}}) = \operatorname{FuzzySystem}(\mathbf{d}/2) ▷ Algorithm 2

  9. s=f^⊙SiLU⁡(h)+g^⊙d\mathbf{s} = \hat{\mathbf{f}} \odot\operatorname{SiLU}(\mathbf{h}) + \hat{\mathbf{g}} \odot\mathbf{d} ▷ State update

  10. s=LayerNorm⁡(Wouts+X)\mathbf{s} = \operatorname{LayerNorm}(\mathbf{W}_{\mathrm{out}}\mathbf{s} + \mathbf{X}) ▷ Residual + output

  11. return s[:,−1,:],Mean⁡(s,dim⁡=1)\mathbf{s}[:, -1, :], \operatorname{Mean}(\mathbf{s}, \operatorname{dim}=1)

Experiments

Datasets and implementations

In this paper, we test our TDS model on the IMDB (Maas et al. [15]) dataset for text classification and the CNN / DailyMail (Nallapati et al. [17]) dataset for text generation. IMDB has 25,000 training and 25,000 test samples, while CNN / DailyMail contains over 300,000 unique news samples. We use the full dataset for text classification training and testing, while for the generation task, we use 80,000 samples for training and 2,000 each for validation and testing. The detailed algorithms for text classification and generation are shown in Alg. 4 and Alg. 5 in the Appendix.

We run our experiments using PyTorch on an Nvidia H100 80G GPU and use the Adam optimizer. We set the learning rate to 3e-4 for text classification and 5e-5 for text generation; the batch size is 32; the number of iterations is 50 for classification and 100 for generation. We set the dropout rate to 0.3 to improve model generalization and avoid overfitting during training. Our proposed TDS model employs a hidden dimension of 256, a maximum semantic delay length of 30, and 6 fuzzy inference rules for adaptive state updating.3

Results

For the sequence modeling experiments, we also compare the performance of our TDS model with other state-of-the-art models. As shown in Table 1 and Table 2, our proposed TDS model outperforms state-of-the-art methods on text classification and generation tasks, achieving higher accuracy and ROUGE scores while maintaining a relatively small parameter count and efficient training time. However, due to the limited number of benchmark experiments, the model’s broader generalizability remains untested. Meanwhile, the TDS model is also more sensitive to hyperparameter tuning.

ModelParameters(M)AccuracyTotal Training Time(s)
LSTM ([20])2.889.902300
Mamba ([5])3.283.002300
RoBERTa-base ([2])12594.13-
DistilBERT-base ([2])6692.13-
TDS2.695.352100

Table 1. Number of parameters and accuracy of the IMDB dataset.

ModelParameters(M)ROUGE-LTotal Training Time(s)
LSTM ((Abdulsahib et al., 2022))26.538.4516558
BERT ([16])24.3040.4818260
Mamba ([4])14.7329.6016725
BART CNN-large ([22])13924.58-
T5-base ([22])22023.54-
TDS16.9842.6317633

Table 2. Number of parameters and ROUGE score of the CNN/DailyMail dataset.

We also visualize how different numbers of the maximum number of lags affect model performance, as shown in Figure 2, and Figure 3 in the Appendix. The X-axis is a sample sentence of ten words: “this movie is amazing ! the acting is brilliant. The y-axis is the maximum number of historical lags. Given an example when Max_Lag = 10, the word “amazing" (position 3) attends to a maximum of the past 10 historical words. The figure shows that “movie" has the biggest impact on the word “amazing". We can see from Figure 2 that as the number of lags increases, the importance of specific historical words to the current sequence becomes more prominent. While attention values can vary during training with different lags LL, the most relevant historical context will be consistently highlighted by the attention mechanism. Figure 3 shows that increasing lags, although with fluctuation, will increase the model accuracy on text classification.

Heatmaps showing the effect of maximum lag on TDS model performance, with panels labelled Max_Lag = 1, Max_Lag = 3, Max_Lag = 5, Max_Lag = 7, Max_Lag = 10, and Max_Lag = 20

Figure 2. An example of how the maximum number of lag LL impacts TDS model performance on the sample “this movie is amazing! the acting is brilliant.".

Effects of different lag on IMDB dataset

Figure 3. Effects of different lag on IMDB dataset

Conclusion

In this paper, we introduced a novel sequence modeling framework based on time-delay systems (TDS), where a differentiable semantic lag estimator dynamically retrieves relevant history via content-aware attention. Our Semantic Delay Processor (SDP) explicitly extracts memories and follows an interpretable context-dependent processing rule. Experiments demonstrate that TDS outperforms RNN, Transformer, and Mamba on sentiment classification and text summarization tasks, while scaling linearly to million-length sequences. The learned fuzzy rule centers correspond to semantic contexts, offering interpretability. Our work explores time-delay systems as an efficient and interpretable mechanism for sequence modeling, which has proven effective for text tasks. It has the potential to be applied to solving more real-life problems, such as image and audio processing and generation, given its efficiency and offering greater interpretability.

AI Use Statement

In preparing this version of the manuscript, we used generative AI tools to assist with conversion to the ICLR 2027 LaTeX format, package and file-path consistency checks, and the identification of compilation issues. We did not use generative AI tools in this formatting process to generate experimental data, conduct statistical analyses, select or fabricate references, or draw scientific conclusions. We reviewed all AI-assisted changes and verified the resulting LaTeX source and compiled document. We take responsibility for the final content of this work, including all text, claims, results, and artifacts.

Appendix

Application algorithm

The detailed algorithms for text classification and text generation are shown in Alg. 4 and Alg. 5.

Algorithm 4 Text Classification with Semantic Delay Processor

Require: Input I∈NB×TI \in\mathbb{N}^{B \times T}, classes CC

Ensure: Probabilities p∈RB×C\mathbf{p} \in\mathbb{R}^{B \times C}, predictions y^∈NB\hat{\mathbf{y}} \in\mathbb{N}^{B}

  1. Xpool=Mean⁡(Emb⁡(I)+PosEnc⁡)\mathbf{X}_{\mathrm{pool}} = \operatorname{Mean}(\operatorname{Emb}(I) + \operatorname{PosEnc}) ▷ [B,H][B,H]

  2. (sfinal,sˉ)=Processor⁡(I)(\mathbf{s}_{\mathrm{final}}, \bar{\mathbf{s}}) = \operatorname{Processor}(I) ▷ Alg. 3

  3. s=LayerNorm⁡(Wfuse[sfinal;sˉ]+WshortXpool)\mathbf{s} = \operatorname{LayerNorm}(\mathbf{W}_{\mathrm{fuse}}[\mathbf{s}_{\mathrm{final}};\bar{\mathbf{s}}] + \mathbf{W}_{\mathrm{short}}\mathbf{X}_{\mathrm{pool}})

  4. p=Softmax⁡(MLP⁡(s))\mathbf{p} = \operatorname{Softmax}(\operatorname{MLP}(\mathbf{s})) ▷ MLP⁡:H→H/2→C\operatorname{MLP}: H \to H/2 \to C

  5. return p,arg⁡max⁡(p)\mathbf{p}, \arg\max(\mathbf{p})

Algorithm 5 Text Generation with Semantic Delay Processor

Require: Prefix Ip∈NB×TpI_p \in\mathbb{N}^{B \times T_p}, length TgenT_{\mathrm{gen}}, temp τ\tau, top-kk

Ensure: Generated sequences Igen∈NB×(Tp+Tgen)I_{\mathrm{gen}} \in\mathbb{N}^{B \times(T_p+T_{\mathrm{gen}})}

  1. Igen←Ip, s←Processor⁡(Ip)I_{\mathrm{gen}} \leftarrow I_p,\ \mathbf{s} \leftarrow\operatorname{Processor}(I_p)

  2. for t=1t = 1 to TgenT_{\mathrm{gen}} do

  3. x=Emb⁡(Igen[:,−1])+PosEnc⁡(Tp+t)\mathbf{x} = \operatorname{Emb}(I_{\mathrm{gen}}[:, -1]) + \operatorname{PosEnc}(T_p+t)

  4. b=Bx, d=γtanh⁡(s^⊙CXˉhist)\mathbf{b} = \mathbf{B}\mathbf{x},\ \mathbf{d} = \gamma\tanh(\hat{\mathbf{s}} \odot\mathbf{C}\bar{\mathbf{X}}^{\mathrm{hist}})

  5. h=a⊙t⊙CumSum⁡(b⊙a⊙−t)\mathbf{h} = \mathbf{a}^{\odot t} \odot\operatorname{CumSum}(\mathbf{b} \odot\mathbf{a}^{\odot-t})

  6. (f,g)=Fuzzy⁡(d/2), s=f⊙SiLU⁡(h)+g⊙d(\mathbf{f},\mathbf{g}) = \operatorname{Fuzzy}(\mathbf{d}/2),\ \mathbf{s} = \mathbf{f} \odot\operatorname{SiLU}(\mathbf{h}) + \mathbf{g} \odot\mathbf{d}

  7. z=Wouts, z[¬TopK⁡(z/τ,k)]=−∞\mathbf{z} = \mathbf{W}_{\mathrm{out}}\mathbf{s},\ \mathbf{z}[\neg\operatorname{TopK}(\mathbf{z}/\tau,k)] = -\infty

  8. w∼Categorical⁡(Softmax⁡(z))\mathbf{w} \sim\operatorname{Categorical}(\operatorname{Softmax}(\mathbf{z}))

  9. Igen←Concat⁡(Igen,w)I_{\mathrm{gen}} \leftarrow\operatorname{Concat}(I_{\mathrm{gen}},\mathbf{w})

  10. end for

  11. return IgenI_{\mathrm{gen}}

Computational Complexity

The full model operations are defined in Eq. (32), which are fully vectorized:

  • a⊙k\mathbf{a}^{\odot k} and a⊙−i\mathbf{a}^{\odot-i} are computed via broadcasted exponentiation

  • cumsum is a single GPU-accelerated primitive

  • All other operations are element-wise or matrix multiplications

The overall time complexity is O(1)O(1) with respect to sequence length when executed on parallel hardware, as the cumsum operation has O(log⁡T)O(\log T) in depth but implemented as a single kernel call.

Special Cases

If a=1:hk=∑i=1kbi(standard cumulative sum)(33)\text{If } a=1:\quad h_k=\sum_{i=1}^{k} b_i \quad\text{(standard cumulative sum)} \tag*{(33)}
If a→0:hk≈bk(no memory)(34)\text{If } a\to0:\quad h_k\approx b_k \quad\text{(no memory)} \tag*{(34)}
If γ=0:sk=fk⋅ϕ(hk)(delay correction disabled)(35)\text{If } \gamma=0:\quad s_k=f_k\cdot\phi(h_k) \quad\text{(delay correction disabled)} \tag*{(35)}

Effects of different maximum lag and accuracy

Theoretical Properties

The nonlinear time-delay system defined in Eq. (8) and its discrete realization in Eq. (12) possess several fundamental theoretical properties that guarantee the well-posed and stable dynamics. We summarize the key results as follows.

Algorithm 6 Semantic Delay Processor (Fully Version)

Require: Input tokens I∈NB×TI \in\mathbb{N}^{B \times T} (batch size BB, sequence length TT), Vocabulary size VV, hidden dimension HH, maximum lag LL, number of fuzzy rules RR, Hyperparameters: κ,λ,α,σ,γ\kappa, \lambda, \alpha, \sigma, \gamma, kernel size KK

Ensure: Final semantic state sfinal∈RB×Hs_{\mathrm{final}} \in\mathbb{R}^{B \times H}, Average semantic state sˉ∈RB×H\bar{s} \in\mathbb{R}^{B \times H}

  1. Step 1: Token Embedding and Position Encoding

  2. X=Embedding⁡(I)∈RB×T×HX = \operatorname{Embedding}(I) \in\mathbb{R}^{B \times T \times H} ▷ Lookup embedding table

  3. X=X+PosEnc⁡(1:T)∈RB×T×HX = X + \operatorname{PosEnc}(1:T) \in\mathbb{R}^{B \times T \times H} ▷ Add bidirectional position encoding

  4. X=Dropout⁡(X)X = \operatorname{Dropout}(X)

  5. Step 2: Bidirectional Depthwise Convolution

  6. Xproj=WinX∈RB×T×HX_{\mathrm{proj}} = W_{\mathrm{in}}X \in\mathbb{R}^{B \times T \times H} ▷ Input projection

  7. Xconvfwd=GELU⁡(Conv1D⁡fwd(Xproj))X_{\mathrm{conv}}^{\mathrm{fwd}} = \operatorname{GELU}(\operatorname{Conv1D}_{\mathrm{fwd}}(X_{\mathrm{proj}})) ▷ Forward convolution

  8. Xconvbwd=GELU⁡(Conv1D⁡bwd(Flip⁡(Xproj)))X_{\mathrm{conv}}^{\mathrm{bwd}} = \operatorname{GELU}(\operatorname{Conv1D}_{\mathrm{bwd}}(\operatorname{Flip}(X_{\mathrm{proj}}))) ▷ Backward convolution

  9. Xconv=Xconvfwd+Xconvbwd∈RB×T×HX_{\mathrm{conv}} = X_{\mathrm{conv}}^{\mathrm{fwd}} + X_{\mathrm{conv}}^{\mathrm{bwd}} \in\mathbb{R}^{B \times T \times H}

  10. Step 3: History Window Construction

  11. Xpadded=[0B×L×H,X]∈RB×(T+L)×HX_{\mathrm{padded}} = [0_{B \times L \times H}, X] \in\mathbb{R}^{B \times(T+L) \times H}

  12. Hhist=Unfold⁡(Xpadded,window⁡=L,step⁡=1)∈RB×T×L×HH_{\mathrm{hist}} = \operatorname{Unfold}(X_{\mathrm{padded}}, \operatorname{window}=L,\operatorname{step}=1) \in\mathbb{R}^{B \times T \times L \times H}

  13. Step 4: Soft Semantic Lag Estimation (Algorithm 1)

  14. (α,Xˉhist,s^soft)=LagEstimator⁡(X,Hhist)(\alpha, \bar{X}_{\mathrm{hist}}, \hat{s}^{\mathrm{soft}}) = \operatorname{LagEstimator}(X, H_{\mathrm{hist}})

  15. ▷ α∈RB×T×L\alpha\in\mathbb{R}^{B \times T \times L}, Xˉhist∈RB×T×H\bar{X}_{\mathrm{hist}} \in\mathbb{R}^{B \times T \times H}, s^soft∈RB×T\hat{s}^{\mathrm{soft}} \in\mathbb{R}^{B \times T}

  16. Step 5: Compute Input Projection

  17. bk=B⋅(X+Xconv)T∈RB×T×Hb_k = B \cdot(X + X_{\mathrm{conv}})^{\mathsf{T}} \in\mathbb{R}^{B \times T \times H} ▷ Projected input

  18. Step 6: Compute Delay Correction

  19. Xˉproj=C⋅Xˉhist∈RB×T×H\bar{X}_{\mathrm{proj}} = C \cdot\bar{X}_{\mathrm{hist}} \in\mathbb{R}^{B \times T \times H} ▷ Project historical context

  20. dk=γ⋅tanh⁡(s^soft)⊙Xˉproj∈RB×T×Hd_k = \gamma\cdot\tanh(\hat{s}^{\mathrm{soft}}) \odot\bar{X}_{\mathrm{proj}} \in\mathbb{R}^{B \times T \times H} ▷ Delay correction term

  21. Step 7: Diagonal State Space Recurrence (Zero-Loop)

  22. a=diag⁡(A)∈RHa = \operatorname{diag}(A) \in\mathbb{R}^{H} ▷ Diagonal state transition

  23. t=[0,1,…,T−1]∈RTt = [0,1,\ldots,T-1] \in\mathbb{R}^{T} ▷ Time indices

  24. a[t,h]pow=(ah)t∈RT×Ha^{\mathrm{pow}}_{[t,h]} = (a_h)^t \in\mathbb{R}^{T \times H} ▷ Exponential powers

  25. bscaled=bk⊙(apow+ϵ)−1∈RB×T×Hb_{\mathrm{scaled}} = b_k \odot(a^{\mathrm{pow}} + \epsilon)^{-1} \in\mathbb{R}^{B \times T \times H}

  26. hscaled=CumSum⁡(bscaled,dim⁡=1)∈RB×T×Hh_{\mathrm{scaled}} = \operatorname{CumSum}(b_{\mathrm{scaled}},\operatorname{dim}=1) \in\mathbb{R}^{B \times T \times H}

  27. hk=hscaled⊙apow∈RB×T×Hh_k = h_{\mathrm{scaled}} \odot a^{\mathrm{pow}} \in\mathbb{R}^{B \times T \times H} ▷ Latent state from recurrence

  28. Step 8: Fuzzy Semantic Modulation (Algorithm 2)

  29. z=dk2∈RB×T×Hz = \frac{d_k}{2} \in\mathbb{R}^{B \times T \times H} ▷ Semantic context (approximation)

  30. (f^,g^)=FuzzySystem⁡(z)∈RB×T×H(\hat{f},\hat{g}) = \operatorname{FuzzySystem}(z) \in\mathbb{R}^{B \times T \times H} ▷ Modulation vectors

  31. Step 9: Final State Update

  32. sk=f^⊙SiLU⁡(hk)+g^⊙dk∈RB×T×Hs_k = \hat{f} \odot\operatorname{SiLU}(h_k) + \hat{g} \odot d_k \in\mathbb{R}^{B \times T \times H}

  33. sk=Dropout⁡(sk)s_k = \operatorname{Dropout}(s_k)

  34. Step 10: Residual Connection and Output Projection

  35. sk=Woutsk∈RB×T×Hs_k = W_{\mathrm{out}}s_k \in\mathbb{R}^{B \times T \times H} ▷ Output projection

  36. sk=LayerNorm⁡(sk+X)s_k = \operatorname{LayerNorm}(s_k + X) ▷ Residual connection

  37. Step 11: Extract Output States

  38. sfinal=sk[:,−1,:]∈RB×Hs_{\mathrm{final}} = s_k[:, -1, :] \in\mathbb{R}^{B \times H} ▷ Final token state

  39. sˉ=Mean⁡(sk,dim⁡=1)∈RB×H\bar{s} = \operatorname{Mean}(s_k,\operatorname{dim}=1) \in\mathbb{R}^{B \times H} ▷ Average state

  40. return sfinal,sˉs_{\mathrm{final}}, \bar{s}

Existence and Uniqueness of Solutions

Consider the nonlinear time-delay system

s˙(t)=ϕ(As(t)+Bx(t))+γψ(s^(t) Cxˉ(t−τ(t))),(36)\dot{s}(t) = \phi\left(As(t) + Bx(t)\right) + \gamma\psi\left(\hat{s}(t) \, C\bar{x}(t-\tau(t))\right), \tag*{(36)}

where s(t)∈Rds(t) \in\mathbb{R}^{d} is the state, x(t)x(t) is the input, AA, BB, CC are constant matrices, ϕ,ψ\phi,\psi are nonlinear activation functions, γ>0\gamma> 0 is a gain, s^(t)∈[0,1]\hat{s}(t) \in[0,1] is the similarity score, and τ(t)\tau(t) is a time-varying delay satisfying 0≤τ(t)≤τmax⁡0 \leq\tau(t) \leq\tau_{\max}.

Theorem 1 (Existence and Uniqueness). Assume that the nonlinear functions ϕ(⋅)\phi(\cdot) and ψ(⋅)\psi(\cdot) are Lipschitz continuous with Lipschitz constants LϕL_{\phi} and LψL_{\psi}, respectively. Then, for any bounded initial history function s(t)=s0(t)s(t) = s_0(t) defined on t∈[−τmax⁡,0]t \in[-\tau_{\max},0], the nonlinear time-delay system (36) admits a unique continuous solution s(t)s(t) on any finite interval t∈[0,T]t \in[0,T].

Proof. The proof reformulates the delay differential equation as an integral equation and applies the Banach fixed-point theorem.

Let C=C([−τmax⁡,T],Rd)\mathcal{C} = C([-\tau_{\max},T],\mathbb{R}^{d}) be the Banach space of continuous functions equipped with the supremum norm ∥s∥∞=sup⁡t∥s(t)∥\|s\|_{\infty} = \sup_t \|s(t)\|. Define the closed subset

B={s∈C:s(t)=s0(t) for t∈[−τmax⁡,0], ∥s−s0∥∞≤R}\mathcal{B} = \{s \in\mathcal{C}: s(t) = s_0(t)\text{ for }t \in[-\tau_{\max},0],\ \|s-s_0\|_{\infty} \le R\}

for some R>0R > 0 to be determined.

For t∈[0,T]t \in[0,T], any solution to (36) must satisfy the integral equation

s(t)=s(0)+∫0t[ϕ(As(u)+Bx(u))+γψ(s^(u))Cxˉ(u−τ(u))] du.s(t) = s(0) + \int_0^t \left[\phi\bigl(A s(u) + B x(u)\bigr) + \gamma\psi\bigl(\hat{s}(u)\bigr) C\bar{x}\bigl(u-\tau(u)\bigr)\right]\,\mathrm{d}u.

Define the operator F:B→C\mathcal{F}:\mathcal{B}\to\mathcal{C} by

(Fs)(t)={s0(t),t∈[−τmax⁡,0],s(0)+∫0t[ϕ(As(u)+Bx(u))+γψ(s^(u))Cxˉ(u−τ(u))] du,t∈[0,T].(\mathcal{F}s)(t) = \begin{cases} s_0(t), & t \in[-\tau_{\max},0],\\ s(0) + \int_0^t \left[\phi\bigl(A s(u) + B x(u)\bigr) + \gamma\psi\bigl(\hat{s}(u)\bigr) C\bar{x}\bigl(u-\tau(u)\bigr)\right]\,\mathrm{d}u, & t \in[0,T]. \end{cases}

For any s1,s2∈Bs_1,s_2 \in\mathcal{B} and t∈[0,T]t \in[0,T], the Lipschitz continuity of ϕ\phi and ψ\psi yields

∥(Fs1)(t)−(Fs2)(t)∥≤∫0tLϕ∥A∥∥s1(u)−s2(u)∥ du+γ∫0tLψ∥C∥∥xˉ∥∞∣s^1(u)−s^2(u)∣ du,\begin{aligned} \|(\mathcal{F}s_1)(t)-(\mathcal{F}s_2)(t)\| &\le\int_0^t L_{\phi}\|A\|\|s_1(u)-s_2(u)\|\,\mathrm{d}u\\ &\quad+\gamma\int_0^t L_{\psi}\|C\|\|\bar{x}\|_{\infty}|\hat{s}_1(u)-\hat{s}_2(u)|\,\mathrm{d}u, \end{aligned}

where ∥xˉ∥∞=sup⁡t∥xˉ(t)∥<∞\|\bar{x}\|_{\infty} = \sup_t\|\bar{x}(t)\| < \infty.

Since s^(u)\hat{s}(u) is a continuous function of s(u)s(u), there exists a constant Ls^>0L_{\hat{s}} > 0 such that ∣s^1(u)−s^2(u)∣≤Ls^∥s1(u)−s2(u)∥|\hat{s}_1(u)-\hat{s}_2(u)| \le L_{\hat{s}}\|s_1(u)-s_2(u)\|. Thus,

∥(Fs1)(t)−(Fs2)(t)∥≤K∫0t∥s1(u)−s2(u)∥ du.\|(\mathcal{F}s_1)(t)-(\mathcal{F}s_2)(t)\| \le K\int_0^t \|s_1(u)-s_2(u)\|\,\mathrm{d}u.

where K=Lϕ∥A∥+γLψ∥C∥∥xˉ∥∞Ls^K = L_{\phi}\lVert A\rVert+ \gamma L_{\psi}\lVert C\rVert\lVert\bar{x}\rVert_{\infty}L_{\hat{s}}.

Taking the supremum over t∈[0,T]t \in[0,T] gives

∥Fs1−Fs2∥∞≤KT∥s1−s2∥∞.\lVert\mathcal{F}s_1-\mathcal{F}s_2\rVert_{\infty}\leq KT\lVert s_1-s_2\rVert_{\infty}.

Choose TT sufficiently small so that KT<1KT<1. Then F\mathcal{F} is a contraction on B\mathcal{B}. By the Banach fixed-point theorem, there exists a unique s∗∈Bs^* \in\mathcal{B} such that Fs∗=s∗\mathcal{F}s^*=s^*, which is the unique solution on [0,T][0,T].

To extend to the entire interval [0,Tfinal][0,T_{\mathrm{final}}], repeat the argument. Let T1=TT_1=T and define s(t)s(t) on [0,T1][0,T_1]. Then take the solution at t=T1t=T_1 as the new initial history and extend to [T1,2T][T_1,2T]. Finitely many such steps yield a unique solution on [0,Tfinal][0,T_{\mathrm{final}}].

The Lipschitz continuity of ϕ\phi and ψ\psi holds for common activation functions like tanh and SiLU. The input x(t)x(t) is bounded by construction (e.g., word embeddings), and the initial history s0(t)s_0(t) is given and bounded. Hence, all conditions are satisfied.

Boundedness of the State Trajectory

Theorem 2 (Boundedness of Solutions). Assume the following conditions hold:

  1. The input x(t)\mathbf{x}(t) is uniformly bounded: there exists Mx>0M_x>0 such that ∥x(t)∥≤Mx\lVert\mathbf{x}(t)\rVert\leq M_x for all t≥0t\geq0.

  1. The activation functions ϕ\phi and ψ\psi are Lipschitz continuous with constants Lϕ,Lψ>0L_{\phi},L_{\psi}>0 and satisfy ϕ(0)=0\phi(0)=0, ψ(0)=0\psi(0)=0.

  1. The similarity score satisfies 0≤s^(t)≤10\leq\hat{s}(t)\leq1 for all tt.

Then the state trajectory s(t)s(t) satisfies the following bound for all t≥0t\geq0:

∥s(t)∥≤∥s(0)∥eLϕ∥A∥t+Lϕ∥B∥Mx+γLψ∥C∥MxLϕ∥A∥(eLϕ∥A∥t−1)(37)\lVert s(t)\rVert\leq\lVert s(0)\rVert e^{L_{\phi}\lVert A\rVert t}+\frac{L_{\phi}\lVert B\rVert M_x+\gamma L_{\psi}\lVert C\rVert M_x}{L_{\phi}\lVert A\rVert}\left(e^{L_{\phi}\lVert A\rVert t}-1\right) \tag*{(37)}

provided that A≠0A\neq0. If A=0A=0, the bound simplifies to

∥s(t)∥≤∥s(0)∥+(Lϕ∥B∥Mx+γLψ∥C∥Mx)t.(38)\lVert s(t)\rVert\leq\lVert s(0)\rVert+(L_{\phi}\lVert B\rVert M_x+\gamma L_{\psi}\lVert C\rVert M_x)t. \tag*{(38)}

Proof. Take the Euclidean norm on both sides of (8). By the triangle inequality,

∥s˙(t)∥≤∥ϕ(As(t)+Bx(t))∥+γ∥ψ(s^(t)Cx(t−τ(t)))∥.\lVert\dot{s}(t)\rVert\leq\left\lVert\phi\left(A s(t)+B\mathbf{x}(t)\right)\right\rVert+\gamma\left\lVert\psi\left(\hat{s}(t)C\mathbf{x}(t-\tau(t))\right)\right\rVert.

Since ϕ\phi is Lipschitz continuous with ϕ(0)=0\phi(0)=0, we have

∥ϕ(As(t)+Bx(t))∥≤Lϕ∥As(t)+Bx(t)∥≤Lϕ∥A∥∥s(t)∥+Lϕ∥B∥∥x(t)∥.\left\lVert\phi\left(A s(t)+B\mathbf{x}(t)\right)\right\rVert\leq L_{\phi}\lVert A s(t)+B\mathbf{x}(t)\rVert\leq L_{\phi}\lVert A\rVert\lVert s(t)\rVert+L_{\phi}\lVert B\rVert\lVert\mathbf{x}(t)\rVert.

Similarly, using the Lipschitz continuity of ψ\psi, the boundedness of s^(t)∈[0,1]\hat{s}(t)\in[0,1], and ψ(0)=0\psi(0)=0,

∥ψ(s^(t)Cx(t−τ(t)))∥≤Lψ∥C∥∥x(t−τ(t))∥≤Lψ∥C∥Mx.\left\lVert\psi\left(\hat{s}(t)C\mathbf{x}(t-\tau(t))\right)\right\rVert\leq L_{\psi}\lVert C\rVert\lVert\mathbf{x}(t-\tau(t))\rVert\leq L_{\psi}\lVert C\rVert M_x.

Substituting these bounds and using ∥x(t)∥≤Mx\lVert\mathbf{x}(t)\rVert\leq M_x, we obtain the differential inequality

∥s˙(t)∥≤a∥s(t)∥+b,\lVert\dot{s}(t)\rVert\leq a\lVert s(t)\rVert+b,

where a=Lϕ∥A∥a=L_{\phi}\lVert A\rVert and b=Lϕ∥B∥Mx+γLψ∥C∥Mxb=L_{\phi}\lVert B\rVert M_x+\gamma L_{\psi}\lVert C\rVert M_x.

This inequality can be rewritten as

ddt(∥s(t)∥e−at)≤be−at.\frac{d}{dt}\left(\lVert s(t)\rVert e^{-at}\right)\leq be^{-at}.

Integrating from 00 to tt gives

∥s(t)∥e−at−∥s(0)∥≤b∫0te−aτ dτ=ba(1−e−at).\lVert s(t)\rVert e^{-at}-\lVert s(0)\rVert\leq b\int_0^t e^{-a\tau}\,d\tau=\frac{b}{a}\left(1-e^{-at}\right).

Multiplying by eate^{at} yields

∥s(t)∥≤∥s(0)∥eat+ba(eat−1).\lVert s(t)\rVert\leq\lVert s(0)\rVert e^{at}+\frac{b}{a}\left(e^{at}-1\right).

Substituting back a=Lϕ∥A∥a=L_{\phi}\lVert A\rVert and b=Lϕ∥B∥Mx+γLψ∥C∥Mxb=L_{\phi}\lVert B\rVert M_x+\gamma L_{\psi}\lVert C\rVert M_x proves (37). When A=0\mathbf{A}=0, the differential inequality reduces to ∥s˙(t)∥≤b\lVert\dot{s}(t)\rVert\leq b, and direct integration gives (38).

This result guarantees that under mild assumptions, the system is free from divergence or blow-up, and its trajectories evolve within a bounded region of the latent state space.

Stability of the Equilibrium

We next examine the stability of the equilibrium point. Let s∗s^* denote a fixed point satisfying

0=ϕ(As∗+Bx∗)+γψ(s^∗Cxˉ∗),(39)0=\phi(\mathbf{A}s^*+\mathbf{B}x^*)+\gamma\psi(\hat{s}^*\mathbf{C}\bar{x}^*), \tag*{(39)}

for some constant input x∗x^* and delay τ∗\tau^*.

Theorem 3 (Local Exponential Stability). If the spectral radius ρ(A)<1\rho(\mathbf{A})<1 and the nonlinearities ϕ\phi and ψ\psi satisfy ∥∇ϕ∥≤Lϕ\lVert\nabla\phi\rVert\leq L_{\phi} and ∥∇ψ∥≤Lψ\lVert\nabla\psi\rVert\leq L_{\psi}, then the equilibrium s∗s^* is locally exponentially stable; that is, there exist constants K>0K>0 and η>0\eta>0 such that

∥s(t)−s∗∥≤Ke−ηt∥s(0)−s∗∥.(40)\lVert s(t)-s^*\rVert\leq Ke^{-\eta t}\lVert s(0)-s^*\rVert. \tag*{(40)}

Proof. Define the error vector e(t)=s(t)−s∗e(t)=s(t)-s^*. Assuming x(t)=x∗x(t)=x^* is constant in a neighborhood of the equilibrium, we have x(t)=x∗x(t)=x^* and x(t−τ(t))=x∗x(t-\tau(t))=x^*. Then s^(t)=s^∗+Δs^(t)\hat{s}(t)=\hat{s}^*+\Delta\hat{s}(t), where Δs^(t)=∂s^∂se(t)+O(∥e∥2)\Delta\hat{s}(t)=\frac{\partial\hat{s}}{\partial s}e(t)+O(\lVert e\rVert^2).

Expanding ϕ\phi and ψ\psi around the equilibrium using Taylor series:

ϕ(As(t)+Bx∗)=ϕ(As∗+Bx∗)+∇ϕ(As∗+Bx∗)⋅Ae(t)+O(∥e∥2),(41)\phi(\mathbf{A}s(t)+\mathbf{B}x^*)=\phi(\mathbf{A}s^*+\mathbf{B}x^*)+\nabla\phi(\mathbf{A}s^*+\mathbf{B}x^*)\cdot\mathbf{A}e(t)+O(\lVert e\rVert^2), \tag*{(41)}
ψ(s^(t)Cx∗)=ψ(s^∗Cx∗)+∇ψ(s^∗Cx∗)⋅Cx∗⋅∂s^∂se(t)+O(∥e∥2).(42)\psi(\hat{s}(t)\mathbf{C}x^*)=\psi(\hat{s}^*\mathbf{C}x^*)+\nabla\psi(\hat{s}^*\mathbf{C}x^*)\cdot\mathbf{C}x^*\cdot\frac{\partial\hat{s}}{\partial s}e(t)+O(\lVert e\rVert^2). \tag*{(42)}
s∗=ϕ(As∗+Bx∗)+γψ(s^∗Cxˉ∗).(43)s^*=\phi(\mathbf{A}s^*+\mathbf{B}x^*)+\gamma\psi(\hat{s}^*\mathbf{C}\bar{x}^*). \tag*{(43)}

Substituting these expansions into (8) and using the equilibrium condition (43), we obtain the linearized error dynamics:

e˙(t)=Aϕe(t)+γCψe(t−τ∗),(44)\dot{e}(t)=A_{\phi}e(t)+\gamma C_{\psi}e(t-\tau^*), \tag*{(44)}

where

Aϕ=∇ϕ(As∗+Bx∗)⋅A,Cψ=∇ψ(s^∗Cx∗)⋅Cx∗⋅∂s^∂s.A_{\phi}=\nabla\phi(\mathbf{A}s^*+\mathbf{B}x^*)\cdot\mathbf{A},\qquad C_{\psi}=\nabla\psi(\hat{s}^*\mathbf{C}x^*)\cdot\mathbf{C}x^*\cdot\frac{\partial\hat{s}}{\partial s}.

From the Lipschitz assumptions, we have the bounds

∥Aϕ∥≤Lϕ∥A∥,∥Cψ∥≤Lψ∥C∥∥x∗∥Ls^.\lVert A_{\phi}\rVert\leq L_{\phi}\lVert A\rVert,\qquad\lVert C_{\psi}\rVert\leq L_{\psi}\lVert C\rVert\lVert x^*\rVert L_{\hat{s}}.

The characteristic equation of the linear delay system (44) is

det⁡(λI−Aϕ−γe−λτ∗Cψ)=0.(45)\det\left(\lambda I-A_{\phi}-\gamma e^{-\lambda\tau^*}C_{\psi}\right)=0. \tag*{(45)}

For any root λ\lambda of (45), taking norms gives

∣λ∣≤∥Aϕ∥+γ∥Cψ∥≤Lϕ∥A∥+γLψ∥C∥∥x∗∥Ls^.|\lambda|\leq\lVert A_{\phi}\rVert+\gamma\lVert C_{\psi}\rVert\leq L_{\phi}\lVert A\rVert+\gamma L_{\psi}\lVert C\rVert\lVert x^*\rVert L_{\hat{s}}.

Since ρ(A)<1\rho(A)<1, there exists a matrix norm ∥⋅∥∗\lVert\cdot\rVert_* such that ∥A∥∗<1\lVert A\rVert_*<1. By continuity, for sufficiently small γ\gamma or sufficiently small ∥Cψ∥\lVert C_{\psi}\rVert, we also have ρ(Aϕ)<1\rho(A_{\phi})<1. The small-gain condition

∥Aϕ∥+γ∥Cψ∥<1(46)\lVert A_{\phi}\rVert+\gamma\lVert C_{\psi}\rVert<1 \tag*{(46)}

ensures that all characteristic roots satisfy ℜ(λ)<−η\Re(\lambda)<-\eta for some η>0\eta>0.

To establish exponential stability rigorously, construct the Lyapunov-Krasovskii functional

V(et)=e(t)TPe(t)+∫t−τmax⁡t∫θt∥e(s)∥2 ds dθ,(47)V(e_t)=e(t)^{\mathsf{T}}Pe(t)+\int_{t-\tau_{\max}}^{t}\int_{\theta}^{t}\lVert e(s)\rVert^2\,ds\,d\theta, \tag*{(47)}

where P=PT>0\mathbf{P} = \mathbf{P}^{\mathsf{T}} > 0 is a positive definite matrix. Taking the time derivative along trajectories of (44) and applying Young’s inequality yields

V˙(et)≤e(t)T(AϕTP+PAϕ+τmax⁡I+γ2PCψCψTP)e(t)+γ2∥e(t−τ∗)∥2−∫t−τmax⁡t∥e(s)∥2 ds.\dot{V}(e_t) \le e(t)^{\mathsf{T}}\left(A_{\phi}^{\mathsf{T}}\mathbf{P}+\mathbf{P}A_{\phi}+\tau_{\max}\mathbf{I}+\gamma^2\mathbf{P}C_{\psi}C_{\psi}^{\mathsf{T}}\mathbf{P}\right)e(t)+\gamma^2\|e(t-\tau^*)\|^2-\int_{t-\tau_{\max}}^t\|e(s)\|^2\,\mathrm{d}s.

If there exists P≻0\mathbf{P} \succ0 satisfying the Linear Matrix Inequality

AϕTP+PAϕ+τmax⁡I+γ2PCψCψTP+αI≺0(48)A_{\phi}^{\mathsf{T}}\mathbf{P}+\mathbf{P}A_{\phi}+\tau_{\max}\mathbf{I}+\gamma^2\mathbf{P}C_{\psi}C_{\psi}^{\mathsf{T}}\mathbf{P}+\alpha\mathbf{I} \prec0 \tag*{(48)}

for some α>0\alpha> 0, then

V˙(et)≤−α∥e(t)∥2.\dot{V}(e_t) \le-\alpha\|e(t)\|^2.

The condition ρ(Aϕ)<1\rho(A_{\phi}) < 1 guarantees the existence of such a P\mathbf{P} by the Lyapunov-Krasovskii theorem for delay systems. Standard results then imply the existence of constants K≥1K \ge1 and η>0\eta> 0 such that

∥e(t)∥≤Ke−ηt∥e(0)∥.\|e(t)\| \le K e^{-\eta t}\|e(0)\|.

Therefore, the exponential stability of the linearized system implies the local exponential stability of the original nonlinear system (8). Thus, there exists a neighborhood N\mathcal{N} of s∗\mathbf{s}^* such that for any initial condition s(0)∈N\mathbf{s}(0) \in\mathcal{N}, the estimate (40) holds.

Stability of the Discrete-Time Realization

The discrete model (12) inherits the stability of its continuous counterpart.

Theorem 4 (Discrete Stability). If ρ(A)<1\rho(\mathbf{A}) < 1 and the delay correction gain γ\gamma satisfies

γ<1−ρ(A)Lψ∥C∥,(49)\gamma< \frac{1-\rho(\mathbf{A})}{L_{\psi}\|\mathbf{C}\|}, \tag*{(49)}

then the discrete nonlinear time-delay system is contractive:

∥sk−s∗∥≤(ρ(A)+γLψ∥C∥)∥sk−1−s∗∥,(50)\|\mathbf{s}_k-\mathbf{s}^*\| \le\left(\rho(\mathbf{A})+\gamma L_{\psi}\|\mathbf{C}\|\right)\|\mathbf{s}_{k-1}-\mathbf{s}^*\|, \tag*{(50)}

and thus globally asymptotically stable.

Proof. We analyze the update mapping F(s)=ϕ(As+Bx∗)+γψ(s^∗Cxˉ∗)\mathcal{F}(\mathbf{s}) = \phi(\mathbf{A}\mathbf{s}+\mathbf{B}\mathbf{x}^*)+\gamma\psi(\hat{s}^*\mathbf{C}\bar{\mathbf{x}}^*). At equilibrium, s∗=F(s∗)\mathbf{s}^*=\mathcal{F}(\mathbf{s}^*). For any two states s\mathbf{s} and s′\mathbf{s}', the Lipschitz continuity of ϕ\phi gives

∥ϕ(As+Bx∗)−ϕ(As′+Bx∗)∥≤Lϕ∥A∥∥s−s′∥.\|\phi(\mathbf{A}\mathbf{s}+\mathbf{B}\mathbf{x}^*)-\phi(\mathbf{A}\mathbf{s}'+\mathbf{B}\mathbf{x}^*)\| \le L_{\phi}\|\mathbf{A}\|\|\mathbf{s}-\mathbf{s}'\|.

Since ρ(A)<1\rho(\mathbf{A}) < 1, we can choose a matrix norm ∥⋅∥∗\|\cdot\|_* such that ∥A∥∗<1\|\mathbf{A}\|_* < 1. For common activation functions like tanh or SiLU, we have Lϕ=1L_{\phi}=1, so the linear part alone would be a contraction. However, the additional term γψ(s^∗Cxˉ∗)\gamma\psi(\hat{s}^*\mathbf{C}\bar{\mathbf{x}}^*) is constant at equilibrium and does not affect the contraction property. For states away from equilibrium, the similarity score s^(s)\hat{s}(\mathbf{s}) and historical context xˉ(s)\bar{\mathbf{x}}(\mathbf{s}) vary. Using the Lipschitz properties of ψ\psi, s^\hat{s}, and xˉ\bar{\mathbf{x}}, we obtain

∥F(s)−F(s′)∥≤∥A∥∥s−s′∥+γLψ∥C∥(∥xˉ(s)−xˉ(s′)∥+∥xˉ(s′)∥∣s^(s)−s^(s′)∣).\|\mathcal{F}(\mathbf{s})-\mathcal{F}(\mathbf{s}')\| \le\|\mathbf{A}\|\|\mathbf{s}-\mathbf{s}'\|+\gamma L_{\psi}\|\mathbf{C}\|\left(\|\bar{\mathbf{x}}(\mathbf{s})-\bar{\mathbf{x}}(\mathbf{s}')\|+\|\bar{\mathbf{x}}(\mathbf{s}')\||\hat{s}(\mathbf{s})-\hat{s}(\mathbf{s}')|\right).

Near the equilibrium, ∥xˉ(s)∥≈∥xˉ∗∥\|\bar{\mathbf{x}}(\mathbf{s})\|\approx\|\bar{\mathbf{x}}^*\| and s^(s)≈s^∗\hat{s}(\mathbf{s})\approx\hat{s}^*, so the differences satisfy ∥xˉ(s)−xˉ(s′)∥≈0\|\bar{\mathbf{x}}(\mathbf{s})-\bar{\mathbf{x}}(\mathbf{s}')\|\approx0 and ∣s^(s)−s^(s′)∣≈0|\hat{s}(\mathbf{s})-\hat{s}(\mathbf{s}')|\approx0. Hence, locally,

∥F(s)−F(s′)∥≤(∥A∥+γLψ∥C∥∥xˉ∗∥Ls^)∥s−s′∥,\|\mathcal{F}(\mathbf{s})-\mathcal{F}(\mathbf{s}')\| \le\left(\|\mathbf{A}\|+\gamma L_{\psi}\|\mathbf{C}\|\|\bar{\mathbf{x}}^*\|L_{\hat{s}}\right)\|\mathbf{s}-\mathbf{s}'\|,

where Ls^L_{\hat{s}} is the Lipschitz constant of s^\hat{s}. Since ∥A∥\|\mathbf{A}\| can be made arbitrarily close to ρ(A)\rho(\mathbf{A}) by choosing an appropriate norm, the contraction condition becomes

ρ(A)+γLψ∥C∥∥xˉ∗∥Ls^<1.\rho(\mathbf{A})+\gamma L_{\psi}\|\mathbf{C}\|\|\bar{\mathbf{x}}^*\|L_{\hat{s}}<1.

Typically Ls^≤1L_{\hat{s}}\le1 because s^\hat{s} is a normalized similarity measure. Thus, the sufficient condition reduces to

γ<1−ρ(A)Lψ∥C∥∥xˉ∗∥.\gamma< \frac{1-\rho(\mathbf{A})}{L_{\psi}\|\mathbf{C}\|\|\bar{\mathbf{x}}^*\|}.

When this inequality holds, the mapping F\mathcal{F} is a contraction with Lipschitz constant L=ρ(A)+γLψ∥C∥∥xˉ∗∥<1L = \rho(A) + \gamma L_{\psi}\lVert C\rVert\lVert\bar{x}^{*}\rVert< 1. By the Banach fixed-point theorem, F\mathcal{F} has a unique fixed point s∗\mathbf{s}^{*}, and for any initial s0\mathbf{s}_{0}, the iterates sk+1=F(sk)\mathbf{s}_{k+1} = \mathcal{F}(\mathbf{s}_{k}) converge exponentially to s∗\mathbf{s}^{*}:

∥sk−s∗∥≤Lk∥s0−s∗∥.\lVert\mathbf{s}_{k} - \mathbf{s}^{*}\rVert\le L^{k}\lVert\mathbf{s}_{0} - \mathbf{s}^{*}\rVert.

Since the contraction constant LL does not depend on the initial condition, the convergence is global. This completes the proof. □\square

Discussion

The results above establish the theoretical soundness of the proposed nonlinear time-delay formulation:

  • Existence & Uniqueness guarantees that the system’s solution is well-defined for any bounded history.

  • Boundedness prevents state divergence under bounded input conditions.

  • Stability ensures convergence to equilibrium when ρ(A)<1\rho(A) < 1 and γ\gamma is moderate.

These properties provide a solid mathematical foundation connecting continuous nonlinear delay systems with their discrete-time neural realizations used in modern sequence modeling.

References

  1. [2]Dodo Zaenal Abidin, Lasmedi Afuan, Afrizal Nehemia Toscany, and Nurhadi Nurhadi. A comprehensive benchmarking pipeline for transformer-based sentiment analysis using cross-validated metrics. Jurnal Teknik Informatika (Jutif), 6(4):1797–1810, 2025.DOI
  2. [3]Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks, 5(2):157–166, 1994.
  3. [4]Duc Anh Do, Luu Anh Tuan, Wray Buntine, et al. Discrete diffusion language model for efficient text summarization. In Findings of the Association for Computational Linguistics: NAACL 2025, pp. 6278–6290, 2025.arxiv.org/abs/2407.10998
  4. [5]Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023.arxiv.org/abs/2312.00752
  5. [6]Albert Gu, Karan Goel, and Christopher Ré. Efficiently modeling long sequences with structured state spaces. arXiv preprint arXiv:2111.00396, 2021.arxiv.org/abs/2111.00396
  6. [7]Jack K Hale and Sjoerd M Verduyn Lunel. Introduction to functional differential equations, volume 99. Springer Science & Business Media, 2013.
  7. [8]Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
  8. [9]Xiaorong Huang, Weibin Zhang, Xiangmin Xu, Ruixiang Yin, and Dongpeng Chen. Deeper time delay neural networks for effective acoustic modelling. Journal of Physics: Conference Series, 1229(1):012076, 2019.DOI
  9. [10]Tamás Insperger and Gábor Stépán. Semi-discretization for time-delay systems: stability and engineering applications, volume 178. Springer Science & Business Media, 2011.DOI
  10. [11]Derry Jatnika, Moch Arif Bijaksana, and Arie Ardiyanti Suryani. Word2vec model analysis for semantic similarities in english words. Procedia Computer Science, 157:160–167, 2019.DOI
  11. [12]Xunbi A Ji and Gábor Orosz. Trainable delays in time delay neural networks for learning delayed dynamics. IEEE Transactions on Neural Networks and Learning Systems, 36(3):5219–5229, 2024.DOI
  12. [13]Thomas Kailath. Linear systems, volume 156. Prentice-Hall Englewood Cliffs, NJ, 1980.
  13. [14]Rudolph Emil Kalman. A new approach to linear filtering and prediction problems, 1960.DOI
  14. [15]Andrew Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew Y Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th annual meeting of the association for computational linguistics: Human language technologies, pp. 142–150, 2011.
  15. [16]I Made Denis Maharditha and Kemas M Lhaksamana. Comparative performance analysis of lstm and transformer models for abstractive text summarization. In 2025 International Conference on Data Science and Its Applications (ICoDSA), pp. 213–218. IEEE, 2025.DOI
  16. [17]Ramesh Nallapati, Bowen Zhou, Cicero Dos Santos, Çağlar Gülçehre, and Bing Xiang. Abstractive text summarization using sequence-to-sequence rnns and beyond. In Proceedings of the 20th SIGNLL conference on computational natural language learning, pp. 280–290, 2016.arxiv.org/abs/1602.06023
  17. [18]Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In International conference on machine learning, pp. 1310–1318. Pmlr, 2013.arxiv.org/abs/1211.5063
  18. [19]Vijayaditya Peddinti, Daniel Povey, and Sanjeev Khudanpur. A time delay neural network architecture for efficient modeling of long temporal contexts. In Proc. Interspeech 2015, pp. 3214–3218, 2015.DOI
  19. [20]Saeed Mian Qaisar. Sentiment analysis of imdb movie reviews using long short-term memory. In 2020 2nd International Conference on Computer and Information Sciences (ICCIS), pp. 1–4. IEEE, 2020.DOI
  20. [21]Syama Sundar Rangapuram, Matthias W Seeger, Jan Gasthaus, Lorenzo Stella, Yuyang Wang, and Tim Januschowski. Deep state space models for time series forecasting. Advances in neural information processing systems, 31, 2018.
  21. [22]KM Rani Krishna, K Somasundaram, P Arulmozhivarman, Sarah A Immanuel, and ER Rajkumar. Deep learning for text summarization using nlp for automated news digest. Scientific Reports, 15 (1):36343, 2025.
  22. [23]Alex Sherstinsky. Fundamentals of recurrent neural network (rnn) and long short-term memory (lstm) network. Physica d: Nonlinear phenomena, 404:132306, 2020.DOI
  23. [24]Soub­raylu Sivakumar, Lakshmi Sarvani Videla, T Rajesh Kumar, J Nagaraj, Shilpa Itnal, and D Haritha. Review on word2vec word embedding neural net. In 2020 international conference on smart electronics and communication (ICOSEC), pp. 282–290. IEEE, 2020.DOI
  24. [25]Hal L Smith. An introduction to delay differential equations with applications to the life sciences, volume 57. springer New York, 2011.DOI
  25. [26]Jimmy TH Smith, Andrew Warrington, and Scott W Linderman. Simplified state space layers for sequence modeling, 2023. URL https://arxiv. org/abs/2208.04933, 2208:04933, 2023.arxiv.org/abs/2208.04933
  26. [27]David Snyder, Daniel Garcia-Romero, and Daniel Povey. Time delay deep neural network-based universal background models for speaker recognition. In 2015 IEEE Workshop on Automatic Speech Recognition and Understanding (ASRU), pp. 92–97. IEEE, 2015.DOI
  27. [28]Alexander Waibel, Toshiyuki Hanazawa, Geoffrey Hinton, Kiyohiro Shikano, and Kevin J Lang. Phoneme recognition using time-delay neural networks. In Backpropagation, pp. 35–61. Psychology Press, 2013.
  28. [29]Linqi Zhou, Michael Poli, Winnie Xu, Stefano Massaroli, and Stefano Ermon. Deep latent state space models for time-series generation. In International Conference on Machine Learning, pp. 42625–42643. PMLR, 2023.arxiv.org/abs/2212.12749

Paper details

vlnc:W_bs2b7f2e
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC0-1.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents