Manuscript Offprint
arXiv:2610.12864Time Delay System for Sequence Modeling
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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.
1 INTRODUCTION
Existing sequence modeling architectures, such as Long Short-Term Memory (LSTM) (Sherstinsky, 2020), transformers, and Mamba (Gu & Dao, 2023), 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.
This research was funded by the research project of Chuzhou University (Grant No. 2025qd36).
Corresponding author.
• 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.
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 (Bengio et al., 1994). To address this, the LSTM (Hochreiter & Schmidhuber, 1997) 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 (Pascanu et al., 2013), 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 (Rangapuram et al., 2018; Smith et al., 2023; Zhou et al., 2023). The classic state-space model is formulated as a latent state that evolves through structured linear transitions, enabling a continuous-time interpretation of sequences (Kalman, 1960; Kailath, 1980). In recent years, the Structured State Space sequence model (S4) was proposed by Gu et al. (2021), 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 (2023) 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 (Gu et al., 2021) 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 (Insperger & Stépán, 2011; Hale & Lunel, 2013). 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 (Smith, 2011; Waibel et al., 2013; Snyder et al., 2015). Recent work continues to investigate the delay structures in complex dynamical systems. Peddinti et al. (Peddinti et al., 2015) 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. (2019) proposed deeper TDNNs for acoustic modeling by increasing the depth of temporal context layers. Ji et al. (2024) 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 (Jatnika et al., 2019; Sivakumar et al., 2020), 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

Figure 1: (1) is the overall architecture of our proposed TDS model. (2) is the semantic lag estimator, and (3) is the fuzzy system.
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.
3 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.
3.1 PROBLEM DEFINITION
In conventional recurrent or state-space language models, the evolution of the current hidden state , (where t is the current time) is assumed to depend only on the current input and the previous state . However, natural language often exhibits semantic delay : 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.
3.2 MATHEMATICAL FOUNDATION
Formally, let denote the current state ( is the dimension of the state) and the current input (e.g., token embedding, is the dimension of the input). The system evolves according to a nonlinear time-delay differential equation:
where is the change rate of the current state ; denotes a time delay that can vary dynamically with the semantic context ( is the maximum of ); is delayed past state; and is a nonlinear function that can simultaneously process the current state, delayed past state and current input.
3.3 FUNCTIONAL SEPARATION
According to the decomposition theory of multivariate functions, any smooth multivariate vector function can be decomposed at the reference state point as following,
where . We can define two componentfunctions based on the above split:
• Instantaneous Function: , which captures the system's behavior when the delayed state is at its reference value.
• Delay Function: , 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
Eq. (3) is still complex since depends on both the current state and the delayed state . 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:
Hence, we can rewrite Eq. (3) as:
where the first term captures the instantaneous state evolution driven by the current input and the second term introduces delayed feedback that depends on past states and inputs. We drop the tilde on for notation simplicity. Eq. (5) is the fundamental definition of a continuous nonlinear time-delay system. It subsumes the standard state-space model when and .
3.4 STRUCTURE PARAMETERIZATION
To obtain a learnable form for neural network modeling, we introduce structured linear mappings and nonlinear activations as follows:
where are learnable matrices, and are nonlinear activation functions (e.g., SiLU, ReLU), is a scalar weight controlling the influence of the delayed term, and is the semantic similarity between the current and delayed embeddings. Substituting Eq. (6) and Eq. (7) into Eq. (5) yields:
This equation describes a nonlinear dynamical system with both instantaneous and delayed semantic interactions.
3.5 DISCRETIZATION
For sequential data (e.g., text), the system evolves in discrete time steps. Let the time discretization be , and approximate the time derivative in Eq. (8) using the first-order forward difference:
Substituting this into Eq. (8) gives:
Rearranging terms leads to the discrete-time update:
When the sampling step is normalized to , the additive integration term can be absorbed into the nonlinear mappings, yielding a simplified discrete nonlinear delay model:
which is the core discrete-time realization of our nonlinear time-delay system.
3.6 SEMANTIC LAG ESTIMATOR
To calculate the second delay term , we first need to consider the semantic delay , which is determined by the similarity between the current input and its past history. We define a semantic lag estimator that computes the similarity between the current embedding and each historical embedding within the window, where each lag and is the maximum number of semantic delay . Here we define , the cosine similarity as follows:
where is the L2 norm. To suppress far-away history contexts, each similarity value is weighted by a temporal decay function , where and are hyperparameters controlling the rate of exponential decay. The combined semantic activation over the past history window is defined as , and the normalized semantic confidence is
where denotes the sigmoid function.
Hard selection (interpretable). The effective discrete delay is selected as the smallest lag exceeding an input-dependent threshold:
with corresponding similarity score . If no lag satisfies the condition, we set and .
Soft selection (differentiable). To enable end-to-end training, we introduce a soft attention mechanism over lags:
Then, we have:
Substituting these expressions into Eq. (12) gives the continuous and differentiable soft-delay update:
with . In the limit , the soft quantities concentrate on the minimal lag , and recovers the hard selection , where is the semantic state at time , is the current token embedding, are learnable matrices, are nonlinear activation functions (e.g., SiLU, tanh), is a global scaling parameter, is the soft similarity score from the Semantic Lag Estimator, and is the soft-weighted historical context.
Algorithm 1 Soft Semantic Lag Estimator
Require: Current embeddings or , History windows or , Parameters: projection , decay , , temperature
Ensure: Attention weights , weighted history , soft score
1: Initialize: , Fixed decay weights
2: Project to similarity space
3:
4: \mathrm{sim} = \frac{\mathbf{X}_{\mathrm{curr}}^{\mathrm{proj}} \cdot \mathbf{H}^{\mathrm{proj}}^\top}{\|\mathbf{X}_{\mathrm{curr}}^{\mathrm{proj}}\| \cdot \|\mathbf{H}^{\mathrm{proj}}\| + \varepsilon} Cosine similarity
5: Apply temporal decay
6: Softmax over history
7: Weighted historical context
8: Soft similarity score
9: return , ,
3.7 FUZZY SEMANTIC SYSTEM
We define the delay correction term in the core equation Eq. (18) as:
and the equation simplifies to:
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:
where is the semantic context vector, and are modulation functions.
Semantic Context Definition. The semantic context captures both the current and recently recalled information:
Fuzzy Rule-Based Parameterization. We employ a zero-order Takagi-Sugeno-Kang (TSK) fuzzy system with rules. Each rule has a prototypical semantic context , a consequent for base update modulation, and a consequent 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 or , Parameters: rule centers , rule weights , , width
Ensure: Modulation vectors (same shape as )
1:
▷ Normalized membership
2:
▷ Weighted average for
3:
▷ Weighted average for (non-negative)
4: ,
▷ Expand to hidden dimension
5: return
where is the width parameter. The normalized memberships are:
which satisfy: , .
subsubsection Defuzzifications. The modulation outputs are weighted averages of the rule consequences:
Positivity Constraint. The delay modulation is constrained to be positive via the softplus function:
Complete Fuzzy-Modulated State Update. Substituting all components, the complete system is:
We can get the final updated core function as follows:
3.8 TIME DELAY SYSTEM
In Eq. (28), we need to recursively get using the last state . To achieve fully vectorized computation without sequential loops, we restrict the state transition matrix to be diagonal. Let denote the diagonal elements. For , we apply the linear recurrence with diagonal state transition. The latent state evolves according to the element-wise recurrence:
(29) where denotes element-wise (Hadamard) multiplication, and is the projected input.
Closed-Form Solution via Cumulative Sum. Unrolling the recurrence yields the closed-form expression:
where denotes element-wise exponentiation: . This can be computed efficiently using cumsum operation:
where denotes element-wise reciprocal: .
Final State Update. The semantic state is obtained by combining the transformed latent state and delay correction with fuzzy modulation:
where is a nonlinear activation function (e.g., SiLU).
Algorithm 3 Semantic Delay Processor (Full version is shown in Alg. 6.)
Require: Input tokens , parameters Ensure: Final state , average state 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: return ,
4 EXPERIMENTS
4.1 DATASETS AND IMPLEMENTATIONS
In this paper, we test our TDS model on the IMDB (Maas et al., 2011) dataset for text classification and the CNN / DailyMail (Nallapati et al., 2016) 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.
Source code is available at https://github.com/YoushanZhang/TDS.
4.2 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 Tables 1 and 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.
Table 1: Number of parameters and accuracy of the IMDB dataset.
| Model | Parameters(M) | Accuracy | Total Training Time(s) |
|---|---|---|---|
| LSTM (Qaisar, 2020) | 2.8 | 89.90 | 2300 |
| Mamba (Gu & Dao, 2023) | 3.2 | 83.00 | 2300 |
| RoBERTa-base (Abidin et al., 2025) | 125 | 94.13 | - |
| DistilBERT-base (Abidin et al., 2025) | 66 | 92.13 | - |
| TDS | 2.6 | 95.35 | 2100 |
Table 2: Number of parameters and ROUGE score of the CNN/DailyMail dataset.
| Model | Parameters(M) | ROUGE-L | Total Training Time(s) |
|---|---|---|---|
| LSTM (Abdulsahib et al., 2022) | 26.5 | 38.45 | 16558 |
| BERT (Maharditha & Lhaksmana, 2025) | 24.30 | 40.48 | 18260 |
| Mamba (Do et al., 2025) | 14.73 | 29.60 | 16725 |
| BART CNN-large (Rani Krishna et al., 2025) | 139 | 24.58 | - |
| T5-base (Rani Krishna et al., 2025) | 220 | 23.54 | - |
| TDS | 16.98 | 42.63 | 17633 |

Max_Lag = 1
Max_Lag = 3
Max_Lag = 5
Max_Lag = 7
Max_Lag = 10
Max_Lag = 20
Figure 2: An example of how the maximum number of lag impacts TDS model performance on the sample “this movie is amazing! the acting is brilliant.”.
We also visualize how different numbers of the maximum number of lags affect model performance, as shown in Fig. 2, and Fig. 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 Fig. 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 L, the most relevant historical context will be consistently highlighted by the attention mechanism. Fig. 3 shows that increasing lags, although with fluctuation, will increase the model accuracy on text classification.
5 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.
REFERENCES
Muna Ghazi Abdulsahib et al. Convolutional recurrent neural networks for text lecture summarization. Iraqi Journal of Computers, Communications, Control and Systems Engineering, 22(2):3, 2022.
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.
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.
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.
Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023.
Albert Gu, Karan Goel, and Christopher Ré. Efficiently modeling long sequences with structured state spaces. arXiv preprint arXiv:2111.00396, 2021.
Jack K Hale and Sjoerd M Verduyn Lunel. Introduction to functional differential equations, volume 99. Springer Science & Business Media, 2013.
Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
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.
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.
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.
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.
Thomas Kailath. Linear systems, volume 156. Prentice-Hall Englewood Cliffs, NJ, 1980.
Rudolph Emil Kalman. A new approach to linear filtering and prediction problems, 1960.
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.
I Made Denis Maharditha and Kemas M Lhaksmana. 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.
Ramesh Nallapati, Bowen Zhou, Cicero Dos Santos, Çağlar Gulç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.
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.
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.
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.
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.
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.
Alex Sherstinsky. Fundamentals of recurrent neural network (rnn) and long short-term memory (lstm) network. Physica d: Nonlinear phenomena, 404:132306, 2020.
Soubraylu 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.
Hal L Smith. An introduction to delay differential equations with applications to the life sciences, volume 57. springer New York, 2011.
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.
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.
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.
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.
A APPENDIX
A.1 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 , classes
Ensure: Probabilities , predictions
1:
2:
3:
4:
5:
Algorithm 5 Text Generation with Semantic Delay Processor
Require: Prefix , length , temp , top-k
Ensure: Generated sequences
1: ,
2: for to do
3:
4: ,
5:
6: ,
7: ,
8:
9:
10: end for
11: return
A.2 COMPUTATIONAL COMPLEXITY
The full model operations are defined in Eq.(32), which are fully vectorized:
• and 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 with respect to sequence length when executed on parallel hardware, as the cumsum operation has in depth but implemented as a single kernel call.
A.3 SPECIAL CASES
If : (standard cumulative sum)
(33)
If : (no memory)
(34)
If : (delay correction disabled)
(35)
A.4 EFFECTS OF DIFFERENT MAXIMUM LAG AND ACCURACY
B 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 (batch size , sequence length ), Vocabulary size , hidden dimension , maximum lag , number of fuzzy rules , Hyperparameters: , , , , , kernel size
Ensure: Final semantic state , Average semantic state
1: Step 1: Token Embedding and Position Encoding 2: ▷ Lookup embedding table 3: ▷ Add bidirectional position encoding 4:
5: Step 2: Bidirectional Depthwise Convolution 6: ▷ Input projection 7: ▷ Forward convolution 8: ▷ Backward convolution 9:
10: Step 3: History Window Construction 11: 12: 13: Step 4: Soft Semantic Lag Estimation (Algorithm 1) 14: 15:
16: Step 5: Compute Input Projection 17: ▷ Projected input 18: Step 6: Compute Delay Correction 19: ▷ Project historical context 20: ▷ Delay correction term 21: Step 7: Diagonal State Space Recurrence (Zero-Loop) 22: ▷ Diagonal state transition 23: ▷ Time indices 24: ▷ Exponential powers 25: 26: 27: ▷ Latent state from recurrence 28: Step 8: Fuzzy Semantic Modulation (Algorithm 2) 29: ▷ Semantic context (approximation) 30: ▷ Modulation vectors 31: Step 9: Final State Update 32: 33: 34: Step 10: Residual Connection and Output Projection 35: ▷ Output projection 36: ▷ Residual connection 37: Step 11: Extract Output States 38: ▷ Final token state 39: ▷ Average state 40: return
B.1 EXISTENCE AND UNIQUENESS OF SOLUTIONS
Consider the nonlinear time-delay system
where is the state, is the input, , , are constant matrices, , are nonlinear activation functions, is a gain, is the similarity score, and is a time-varying delay satisfying .

Figure 3: Effects of different lag on IMDB dataset
Theorem 1 (Existence and Uniqueness). Assume that the nonlinear functions and are Lipschitz continuous with Lipschitz constants and , respectively. Then, for any bounded initial history function defined on , the nonlinear time-delay system (36) admits a unique continuous solution on any finite interval .
Proof. The proof reformulates the delay differential equation as an integral equation and applies the Banach fixed-point theorem.
Let be the Banach space of continuous functions equipped with the supremum norm . Define the closed subset
for some to be determined.
For , any solution to (36) must satisfy the integral equation
Define the operator by
For any and , the Lipschitz continuity of and yields
where .
Since is a continuous function of , there exists a constant such that . Thus,
where .
Taking the supremum over gives
Choose sufficiently small so that . Then is a contraction on . By the Banach fixed-point theorem, there exists a unique such that , which is the unique solution on .
To extend to the entire interval , repeat the argument. Let and define on . Then take the solution at as the new initial history and extend to . Finitely many such steps yield a unique solution on .
The Lipschitz continuity of and holds for common activation functions like tanh and SiLU. The input is bounded by construction (e.g., word embeddings), and the initial history is given and bounded. Hence, all conditions are satisfied.
B.2 BOUNDEDNESS OF THE STATE TRAJECTORY
Theorem 2 (Boundedness of Solutions). Assume the following conditions hold:
-
The input is uniformly bounded: there exists such that for all .
-
The activation functions and are Lipschitz continuous with constants and satisfy .
-
The similarity score satisfies for all .
Then the state trajectory satisfies the following bound for all :
provided that . If , the bound simplifies to
Proof. Take the Euclidean norm on both sides of (8). By the triangle inequality,
Since is Lipschitz continuous with , we have
Similarly, using the Lipschitz continuity of , the boundedness of , and ,
Substituting these bounds and using , we obtain the differential inequality
where and .
This inequality can be rewritten as
Integrating from 0 to t gives
Multiplying by yields
Substituting back and proves (37). When , the differential inequality reduces to , 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.
B.3 STABILITY OF THE EQUILIBRIUM
We next examine the stability of the equilibrium point. Let denote a fixed point satisfying
for some constant input and delay .
Theorem 3 (Local Exponential Stability). If the spectral radius and the nonlinearities and satisfy and , then the equilibrium is locally exponentially stable; that is, there exist constants and such that
Proof. Define the error vector . Assuming is constant in a neighborhood of the equilibrium, we have and . Then , where .
Expanding and around the equilibrium using Taylor series:
Substituting these expansions into (8) and using the equilibrium condition (43), we obtain the linearized error dynamics:
where
From the Lipschitz assumptions, we have the bounds
The characteristic equation of the linear delay system (44) is
For any root of (45), taking norms gives
Since , there exists a matrix norm such that . By continuity, for sufficiently small or sufficiently small , we also have . The small-gain condition
ensures that all characteristic roots satisfy for some .
To establish exponential stability rigorously, construct the Lyapunov-Krasovskii functional
(47) where is a positive definite matrix. Taking the time derivative along trajectories of (44) and applying Young's inequality yields
If there exists satisfying the Linear Matrix Inequality
for some , then
The condition guarantees the existence of such a by the Lyapunov-Krasovskii theorem for delay systems. Standard results then imply the existence of constants and such that
Therefore, the exponential stability of the linearized system implies the local exponential stability of the original nonlinear system (8). Thus, there exists a neighborhood of such that for any initial condition , the estimate (40) holds.
B.4 STABILITY OF THE DISCRETE-TIME REALIZATION
The discrete model Eq. (12) inherits the stability of its continuous counterpart.
Theorem 4 (Discrete Stability). If and the delay correction gain satisfies
then the discrete nonlinear time-delay system is contractive:
and thus globally asymptotically stable.
Proof. We analyze the update mapping . At equilibrium, . For any two states and , the Lipschitz continuity of gives
Since , we can choose a matrix norm such that . For common activation functions like tanh or SiLU, we have , so the linear part alone would be a contraction. However, the additional term is constant at equilibrium and does not affect the contraction property. For states away from equilibrium, the similarity score and historical context vary. Using the Lipschitz properties of , , and , we obtain
Near the equilibrium, and , so the differences satisfy and . Hence, locally,
where is the Lipschitz constant of . Since can be made arbitrarily close to by choosing an appropriate norm, the contraction condition becomes
Typically because is a normalized similarity measure. Thus, the sufficient condition reduces to
When this inequality holds, the mapping is a contraction with Lipschitz constant . By the Banach fixed-point theorem, has a unique fixed point , and for any initial , the iterates converge exponentially to :
Since the contraction constant does not depend on the initial condition, the convergence is global. This completes the proof.
B.5 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 and 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.