Temporal Weights

Adam A. Kohan, Edward A. Rietman, Hava T. SiegelmannarXiv 2023 · DOI

Abstract

Artificial neural networks traditionally rely on static weights, which limits their capacity to model the complex, continuous-time dynamics found in biological systems and real-world datasets. This paper introduces "Temporal Weights" (TW), a framework where network weights evolve as a function of time using biologically inspired synchronization. When integrated with Neural Ordinary Differential Equations (NODEs), TW enables models to achieve state-of-the-art performance on sparse, irregular time-series data with significantly fewer parameters than standard baselines.

Introduction

The standard paradigm in deep learning treats weights as fixed "long-term memory" and hidden states as "short-term memory." However, biological synapses are dynamic, changing their properties over time. This rigidity in artificial models is particularly problematic for irregularly sampled data, such as ICU patient records or climate observations. The "Temporal Weights" approach proposes that for a network to truly understand time, it must be able to adapt its internal computational logic dynamically.

Methodology

The core innovation is the Temporal Scaling Function ($S$), which transforms a base weight matrix $W$ into a time-dependent matrix $W'(t) = S(W, t)$. This function is modeled after neural synchronization in biological systems, using interacting sinusoidal waves to scale weights based on their relationships and the current time. By embedding this mechanism within Neural ODEs, the model can smoothly interpolate weight values at any point in continuous time, allowing for a more nuanced representation of temporal trajectories.

Comparison of Static and Temporal Weights in Data and Latent Spaces. Temporal weights enable significantly more complex and expressive trajectories, allowing the model to capture quasi-periodic patterns that static weights miss.

Experimental Results

The authors tested TW across five domains: PhysioNet ICU (mortality and sepsis prediction), MuJoCo physics simulations, Human Activity classification, and USHCN climate data.

A standout result was observed in the Human Activity dataset, where the TW model achieved higher accuracy (0.870 vs 0.846) while utilizing over 10x fewer parameters (141,023 vs 1,696,763) compared to standard baselines. Similarly, on the PhysioNet ICU task, TW outperformed Latent ODEs in mortality prediction with less than half the parameters and faster convergence. These results highlight "parameter amplification," where a small set of base parameters generates a vast range of effective weights over time.

Qualitative comparison of model fits on irregular time-series samples. The Temporal Weights approach (right) demonstrates a superior ability to fit complex, periodic data points compared to the Static Weights baseline (left).

Conclusion

Temporal Weights offer a powerful method for increasing the expressivity and efficiency of neural networks in time-sensitive domains. While the approach introduces some computational overhead due to weight recalculation (roughly 1.2x to 2.0x slower per epoch), the gains in parameter efficiency and predictive performance on irregular data are substantial. Future research will focus on scaling these dynamic interactions across entire network architectures to further bridge the gap between artificial and biological intelligence.

Summary updated

BibTeX
@misc{kohan2023temporal,
  author = {Adam A. Kohan and Edward A. Rietman and Hava T. Siegelmann},
  title = {{Temporal Weights}},
  year = {2023},
  eprint = {2301.04126},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.04126},
}
Figure