pith. sign in

arxiv: 2605.24330 · v1 · pith:SAWRON22new · submitted 2026-05-23 · 💻 cs.LG

Interdomain Attention: Beyond Token-Level Key-Value Memory

Pith reviewed 2026-06-30 13:56 UTC · model grok-4.3

classification 💻 cs.LG
keywords Interdomain Attentionstate space modelskernel methodsattention mechanismsrecurrent statefeature mapslanguage modelingfixed-size state
0
0 comments X

The pith

Interdomain Attention recovers query-conditioned attention over a fixed recurrent state by projecting keys and values onto SSM basis functions.

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The paper tries to establish a hybrid attention mechanism that lets queries perform content-based matching over a compressed context without a growing KV cache. It approximates the attention kernel with a finite feature map, projects the resulting keys and values onto basis functions kept by one SSM recurrence, and lets each query recover attention to those coefficients through its own feature map. A sympathetic reader would care because the construction keeps the fixed-state length independence of SSMs while adding query-specific addressing that standard SSM mixers lack. Experiments at 125M to 1.3B parameters on FineWeb-Edu show consistent gains over pure SSM mixers and, at the largest scale, over a matched softmax baseline on both perplexity and commonsense tasks. Ablations point to the query-conditioned projection step as the main driver.

Core claim

Interdomain Attention integrates an SSM into an attention module through kernel methods: an attention kernel is approximated by a finite feature map, the resulting key features and values are projected onto a shared set of basis functions maintained by a single SSM recurrence, and each query attends to the compressed coefficients through its own feature map, recovering query-conditioned attention over a fixed-size state. The scalable layer is a learned relaxation of this derivation.

What carries the argument

Interdomain Attention, the mechanism that projects finite-feature-map key and value representations onto SSM-maintained basis functions so that queries can attend to the resulting compressed coefficients.

If this is right

  • At matched recurrent-state budget, Interdomain Attention improves on an SSM token mixer at every scale from 125M to 1.3B in autoregressive language modeling on FineWeb-Edu.
  • At 1.3B parameters it surpasses a same-recipe softmax baseline on validation perplexity and on the eight-task commonsense suite.
  • The model inherits the length-flat behavior of its fixed-state core out to 3.5 times the training context.
  • Ablations show that the query-conditioned projection step accounts for most of the observed gain.

Where Pith is reading between the lines

These are editorial extensions of the paper, not claims the author makes directly.

  • The same projection idea could be applied to other kernel approximations or to recurrent cores besides the SSM used here.
  • Hybrid layers that mix standard attention blocks with Interdomain Attention blocks might further improve long-context efficiency.
  • The fixed-state design removes the need for a growing KV cache while retaining a form of content-based addressing.

Load-bearing premise

An attention kernel approximated by a finite feature map, when its keys and values are projected onto SSM basis functions, still lets each query recover query-conditioned attention to those compressed coefficients.

What would settle it

A 1.3B-parameter run with the same training recipe in which Interdomain Attention fails to beat the softmax baseline on validation perplexity or on the eight-task commonsense suite.

Figures

Figures reproduced from arXiv: 2605.24330 by Harrison Bo Hua Zhu, Naoki Kiyohara, Riccardo El Hassanin, Samir Bhatt, Wenlong Chen, Yingzhen Li, Zhuo Sun.

Figure 1
Figure 1. Figure 1: (a) Standard attention computes Nq × N scores from Q and K, then multiplies by V to produce the output. (b) Interdomain attention maps queries and keys into a shared feature space to produce the kernel query matrix Fq (Nq × R). Keys and values are compressed via SSM recurrence into M interdomain states: U (M × R, key feature projections), Γ (M × d, value projections), and η (M × 1, normalizing constants). … view at source ↗
Figure 2
Figure 2. Figure 2: FineWeb-Edu validation perplexity vs. training compute (log–log scale), C = 6ND FLOPs for total parameters N and total training tokens D (Chinchilla convention (Hoffmann et al., 2022)). Each point is best-of-run perplexity at the Chinchilla-optimal token budget for that scale (2.5, 7, 15, 26 B tokens for 125 M, 350 M, 760 M, 1.3 B parameters). by −0.010, and the LAMBADA BPB by −0.131. The S4D control trail… view at source ↗
Figure 3
Figure 3. Figure 3: shows the per-condition data flow referenced in Section B.1. The four subfigures show the Full Interdomain mechanism, the Dual KV input, linear projection variant, the Single input, Q-conditioned projection variant, and the S4D-only control. x WQ WK WV SC SC RoPE RoPE ξq ξk v N+b N+b [ξk, v] complex S4D shared Q proj ξqU⊤Γ WO (a) Full Interdomain x WK WV SC RoPE ξk v N+b N+b [ξk, v] complex S4D shared line… view at source ↗
Figure 4
Figure 4. Figure 4: Steady-state decode latency vs. prefix length at varying batch sizes for the 1.3B model on a single RTX 6000 Ada (48 GB). Graphed interdomain (dashed red) is essentially prefix-flat in every panel; softmax (solid blue) is flat at B=1 but rises with L once the per-step KV-cache traffic saturates Ada’s ∼960 GB/s memory bandwidth (B=8, L=8K: 14 ms → 22 ms; similar steps at B=16, L=4K and B=32, L=2K). Eager in… view at source ↗
read the original abstract

Transformers and deep state space models (SSMs) sit at opposite ends of a basic design choice: attention routes each query through a growing key-value (KV) cache by content-based matching at quadratic cost, while deep SSMs compress context into a fixed-size recurrent state that is not directly addressed by query-key matching. We propose Interdomain Attention, which integrates an SSM into an attention module through kernel methods: an attention kernel is approximated by a finite feature map, the resulting key features and values are projected onto a shared set of basis functions maintained by a single SSM recurrence, and each query attends to the compressed coefficients through its own feature map, recovering query-conditioned attention over a fixed-size state. The scalable layer is a learned relaxation of this derivation, and we validate its components through ablations. In a 125M to 1.3B autoregressive language-modeling study on FineWeb-Edu at matched recurrent-state budget, Interdomain Attention improves on an SSM token mixer at every scale, surpasses a same-recipe softmax baseline at 1.3B on validation perplexity and on the eight-task commonsense suite, and inherits the length-flat behavior of its fixed-state core out to 3.5x the training context. Ablations indicate that the query-conditioned projection is the main source of the gain.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

2 major / 0 minor

Summary. The manuscript proposes Interdomain Attention to integrate state-space models into attention layers via kernel methods: an attention kernel is approximated by a finite feature map, keys and values are projected onto basis functions maintained by a single SSM recurrence, and each query attends over the resulting compressed coefficients through its own feature map. The scalable implementation is presented as a learned relaxation of this exact construction. In autoregressive language-modeling experiments on FineWeb-Edu with models ranging from 125M to 1.3B parameters at matched recurrent-state budget, the method is reported to improve over an SSM token mixer at every scale, to surpass a same-recipe softmax baseline at 1.3B on validation perplexity and an eight-task commonsense suite, and to retain the length-flat extrapolation behavior of its fixed-state core out to 3.5 imes the training context. Ablations are said to attribute the gains primarily to the query-conditioned projection.

Significance. If the empirical results prove robust, the work supplies a kernel-derived route for injecting content-based addressing into fixed-size recurrent states, offering a hybrid motif that could improve both efficiency and extrapolation in long-context modeling. The explicit separation between the exact derivation and its learned relaxation, together with the reported length-flat behavior, would constitute a concrete architectural contribution if the supporting evidence is made reproducible.

major comments (2)
  1. [Abstract] Abstract (empirical study paragraph): the central performance claims—outperformance of the SSM mixer at all scales and of the softmax baseline at 1.3B—are presented without any description of training procedures, hyperparameter search protocol, statistical significance testing, or data filtering. Because these claims constitute the primary evidence for the method’s utility, the absence of such details renders the results uninspectable and load-bearing for the manuscript’s conclusions.
  2. [Abstract] Abstract (derivation and relaxation sentence): the text states that the scalable layer is a learned relaxation of the kernel-derived construction, yet provides neither the exact equations for the finite-feature-map projection onto the SSM basis nor the precise form of the relaxation. Without these, it is impossible to determine how closely the implemented layer follows the claimed query-conditioned attention over compressed coefficients, which is the mechanistic justification for the reported gains.

Simulated Author's Rebuttal

2 responses · 0 unresolved

We thank the referee for the detailed and constructive report. The two major comments identify important gaps in the abstract's presentation of experimental details and the derivation. We address each below and will revise the manuscript accordingly to improve clarity and inspectability while preserving the core contribution.

read point-by-point responses
  1. Referee: [Abstract] Abstract (empirical study paragraph): the central performance claims—outperformance of the SSM mixer at all scales and of the softmax baseline at 1.3B—are presented without any description of training procedures, hyperparameter search protocol, statistical significance testing, or data filtering. Because these claims constitute the primary evidence for the method’s utility, the absence of such details renders the results uninspectable and load-bearing for the manuscript’s conclusions.

    Authors: We agree that the abstract's empirical claims would benefit from greater transparency. In the revised manuscript we will expand the experimental setup section (currently Section 5) to explicitly detail the FineWeb-Edu preprocessing and filtering steps, the hyperparameter search protocol (including learning rate schedules, batch sizes, and optimizer choices), the number of random seeds used, and any statistical testing performed. Because abstracts have strict length limits, we will add a concise pointer sentence in the abstract directing readers to this expanded section and will include a short methods summary paragraph immediately after the abstract in the camera-ready version. revision: yes

  2. Referee: [Abstract] Abstract (derivation and relaxation sentence): the text states that the scalable layer is a learned relaxation of the kernel-derived construction, yet provides neither the exact equations for the finite-feature-map projection onto the SSM basis nor the precise form of the relaxation. Without these, it is impossible to determine how closely the implemented layer follows the claimed query-conditioned attention over compressed coefficients, which is the mechanistic justification for the reported gains.

    Authors: The exact finite-feature-map construction, the projection of keys/values onto the SSM-maintained basis functions, and the learned relaxation (including the specific parameterization that replaces the exact kernel with a trainable module) are derived in Section 3 and implemented in Section 4. We will revise the abstract sentence to include a parenthetical reference to these sections and, space permitting, a one-line high-level equation sketch. This will make the connection between the kernel derivation and the deployed layer explicit without altering the abstract's length substantially. revision: partial

Circularity Check

0 steps flagged

No significant circularity in the derivation chain

full rationale

The paper presents a kernel-based derivation for Interdomain Attention that integrates an SSM into an attention module via finite feature map approximation of the attention kernel, projection of key features and values onto SSM-maintained basis functions, and query-conditioned attention over the compressed coefficients. It explicitly states that the scalable layer is a learned relaxation of this derivation, with components validated through ablations. The reported gains on language modeling (125M–1.3B scales, matched recurrent-state budget) and length extrapolation are obtained from the learned model and separate empirical tests on FineWeb-Edu and downstream tasks; no equation reduces these gains to quantities defined by the same fitted parameters by construction, and no load-bearing self-citations or uniqueness theorems are invoked in the provided text.

Axiom & Free-Parameter Ledger

1 free parameters · 2 axioms · 0 invented entities

The abstract invokes standard kernel approximation of attention and SSM recurrence as background; the only added element is a learned relaxation whose parameters are fitted during training. No new physical entities are postulated.

free parameters (1)
  • parameters of the learned relaxation layer
    The scalable implementation is explicitly described as a learned relaxation of the exact kernel-plus-SSM derivation.
axioms (2)
  • standard math Attention kernels can be approximated by finite feature maps
    Invoked to connect the query-key matching to the SSM-maintained basis.
  • domain assumption A single SSM recurrence can maintain a shared set of basis functions for projected keys and values
    Central to compressing the KV cache into fixed-size coefficients.

pith-pipeline@v0.9.1-grok · 5785 in / 1418 out tokens · 57769 ms · 2026-06-30T13:56:14.389164+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Reference graph

Works this paper leans on

7 extracted references · 5 canonical work pages · 4 internal anchors

  1. [1]

    Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge

    Association for Computational Linguistics. doi: 10.18653/v1/N19-1300. 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, 2018. URL https://arxiv.org/abs/ 1803.05457. Dao, T. Flashattention-2: Faster attention with better paral- lelism a...

  2. [2]

    Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models

    doi: 10.18653/V1/2021.NAACL-MAIN.365. De, S., Smith, S. L., Fernando, A., Botev, A., Cristian- Muraru, G., Gu, A., Haroun, R., Berrada, L., Chen, Y ., Srinivasan, S., Desjardins, G., Doucet, A., Budden, D., Teh, Y . W., Pascanu, R., Freitas, N. D., and Gulcehre, C. Griffin: Mixing gated linear recurrences with lo- cal attention for efficient language mode...

  3. [3]

    Enriching word vectors with subword information , volume =

    doi: 10.1162/tacl a 00023. Lahoti, A., Li, K., Chen, B., Wang, C., Bick, A., Kolter, J. Z., Dao, T., and Gu, A. Mamba-3: Improved sequence modeling using state space principles. InThe Fourteenth International Conference on Learning Representations, 2026. L´azaro-Gredilla, M. and Figueiras-Vidal, A. R. Inter- domain gaussian processes for sparse inference ...

  4. [4]

    Fast Transformer Decoding: One Write-Head is All You Need

    Association for Computational Linguistics. doi: 10.18653/v1/P16-1144. Penedo, G., Kydl´ıˇcek, H., allal, L. B., Lozhkov, A., Mitchell, M., Raffel, C., V on Werra, L., and Wolf, T. The fineweb datasets: Decanting the web for the finest text data at scale. In Globerson, A., Mackey, L., Belgrave, D., Fan, A., Paquet, U., Tomczak, J., and Zhang, C. (eds.),Ad-...

  5. [5]

    vs Softmax

    Association for Computational Linguistics, 2021. doi: 10.18653/V1/2021.NAACL-MAIN.472. 11 Interdomain Attention: Beyond Token-Level Key-Value Memory A. Implementation and Training Details A.1. SSM kernel backends The FFT convolution computes the S4D recurrence (Gu et al., 2022b;a) via O(NlogN) transforms per input channel and state dimension. The sequenti...

  6. [6]

    Softmax decode requires a dynamically growing KV cache and is not directly graph-capturable

    CUDA graph compatibility.The fixed-shape SSM state lets the entire decode body be captured into a single static graph and replayed once per token, removing the per-step Python and kernel-launch overhead. Softmax decode requires a dynamically growing KV cache and is not directly graph-capturable

  7. [7]

    Range” is the min–max over the prefix lengths that fit; “max-fit L

    Lower peak prefill memory via chunking.Because the recurrent state has a size independent of prefix length, prefill can be processed in fixed-size chunks of C=2048 tokens with the running state retained and per-chunk activations released. This lets interdomain decode reach(B, L)cells where softmax exhausts the GPU memory. Protocol.Prefill L tokens → captu...