- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper investigates linear attention, specifically information superposition within a fixed-size recurrent state, rather than full attention with a hidden state that grows with sequence length. The goal of the authors is to improve the separability of recurrent state information while maintaining and improving upon inference speed. Their proposal, RAM-Net, treats the fixed-size recurrent state similar to random access memory, where the recurrent state is treated like a vector address codebook. Keys and queries select which sections of the recurrent state to write to. Empirical results demonstrate significant improvement on long-horizon retrieval and comparable results on other benchmarks. Compared to similar linear attention baselines, RAM-Net also presents a significant speed-up due to only selecting a small subset of the recurrent state at each step.
Strengths and weaknesses
The authors' thoughtfully motivate both the problem and contextualize RAM-net against similar baselines. The paper builds from standard attention, to linear, then to RAM-net in a clear way that outlines how the subsequent contribution improves pitfalls of the previous. The authors' formalization of attention in terms of how internal state is organized and access provides a clear basis of comparison for difference methods. Based on my review, the authors also reference the relevant existing work and fairly compare existing results against their contributions, which yield favorable results to their idea. However, I found the gated sparse update to be overly complex, though their ablations in the appendix answered many of my questions about the approach. Beyond the ablations of different address sizes for updates and access, some contributed intuition or theory on address size would be useful. I also found the hybrid positional embedding approach (content v. cyclical) to not be particularly easy to understand. Lastly, a slot-based address system is likely harder to interpret in explainability settings, and performance seems sensitive to parameters around information decay. These being said, I was generally satisfied by the authors' stated limitation section.
Questions
- Can you explain further why a hybrid approach between cyclic v. content embeddings yield strongest performance? Is this purely an empirical finding, or is there some theory applied to this decision?
- In the case where key addressing is performing poorly, it appears that selective forgetting and subsequent retrieval could compound into both unstable training and unreliable inference. Can you speak to the stability of address-centric forgetting and updating in more detail?
Limitations
Generally yes, but I remain interested in further ablations on Gated sparse update, address size, and tuning the beam search operations used to make the d-dimensional Kronecker product tractable.
Paper formatting concerns
No concerns
Dear Reviewer PTRJ,
Thank you for the constructive feedback. We address each point below.
Re:Thank you for raising this. A useful intuition is to view RAM-Net as a differentiable, recurrent variant of a discretized Transformer. Starting from full attention, we quantize key and query directions into a fixed set of addresses, merge values sharing an address into one recurrent slot, and replace the growing KV cache with a fixed-size slot array. RAM-Net then relaxes this construction: Product Softmax learns soft sparse addresses, CAPE/NoPE controls how position affects them, and GSU learns how each slot retains or replaces its content.Addressing discretizes key-query selection. Let dk=2U, and view each key or query as U two-dimensional planes. Dividing each plane into dp angular sectors gives U sector indices, which jointly identify one of M=dpU slots. RAM-Net's Product Softmax is the differentiable version of this selection: each sub-vector softmax softly picks the sector of one plane, and the product of the U distributions defines the slot weights.
CAPE corresponds to RoPE with a special frequency schedule. Let the u-th RoPE plane have period dpu+1 tokens. After dividing the circle into dp equal sectors, its quantized phase advances by one sector every dpu tokens. Consequently, the U quantized phases behave exactly as the digits of a base-dp counter, including the carry operations between adjacent digits. Flattening these digits into a single address and adding position t modulo M implements the same counter evolution. CAPE can thus be understood as a discrete realization of RoPE under this specially constructed frequency schedule.
This also explains the hybrid CAPE/NoPE design. CAPE provides position-sensitive, high-frequency addressing for local order, whereas NoPE acts as the zero-frequency limit, preserving position-invariant content associations over long distances. Their combination therefore supports both local positional structure and global content retrieval; only the precise ratio and layer schedule are selected empirically.
Re:Thank you for raising this. GSU can be written more transparently by tracking the normalized slot state. Let S~t,i=St,i/zt,i be the normalized state of slot i, where St,i and zt,i are the i-th row of St and entry of zt in Eq. (8). Then Eq. (8) is equivalent tozt,i=αt,izt−1,i+wt,i,λt,i=zt,i+ϵwt,i,S~t,i=S~t−1,i+λt,i(vt−S~t−1,i).
Thus, GSU is simply a per-slot delta-rule update: the slot moves toward the incoming value with an automatically computed gain λt,i. The mass zt,i records how much has been written to the slot, and γt controls how quickly this mass is forgotten.
This update connects two familiar regimes:
Cumulative-average regime. When γt→−∞, we have αt,i→1, so no previous mass is forgotten. The slot therefore maintains the weighted cumulative average of all values written to it, analogous to how attention aggregates values over past tokens.
Exponential-moving-average regime. For finite γt, old mass is attenuated before each new write. The slot therefore behaves as a data-dependent EMA, as in gated linear attention.
GSU is therefore not an additional complex rule, but one delta rule whose learned γt moves each token and head between the two regimes. Moreover, unaddressed slots satisfy wt,i=0, hence αt,i=1 and λt,i=0, and remain exactly unchanged.
Re:Thank you for raising this. Eq. (4) makes an address a code of U digits at resolution dp, with M=dpU.M: interference pushes it up; trainability and fair comparison cap it. More slots reduce the chance that unrelated tokens must share one (App. B.1), so larger M is better in principle. But a larger array needs a longer context to train: at T=4K, M=4096 is the worst variant on S-NIAH-3 (5.4), and only at T=8K does it become the best (50.0). To keep the total state comparable to the linear baselines, we take M=1024.
dp: gradient concentration pushes it down, write attenuation pushes it up. Each softmax competes over dp components, and under Top-K the selected ones take the gradient, so a larger dp leaves more components poorly trained. The extreme, U=1 with one softmax over all M slots, is the weakest setting at every slot count in Fig. 6. In the other direction, a small dp makes the U-factor product deep and the retained weights exponentially small, weakening every write. dp=4 keeps the competition four-way and the product shallow (U=5).
We will add this account to the revision.
We view the address trace as a strict refinement of an attention map. Combining write addresses, read addresses, and slot dynamics recovers the token-to-token interaction map.
At the same time, the address trace exposes additional structure that an attention map omits, including where information is stored, how long it persists, and which tokens compete for the same slots. For example, we find that a token's lexical and syntactic category can be predicted purely from which slots it reads and writes (with 0.92–0.99 accuracy): the trace shows where each category of content is stored.
App. C visualizes these traces and their distinct CAPE/NoPE access patterns. If this direction interests you, we are glad to provide more of this analysis during the discussion.
Re:Thank you for raising this.The decay has no tuned value. γt is learned from the input, with its prior set to zero, so there is no decay constant to tune. The Table 4 row "Fixed γt=0" ablates exactly this choice: replacing the learned γt by a fixed value collapses S-NIAH-2/3. Therefore, the learned decay is effective, not fragile: it lets each token and head choose its own balance between the two regimes of W1.
Addressing errors are damped, not amplified. The concern is a loop: a wrong address erases useful content, the damaged state then misleads retrieval, and the errors build up. However, each link of this loop is broken by a property of the update in W1:
In practice, training has been stable at both 340M and 1.3B, with no loss spikes and no restarts.
Re:Thank you for raising this. For the first two items we have run additional ablations at 340M, under the unified Flame config. [1]. For the beam search, however, we show it is mathematically equivalent to exhaustive Top-K, so no tuning is needed.Gated sparse update. Its only degree of freedom γt is learned rather than tuned (W1). Moreover, the structural ablation is already in the paper: fixing γt=0 collapses S-NIAH-2/3 (Table 4; W5). Beyond it, we ablate the output RMSNorm, which normalizes the magnitude of the retrieved value: adding it brings the largest gain in our sweep, improving perplexity and retrieval together.
Address decoder. M and dp are analyzed in W2, including the Fig. 6 sweep over both. Beyond them, we sweep the decoder's remaining settings: the number of selected slots K, the address temperature τ, and the initialization bias r. At Top-32, RAM-Net leads every baseline we compare, Transformer++ included, on both language modeling and retrieval.
Beam search. Its output is identical to a direct Top-K over all M addresses.
Since the name "beam search" wrongly suggests an approximation, we will rename this step in the revision.
We will post the complete ablation tables during the discussion period.
Thank you again for the valuable feedback; we are happy to discuss any remaining questions.
Refs.
[1] Zhang et al. Flame: Flash Language Modeling Made Easy. 2025.