REVIEW 3 major objections 5 minor 2 cited by
The paper claims that adding an importance state to each attention memory slot turns in-context learning into a continual learner that protects old associations, and that a widely used state-space model is its fast-forgetting limit.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · deepseek-v4-flash
2026-08-03 03:07 UTC pith:BTT56JT5
load-bearing objection A credibly derived dual-state Bayesian update for gated linear attention; the mechanism claims outrun the current experiments, but the framework deserves serious engagement. the 3 major comments →
Learning to Remember, Learn, and Forget in Attention-Based Models
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Palimpsa's central claim is that a fixed-size attention memory behaves like a true palimpsest—retaining significant writing, washing away stale writing—when each memory element carries its own uncertainty. Concretely, the layer maintains two states per slot: a precision vector I_t, which acts as the slot's importance, and the associative memory μ_t. On each token the precision is updated as I_t = α_t I_{t−1} + (1−α_t)I_prior + β_t ⊗ k_t^2, and the memory as μ_t = α_t (I_{t−1}/I_t) ⊙ μ_{t−1} + (1/I_t) ⊙ ((β_t ⊙ v_t) ⊗ k_t), where α_t is an input-dependent forgetting gate tied to an effective memory window N_t and β_t is an input gate. The paper argues that this update, derived from a variatio
What carries the argument
The carrying object is the Palimpsa update pair, Eq. (5). The first line maintains a precision state I_t, a per-slot measure of how much evidence each memory element has accumulated; the second updates the associative memory μ_t using the ratio of old to new precision. The engine behind it is the variational free energy with three terms—plasticity (new key–value evidence), stability (protection of the previous memory weighted by its precision), and forgetting (a pull toward a prior controlled by the window N_t). The forgetting gate α_t = exp(−A d_t) turns the scalar memory window into an input-dependent quantity, which is what lets the model decide in context when to remember and when to rel
Load-bearing premise
The load-bearing premise is that forgetting can be simulated by discounting all past evidence by a fixed fraction at every step—the geometric-mean proxy for the unavailable oldest data point in Appendix A.2—and if that proxy is wrong, the effective memory window and every gate derived from it inherit the error.
What would settle it
On the multi-query associative recall task, measure accuracy separately for the earliest key–value pairs in each sequence as sequence length grows. If the metaplastic model truly protects old associations, its early-pair recall should decay much more slowly than a non-metaplastic gated linear attention baseline; equal decay would refute the central stability claim. A sharper version is to implement the exact sliding-window posterior instead of the geometric-mean proxy and verify whether the Palimpsa update still matches it.
If this is right
- Any non-metaplastic gated linear attention or delta-rule model can be upgraded to the metaplastic form by adding the precision state and fine-tuning; the paper demonstrates this for both a delta-rule-style backbone and a state-space-style backbone.
- At 760M scale, fine-tuned metaplastic variants outperform their non-metaplastic counterparts by roughly 0.6 average accuracy points on commonsense reasoning, with the largest improvement on LAMBADA, a task that requires holding broad context.
- On the multi-query associative recall benchmark, the performance gap between metaplastic and non-metaplastic variants grows with sequence length, consistent with the model learning to slow forgetting (larger N_t) as task difficulty increases.
- Because Mamba2 is the high-forgetting limit of Palimpsa, the framework provides a continuous dial between Mamba2-like behaviour and full metaplastic memory; a practical consequence is pre-training with fast non-metaplastic kernels followed by a short metaplastic fine-tuning phase.
- At inference time the added cost of metaplasticity is modest: the recurrent state remains fixed-size, and the benchmarked attention kernel runs at roughly a quarter of a simple gated linear attention kernel's throughput in isolation.
Where Pith is reading between the lines
- Extension: because the diagonal precision treats every memory element independently, a natural next step is to reintroduce selective correlations between key dimensions, which could strengthen associative recall but would require trading away some of the single-pass efficiency.
- Extension: the learned effective window N_t could serve as an interpretability probe—per layer, it tells how far back a model is actually looking; the paper does not test this diagnostic use.
- Extension: one could anneal the forgetting dial from the Mamba2 limit toward full metaplasticity during training, testing whether the benefit can be acquired gradually rather than through a separate fine-tuning phase.
- Extension: replacing the geometric-mean stale-data proxy with an exact sliding-window likelihood would isolate how much of the empirical gain is due to the approximation itself rather than to the metaplastic update.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes Palimpsa, a gated linear attention layer that casts in-context learning as online Bayesian continual learning. It derives an update rule with a per-state importance/precision variable I_t, which modulates the learning rate to protect old associations while a forgetting factor releases stale information. The authors show that several existing architectures (Longhorn, Deltanet, Gated Deltanet, MesaNet, and Mamba2) can be viewed as special cases or approximations of this framework, and they introduce a fine-tuning scheme to convert a pre-trained Mamba2 model into a metaplastic Palimpsa. Experiments on MQAR and on Commonsense Reasoning benchmarks (170M and 760M models) report consistent gains over non-metaplastic baselines, with the largest gains on long-sequence MQAR and on LAMBADA.
Significance. If the central claims hold, the paper makes a useful contribution: it provides a variational-Bayesian derivation of a practical gated linear attention update with per-state metaplasticity, unifies several existing models under one formalism, and demonstrates a concrete recipe for upgrading Mamba2 into a memory-enhanced model. The derivations in the appendices are explicit and self-contained, and the experimental protocol is careful (8 seeds, curriculum, token-budget parity for fine-tuning). The main caveat is that the headline mechanism — preventing in-context catastrophic forgetting — is not isolated by the reported experiments, and two theoretical steps (the geometric-mean forgetting proxy and the Mamba2 limit) need sharper treatment before the claims are fully persuasive.
major comments (3)
- [§3.1, Fig. 2, Eq. (5)] The headline claim that Palimpsa 'prevents in-context catastrophic forgetting' is supported only by average MQAR accuracy over all queries. Such an average cannot distinguish genuine preservation of early KV pairs from a recency bias produced by the forgetting factor in Eq. (5). Please report accuracy conditioned on key position (or pair age), or a retention curve. Without this, the mechanism claim is underdetermined; Fig. 3's loss and metaplasticity ratio do not resolve the issue.
- [Appendix A.2, Eqs. (8)–(9)] The forgetting mechanism is built on the geometric-mean proxy p(d_{t−N}|S) ≈ (q_{θ_{t−1}}(S)/p(S))^{1/N}. All subsequent claims about the effective memory window N_t and the stability-plasticity trade-off inherit this approximation. The proxy is plausible but is neither validated nor bounded. Please provide a small-scale comparison with the exact truncated posterior (e.g., in a linear regression setting) or a theoretical error bound, and state which conclusions would change if the proxy is inaccurate.
- [§2.3, §2.4, Table 1] The Mamba2 special case is stated in §2.3 as arising from a high forgetting rate, but I_t ≈ I_prior requires more than small α_t: the β_t ⊗ k_t^2 term in Eq. (5) must also be negligible relative to I_prior. The reparameterization in §2.4 (β→0, large-value limit) supplies this, but the notation v*_t = β_t ⊙ v_t = SiLU(θ_v x_t) is inconsistent as written (a product cannot equal the SiLU activation unless additional scaling is defined). Please clarify the limit and the notation; the phrase 'where forgetting dominates' is too strong for the actual condition.
minor comments (5)
- [§2.2, Eq. (5)] I_prior is introduced without specifying whether it is a scalar or a vector; Eq. (5) and Table 1 use it in ways that suggest a vector. Please define its dimensions.
- [Appendix A.5] The sentence 'this is a stronger approximation than a standard mean-field (diagonal covariance) assumption' is confusing. Deriving the full solution and then discarding off-diagonals is not stronger than solving under a diagonal constraint; please rephrase.
- [Appendix A.6] The first sentence says 'Gated Deltanet can be derived similarly by suppressing the forgetting', but the derivation that follows includes forgetting (α_t). The wording should be corrected.
- [§2.4] The notation v*_t appears without prior definition and is used inconsistently with v_t. Please define it clearly and state its role in the kernel.
- [Table 2] The column labeled 'LMB. ppl↓' appears to be followed by accuracy columns without a clear separator; check the formatting so that perplexity and accuracy are visually distinct.
Circularity Check
No significant circularity: Palimpsa's update rule is derived from a stated Bayesian free energy, and the Mamba2/Deltanet recoveries are explicit algebraic limits rather than fitted predictions.
full rationale
The derivation chain is self-contained in the relevant sense. Equation (5) is obtained by setting to zero the analytical gradients of the free energy in Eq. (3) under the explicitly stated diagonal-covariance approximation (Appendices A.3-A.5); the update is not assumed as the answer. The forgetting mechanism enters through the weighted posterior of Appendix A.2, which the paper transparently labels as a proxy ('As a proxy, one can use the geometric mean of the likelihoods...') and attributes to prior work (Bonnet et al., 2025). This is a stated modeling assumption, not a hidden fit or a renamed prediction; the paper's claims inherit it honestly. The recoveries of Deltanet and Mamba2 are also explicit: Table 1 and Section 2.3 derive Mamba2 by taking I_t approximately equal to I_prior in Eq. (5), and Appendix A.6 derives Gated Deltanet under stated diagonal/first-order simplifications. These are demonstrative mathematical reductions made after knowing the target update, so they are not falsifiable empirical predictions, but neither are they circular in the derivation sense. The MESU self-citation is load-bearing for the forgetting schedule, but it refers to a published, externally evaluated prior method rather than an unverified uniqueness claim, and the present contribution applies it to attention with a new derivation and ablations. The MQAR average-accuracy evidence is an identifiable experimental-design concern about isolating retention by key position, not a circularity in the mathematical derivation. Therefore no circular step can be exhibited.
Axiom & Free-Parameter Ledger
free parameters (4)
- Forgetting gate α_t (via A and d_t) =
trained; A initialized U(0.01,0.16) on MQAR, U(0,16) on language; Δt bias log-ramp 0.001–0.1
- Input-dependent importance gain β_t =
trained; Palimpsa-D uses a dedicated projection, Palimpsa-M uses SiLU(θ_v x_t)
- Prior importance I_prior =
not stated explicitly; in the Deltanet derivation it is set to 1
- Per-head β amplitude scale b_scale =
fine-tuning schedule in [0.1, 1.0]
axioms (5)
- domain assumption Gaussian likelihood p(v|k,β,S) with diagonal precision diag(β)
- domain assumption Weighted-posterior forgetting proxy using geometric mean of past likelihoods
- domain assumption Variational posterior q_{θ_{t-1}} approximates the previous weighted posterior
- ad hoc to paper Diagonal covariance approximation
- ad hoc to paper Reparameterization v* = β⊙v = SiLU(θ_v x_t) with b_scale controlling β amplitude
invented entities (1)
-
Importance state I_t (per-synapse precision trace)
no independent evidence
read the original abstract
In-Context Learning (ICL) in transformers acts as an online associative memory and is believed to underpin their high performance on complex sequence processing tasks. However, in gated linear attention models, this memory has a fixed capacity and is prone to interference, especially for long sequences. We propose Palimpsa, a self-attention model that views ICL as a continual learning problem that must address a stability-plasticity dilemma. Palimpsa uses Bayesian metaplasticity, where the plasticity of each attention state is tied to an importance state grounded by a prior distribution that captures accumulated knowledge. We demonstrate that various gated linear attention models emerge as specific architecture choices and posterior approximations, and that Mamba2 is a special case of Palimpsa where forgetting dominates. This theoretical link enables the transformation of any non-metaplastic model into a metaplastic one, significantly expanding its memory capacity. Our experiments show that Palimpsa consistently outperforms baselines on the Multi-Query Associative Recall (MQAR) benchmark and on Commonsense Reasoning tasks.
Figures
Forward citations
Cited by 2 Pith papers
-
Black-Mamba: Biologically-Inspired Leaky Accumulation for Conceptual Knowledge under Distribution Drift
Gating test-time memory writes on leaky accumulated surprisal preserves most of the adaptation benefit while roughly halving the number of updates.
-
Memory by Design: Probabilistic Sequence Layers
The design-model framework unifies sub-quadratic sequence models as Bayesian filters and introduces a covariance-tracking Bayesian Layer that improves retrieval robustness beyond training regimes on MQAR and RULER benchmarks.
Reference graph
Works this paper leans on
-
[8]
9 Learning to Remember, Learn, and Forget in Attention-Based Models Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., et al. An image is worth 16x16 words: Transformers for image recognition at scale.arXiv preprint arXiv:2010.11929,
Pith/arXiv arXiv 2010
-
[9]
Falck, F., Wang, Z., and Holmes, C. Is in-context learn- ing in large language models bayesian? a martingale perspective.arXiv preprint arXiv:2406.00793,
-
[10]
Gu, A. and Dao, T. Mamba: Lineartime sequence modeling with selective state spaces.arXiv preprint arXiv:2312.00752,
-
[11]
Hahn, M. and Goyal, N. A theory of emergent in-context learning as implicit structure induction.arXiv preprint arXiv:2303.07971,
-
[12]
Kaushik, P., Gain, A., Kortylewski, A., and Yuille, A. Under- standing catastrophic forgetting and remembering in con- tinual learning with optimal relevance mapping.NeurIPS 2021 Workshop MetaLearn Poster. Available on arXiv preprint arXiv:2102.11343,
Pith/arXiv arXiv 2021
-
[13]
Kim, S., Hooper, C., Wattanawong, T., Kang, M., Yan, R., Genc, H., Dinh, G., Huang, Q., Keutzer, K., Mahoney, M. W., et al. Full stack optimization of transformer infer- ence: a survey.arXiv preprint arXiv:2302.14017,
-
[14]
Longhorn: State space models are amortized online learners.arXiv preprint arXiv:2407.14207,
Liu, B., Wang, R., Wu, L., Feng, Y ., Stone, P., and Liu, Q. Longhorn: State space models are amortized online learners.arXiv preprint arXiv:2407.14207,
-
[17]
Socialiqa: Commonsense reasoning about social interac- tions.arXiv preprint arXiv:1904.09728,
Sap, M., Rashkin, H., Chen, D., LeBras, R., and Choi, Y . Socialiqa: Commonsense reasoning about social interac- tions.arXiv preprint arXiv:1904.09728,
Pith/arXiv arXiv 1904
-
[19]
Remembering transformer for continual learning.arXiv preprint arXiv:2404.07518,
Sun, Y ., Fujisawa, I., Juliani, A., Sakuma, J., and Kanai, R. Remembering transformer for continual learning.arXiv preprint arXiv:2404.07518,
-
[21]
Transformers learn incontext by gradient descent
von Oswald, J., Niklasson, E., Randazzo, E., Sacramento, J., Mordvintsev, A., Zhmoginov, A., and Vladymyrov, M. Transformers learn incontext by gradient descent. InInternational Conference on Machine Learning, pp. 3515135174. PMLR, 2023a. von Oswald, J., Niklasson, E., Schlegel, M., Kobayashi, S., Zucchet, N., Scherrer, N., Miller, N., Sandler, M., Vladym...
-
[22]
Wang, H., Lu, H., Yao, L., and Gong, D. Self-expansion of pre-trained models with mixture of adapters for continual learning.arXiv preprint arXiv:2403.18886,
-
[23]
M., Raghunathan, A., Liang, P., and Ma, T
Xie, S. M., Raghunathan, A., Liang, P., and Ma, T. An explanation of in-context learning as implicit bayesian inference.arXiv preprint arXiv:2111.02080,
-
[24]
com/fla-org/flash-linear-attention
URL https://github. com/fla-org/flash-linear-attention. Yang, S., Wang, B., Shen, Y ., Panda, R., and Kim, Y . Gated linear attention transformers with hardwareefficient train- ing.arXiv preprint arXiv:2312.06635,
-
[25]
Gated delta net- works: Improving mamba2 with delta rule.arXiv preprint arXiv:2412.06464,
Yang, S., Kautz, J., and Hatamizadeh, A. Gated delta net- works: Improving mamba2 with delta rule.arXiv preprint arXiv:2412.06464,
-
[26]
Hellaswag: Can a machine really finish your sentence? arXiv preprint arXiv:1905.07830,
Zellers, R., Holtzman, A., Bisk, Y ., Farhadi, A., and Choi, Y . Hellaswag: Can a machine really finish your sentence? arXiv preprint arXiv:1905.07830,
Pith/arXiv arXiv 1905
-
[27]
Continual learning through synaptic intelligence
Zenke, F., Poole, B., and Ganguli, S. Continual learning through synaptic intelligence. In Precup, D. and Teh, Y . W. (eds.),Proceedings of the 34th International Con- ference on Machine Learning, volume 70 ofProceedings of Machine Learning Research, pp. 39873995. PMLR, 0611 Aug 2017a. URL https://proceedings. mlr.press/v70/zenke17a.html. Zenke, F., Poole...
-
[28]
URL https://github. com/fla-org/flame. Zhang, Y ., Zhang, F., Yang, Z., and Wang, Z. What and how does in-context learning learn? bayesian model averag- ing, parameterization, and generalization.arXiv preprint arXiv:2305.19420,
-
[29]
Appendices As described in the main text, Palimpsa-M builds upon Mamba-2, while Palimpsa-D is based on Deltanets
11 Learning to Remember, Learn, and Forget in Attention-Based Models A. Appendices As described in the main text, Palimpsa-M builds upon Mamba-2, while Palimpsa-D is based on Deltanets. These two models utilize distinct gated linear attention layers and separate backbones, allowing our metaplasticity ablation studies to evaluate two highly different point...
2025
-
[1024]
For all models, word embeddings are tied with the language modeling head
Optimizer AdamW Learning rate [1e-3,2.15e-3,4.64e-3,1e-2] Random seeds{1, 2, 3, 4, 5, 6, 7, 8} Language Modelling Experiments We evaluate Palimpsa across two primary model scales: 170M and 760M parameters. For all models, word embeddings are tied with the language modeling head. The decay parameters A are initialized by sampling from a uniform distributio...
2025
-
[1989]
N., Bernardi, R., Pezzelle, S., Baroni, M., Boleda, G., and Fern´andez, R
Paperno, D., Kruszewski, G., Lazaridou, A., Pham, Q. N., Bernardi, R., Pezzelle, S., Baroni, M., Boleda, G., and Fern´andez, R. The lambada dataset: Word prediction requiring a broad discourse context.arXiv preprint arXiv:1606.06031,
-
[2016]
Rusu, A. A., Rabinowitz, N. C., Desjardins, G., Soyer, H., Kirkpatrick, J., Kavukcuoglu, K., Pascanu, R., and Had- sell, R. Progressive neural networks.arXiv preprint arXiv:1606.04671,
-
[2017]
von Oswald, J., Henning, C., Sacramento, J., and Grewe, B. F. Continual learning with hypernetworks.arXiv preprint arXiv:1906.00695,
Pith/arXiv arXiv 1906
-
[2018]
Dao, T. and Gu, A. Transformers are ssms: Generalized models and efficient algorithms through structured state space duality.arXiv preprint arXiv:2405.21060,
-
[2019]
Learning to (learn at test time).arXiv preprint arXiv:2310.13807,
Sun, Y ., Li, X., Dalal, K., Hsu, C., Koyejo, S., Guestrin, C., Wang, X., Hashimoto, T., and Chen, X. Learning to (learn at test time).arXiv preprint arXiv:2310.13807,
-
[2020]
Cheng, D., Lu, Y ., He, L., Zhang, S., Yang, X., Wang, N., and Gao, X. Mambacl: Optimizing selective state space model in null space for continual learning.arXiv preprint arXiv:2411.15469,
-
[2021]
Aky¨urek, E., Schuurmans, D., Andreas, J., Ma, T., and Zhou, D. What learning algorithm is incontext learn- ing? investigations with linear models.arXiv preprint arXiv:2211.15661,
-
[2022]
Arora, A., Jurafsky, D., Potts, C., and Goodman, N. D. Bayesian scaling laws for in-context learning, 2024a. URLhttps://arxiv.org/abs/2410.16531. Arora, S., Eyuboglu, S., Timalsina, A., Johnson, I., Poli, M., Zou, J., Rudra, A., and Re, C. Zoology: Measuring and improving recall in efficient language models. InThe Twelfth International Conference on Learn...
-
[2023]
Think you have solved question answering? try arc, the ai2 reasoning challenge
Clark, P., Cowhey, I., Etzioni, O., Khot, T., Sabharwal, A., Schoenick, C., and Tafjord, O. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457,
-
[2024]
Titans: Learning to memorize at test time.arXiv preprint arXiv:2501.00663,
Behrouz, A., Zhong, P., and Mirrokni, V . Titans: Learning to memorize at test time.arXiv preprint arXiv:2501.00663,
-
[2025]
Rt-1: Robotics transformer for real-world control at scale.arXiv preprint arXiv:2212.06817,
Brohan, A., Brown, N., Carbajal, J., Chebotar, Y ., Dabis, J., Finn, C., Gopalakrishnan, K., Hausman, K., Herzog, A., Hsu, J., et al. Rt-1: Robotics transformer for real-world control at scale.arXiv preprint arXiv:2212.06817,
-
[3090]
We benchmarked the fused recurrent kernel on a singleNVIDIA GeForce RTX 3090GPU ( B= 1, L= 32, H= 1 ), varying the model dimension D∈ {512,1024,2048}
Palimpsa matches the baseline’s scaling behavior while maintaining a consistent 4× factor due to the dual-state update overhead. We benchmarked the fused recurrent kernel on a singleNVIDIA GeForce RTX 3090GPU ( B= 1, L= 32, H= 1 ), varying the model dimension D∈ {512,1024,2048}. As shown in Figure 5, Palimpsa demonstrates robust throughput, peaking at rou...
2048
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.