Temporal superposition and feature geometry of RNNs under memory demands

Pratyaksh Sharma, Alexandra M Proca, Lucas Prieto, Pedro Mediano

International Conference on Learning Representations 2026 · Oral

Overview

This talk, presented by Alexandra Proca and Pratyaksh Sharma at ICLR, delves into the intricate mechanisms by which Recurrent Neural Networks (RNNs) manage and represent information over time, particularly under varying memory demands. The core focus is on extending the concept of superposition, a phenomenon where neural networks compress a higher-dimensional feature space into a lower-dimensional neural space, to the temporal domain. The authors introduce temporal superposition to explain how RNNs represent features differently depending on their sequential position and the duration they need to be remembered for a task. This work offers crucial insights into the interpretability challenges of RNNs, particularly the pervasive issue of polysemanticity, where individual neurons respond to multiple, often unrelated, features.

Watch on SlidesLive

Visual summary for Temporal superposition and feature geometry of RNNs under memory demands by Pratyaksh Sharma, Alexandra M Proca, Lucas Prieto, Pedro Mediano
Visual summary for Temporal superposition and feature geometry of RNNs under memory demands by Pratyaksh Sharma, Alexandra M Proca, Lucas Prieto, Pedro Mediano

Key moments

  1. 0:00 Introduction: Polysemanticity and temporal superposition
  2. 2:00 Defining temporal superposition and K-delay task
  3. 5:20 Linear RNNs: Spiral sink feature geometry
  4. 6:00 SSMs: ReLU creates interference-free space, two regimes
  5. 8:00 Non-linear RNNs exploit space; spatial-temporal superposition interaction
  6. 9:00 Trade-off: Representing features vs. duration in memory
  7. 10:00 Summary of findings and Q&A on non-linearities
  8. 10:40 Q&A: Generalizability to other non-linearities

Temporal superposition and feature geometry of RNNs under memory demands

Speakers: Pratyaksh Sharma; Alexandra M Proca; Lucas Prieto; Pedro Mediano

Conference: ICLR 2026

YouTube: https://slideslive.com/39062175

Overview

This talk, presented by Alexandra Proca and Pratyaksh Sharma at ICLR, delves into the intricate mechanisms by which Recurrent Neural Networks (RNNs) manage and represent information over time, particularly under varying memory demands. The core focus is on extending the concept of superposition, a phenomenon where neural networks compress a higher-dimensional feature space into a lower-dimensional neural space, to the temporal domain. The authors introduce temporal superposition to explain how RNNs represent features differently depending on their sequential position and the duration they need to be remembered for a task. This work offers crucial insights into the interpretability challenges of RNNs, particularly the pervasive issue of polysemanticity, where individual neurons respond to multiple, often unrelated, features.

The research critically examines how the geometry of feature representations in RNNs is shaped by the need to store and retrieve information across time steps. By isolating the effects of time and sparsity, the speakers elucidate two distinct forms of interference—composition interference and projection interference—and uncover two geometric regimes: a "linear dense" regime characterized by a spiral sink solution, and a "non-linear sparse" regime where non-linearities enable the network to exploit an "interference-free space" for efficient memory management. This investigation is vital for understanding the capacity constraints of RNNs and for developing more interpretable and efficient recurrent architectures, moving beyond a static view of neural representations to embrace their dynamic nature.

Background

▶ Watch: Introduction: Polysemanticity and temporal superposition (0:00)

The interpretability of neural networks, especially deep learning models, remains a significant challenge. One pervasive issue is polysemanticity, where individual neurons do not exclusively encode a single, distinct feature but instead respond to a mixture of features or where many neurons collectively encode a single feature. This makes it difficult to ascertain what specific aspects of the input a neuron or a neural subspace represents. A leading hypothesis to explain polysemanticity is the superposition hypothesis. This hypothesis suggests that features are represented linearly as directions in the network's activation space. When the number of features that need to be represented exceeds the number of available neurons, and these features are sparse (i.e., they don't commonly co-occur), the network compresses these features by representing them non-orthogonally. This compression mechanism, termed spatial superposition in prior work by Elhage et al. (2022), primarily focuses on a static view of representational geometry, suitable for feedforward architectures where inputs are processed instantaneously.

However, this static view is insufficient for understanding Recurrent Neural Networks (RNNs), which inherently process sequential information and maintain internal states over time. In RNNs, the temporal dimension introduces a unique set of capacity constraints. Features are not just present; they persist, evolve, and must be selectively forgotten or remembered based on their relevance to future tasks. As the temporal window of relevant information increases, the network's capacity becomes increasingly strained, particularly when combined with a high-dimensional feature space. This temporal aspect necessitates a re-evaluation of the superposition hypothesis. The problem that this work addresses is precisely how these memory demands, inherent to sequential processing, affect the feature geometry within RNNs and how features are superposed not just spatially, but also temporally. Understanding this dynamic interplay is crucial for deciphering how RNNs encode, retain, and discard information, ultimately impacting their performance and interpretability in real-world sequential tasks.

Key Findings

▶ Watch: Linear RNNs: Spiral sink feature geometry (5:20)

The research presented unveils several critical findings regarding the dynamics and representational geometry of RNNs under memory demands:

  • Introduction of Temporal Superposition: The talk introduces and formalizes the concept of temporal superposition, arguing that RNNs exhibit a distinct form of superposition due to time. This means features are represented differently based on their sequential position and the duration they must remain relevant, acting as a crucial capacity constraint alongside spatial superposition.
  • Identification of Two Forms of Interference: The study identifies two primary mechanisms of interference that arise from superposition in RNNs: composition interference, which occurs when the activations of multiple features are linearly combined, and projection interference, where a feature's activation is erroneously read out at the wrong time step due to its alignment with the readout direction.
  • Discovery of Two Geometric Regimes based on Sparsity: The authors demonstrate that RNNs exhibit two distinct representational geometry regimes depending on the sparsity of the input data. In the "linear dense" regime, characteristic of linear RNNs and non-linear RNNs trained on dense data, features arrange into a spiral sink geometry, where feature directions smoothly decay towards the origin. In contrast, the "non-linear sparse" regime, enabled by non-linearities (like ReLU) and high sparsity, allows the network to exploit an interference-free space to pack task-relevant features and implement sharp, immediate forgetting.
  • Interaction of Temporal and Spatial Superposition: The research explores how temporal and spatial superposition interact when vector inputs are combined with varying memory demands. It reveals a fundamental trade-off: an RNN's incentive to represent multiple input features is inversely related to the duration each feature must be maintained in memory. This interaction leads to an "all or none" representational strategy, where features are either maintained for the entire required duration or dropped altogether if capacity is insufficient.

Technical Deep Dive

▶ Watch: Non-linear RNNs exploit space; spatial-temporal superposition interaction (8:00)

The core of this work lies in understanding the representational geometry of RNNs under the influence of time and memory. The authors introduce temporal superposition to account for the fact that features in RNNs have a temporal component, meaning their representation depends on when they occur and when they are needed. Unlike feedforward networks where features are immediately available, RNNs must actively hold features in memory for specific durations.

To precisely control the memory demand, the researchers employ the K-delay task. In this task, the model is trained to reproduce the input sequence after a fixed delay of K time steps. Thus, K directly dictates how long a feature must be remembered. At any given time T, the model must hold features from a K+1 length memory window, identify the output feature for time T, and forget old, task-irrelevant features. The study varies both the temporal sparsity of the sequence and, for vector inputs, the sparsity of the input features themselves.

The analysis is conducted using three model architectures:

  1. Fully Linear Model: An RNN with linear recurrence and linear readout.
  2. State Space Model (SSM): Features a linear recurrence but applies a ReLU non-linearity to the output.
  3. Non-linear RNN: Incorporates a ReLU non-linearity in both the recurrence and the readout.

Analysis of the Fully Linear RNN

The initial focus is on the fully linear RNN to isolate the effects of time. For scalar inputs and outputs in a 2D hidden state, the hidden layer can be rewritten to show how each input from time I is independently and linearly represented by a feature direction vector, WS. At time T, the network has access to the entire history of T input features. However, it becomes bottlenecked if T exceeds the hidden state dimension. Only feature directions that project onto the readout direction influence the RNN's output.

The researchers derive the expectation of the loss function, which comprises four interpretable terms:

  • Task Benefit: Minimized when the current output feature aligns with the readout direction at the correct time.
  • Mean Correction Term: Acts as a bias.
  • Projection Interference Cost: Penalizes feature directions that align with the readout at the wrong time, causing spurious outputs.
  • Composition Interference Term: Encourages negative interference among feature directions to promote their spread in activation space.

The resulting geometry for the linear RNN is a spiral sink. Feature directions for past inputs spiral into the origin over time. A feature input at time T shifts into the spiral after one recurrence application, continues spiraling for K time steps (during which it is read out), and then spirals further into the origin, leading to smooth forgetting. Crucially, linear RNNs consistently implement this spiral sink solution, irrespective of sparsity levels. This is termed the "linear dense feature solution," as non-linear RNNs in the dense regime also approximate this behavior.

Impact of Non-linearity: The State Space Model (SSM)

Adding a ReLU non-linearity to the readout significantly alters the geometry. The ReLU ensures that the model only produces output for vectors with a positive projection onto the readout direction, effectively canceling out any negative projections. In the sparse regime, this positive half-space of the activation space becomes "essentially interference-free." The network is incentivized to pack as many intermediate features as possible into this half-space to minimize projection interference.

Despite its linear recurrence, the SSM demonstrates two distinct regimes when sparsity is varied:

  • Dense Regime: When trained on dense data, the SSM still arranges features into a spiral sink, with the angle K theta (span of task-relevant features) being around 90 degrees. It does not fully utilize the interference-free space.
  • Sparse Regime: When features are sparse, task-relevant feature directions spread out into approximately 270 degrees, traversing the entirety of the interference-free space to reach the readout direction. This demonstrates a "phase change" in K theta as sparsity is varied, highlighting the ReLU's role in facilitating efficient representation under sparse conditions.

Full Non-linear RNN with ReLU Recurrence

Introducing a ReLU non-linearity to the recurrence, in addition to the readout, further enhances the RNN's capabilities in the sparse regime. These non-linear RNNs fully exploit the interference-free space by packing all intermediate, task-relevant features into this positive quadrant of the hidden layer. More importantly, the ReLU on the recurrence enables sharp immediate forgetting. By sending feature directions to the negative quadrant of the hidden layer, the ReLU effectively removes them from consideration, preventing future interference. This allows the model to represent only task-relevant features within the positive quadrant, efficiently managing its memory and preventing interference from past, irrelevant information.

Interaction of Spatial and Temporal Superposition

Finally, the study investigates the interaction between spatial and temporal superposition by using vector inputs (to introduce spatial superposition) and varying K (for temporal superposition).

  • When K=0, the RNN acts like a feedforward network, immediately outputting the input. In this scenario, there's no need for temporal representation, and the system recovers the pure spatial superposition setting described by Elhage et al. (2022).
  • As K increases, a non-linear RNN faces a trade-off: balancing the representation of multiple input features against the duration each feature must be maintained. For example, for K=1, the RNN might represent features A, B, and C for two time steps but drop D and E. For K=2, C might also be dropped. For higher K, the RNN might eventually only represent the most important feature, A.

This reveals an "all or none" strategy: to gain any advantage from representing a feature, the RNN must have sufficient capacity to maintain it in memory for all K+1 required time steps. If capacity is insufficient for the full duration, the feature is dropped entirely. This explains why K+1 feature directions are consistently observed for the most important feature (A), while other features are only represented for lower K values where the network has sufficient capacity.

In a post-talk question about extending these findings to deeper architectures or other non-linearities (e.g., tanh), the speakers indicated that while analytical complexity increases, similar principles are expected. For non-linearities with shapes that cancel out negative projections (e.g., tanh in its saturating regions), similar effects on interference and memory management could be observed, and preliminary experiments with tanh networks showed similar results.

Experimental Setup & Results

▶ Watch: Trade-off: Representing features vs. duration in memory (9:00)

The experimental methodology centered around the K-delay task, designed to precisely control the memory demands placed on the RNN. In this task, the models were trained to reproduce an input sequence after a fixed delay of K time steps. This parameter K directly served as the control for memory demand, dictating how long a feature needed to be actively remembered for successful task completion.

The study employed both scalar inputs (primarily for isolating and visualizing the effects of time in a 2D hidden state) and vector inputs (to introduce spatial superposition and study its interaction with temporal superposition). The hidden state dimension for the initial analyses with scalar inputs was set to 2D, allowing for clear visualization of feature directions and their evolution over time in activation space.

Sparsity was a key experimental variable, manipulated in two ways:

  • Temporal sparsity: The sparsity of the input sequence itself, influencing how often task-relevant features appear.
  • Input sparsity: For vector inputs, the sparsity of the individual feature vectors.

The models evaluated included:

  1. A fully linear RNN (linear recurrence, linear readout).
  2. A State Space Model (SSM) (linear recurrence, ReLU readout).
  3. A non-linear RNN (ReLU recurrence, ReLU readout).

Headline Results and Observations:

  • Linear Dense Regime (Spiral Sink): For the fully linear RNN, regardless of sparsity, and for non-linear RNNs trained on dense data, the feature geometry consistently manifested as a spiral sink. Feature directions, representing past inputs, smoothly spiraled into the origin over time, indicating a gradual, continuous forgetting mechanism. This behavior was characterized by K theta (the angle spanned by task-relevant features) being around 90 degrees in the SSM for dense data.
  • Non-linear Sparse Regime (Interference-Free Space): When non-linearities (ReLU) were introduced, particularly in the readout and recurrence, and combined with high sparsity, the models exhibited a different strategy. The ReLU on the readout created an "interference-free half-space." In the sparse regime, the SSM learned to pack the largest feature directions into this space, spreading task-relevant features over approximately 270 degrees of K theta to reach the readout direction, demonstrating a significant shift from the dense regime.
  • Sharp Immediate Forgetting: The non-linear RNN, with ReLU on both recurrence and readout, fully exploited the interference-free space. It achieved sharp immediate forgetting by using the recurrence ReLU to send irrelevant feature directions to the negative quadrant of the hidden layer, effectively removing them from further processing and preventing interference. This allowed the model to maintain only task-relevant features in the positive quadrant.
  • Trade-offs in Combined Superposition: When both spatial (vector inputs) and temporal (varying K) superposition were active, the non-linear RNN displayed a clear trade-off. As K increased, the network prioritized representing the most important features for the entire K+1 duration, often at the expense of dropping other features entirely. This "all or none" strategy highlights the capacity limits and the network's adaptive strategy to manage memory under severe temporal constraints. For instance, for the most important feature 'A', K+1 feature directions were consistently observed, demonstrating its full retention across the required memory window, while other features were dropped for higher K values.

The experiments empirically validated the theoretical derivations regarding the loss function terms and their impact on feature geometry, providing concrete examples of composition and projection interference and how non-linearities mitigate them.

Practical Implications

▶ Watch: Q&A: Generalizability to other non-linearities (10:40)

The findings from this research have several crucial implications for practitioners, infrastructure teams, model builders, and deployers working with recurrent neural networks:

  • Understanding RNN Capacity Limits: The concept of temporal superposition and the "all or none" representational strategy under high K (memory demand) directly highlight fundamental capacity limitations of RNNs. Practitioners should be aware that beyond a certain memory threshold, RNNs may not gradually degrade in performance across all features but might instead completely drop less salient features. This has implications for tasks requiring long-term, multi-faceted memory, such as complex language modeling or long-horizon control.
  • Importance of Non-linearities for Memory Management: The study clearly demonstrates that non-linearities, particularly ReLU, are not merely for introducing non-linearity into representations but are critical for efficient memory management. ReLUs enable the creation of "interference-free spaces" and facilitate sharp immediate forgetting, which is far more efficient than the smooth, gradual decay seen in linear models. This suggests that the choice and placement of non-linear activation functions in recurrent architectures should be carefully considered for tasks with significant memory demands.
  • Interpreting Polysemanticity in Dynamic Systems: This work provides a framework for understanding polysemanticity in a dynamic context. It explains how neurons might respond to mixtures of features not just due to spatial compression but also because features need to be represented differently at various time steps or for different durations. This dynamic view is essential for developing more sophisticated interpretability tools for RNNs, moving beyond static activation analyses.
  • Trade-offs in Model Design: Model builders must consider the inherent trade-off between the number of features an RNN can represent and the duration for which those features must be remembered. If a task requires maintaining many diverse features over long sequences, designing architectures with higher effective capacity or alternative memory mechanisms (e.g., attention, external memory) might be more suitable than relying solely on standard RNNs.
  • Benchmarking and Evaluation: When benchmarking RNNs, it's crucial to evaluate performance not just on overall accuracy but also on how well specific features are retained and processed over time, especially under varying memory loads (e.g., different K values in K-delay-like tasks). This can reveal architectural weaknesses or strengths related to temporal information processing.
  • Hardware and Software Stack Considerations: While not directly addressed in the talk, an understanding of these fundamental representational strategies could inform the design of specialized hardware or software optimizations. For instance, if certain activation functions are critical for efficient memory management, their computational efficiency on target hardware becomes even more paramount.

The primary limitation highlighted is the inherent "all or none" strategy: once an RNN's capacity is exceeded, it makes a hard choice to drop features rather than gracefully degrade. This suggests that for applications requiring robust, long-term memory for a diverse set of features, standard RNNs might reach a hard ceiling.

Key Takeaways

  • Temporal Superposition is Key for RNNs: RNNs exhibit temporal superposition, where features are represented differently based on their sequential position and memory duration, acting as a critical capacity constraint alongside spatial superposition.
  • Two Forms of Interference: Composition interference (linear combination of features) and projection interference (misaligned readout in time) are identified as key challenges in RNN feature representation.
  • Sparsity Drives Geometric Regimes: RNNs operate in two regimes: a "linear dense" regime with a spiral sink geometry for smooth forgetting, and a "non-linear sparse" regime where non-linearities enable efficient memory management.
  • Non-linearities Enable Efficient Forgetting: ReLU non-linearities are crucial for creating "interference-free spaces" and facilitating sharp immediate forgetting by actively removing irrelevant features from the hidden state.
  • Trade-off Between Features and Memory Duration: There is an "all or none" trade-off: RNNs must have sufficient capacity to maintain a feature for its entire required duration (K+1 time steps) or they will drop it entirely, especially when balancing multiple features.
  • Insights for Interpretability: This work provides a dynamic framework for understanding polysemanticity in RNNs, emphasizing the role of time and memory demands in shaping feature geometry.

About the Speaker(s)

The talk was presented by Alexandra Proca and Pratyaksh Sharma, who are part of a research group that includes Lucas Prieto and Pedro Mediano. Their work focuses on the fundamental mechanisms and interpretability of neural networks, particularly concerning how these networks represent and manage information over time. While specific titles and affiliations were not detailed in the transcript, their expertise clearly lies in theoretical machine learning and neural network dynamics.

Reviews

→ Top-rated talks at International Conference on Learning Representations 2026

All talks from International Conference on Learning Representations 2026