potentialpaper

RAM-Net: Linear-Time Sequence Modeling with Sparsely Addressable State

Kaicheng Xiao, Haotian Li, Liran Dong, Guoliang Xing

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Instead of superposing all tokens into a shared matrix, RAM-Net gives each token addressed slots — like computer RAM — suppressing inter-token interference while keeping per-step cost proportional to slots accessed, not total state size.

Abstract. Linear attention offers an efficient alternative to full attention with a fixed-size recurrent state. However, this state is shared by all tokens, so information from distinct tokens becomes superposed within it and produces inter-token interference that degrades long-range fine-grained recall. To address this issue, we propose RAM-Net, which replaces dense access to a shared state with sparse address-based access. RAM-Net organizes the recurrent state as a fixed-size array of independent slots and uses an Address Decoder that maps each key or query into a sparse address, selecting a small subset of slots to write to or read from at each step. This design directs tokens with non-overlapping addresses to disjoint slots, suppressing inter-token interference, while keeping per-step state access dependent only on the number of selected slots rather than the total state size. Empirically, RAM-Net outperforms strong recurrent baselines on fine-grained long-range retrieval and achieves competitive perplexity and commonsense reasoning. It does so while accessing fewer state elements per step than all baselines, e.g., 7.6×7.6\times fewer than Mamba2.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

RAM-Net is a linear-time sequence model that replaces a densely accessed recurrent state with a fixed array of sparsely addressable slots. Keys and queries produce sparse write/read addresses via a product-softmax Address Decoder, positional information is injected through a cyclic address shift, and a gated sparse update modifies only the selected slots. The main claim is that this substantially improves long-range retrieval over strong linear recurrent baselines while keeping competitive language-modeling quality and decoding throughput.

Strengths

  • Targets a real weakness of linear recurrent models: interference from superposing many tokens in a shared state.
  • Well-motivated, clearly presented formulation; the state-granularity / access-pattern framing cleanly positions the contribution.
  • Strong retrieval results (notably OOD S-NIAH-1), supported by large-scale training, useful ablations, and an end-to-end decoding-speed evaluation.

Reviewer-Identified Weaknesses

  1. Missing closest baselines — no comparison to Gated Slot Attention or other slot-partitioned models, so gains cannot be attributed to the core idea vs. the surrounding Address Decoder / CAPE / gated-update machinery.
  2. Incomplete large-scale evidence — the 1.3B experiments lack comparable linear recurrent baselines and long-context retrieval.
  3. Narrow retrieval evaluation — gains concentrate on synthetic/structured benchmarks; weaker on S-NIAH-2/3. Real-world/natural-text retrieval would help.
  4. Under-examined optimization — possible instability from sparse routing, top-k truncation, and product-softmax factorization is not studied; CAPE's positional shift is weakly justified given the data-dependent selection mechanism.

AC has the following concern:

CAPE keeps only one of RoPE's two properties. CAPE preserves translation invariance (overlap depends on t−s) but not smoothness: RoPE uses cos/sin(ω·pos), an analytic function of continuous position giving a differentiable, multi-scale encoding, whereas CAPE applies a cyclic permutation to slot indices — a step-wise, non-smooth reindexing that re-routes identical content to a different slot and aliases past the cycle length. This sharpens Reviewer frmz's CAPE concern.

Expected in Rebuttal

  1. A comparison against at least one closest slot-based baseline (Gated Slot Attention or a simplified slot-partitioned model), to isolate the core idea.
  2. Clarify CAPE — either justify why smoothness is unnecessary in the discrete slot space, or run a low-cost probe: compare next-token predictions for a fixed passage with vs. without *kneutral filler tokens prepended (shifts absolute position by k, leaves relative distances unchanged). Report KL between the two next-token distributions, split by CAPE vs. NoPE heads, as a function of head cycle length, and across several shift magnitudes (to reveal aliasing), against a Transformer++ / NoPE-only control. A neutral filler avoids confounding the shift with token semantics.
  3. Some evidence on a realistic retrieval task, plus a brief note on total vs. active memory and routing overhead.
  4. 1.3B results with comparable linear recurrent baselines, ideally with long-context retrieval.
  5. A precise account of the beam-search decoding: state it is approximate, report the beam width, and report agreement with exact Top-K.

A convincing response would make me comfortable about my current assessment.

Final justification

The main concerns raised in the initial reviews were the absence of a close slot-based baseline, incomplete evidence at 1.3B scale, limited evaluation on realistic retrieval tasks, and questions regarding CAPE, sparse-routing stability. The rebuttal strengthened the paper along each of these dimensions. In particular, the authors added Gated Slot Attention as a close baseline, expanded the evaluation to real-world recall tasks and long-context retrieval at 1.3B scale, provided total-versus-active-state comparisons, performed additional CAPE and short-convolution ablations and positional-invariance probes, and clarified that the proposed Top-K address search is exact rather than approximate. These additions support the paper's central claim more convincingly. The additional experiments also provide evidence that the proposed routing mechanism trains stably at the evaluated scales. Some limitations remain. In particular, some architectural choices would benefit from further theoretical understanding. However, I view these as directions for follow-up work rather than issues that undermine the main contribution.

The reviewers were generally satisfied with the rebuttal and discussion, with reviewers maintaining or increasing their positive assessments. Overall, I find the contribution technically solid, novel, and supported by a strengthened empirical evaluation.

Area Chair gup9 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

RAM-Net is a linear-time sequence model that replaces a densely accessed recurrent state with a fixed array of sparsely addressable slots. Keys and queries produce sparse write/read addresses via a product-softmax Address Decoder, positional information is injected through a cyclic address shift, and a gated sparse update modifies only the selected slots. The main claim is that this substantially improves long-range retrieval over strong linear recurrent baselines while keeping competitive language-modeling quality and decoding throughput.

Strengths

  • Targets a real weakness of linear recurrent models: interference from superposing many tokens in a shared state.
  • Well-motivated, clearly presented formulation; the state-granularity / access-pattern framing cleanly positions the contribution.
  • Strong retrieval results (notably OOD S-NIAH-1), supported by large-scale training, useful ablations, and an end-to-end decoding-speed evaluation.

Reviewer-Identified Weaknesses

  1. Missing closest baselines — no comparison to Gated Slot Attention or other slot-partitioned models, so gains cannot be attributed to the core idea vs. the surrounding Address Decoder / CAPE / gated-update machinery.
  2. Incomplete large-scale evidence — the 1.3B experiments lack comparable linear recurrent baselines and long-context retrieval.
  3. Narrow retrieval evaluation — gains concentrate on synthetic/structured benchmarks; weaker on S-NIAH-2/3. Real-world/natural-text retrieval would help.
  4. Under-examined optimization — possible instability from sparse routing, top-k truncation, and product-softmax factorization is not studied; CAPE's positional shift is weakly justified given the data-dependent selection mechanism.

AC has the following concern:

CAPE keeps only one of RoPE's two properties. CAPE preserves translation invariance (overlap depends on t−s) but not smoothness: RoPE uses cos/sin(ω·pos), an analytic function of continuous position giving a differentiable, multi-scale encoding, whereas CAPE applies a cyclic permutation to slot indices — a step-wise, non-smooth reindexing that re-routes identical content to a different slot and aliases past the cycle length. This sharpens Reviewer frmz's CAPE concern.

Expected in Rebuttal

  1. A comparison against at least one closest slot-based baseline (Gated Slot Attention or a simplified slot-partitioned model), to isolate the core idea.
  2. Clarify CAPE — either justify why smoothness is unnecessary in the discrete slot space, or run a low-cost probe: compare next-token predictions for a fixed passage with vs. without *kneutral filler tokens prepended (shifts absolute position by k, leaves relative distances unchanged). Report KL between the two next-token distributions, split by CAPE vs. NoPE heads, as a function of head cycle length, and across several shift magnitudes (to reveal aliasing), against a Transformer++ / NoPE-only control. A neutral filler avoids confounding the shift with token semantics.
  3. Some evidence on a realistic retrieval task, plus a brief note on total vs. active memory and routing overhead.
  4. 1.3B results with comparable linear recurrent baselines, ideally with long-context retrieval.
  5. A precise account of the beam-search decoding: state it is approximate, report the beam width, and report agreement with exact Top-K.

A convincing response would make me comfortable about my current assessment.

Final justification

The main concerns raised in the initial reviews were the absence of a close slot-based baseline, incomplete evidence at 1.3B scale, limited evaluation on realistic retrieval tasks, and questions regarding CAPE, sparse-routing stability. The rebuttal strengthened the paper along each of these dimensions. In particular, the authors added Gated Slot Attention as a close baseline, expanded the evaluation to real-world recall tasks and long-context retrieval at 1.3B scale, provided total-versus-active-state comparisons, performed additional CAPE and short-convolution ablations and positional-invariance probes, and clarified that the proposed Top-K address search is exact rather than approximate. These additions support the paper's central claim more convincingly. The additional experiments also provide evidence that the proposed routing mechanism trains stably at the evaluated scales. Some limitations remain. In particular, some architectural choices would benefit from further theoretical understanding. However, I view these as directions for follow-up work rather than issues that undermine the main contribution.

The reviewers were generally satisfied with the rebuttal and discussion, with reviewers maintaining or increasing their positive assessments. Overall, I find the contribution technically solid, novel, and supported by a strengthened empirical evaluation.

1 comment
Authors · CommentOpenReview ↗

Response to Meta Review

Dear Area Chair gup9,

Thank you for the precise checklist. We address every point you raised. To keep this letter easy to follow, each item is summarized below with a pointer to the rebuttal or comment that carries the full tables.

E1 & W1. A slot-based baseline.

  • We added GSA, re-run under the same Flame config. [1] as all other baselines at 340M.
  • RAM-Net Top-32 outperforms every baseline on perplexity, commonsense accuracy and S-NIAH average, GSA included. Slots alone are not the mechanism: GSA accesses all of slots at each step, whereas RAM-Net selects only a few. comment to frmz-Parts 1 and 2

E2 & W4 & CAPE concern.

  • Why smoothness is unnecessary. Both RoPE and CAPE are multi-scale, differentiable in the k/q vectors, which is the dimension the gradient flows through. They differ only in the position tt: RoPE is defined for real tt, CAPE only for integer tt. That difference only matters when positions are rescaled to fractional values, as in the position interpolation used to extend context. However, RAM-Net does not rely on position interpolation, since it extrapolates to longer contexts on its own, as its S-NIAH results beyond the training length show. rebuttal to frmz-Q2 comment to frmz-Part 1

  • A correction. The numbers {16, 8, 4, 2, 1} in App. A are the per-layer counts of CAPE heads, not cycle lengths. All CAPE heads share one cycle length, the full M=1024M = 1024 slots. We apologize for the imprecise wording, which shaped part of your analysis, and will fix it. rebuttal to PTRJ-W3/Q1

  • The probe you specified, and two further checks. None of them shows an effect at the wrap. rebuttal to frmz-Q2

    • Neutral filler. We prepend kk filler tokens to a fixed passage and measure the KL between the next-token distributions with and without the prefix. It stays below Transformer++'s at every kk, with no discontinuity at k=1024k = 1024, where the cyclic shift returns to its start.
    • Position-ID shift. We add a constant to every position ID, rotating every CAPE address, and measure the KL against the unshifted run. It stays at numerical noise, so the predictions are invariant to it.
    • Per-position loss. A spectral decomposition puts the period-1,024 component at about 0.3% of the loss variation, leaving no periodic structure.

E3 & W3. Realistic retrieval, memory, routing.

  • Realistic retrieval. We added the real-world recall tasks from [2]. RAM-Net is the strongest fixed-state model at both 340M and 1.3B. comment to frmz-Part 3
  • Total against active memory. At 340M, RAM-Net Top-8 holds 26.2M elements and reads or writes 0.4M per step, whereas GLA (3.1M), Gated DeltaNet (8.5M) and Mamba2 (12.9M) access all of theirs every step. comment to frmz-Part 2
  • Routing overhead.
    • In theory, sorting the dpd_p component weights of a sub-vector takes O(dplog⁡dp)O(d_p \log d_p), and merging them with the KK beams to keep the KK largest products takes O(Klog⁡dp)O(K \log d_p). Over the UU sub-vectors this is O(U(dp+K)log⁡dp)O(U(d_p + K)\log d_p) per token, linear in UU, rather than the O(M)=O(dpU)O(M) = O(d_p^U) of forming the full address distribution.
    • Empirically, decoding throughput matches GLA, whose whole state (3.1M) is closest to our active 0.4M, and exceeds Mamba2 and Gated DeltaNet (Fig. 5). Speed therefore follows the active state, not the total.

E4 & W2. 1.3B.

  • Transformer++, Gated DeltaNet and RAM-Net Top-8 are trained on 100B tokens and evaluated on language modeling, commonsense reasoning, S-NIAH to 16K and real-world recall.
  • RAM-Net attains the best perplexity and the best S-NIAH average. We regret that our compute budget did not allow more runs at this scale in time; more 1.3B models will be trained and added to the revision. comment to 5on7-Part 1

E5. Beam search. The decoding is exact rather than approximate, and the beam width equals KK. Since an address weight is a product of positive factors, a dropped candidate cannot re-enter the final Top-K, so the search returns exactly the Top-K of the full MM-dimensional product. We also confirmed this numerically (rebuttal to PTRJ-Limitations).

W4. Instability.

  • Mechanism. The product softmax replaces one MM-way competition with UU separate dpd_p-way ones, and we do not renormalize after Top-K, so unselected components keep receiving gradient (rebuttal to 5on7-W2). Moreover, a wrong address does limited damage: an uncertain address barely changes the slots it accesses, and slot contents stay bounded, so errors decay instead of accumulating (rebuttal to PTRJ-W5).
  • Evidence. Every configuration we report converged with no loss spike or restart. comment to 5on7-Part 2

We are grateful for your review, which made our evaluation considerably more complete. We look forward to discussing with you further.

Refs.

[1] Yu Zhang and Songlin Yang. Flame: Flash Language Modeling Made Easy. 2025.

[2] Arora et al. Just Read Twice. arXiv:2407.05483.

Reviewer PTRJOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

Formatting concerns

No concerns

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Dear Reviewer PTRJ,

Thank you for the constructive feedback. We address each point below.

W3/Q1 + AC E2: Why does the hybrid CAPE/NoPE design work, and is it theoretically motivated?

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=2Ud_k=2U, and view each key or query as UU two-dimensional planes. Dividing each plane into dpd_p angular sectors gives UU sector indices, which jointly identify one of M=dpUM=d_p^U 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 UU distributions defines the slot weights.

CAPE corresponds to RoPE with a special frequency schedule. Let the uu-th RoPE plane have period dpu+1d_p^{u+1} tokens. After dividing the circle into dpd_p equal sectors, its quantized phase advances by one sector every dpud_p^u tokens. Consequently, the UU quantized phases behave exactly as the digits of a base-dpd_p counter, including the carry operations between adjacent digits. Flattening these digits into a single address and adding position tt modulo MM 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.

W1: The GSU appears overly complex.

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\tilde{\mathbf S}_{t,i} = \mathbf S_{t,i} / z_{t,i} be the normalized state of slot ii, where St,i\mathbf S_{t,i} and zt,iz_{t,i} are the ii-th row of St\mathbf S_t and entry of zt\mathbf z_t in Eq. (8). Then Eq. (8) is equivalent to

zt,i=αt,izt−1,i+wt,i,λt,i=wt,izt,i+ϵ,S~t,i=S~t−1,i+λt,i(vt−S~t−1,i).z_{t,i}=\alpha_{t,i}z_{t-1,i}+w_{t,i},\qquad \lambda_{t,i} =\frac{w_{t,i}}{z_{t,i}+\epsilon},\qquad \tilde{\mathbf S}_{t,i} = \tilde{\mathbf S}_{t-1,i} + \lambda_{t,i} \left( \mathbf v_t-\tilde{\mathbf S}_{t-1,i} \right).

Thus, GSU is simply a per-slot delta-rule update: the slot moves toward the incoming value with an automatically computed gain λt,i\lambda_{t,i}. The mass zt,iz_{t,i} records how much has been written to the slot, and γt\gamma_t controls how quickly this mass is forgotten.

This update connects two familiar regimes:

  • Cumulative-average regime. When γt→−∞\gamma_t\to-\infty, we have αt,i→1\alpha_{t,i}\to1, 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\gamma_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\gamma_t moves each token and head between the two regimes. Moreover, unaddressed slots satisfy wt,i=0w_{t,i}=0, hence αt,i=1\alpha_{t,i}=1 and λt,i=0\lambda_{t,i}=0, and remain exactly unchanged.


W2: Intuition or theory on address size would be useful.

Re: Thank you for raising this. Eq. (4) makes an address a code of UU digits at resolution dpd_p, with M=dpUM = d_p^U.

  • MM: 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 MM is better in principle. But a larger array needs a longer context to train: at T=4T = 4K, M=4096M = 4096 is the worst variant on S-NIAH-3 (5.4), and only at T=8T = 8K does it become the best (50.0). To keep the total state comparable to the linear baselines, we take M=1024M = 1024.

  • dpd_p: gradient concentration pushes it down, write attenuation pushes it up. Each softmax competes over dpd_p components, and under Top-K the selected ones take the gradient, so a larger dpd_p leaves more components poorly trained. The extreme, U=1U = 1 with one softmax over all MM slots, is the weakest setting at every slot count in Fig. 6. In the other direction, a small dpd_p makes the UU-factor product deep and the retained weights exponentially small, weakening every write. dp=4d_p = 4 keeps the competition four-way and the product shallow (U=5U = 5).

We will add this account to the revision.


W4: A slot-based address system may be harder to interpret.

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.


W5 + AC W4: Performance seems sensitive to parameters around information decay.

Q2: Could poor addressing and forgetting compound into unstable training and inference?

Re: Thank you for raising this.

The decay has no tuned value. γt\gamma_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\gamma_t = 0" ablates exactly this choice: replacing the learned γt\gamma_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:

  • Erasing requires confident writing. A token can strongly decay a slot only when it also writes to it with a large weight wt,iw_{t,i}. Therefore, an uncertain address, with its weight spread thin, erases little.
  • Even a confident wrong write moves a full slot little. The write gain is λ=w/z\lambda = w / z: the more mass zz a slot has accumulated, the smaller the step one write causes. Therefore, established content survives occasional wrong writes.
  • The state stays bounded. Every slot is a weighted average of the values written to it, so its magnitude never exceeds theirs and no error can be amplified through the state.

In practice, training has been stable at both 340M and 1.3B, with no loss spikes and no restarts.


Limitations + AC E5: Further ablations: gated sparse update, address size, beam search tuning.

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\gamma_t is learned rather than tuned (W1). Moreover, the structural ablation is already in the paper: fixing γt=0\gamma_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. MM and dpd_p 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 KK, the address temperature τ\tau, and the initialization bias rr. 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 MM addresses.

    • Mathematically, the two are equivalent. At each sub-vector, the search keeps the KK candidates with the largest partial products and drops the rest. Dropping loses nothing: a dropped candidate has KK candidates above it, and whichever components it would take in later sub-vectors, those KK can take the same ones and stay above it. Therefore, the KK largest complete addresses always survive.
    • Numerically, we verified this equivalence directly. The two computations differ only by floating-point rounding in the weights. We ran both on 5,000 random address distributions, and they picked the same slots in every trial.

    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.

Reviewer PTRJ · CommentOpenReview ↗

Response to Rebuttal

Thank you for the additional clarifications and baselines. I maintain my score of accept.

Authors · CommentOpenReview ↗

Complete Ablation Results (Promised in Our Response to Limitations)

Dear Reviewer PTRJ,

Thank you for your positive assessment. To complete our rebuttal, below are the full ablation results promised in our response to Limitations.

Setup. All 340M models are trained on 10B tokens (4K context) under the unified Flame configuration. Beyond the submission's baselines, we add GSA [1], the closest slot-based baseline, and evaluate RAM-Net at Top-8/16/32, ablating:

  • write/read split: writing 4 slots while reading 12;
  • output RMSNorm: RMSNorm on the output retrieved from the state;
  • r: the initialization bias range, giving each slot a distinct initial addressing preference (App. A);
  • τ: the address temperature (Eq. 4);
  • peak LR;
  • CAPE/NoPE composition.

The default config is Top-K=8K = 8, τ=2.2\tau = 2.2, r=1.0r = 1.0, RMSNorm on, peak LR 10−310^{-3}.

Bold: best among baselines and RAM-Net Top-8/16/32.

Model Wiki. ppl↓ LMB.↑ MMLU↑ ARC-e↑ ARC-c↑ OBQA↑ SciQ↑ BoolQ↑ COPA↑ PIQA↑ Hella.↑ Wino.↑ S1-4K↑ S2-4K↑ S3-4K↑
Transformer++ 26.81 33.1 23.1 57.7 24.7 32.0 82.9 55.9 66.0 65.8 33.3 52.2 81.0 74.7 31.3
Gated DeltaNet 26.85 32.4 23.4 57.9 25.0 35.0 83.3 58.9 67.0 66.8 33.9 50.2 98.7 37.3 2.3
Mamba2 26.23 33.9 23.1 59.2 24.2 33.8 83.4 59.6 71.0 67.7 33.9 50.4 77.0 12.0 5.3
GLA 30.03 30.4 23.2 56.9 25.0 32.4 81.6 56.8 66.0 66.4 32.7 50.7 5.7 6.3 0.0
GSA 29.17 32.7 23.0 59.3 25.8 35.8 83.0 57.4 66.0 66.4 33.3 49.8 31.7 11.0 0.0
RAM-Net Top-8 (default) 26.89 28.7 23.6 59.1 24.7 34.4 82.5 57.4 67.0 66.9 33.4 54.1 99.7 83.7 18.3
– Top-16 26.23 29.7 23.5 59.4 26.1 33.0 82.8 58.6 69.0 67.2 33.8 51.4 100.0 88.0 25.7
– Top-32 25.87 30.9 23.8 58.9 26.1 32.2 82.8 61.6 70.0 67.2 33.7 52.7 100.0 94.0 44.7
Ablations:
– write 4, read 12 27.98 27.3 23.7 58.8 26.5 33.4 81.4 60.2 68.0 66.2 33.1 51.9 98.0 45.3 17.0
– output RMSNorm off 28.87 26.3 23.8 57.9 24.1 33.0 82.0 59.6 67.0 66.6 32.6 53.1 99.7 16.3 12.3
– r=0.0r = 0.0 28.18 27.1 23.5 56.7 24.8 32.6 81.0 59.4 70.0 67.0 32.5 53.1 100.0 27.7 5.3
– r=1.5r = 1.5 26.63 29.4 24.6 59.7 25.7 34.0 81.2 58.2 67.0 66.5 34.0 52.3 100.0 58.7 25.7
– τ=1.5\tau = 1.5 26.61 29.5 24.4 58.0 24.8 33.0 81.5 56.1 64.0 67.0 33.4 52.3 100.0 56.0 25.0
– peak LR 10−210^{-2} 30.86 25.0 23.4 56.9 25.3 32.8 81.7 57.6 69.0 64.5 32.4 52.2 100.0 14.7 9.0
– peak LR 10−410^{-4} 44.57 18.3 22.9 50.0 20.1 29.4 77.8 62.0 59.0 60.8 28.7 51.1 77.7 21.3 0.0
– NoPE only 28.04 30.0 23.0 58.4 24.9 32.2 82.3 61.4 69.0 66.8 33.2 54.4 100.0 43.0 8.7
– NoPE + conv 27.13 30.2 22.8 58.9 24.7 32.8 81.0 55.4 70.0 66.0 33.2 50.6 100.0 16.3 1.0
– default + conv 26.84 28.9 23.6 58.2 24.1 34.4 80.6 59.5 69.0 66.8 33.7 50.9 99.7 88.3 15.0
  • Under the identical configuration, RAM-Net leads all baselines. Top-32 attains the best perplexity (25.87) and the strongest retrieval: S-NIAH2-4K 94.0 and S3-4K 44.7, vs. 74.7 and 31.3 for Transformer++.
  • KK is the dominant setting. Raising it from 8 to 32 improves perplexity, average commonsense accuracy (48.6 → 49.1), and retrieval (S3-4K 18.3 → 44.7) together. Instead, write 4 + read 12 falls below the default Top-8: a narrow write path is a bottleneck.
  • The output RMSNorm brings the largest gain. Adding it improves perplexity by 1.98 and lifts S2-4K from 16.3 to 83.7.
  • A nonzero address prior helps slots differentiate. With r=0r = 0 every slot starts from the same addressing preference, costing 1.29 perplexity and dropping S2-4K to 27.7; both nonzero settings improve over it. Moreover, a sharper temperature τ=1.5\tau = 1.5 helps perplexity slightly but cuts S2-4K from 83.7 to 56.0.
  • No learning-rate tuning is needed: the default 10−310^{-3} is the Flame setting; 10−210^{-2} degrades quality, and 10−410^{-4} does not converge within the 10B-token budget.
  • CAPE is required for retrieval, and a short convolution cannot replace it (see W3/Q1): NoPE drops S2-4K to 43.0, NoPE + conv to 16.3, and adding it on top of the default changes little.

Once again, we thank you for the careful review, from which the paper has benefited greatly. Please feel free to raise any further questions.

Refs. [1] Zhang et al. Gated Slot Attention for Efficient Linear-Time Sequence Modeling. NeurIPS, 2024. arXiv:2409.07146.

Reviewer frmzOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces the RAM-Net architecture which partitions the linear attention state into “slots” where each input identifies which slots to read and write from, which is unlike vanilla linear attention state management where the entire state is updated via an outer-product or matrix-multiplication of the key-value pair. To facilitate this state management algorithm, RAM-Net determines the read and write slots and their strengths via learned projections that are then top-k selected after product softmax normalization. The aforementioned “Address Decoder” then adds in positional information via the cyclic address positional encoding which shift-permutes the slot selected. RAM-Net also uses a gated update for the underlying linear attention mechanism for selected slots. Overall, the architecture performs well on synthetic NIAH retrieval tasks, but certain benchmarks and baselines are missing. The model also has comparable language modeling performance and has strong throughput as measured on RTX 5090.

Strengths and weaknesses

Strengths

  • The overall model has very good retrieval performance, especially OOD on NIAH-1. Retrieval is a core weakness of linear models, so mitigating this weakness is a very important problem.
  • The idea of partitioning the linear state, i.e., inducing sparsity within the state, is relatively underexplored.
  • The authors demonstrate that the model is able to achieve fast throughput and has good ablation experiments.

Weaknesses

  • The paper is missing 1.3B linear model baselines and NIAH performance for 1.3B models.
  • The paper could be improved with additional retrieval results on real-world tasks, such as the cloze-formed ones found in https://arxiv.org/abs/2407.05483.
  • The paper also lacks a comparison to Gated Slot Attention (https://arxiv.org/abs/2409.07146), which also partitions the state into slots. Currently, RAM-Net combines many components, and it is unclear whether a simpler slot-based baseline might recover the performance.
  • A general memory (not active, loaded memory) comparison would be helpful, as RAM-Net trade-off active memory with total memory.

The overall paper is written well and is quite clear. The problem it aims to address is important, and the overall results look promising at the scales and metrics reported. However, there are certain baselines that are lacking, which would help determine the significance of RAM-Net's architectural design choices. Please also refer to the questions.

Questions
  • The current slot output is normalized with an accumulated write mass. How does this compare to something like a pre-gate RMSNorm?
  • The exact use of CAPE seems a bit tenuous to me. Shifting the slot selected seems to be at odds with the a data-dependent slot-selection mechanism, as the motivation behind the shift design seems very heuristic and could be better justified. In general, linear models already encode positional information through their decay. The authors claim that it allows the model to capture temporal structure, but an additional ablation comparing it to the standard short conv used in models would help elucidate whether CAPE is simply acting as a “shift conv” used in prior works, such as H3 (https://arxiv.org/abs/2212.14052).
  • Is there a reason OOD performance is not reported for NIAH-2/-3?
Limitations

Yes.

Final justification

The authors provided sufficient responses to my concerns.

Formatting concerns

N/A

8 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Dear Reviewer frmz,

Thank you for the constructive feedback. We address each point below.

W1 + AC E4: Missing 1.3B linear baselines and NIAH results.

Re: Thank you for raising this. We regret that our compute budget did not allow a broader comparison at 1.3B in time for this response. We are training additional models at this scale: RAM-Net and Gated DeltaNet (GDN) [3], our strongest linear baseline at 340M. We will post these results during the discussion period as they complete.


W2/W3 + AC E1/E3: Additional real-world retrieval evaluation and comparison with Gated Slot Attention (GSA).

Re: We appreciate both suggestions and have added the two evaluations.

  • Setup. All 340M models are rerun under the Flame training config. [1]. Avg. acc averages the commonsense benchmarks (Table 2 of the paper); S-NIAH Avg. covers S-NIAH-1/2/3 from 1K to 16K.
  • New evaluations. The cloze-formatted recall-intensive suite of [2] (Recall Avg. below) and the GSA baseline.
  • Updated RAM-Net. It now uses a pre-gate output RMSNorm (Q1) and a stronger address prior (the initialization bias rr, App. A); neither changes the architecture or parameter count.
Model Wiki. ppl↓ Avg. acc↑ Recall Avg.↑ S-NIAH Avg.↑
Transformer++ 26.81 47.6 35.1 48.6
GDN 26.85 48.3 26.1 51.3
Mamba2 26.23 49.0 26.9 35.0
GLA 30.03 47.4 19.4 13.3
GSA 29.17 48.4 18.0 21.4
RAM-Net Top-8 26.89 48.6 23.2 64.7
– Top-16 26.23 48.7 27.9 65.1
– Top-32 25.87 49.1 32.0 72.9
  • RAM-Net Top-32 is the strongest fixed-state model on both language modeling and retrieval. Its perplexity, average accuracy, and S-NIAH average lead all models, Transformer++ included; on real-world recall it is second only to Transformer++, and ahead of all linear baselines.
  • Slot partitioning alone is insufficient. GSA also partitions its state into slots but reads and writes all of them at every step, and its recall is far weaker. Instead, RAM-Net's gain comes from sparse addressing, which confines interference to the few co-addressed slots.

Per-task results will follow during the discussion.


W4 + AC E3: Total memory, rather than only active memory, should be reported.

Re: Thank you for the suggestion. For all other baselines, every stored element is accessed at each step, so total state equals active state; only RAM-Net separates the two:

Scale RAM-Net total state Active state / step
340M, Top-8/16/32 26.2M 0.4M / 0.8M / 1.6M
1.3B, Top-8/16/32 52.4M 0.8M / 1.6M / 3.2M
  • vs. Transformer++. At a 2,048-token context it stores 100.7M and 201.3M elements at 340M and 1.3B, and this cache grows linearly with context.
  • vs. linear baselines. At 340M, GDN holds 8.5M elements and Mamba2 12.9M (Table 2 of the paper), so RAM-Net's total state is larger, but within the same order of magnitude. However, each step accesses only a small fraction of it: the active state is the smallest of all models. Moreover, even at matched total state size, RAM-Net attains the strongest MQAR retrieval (Fig. 4).

We will add these to the revision.


Q1: How does accumulated write-mass normalization compare with a pre-gate RMSNorm?

Re: Thank you for this question. GSU can be written more transparently by tracking the average value each slot stores. Let S~t,i=St,i/zt,i\tilde{\mathbf S}_{t,i} = \mathbf S_{t,i} / z_{t,i} be this average for slot ii, where St,i\mathbf S_{t,i} and zt,iz_{t,i} are the ii-th row of St\mathbf S_t and entry of zt\mathbf z_t in Eq. (8). Then Eq. (8) is equivalent to

zt,i=αt,izt−1,i+wt,i,λt,i=wt,izt,i+ϵ,z_{t,i}=\alpha_{t,i}z_{t-1,i}+w_{t,i},\qquad \lambda_{t,i}=\frac{w_{t,i}}{z_{t,i}+\epsilon},
S~t,i=S~t−1,i+λt,i(vt−S~t−1,i).\tilde{\mathbf S}_{t,i}=\tilde{\mathbf S}_{t-1,i} +\lambda_{t,i}\left(\mathbf v_t-\tilde{\mathbf S}_{t-1,i}\right).

Thus, GSU is a per-slot delta update: zt,iz_{t,i} is the discounted write mass of slot ii, and λt,i\lambda_{t,i} its update rate. A lightly written or strongly forgotten slot is updated quickly; a heavily accumulated slot (large zt,iz_{t,i}) changes slowly. An unaddressed slot has wt,i=0w_{t,i}=0 and stays unchanged.

The output RMSNorm serves a different purpose. Write mass controls what is stored over time, whereas the head-wise RMSNorm acts after retrieval and makes the readout scale insensitive to how much write mass happened to contribute. Placing it before the output gate removes this scale while keeping the gate's control of output magnitude.

config. Wiki. ppl↓ Avg. acc↑ S-NIAH Avg.↑
w/o RMSNorm 28.87 48.2 54.0
w/ RMSNorm 26.89 48.6 64.7

The two mechanisms are therefore complementary, not interchangeable. We will use this formulation in the revision; task-level ablations will follow during the discussion.


Q2 + AC E2: CAPE appears heuristic, non-smooth, cyclic, and potentially equivalent to a short convolution.

Re: We appreciate your careful scrutiny of CAPE. Below is our understanding, in four parts.

1. Like RoPE, CAPE encodes position at multiple scales, from fast to slow. RoPE applies rotations with geometrically decreasing frequencies across its two-dimensional coordinate pairs. CAPE builds the analogous hierarchy on the factorized address: the selection of sub-vector uu advances by one component every dpud_p^u tokens, so low-order sub-vectors change rapidly while high-order ones track progressively longer ranges. These advances are exactly the digit updates of a UU-digit base-dpd_p counter, carries included. Therefore, the entire multi-scale transformation is implemented as a single cyclic shift of the flattened address (Eq. 6). The content projection still sets the starting address; CAPE only adds this position-dependent shift, so read–write overlap depends jointly on content and relative displacement.

2. CAPE is not a standard short convolution. CAPE does have a conv-like positional structure: whether a read hits a write depends on their displacement t−st - s. However, its effective taps are determined jointly by the content-dependent read/write addresses, the Top-KK selection, and the learned forgetting: they change from token to token, unlike a static kernel. We ran a 2 × 2 ablation (340M, Top-8; S-NIAH avg. over S-NIAH-1/2/3, 1K to 16K), with kernel size 4 following the short-conv setting of Mamba2 and GDN:

config. Wiki. ppl↓ S-NIAH Avg.↑
NoPE only 28.04 55.2
NoPE + conv 27.13 48.1
CAPE + NoPE (default) 26.89 64.7
CAPE + NoPE + conv 26.84 65.0

A short conv improves NoPE's perplexity but costs retrieval, so it does not substitute for CAPE. Moreover, added on top of CAPE it changes almost nothing (64.7 vs. 65.0). Therefore, we view the local benefit of a short conv as a subset of what CAPE already provides.

3. CAPE removes positional smoothness that is not needed in our setting. For a position tt and a key/query vector x\mathbf{x}, both RoPE⁡(t,x)\operatorname{RoPE}(t,\mathbf{x}) and CAPE⁡(t,x)\operatorname{CAPE}(t,\mathbf{x}) are continuous and differentiable with respect to x\mathbf{x}. Their only difference is in tt: RoPE is defined for real-valued tt, whereas CAPE is defined for integer tt. However, token positions are discrete during both training and inference, and gradients are never taken with respect to tt. Continuity in tt is useful mainly for position interpolation or rescaling, neither of which RAM-Net requires for length extrapolation (Table 1 of the paper).

4. Every CAPE head cycles over the same period, M=1,024M = 1{,}024 slots, and we measure no effect at the wrap. We first clarify an imprecise wording in the appendix: the numbers {16, 8, 4, 2, 1} there are the per-layer counts of CAPE heads, not cycle lengths; we will rename them in the revision. The shift always cycles over all M=1,024M = 1{,}024 slots, so aliasing could arise only between positions 1,024 apart.

We probed the wrap boundary in three ways. First, spectral analysis of the per-position loss shows that the 1,024-token component explains only about 0.3% of the loss variation and is not significant. Second, shifting all position IDs by a constant does not change the predictions: the remaining KL is only numerical noise. Third, we prepend kk space tokens to the same text: the KL shows no discontinuity as kk crosses 1,024, and its overall sensitivity to the prefix shift is lower than Transformer++'s.

Finally, the learned forgetting explains why the wrap is harmless. A larger γt\gamma_t reduces the retention factor αt\alpha_t (Eq. 7), clearing slots more rapidly. On average, CAPE heads learn a higher γ\gamma than NoPE heads (3.9 vs. 1.8) and a larger update rate λ\lambda (0.76 vs. 0.47). Thus, CAPE slots are typically cleared before the cyclic shift revisits them, leaving little stale content to alias, while NoPE heads retain a longer content-addressed tail.

We will provide the detailed results during the discussion.


Q3 + AC W3: Why was OOD performance not reported for S-NIAH-2/-3?

Re: Thank you for pointing this out. We have added S-NIAH-2/3 at 8K and 16K (with 4K training context). RAM-Net remains the strongest through 8K: Top-32 leads every baseline on both tasks (S2-8K: 56.3 vs. 20.3; S3-8K: 9.7 vs. 1.3). Moreover, the 340M RAM-Net Top-32 even leads the 1.3B GDN on all of S-NIAH from 1K to 8K.

Complete results will follow during the discussion.

Thank you again for the valuable review. We are glad to discuss any remaining questions.

Refs.

[1] Zhang et al. Flame: Flash Language Modeling Made Easy. 2025.

[2] Arora et al. Just Read Twice: Closing the Recall Gap for Recurrent Language Models. 2024. arXiv:2407.05483.

[3] Yang et al. Gated Delta Networks: Improving Mamba2 with Delta Rule. ICLR, 2025. arXiv:2412.06464.

Authors · CommentOpenReview ↗

OOD S-NIAH results and the GSA baseline (Part 1/4)

Dear Reviewer frmz,

This comment supplements our responses to W1 (1.3B; AC E4), W3 (GSA baseline; AC E1) and Q3 (S-NIAH beyond the training context; AC W3).

Setup. All models are trained under the unified Flame config. [3]: 340M on 10B tokens and 1.3B on 100B tokens, 4K training context. Bold: best within each scale; underline: second best.

Overview at 1.3B. Avg. acc averages 11 commonsense tasks; S-NIAH avg. the 15 cells below; Recall avg. the 10 recall tasks of [1].

Model Wiki. ppl↓ Avg. acc↑ S-NIAH avg.↑ Recall avg.↑
Transformer++ 17.08‾\underline{17.08} 54.8 56.4 49.8
Gated DeltaNet 17.09 55.6‾\underline{55.6} 61.0‾\underline{61.0} 39.5
RAM-Net Top-8 16.49 56.5 65.0 40.6‾\underline{40.6}
  • RAM-Net leads on language modeling, commonsense accuracy, and long-context retrieval, and is second only to Transformer++ on real-world recall, whose cache grows with context.

S-NIAH, per task and context length, up to 4×4\times the training context. We add GSA [2], the slot-based baseline of W3.

Model S1 1K↑ 2K↑ 4K↑ 8K↑ 16K↑ S2 1K↑ 2K↑ 4K↑ 8K↑ 16K↑ S3 1K↑ 2K↑ 4K↑ 8K↑ 16K↑ Avg.↑
340M:
Transformer++ 99.7‾\underline{99.7} 97.7 81.0 0.0 0.0 100.0 99.7‾\underline{99.7} 74.7 0.0 0.0 81.7‾\underline{81.7} 62.7 31.3‾\underline{31.3} 0.0 0.0 48.6
Gated DeltaNet 99.3 99.3‾\underline{99.3} 98.7 88.0 44.0 99.7‾\underline{99.7} 96.0 37.3 20.3 10.3 46.0 26.7 2.3 0.7 0.3 51.3
Mamba2 89.3 91.7 77.0 24.7 6.7 97.3 72.7 12.0 11.7 4.0 20.7 10.3 5.3 1.3 0.7 35.0
GLA 68.7 23.7 5.7 0.3 0.3 64.7 20.3 6.3 3.3 1.0 5.0 0.3 0.0 0.0 0.0 13.3
GSA 75.3 54.7 31.7 13.7 7.3 69.0 49.7 11.0 7.0 1.7 0.0 0.0 0.0 0.0 0.0 21.4
RAM-Net Top-8 100.0 100.0 99.7‾\underline{99.7} 99.7‾\underline{99.7} 99.7‾\underline{99.7} 99.3 99.3 83.7 20.7 5.3‾\underline{5.3} 69.3 69.3‾\underline{69.3} 18.3 5.7 1.0‾\underline{1.0} 64.7
– Top-16 100.0 100.0 100.0 100.0 100.0 100.0 99.7‾\underline{99.7} 88.0‾\underline{88.0} 23.3‾\underline{23.3} 2.7 70.7 58.0 25.7 7.3‾\underline{7.3} 1.3 65.1‾\underline{65.1}
– Top-32 100.0 100.0 100.0 100.0 100.0 100.0 100.0 94.0 56.3 4.0 95.3 88.0 44.7 9.7 1.0‾\underline{1.0} 72.9
1.3B:
Transformer++ 100.0 100.0 95.0 0.0 0.0 100.0 100.0 90.5 4.0 0.0 98.0 91.6 66.0 0.4 0.0 56.4
Gated DeltaNet 99.8‾\underline{99.8} 100.0 99.8‾\underline{99.8} 71.8‾\underline{71.8} 35.7‾\underline{35.7} 99.8‾\underline{99.8} 99.0 89.4‾\underline{89.4} 44.8 18.0 72.2‾\underline{72.2} 62.0‾\underline{62.0} 16.0‾\underline{16.0} 5.2‾\underline{5.2} 1.7 61.0‾\underline{61.0}
RAM-Net Top-8 100.0 100.0 100.0 100.0 100.0 99.7 99.7‾\underline{99.7} 82.7 42.3‾\underline{42.3} 9.3‾\underline{9.3} 63.0 54.0 16.0‾\underline{16.0} 8.3 0.3‾\underline{0.3} 65.0
  • The 340M RAM-Net Top-16 already matches the 1.3B Gated DeltaNet (65.1 vs. 61.0).

  • GSA reaches 21.4 on average, against 64.7 for RAM-Net Top-8. GSA also organizes its state as slots, and two design choices differ.

    • How a slot is identified. A GSA slot is identified by a key that is updated at every token, so a read compares the query against every slot and the cost grows with the slot count. A RAM-Net slot is identified by a fixed index, and each token computes which index it addresses, so the cost follows KK rather than MM. This is what allows M=1024M = 1024.
    • How a slot is written. Each GSA slot is written through its own gate, independently of the others, whereas the product softmax makes RAM-Net slots compete and Top-K bounds how many are written.

    Organizing the state into slots is therefore not sufficient on its own.

  • At 16K, RAM-Net keeps 100.0 on S-NIAH-1 at both scales, while the strongest baseline falls to 44.0 and 35.7. On S-NIAH-2/3, 16K degrades every model, ours included.

Thank you again for the review.

Refs. [1] Arora et al. Just Read Twice. 2024. arXiv:2407.05483. [2] Zhang et al. Gated Slot Attention. NeurIPS, 2024. arXiv:2409.07146. [3] Zhang et al. Flame: Flash Language Modeling Made Easy. 2025.

Authors · CommentOpenReview ↗

Per-task language results and state sizes, with GSA (Part 2/4)

Dear Reviewer frmz,

This comment supplements our responses to W3 (GSA baseline; AC E1) and W4 (total and active memory; AC E3).

Setup. Models and training are as in our previous comment. Total and active state count the elements the model holds and the elements it reads or writes per step; for Transformer++ the cache is measured at a 2K context and grows with length. Bold: best within each scale; underline: second best.

Model Wiki. ppl↓ LMB.↑ MMLU↑ ARC-e↑ ARC-c↑ OBQAn↑ SciQ↑ BoolQ↑ COPA↑ PIQA↑ Hella.↑ Wino.↑ Total state Active state
340M:
Transformer++ 26.81 33.1‾\underline{33.1} 23.1 57.7 24.7 32.0 82.9 55.9 66.0 65.8 33.3 52.2 100.7M 100.7M
Gated DeltaNet 26.85 32.4 23.4 57.9 25.0 35.0‾\underline{35.0} 83.3‾\underline{83.3} 58.9 67.0 66.8 33.9 50.2 8.5M 8.5M
Mamba2 26.23‾\underline{26.23} 33.9 23.1 59.2 24.2 33.8 83.4 59.6‾\underline{59.6} 71.0 67.7 33.9 50.4 12.9M 12.9M
GLA 30.03 30.4 23.2 56.9 25.0 32.4 81.6 56.8 66.0 66.4 32.7 50.7 3.1M 3.1M
GSA 29.17 32.7 23.0 59.3‾\underline{59.3} 25.8‾\underline{25.8} 35.8 83.0 57.4 66.0 66.4 33.3 49.8 3.1M 3.1M
RAM-Net Top-8 26.89 28.7 23.6‾\underline{23.6} 59.1 24.7 34.4 82.5 57.4 67.0 66.9 33.4 54.1 26.2M 0.4M
– Top-16 26.23‾\underline{26.23} 29.7 23.5 59.4 26.1 33.0 82.8 58.6 69.0 67.2‾\underline{67.2} 33.8‾\underline{33.8} 51.4 26.2M 0.8M
– Top-32 25.87 30.9 23.8 58.9 26.1 32.2 82.8 61.6 70.0‾\underline{70.0} 67.2‾\underline{67.2} 33.7 52.7‾\underline{52.7} 26.2M 1.6M
1.3B:
Transformer++ 17.08‾\underline{17.08} 46.9 23.0 70.2 34.0 39.2‾\underline{39.2} 88.7‾\underline{88.7} 59.1 73.0‾\underline{73.0} 71.3‾\underline{71.3} 42.8 58.7 201.3M 201.3M
Gated DeltaNet 17.09 46.2‾\underline{46.2} 24.9 70.3‾\underline{70.3} 35.5‾\underline{35.5} 39.0 90.9 59.4‾\underline{59.4} 72.0 71.2 43.1‾\underline{43.1} 57.5 17.0M 17.0M
RAM-Net Top-8 16.49 43.0 23.6‾\underline{23.6} 72.0 36.3 41.8 88.2 60.3 76.0 73.0 44.6 57.9‾\underline{57.9} 52.4M 0.8M
  • At 340M, RAM-Net attains the best perplexity (25.87 at Top-32, against 26.23 for Mamba2), and raising KK improves it monotonically.
  • The advantage carries to 1.3B. RAM-Net Top-8 reaches 16.49 perplexity, against 17.08 for Transformer++ and 17.09 for Gated DeltaNet. We regret that our compute budget did not allow Top-16 and Top-32 at this scale in time. Since perplexity improves monotonically with KK at 340M, we expect the same improvement at 1.3B, and we will add these runs to the revision.
  • State size (W4). For every baseline, each step accesses the whole state, so total and active state coincide; only RAM-Net separates the two.
    • vs. Transformer++. Its cache is 100.7M and 201.3M elements at a 2K context, and grows linearly with length.
    • vs. linear baselines. RAM-Net's total state is larger, but within the same order of magnitude. However, each step accesses only a small fraction of it: the active state is the smallest of all models at both scales.

Thank you again for the review.

Reviewer 5on7OpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The authors detail a new method named RAM-Net, which replaces dense state updates with a sparsely addressable update organized as independent slots. This work addresses the challenge of improving long-context recall in linear-time sequence models by mitigating inter-token interference. This is particularly problematic in linear-attention’s fixed-size recurrent states. Each token produces discrete addresses via an Address Decoder, enabling localized interaction with only a small subset of the state. The model is designed to preserve the efficiency of linear attention while improving fine-grained retrieval.

Strengths and weaknesses

Strengths:

  • The paper makes the case that linear attention models are susceptible to shared updates that degrade performance, and proposes a principled alternative based on explicit memory separation.
  • The change from dense recurrent updates to sparse, address-based slot updates is novel for both linear attention and state-spaced model updates.
  • The paper is very well written and organized.
  • The tables and figures are formatted well.
  • The improvements in MQAR and on the S-NIAH datasets suggest the approach is genuinely effective for long-range discrete recall

Weaknesses:

  • The evaluation beyond ~1.3B parameters is minimal.
  • Sparse routing, top-k truncation, and product-softmax factorization may introduce optimization instability, which was not explored.
  • Several design choices, such as training parameters, are not fully ablated.

Overall, the paper is very well written, the idea is novel, and the experiments were chosen well to demonstrate the effectiveness of RAM-Net.

Questions
  • Can learned slots be characterized? Are you able to determine whether the slots are specialized or remain broadly interchangeable?
  • How stable is training at larger scales, especially with Top-K routing?
  • Can certain slots become overused at certain settings of total memory size and accessed slots?
Limitations

yes

Final justification

The authors addressed many of the reviewers' concerns and added further ablations and evaluations to an already strong paper. I maintain this is a strong paper that deserves acceptance.

Formatting concerns

The paper is formatted well.

6 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Dear Reviewer 5on7,

We greatly appreciate your positive assessment and your constructive feedback. We respond to each point below.

W1 + AC E4: The evaluation beyond ~1.3B parameters is minimal.

Re: Thank you for raising this. We regret that our compute budget did not allow a broader comparison at 1.3B in time for this response. We are training additional models at this scale: RAM-Net and Gated DeltaNet (GDN) [3], our strongest linear baseline at 340M. We will post these results during the discussion period as they complete.


W2 + AC W4: Sparse routing, top-k truncation, and product softmax may introduce optimization instability.

Q2: How stable is training at larger scales with Top-K routing?

Re: Thank you for raising this. Sparse routing is widely reported to make training unstable. However, we observe no such instability in our experiments: training at both 340M and 1.3B shows no loss spikes and no restarts. A few key design choices explain this.

  • The product softmax replaces one MM-way competition with UU separate dpd_p-way ones. A single softmax over all M=1024M = 1024 slots would concentrate gradient on a few winners. Instead, Eq. (4) factorizes it into U=5U = 5 softmaxes of dp=4d_p = 4 components each. Fig. 6 confirms this: the unfactorized setting (U=1U = 1) is the weakest at every slot count. Moreover, because an address multiplies all UU outputs together, one component is shared by dpU−1=256d_p^{U-1} = 256 addresses. Therefore, a single update improves all of them at once.

  • We do not renormalize the retained weights after Top-K. Each retained weight still depends on the scores of every component in its sub-vector, not just the one selected. So when an unselected component's score rises, every retained weight shifts too, and the loss changes: the unselected component receives gradient. Instead, renormalizing would cancel out this dependency, leaving unselected components with no gradient at all. In our experience, renormalizing tends to cause training to diverge; in contrast, we have never observed divergence without it.


W3: Several design choices, such as training parameters, are not fully ablated.

Re: Thank you for raising this.

Setup.

  • We align every model on the Flame training config. [1], re-running all baselines ourselves.
  • We add GSA [3], the other linear model whose state is held as a set of slots.
  • We add ablations of K, output RMSNorm, τ (address temperature, Eq. 4), r (initialization bias range, App. A), peak LR, and the positional configuration (NoPE, short conv).
  • Each ablation changes one setting from the default (K=8K = 8, τ=2.2\tau = 2.2, r=1.0r = 1.0, output RMSNorm on, peak LR 1e-3, 30% CAPE heads).

Table 1. 340M models (10B tokens, 4K training context). Avg. acc averages the commonsense benchmarks (Table 2 of the paper); S-NIAH avg. averages S-NIAH-1/2/3 over 1K to 16K. Best in bold, second best underlined‾\underline{\text{underlined}}:

Model Setting Wiki. ppl↓ Avg. acc↑ S-NIAH avg.↑
Transformer++ 26.81 47.6 48.6
Gated DeltaNet 26.85 48.3 51.3
Mamba2 26.23‾\underline{26.23} 49.0‾\underline{49.0} 35.0
GLA 30.03 47.4 13.3
GSA 29.17 48.4 21.4
RAM-Net K=8K = 8 (default) 26.89 48.6 64.7
K=16K = 16 26.23‾\underline{26.23} 48.7 65.1‾\underline{65.1}
K=32K = 32 25.87 49.1 72.9
write 4, read 12 27.98 48.7 57.9
output RMSNorm off 28.87 48.2 54.0
r=0.0r = 0.0 28.18 48.2 55.5
r=1.5r = 1.5 26.63 48.7 63.6
τ=1.5\tau = 1.5 26.61 47.8 61.2
peak LR =10−2= 10^{-2} 30.86 48.0 53.4
NoPE only 28.04 48.8 55.2
NoPE + short conv 27.13 48.0 48.1
Hybrid + short conv 26.84 48.4 65.0

For ablations:

  • Large KK dominates. Raising it from 8 to 32 improves perplexity, accuracy and retrieval together.
  • Output RMSNorm matters. It normalizes the magnitude of the retrieved output: removing it costs 1.98 perplexity and 10.7 points of retrieval.
  • The initialization bias rr matters. It gives each slot a distinct initial addressing preference (App. A). Removing it costs 1.29 perplexity and 9.2 points of retrieval, while r=1.0r = 1.0 and r=1.5r = 1.5 differ by only 0.26 and 1.1.
  • A sharper temperature trades perplexity for retrieval. τ=1.5\tau = 1.5 improves perplexity by 0.28 but costs 0.8 accuracy and 3.5 retrieval, so we keep 2.2.
  • Reading more slots does not compensate for writing fewer. Write 4, read 12 costs 1.09 perplexity and 6.8 points of retrieval against writing and reading the same 8.
  • A short conv does not substitute for CAPE. Removing CAPE (NoPE only) costs 9.5 points of retrieval, and adding a kernel-4 conv (as in Mamba2 and GDN) recovers perplexity but lowers retrieval further (48.1). On top of the default hybrid, the same conv changes almost nothing (64.7 → 65.0): its local benefit is a subset of what CAPE provides.

For baselines:

  • RAM-Net reaches the best language modeling, accuracy, and retrieval in the table. It has the lowest perplexity (25.87), the highest retrieval (72.9), and the best accuracy (49.1) of all models.
  • Slots alone are not the mechanism. GSA also holds its state as a set of slots, but it accesses every slot at every step: writes through per-slot gates, reads through a softmax over all slots. Its retrieval average is 21.4, far below every RAM-Net setting: the gain comes from sparse addressing, not from organizing the state into slots.

We will add this table to the revision. We are glad to detail any setting during the discussion.


Q1: Can learned slots be characterized? Specialized or broadly interchangeable?

Re: Thank you for raising this. Slots are specialized rather than interchangeable. A slot holds no parameters, so what characterizes it is which content addresses it. Beyond the access traces of App. C, we ran two new measurements on the trained models.

  • Addresses encode lexical and syntactic categories. We predict a token's category purely from which slots it reads and writes, testing on vocabulary the probe never saw in training. Digits vs. spelled-out number words decode at 0.92–0.96 accuracy. Words that can be either a noun or a verb decode by their role at 0.94–0.99: the token is identical, so the address must encode how it is used in the sentence.

  • Slots pass information in a fixed order: left operand → operator → equals → result. On arithmetic prompts, we track how often a token reads the slots that an earlier token wrote. The operator reads the left operand's slots 10–13% more often than unrelated token pairs do, and the result reads the equals sign's 34–62% more.

Moreover, this holds at scale: in S-NIAH-1 the filler is one repeated sentence, which keeps re-addressing its own slots and never reaches the needle's, so RAM-Net (Top-8) scores 99.4 at 128K while every baseline falls below 5 (Table 1 of the paper).

In short, slots specialize in both what a token is and how it is used. We will add these studies to the revision.


Q3: Can certain slots become overused at certain memory settings?

Re: Thank you for raising this. We measured slot usage directly. Accesses do concentrate on a few slots, and this turns out to be a property of content addressing itself.

Setup. Each of a model's 25 × 16 heads holds its own array of M=1024M = 1024 slots; 122 use CAPE and 278 use NoPE. We run the 340M models over eight random 4096-token windows of WikiText-2, counting one access whenever a slot enters the Top-K, reads and writes together. CAPE heads rotate their addresses by one slot per token (Eq. 6), so the same content lands on a different physical slot at each position. We report both the physical slots and the addresses with that rotation removed.

Table 2. Concentration of slot usage (340M, K=8K = 8). "Slots for XX%" is the smallest fraction of a head's 1024 slots that together receive XX% of its accesses; "active" is the fraction it accesses at all. Medians over heads:

Heads Slots for 50% Slots for 90% Active slots
NoPE 1.0% 4.8% 36.5%
CAPE, physical slots 48.6% 89.5% 100%
CAPE, shift undone 1.0% 5.0% 38.5%
  • The uniformity of CAPE heads comes from the shift, not from the addressing. Undoing the per-token rotation makes them look just like NoPE heads (1.0% and 5.0%, against 1.0% and 4.8%). CAPE does not remove hot slots: it moves one hot set deterministically across physical slots, which is also why it leaves none of them cold.
  • Like attention sinks in Transformers, the concentration is not a defect. We find empirically that balancing the load across slots does not improve performance and can even degrade it, so we do not push the addressing toward uniform usage.
  • The hot set is predictable, which we see as an opportunity. A NoPE head reuses a small stable set, and a CAPE head uses that same set at a known offset from the position. Accesses can therefore be anticipated rather than discovered, making prefetching and offloading cold slots to cheaper memory a concrete path toward the hierarchical memory of Sec. 7.

Thank you once again for your valuable feedback. We would be very happy to continue the discussion if you have any other questions.

References

[1] Zhang et al. Flame: Flash Language Modeling Made Easy. 2025.

[2] Yang et al. Gated Delta Networks: Improving Mamba2 with Delta Rule. ICLR, 2025. arXiv:2412.06464.

[3] Zhang et al. Gated Slot Attention for Efficient Linear-Time Sequence Modeling. NeurIPS, 2024. arXiv:2409.07146.

Authors · CommentOpenReview ↗

1.3B results across four evaluations (Part 1/2)

Dear Reviewer 5on7,

This comment delivers the 1.3B results promised in our response to W1.

Setup. Transformer++, Gated DeltaNet and RAM-Net Top-8 are trained at 1.3B on 100B tokens, with a 4K training context, under the unified Flame config. [2] Beyond the benchmarks of the submission, we add the cloze-formatted recall-intensive suite of [1], nine tasks in which the model must ground its answer in an in-context document, so that the comparison also covers real-world retrieval. Bold: best; underline: second best.

Language modeling and commonsense.

Model Wiki. ppl↓ LMB.↑ MMLU↑ ARC-e↑ ARC-c↑ OBQAn↑ SciQ↑ BoolQ↑ COPA↑ PIQA↑ Hella.↑ Wino.↑
Transformer++ 17.08‾\underline{17.08} 46.9 23.0 70.2 34.0 39.2‾\underline{39.2} 88.7‾\underline{88.7} 59.1 73.0‾\underline{73.0} 71.3‾\underline{71.3} 42.8 58.7
Gated DeltaNet 17.09 46.2‾\underline{46.2} 24.9 70.3‾\underline{70.3} 35.5‾\underline{35.5} 39.0 90.9 59.4‾\underline{59.4} 72.0 71.2 43.1‾\underline{43.1} 57.5
RAM-Net Top-8 16.49 43.0 23.6‾\underline{23.6} 72.0 36.3 41.8 88.2 60.3 76.0 73.0 44.6 57.9‾\underline{57.9}

S-NIAH, per task and context length, up to 4×4\times the training context. Avg. averages the 15 cells.

Model S1 1K↑ 2K↑ 4K↑ 8K↑ 16K↑ S2 1K↑ 2K↑ 4K↑ 8K↑ 16K↑ S3 1K↑ 2K↑ 4K↑ 8K↑ 16K↑ Avg.↑
Transformer++ 100.0 100.0 95.0 0.0 0.0 100.0 100.0 90.5 4.0 0.0 98.0 91.6 66.0 0.4 0.0 56.4
Gated DeltaNet 99.8‾\underline{99.8} 100.0 99.8‾\underline{99.8} 71.8‾\underline{71.8} 35.7‾\underline{35.7} 99.8‾\underline{99.8} 99.0 89.4‾\underline{89.4} 44.8 18.0 72.2‾\underline{72.2} 62.0‾\underline{62.0} 16.0‾\underline{16.0} 5.2‾\underline{5.2} 1.7 61.0‾\underline{61.0}
RAM-Net Top-8 100.0 100.0 100.0 100.0 100.0 99.7 99.7‾\underline{99.7} 82.7 42.3‾\underline{42.3} 9.3‾\underline{9.3} 63.0 54.0 16.0‾\underline{16.0} 8.3 0.3‾\underline{0.3} 65.0

Recall-intensive tasks. FDA, SWDE and NQ are evaluated at context lengths 512 and 1K; the other three use the full document. Avg. averages the 9 columns.

Model FDA 512↑ FDA 1K↑ SWDE 512↑ SWDE 1K↑ NQ 512↑ NQ 1K↑ SQuADv2 full↑ TriviaQA full↑ DROP full↑ Avg.↑
Transformer++ 79.9 70.6 48.6 48.6 36.1 35.7 49.7 56.3‾\underline{56.3} 22.3 49.8
Gated DeltaNet 51.5 41.1 43.2‾\underline{43.2} 37.4‾\underline{37.4} 30.3‾\underline{30.3} 30.3‾\underline{30.3} 41.7‾\underline{41.7} 57.3 22.7‾\underline{22.7} 39.5
RAM-Net Top-8 65.9‾\underline{65.9} 56.5‾\underline{56.5} 37.1 36.4 27.7 26.5 34.7 57.3 23.3 40.6‾\underline{40.6}
  • RAM-Net leads on language modeling and on long-context retrieval: 16.49 perplexity against 17.08 and 17.09, and 65.0 S-NIAH average against 56.4 and 61.0, while addressing only 8 of 1024 slots per step. We regret that our compute budget did not allow Top-16 and Top-32 at this scale in time. Since both perplexity and retrieval improve monotonically with KK at 340M (Table 1 of our response to W3), we expect the same at 1.3B, and we will add these runs to the revision.
  • On real-world recall it is second only to Transformer++, whose cache grows with the context, and ahead of Gated DeltaNet (40.6 vs. 39.5).

Thank you again for the review.

Refs.

[1] Arora et al. Just Read Twice: Closing the Recall Gap for Recurrent Language Models. 2024. arXiv:2407.05483.

[2] Zhang et al. Flame: Flash Language Modeling Made Easy. 2025.

Authors · CommentOpenReview ↗

Additional ablations of the design and training settings (Part 2/2)

Dear Reviewer 5on7,

This comment supplements our response to W3 (design choices not fully ablated) with the per-task results behind Table 1.

Setup. All rows are 340M models trained as in our previous comment, ablating:

  • K: the number of slots written and read per step, including splits that write and read different numbers;
  • output RMSNorm: RMSNorm on the output read from the state;
  • r: the initialization bias range, giving each slot a distinct initial addressing preference;
  • τ: the address temperature (Eq. 4);
  • peak LR.

The default is Top-K=8K = 8, τ=2.2\tau = 2.2, r=1.0r = 1.0, RMSNorm on, peak LR 10−310^{-3}. S-NIAH is reported at 4K.

Model Wiki. ppl↓ LMB.↑ MMLU↑ ARC-e↑ ARC-c↑ OBQA (norm)↑ SciQ↑ BoolQ↑ COPA↑ PIQA↑ Hella.↑ Wino.↑ S1-4K↑ S2-4K↑ S3-4K↑
Transformer++ 26.81 33.1‾\underline{33.1} 23.1 57.7 24.7 32.0 82.9 55.9 66.0 65.8 33.3 52.2 81.0 74.7 31.3‾\underline{31.3}
Gated DeltaNet 26.85 32.4 23.4 57.9 25.0 35.0‾\underline{35.0} 83.3‾\underline{83.3} 58.9 67.0 66.8 33.9 50.2 98.7 37.3 2.3
Mamba2 26.23‾\underline{26.23} 33.9 23.1 59.2 24.2 33.8 83.4 59.6‾\underline{59.6} 71.0 67.7 33.9 50.4 77.0 12.0 5.3
GLA 30.03 30.4 23.2 56.9 25.0 32.4 81.6 56.8 66.0 66.4 32.7 50.7 5.7 6.3 0.0
GSA 29.17 32.7 23.0 59.3‾\underline{59.3} 25.8‾\underline{25.8} 35.8 83.0 57.4 66.0 66.4 33.3 49.8 31.7 11.0 0.0
RAM-Net Top-8 (default) 26.89 28.7 23.6‾\underline{23.6} 59.1 24.7 34.4 82.5 57.4 67.0 66.9 33.4 54.1 99.7‾\underline{99.7} 83.7 18.3
– Top-16 26.23‾\underline{26.23} 29.7 23.5 59.4 26.1 33.0 82.8 58.6 69.0 67.2‾\underline{67.2} 33.8‾\underline{33.8} 51.4 100.0 88.0‾\underline{88.0} 25.7
– Top-32 25.87 30.9 23.8 58.9 26.1 32.2 82.8 61.6 70.0‾\underline{70.0} 67.2‾\underline{67.2} 33.7 52.7‾\underline{52.7} 100.0 94.0 44.7
Ablations:
– write 4, read 12 27.98 27.3 23.7 58.8 26.5 33.4 81.4 60.2 68.0 66.2 33.1 51.9 98.0 45.3 17.0
– write 12, read 4 26.59 29.3 23.1 59.7 25.8 33.8 82.8 62.0 70.0 66.3 33.6 51.1 100.0 48.7 7.7
– output RMSNorm off 28.87 26.3 23.8 57.9 24.1 33.0 82.0 59.6 67.0 66.6 32.6 53.1 99.7 16.3 12.3
– r=0.0r = 0.0 28.18 27.1 23.5 56.7 24.8 32.6 81.0 59.4 70.0 67.0 32.5 53.1 100.0 27.7 5.3
– r=1.5r = 1.5 26.63 29.4 24.6 59.7 25.7 34.0 81.2 58.2 67.0 66.5 34.0 52.3 100.0 58.7 25.7
– τ=1.5\tau = 1.5 26.61 29.5 24.4 58.0 24.8 33.0 81.5 56.1 64.0 67.0 33.4 52.3 100.0 56.0 25.0
– peak LR 10−210^{-2} 30.86 25.0 23.4 56.9 25.3 32.8 81.7 57.6 69.0 64.5 32.4 52.2 100.0 14.7 9.0
– peak LR 10−410^{-4} 44.57 18.3 22.9 50.0 20.1 29.4 77.8 62.0 59.0 60.8 28.7 51.1 77.7 21.3 0.0
  • KK is the dominant setting. Raising it from 8 to 32 improves perplexity and retrieval together.
  • RAM-Net Top-32 is the best model in the table on both axes: the lowest perplexity (25.87 against 26.23 for Mamba2) and the highest S-NIAH-2/3 at 4K (94.0 and 44.7 against 74.7 and 31.3 for Transformer++).
  • The output RMSNorm gives the largest gain: it improves perplexity by 1.98 and lifts S2-4K from 16.3 to 83.7.
  • A nonzero address prior works better. With r=0r = 0 every slot starts from the same addressing preference, costing 1.29 perplexity and lowering S2-4K to 27.7.
  • The address temperature trades perplexity for retrieval. Sharpening it to τ=1.5\tau = 1.5 gains 0.28 perplexity but loses 27.7 points of S2-4K.
  • No learning-rate tuning is needed: the default 10−310^{-3} is the Flame setting [1] shared by all baselines; 10−210^{-2} degrades quality, and 10−410^{-4} does not converge within the 10B-token budget.
  • Every run in this table converged without a loss spike or a restart (W2/Q2). We have not encountered a stability problem with Top-K routing, at either scale.

This completes what we promised: the 1.3B evaluation asked for in W1, and the ablation of every design choice raised in W3. The evaluation now spans two scales and four axes: language modeling, commonsense reasoning, long-context retrieval and real-world recall. Across them, RAM-Net attains the best perplexity and the strongest long-context retrieval, while accessing very few slots per token.

Your questions pushed us to make the empirical case considerably more complete, and we are grateful for that. Please let us know if anything remains open.

Refs.

[1] Zhang et al. Flame: Flash Language Modeling Made Easy. 2025.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…