Long-Sequence Memory with Temporal Kernels and Dense Hopfield Functionals

Ahmed Farooq
6/27/2025
cs.LGcs.AIcs.NE

No confident code implementation found for this paper.

Abstract

In this study we introduce a novel energy functional for long-sequence memory, building upon the framework of dense Hopfield networks which achieves exponential storage capacity through higher-order interactions. Building upon earlier work on long-sequence Hopfield memory models, we propose a temporal kernal $K(m, k)$ to incorporate temporal dependencies, enabling efficient sequential retrieval of patterns over extended sequences. We demonstrate the successful application of this technique for the storage and sequential retrieval of movies frames which are well suited for this because of the high dimensional vectors that make up each frame creating enough variation between even sequential frames in the high dimensional space. The technique has applications in modern transformer architectures, including efficient long-sequence modeling, memory augmentation, improved attention with temporal bias, and enhanced handling of long-term dependencies in time-series data. Our model offers a promising approach to address the limitations of transformers in long-context tasks, with potential implications for natural language processing, forecasting, and beyond.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{farooq2025longsequence,
  title  = {Long-Sequence Memory with Temporal Kernels and Dense Hopfield Functionals},
  author = {Ahmed Farooq},
  year   = {2025},
  eprint = {2507.01052},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.01052v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.01052.svg)](https://codeofpaper.com/paper/2507.01052)

Discussion