跳转至

Long context has several axes: position, access, and state compression

简体中文 · English

Updated 2026-11-25 · 50 topic entries / 24 representative comparisons

Ask first how history is stored and then how the current token reads it. RoPE changes relative position relationships; Mamba writes history into recurrence; NSA splits access across paths; OpenAttention retains proxies for unread content; and TTR fits an input-conditioned compression. MERLIN keeps routing-key moments beside compressed segment states to change how segments are read without replacing their internal recurrent writes. A single supported-length number cannot rank these designs.

Mechanisms · Trade-offs · Cross-paper questions · Updates

How to read this card

The table compares representative methods. It is not a shared-benchmark leaderboard. Teaching examples are not measured results.

Mechanism comparison

Axes: Token-level KV, recurrent state, or input-conditioned compression coefficients · Whether the current query can revisit exact details · Whether unread history is omitted, summarized, or already folded into state · Costs in training, forward solving, or index access

Paper and source Mechanism Benefits and trade-offs
RoFormer: Enhanced Transformer with Rotary Position Embedding · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式
Rotate two-dimensional Q/K subspaces so their dot product expresses relative position; compatible with full attention. Encodes position rather than reducing history count or KV bandwidth. The local small-model rotation does not establish arbitrary length extrapolation.
Mamba: Linear-Time Sequence Modeling with Selective State Spaces · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 复现边界
Use token-conditioned step size and read/write vectors to fold history into bounded recurrent state. Avoids retaining all token KV, but only information kept in state remains accessible. Local native PyTorch scan does not reproduce the fused kernel.
Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 复现边界
Use compressed blocks for overview, query-selected blocks for detail, and a sliding window for exact recency; gate their outputs together. Different paths need design and training. A coarse overview may not recover details after a selection miss. Local trainability is not reported long-context throughput.
OpenAttention: One Percent Is Enough with Tail Proxies · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式
Cluster by query geometry, allocate exact-read budget by estimated proxy error, and include unread clusters as count-weighted mean proxies in softmax. The tail is not zeroed, but within-cluster detail can disappear and ErrorGate relies on approximations. Only a single-head operator is diagnosed locally; full experiments were too expensive.
Rethinking Sequence Compression with Test-time Regression · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式
Treat token groups as regression observations and solve regularized least squares each forward pass for input-conditioned coefficients. Neither weight training at inference nor free pooling. The dual solve has a T³ term and is attractive only when groups are much shorter than feature width. Local work is diagnostic.
Select-TTT: Query-Conditioned Selective Fast Weight Updates for In-Place Test-Time Training · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式
Aggregate top-k low-CE positions of query tokens, scale by T×softmax, and clip write multipliers. Requires a real frozen head/RMSNorm and NTP-aligned features, not a local LLM or distributed kernel.
Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式
Mix an external binary semantic reward with thresholded token edit similarity. Implements LTI reward only, not CMS, dreaming, knowledge seeding, or LoRA; full Sleep training was too expensive and not reproduced.
Multi-State Linear Attention with Generalized Second-Order Routing · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 高成本完整实验
Keep segment routing-key means and raw second moments to recover query-aligned variance. Softmax the two paths separately and gate their external state readouts. Adds segment-state and moment storage without reconstructing exact token softmax. The current unfinished segment needs external recurrence; full mid-training was not reproduced.
Coarse Semantic Blocks for Efficient Training-Free Sparse Attention · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 成本判断与复现边界
Cluster keys spherically per prompt and KV head into noncontiguous semantic blocks. Apply centroid softmax independently per GQA query head, sum those scores, penalize visible block size, and attend to original QKV after selecting whole blocks. Retains original KV rather than treating centroids as values; whole-block selection may exceed the budget. Fitting centroids on the entire prompt means causal attention support does not establish strict streaming-causal invariance. Local coverage is an L1 indexing and attention reference, not the paper's fused kernel or full long-context experiments.
Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 成本判断与复现边界
Share one recurrent KV state across a group of layers, use identity-initialized linear read maps to adapt each reader's coordinate frame, and combine its readout with local SWA through an input-dependent sigmoid gate. Shared content does not imply shared coordinates. Full training still requires the actual LaCT/Muon inner writer, and interior TTT is removed only at deployment. Local coverage accepts external state and verifies cross-layer read maps, gates and state revisions; it is neither full TTT nor a retrieval-capability reproduction.
ConvPE: Convolutional Position Embedding Improves Transformers · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 数据协议与代码映射
Project raw hidden states into fewer channels and apply a left-padded causal convolution to predict relative-lag biases per query. Attention heads share bias heads by modulo and add the bias to scores before softmax. A zero bias outside the window is not a mask. Chunked decoding needs the last W−1 raw hidden states to reconstruct the bias; no KV entries are removed. The local component verifies the default one-dimensional bias, not full long-context training, fused kernels, or throughput.
ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation · Original source
Sections in the Chinese source: 核心公式, 数据协议与代码映射, 结果与复现边界
Calibrates layer-specific groups and shared banks, distilling a group indexer from per-query standardized softmax, tokenwise maxima and Top-P teacher support. It scans anchor history, adds newly visible tokens and retains per-query DSA refinement. A shared bank does not imply identical final Top-K sets or OpenAttention-style tail proxies. Teacher operation order, anchor causality and maximum-union capacity are essential. Lower L1 training KL proves neither long-context quality nor B300 serving speed.
A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation · Original source
Sections in the Chinese source: 背景与主要改动, 核心机制与公式, 原文结果与限制, 本地复现
On-device RAG must limit both index storage and generation context/KV costs. ECG stores one multi-vector retrieval representation and projects it into compressed context for the same decoder, avoiding separate retrieval and compression representations. No. ECG compresses external documents into shared semantic vectors. ADIndex shares attention candidate banks, then refines per query and adds newly visible tokens. Their support, fidelity and cost units differ.
Federated Vector Retrieval across Heterogeneous VectorDBs · Original source
Sections in the Chinese source: 核心公式, 数据协议与代码映射, 结果、负控与边界, 高成本完整实验
Four-layer normalized maps use cross-target fuzzy alignment; native/mapped scores merge global K, with at most two hub maps between spokes. ECG-RAG shares retrieval and compressed-generation representations. HVMap aligns existing heterogeneous databases without answering questions. Local fuzzy and joint losses are not full RAG evidence.
InfuseLoop: Cross-Trajectory Latent Injection for Scalable Parallel Looped Transformers · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题比较与边界
Parallel loops advance several prediction trajectories in one execution cycle. Loop r aggregates completed previous-cycle states from shallower loops rather than only its own preceding state. A later trajectory position is not an unseen future token; legality follows the execution schedule. Anchor shares an external TTT state with learned read maps. InfuseLoop aggregates trajectory latents admitted by a parallel execution graph; arbitrary cross-layer averaging is not equivalent.
FM-Mamba: An Efficient Native 2D Selective State Space Model with Stability-Aware Discretization · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题比较与边界
The native2D FM recurrence reads upper, left and diagonal predecessors instead of flattening the grid into a chain. Two input-dependent steps control the axes separately, with a0/(a1a2) determining whether bounded steps are necessary. Mamba makes one-dimensional SSM steps and B/C input dependent, with causal convolution and gating. FM-Mamba uses upper, left and diagonal predecessors, two axis steps and ratio-dependent stability constraints. Flattened Mamba is not native FM-Mamba, and Python reference parity does not establish fused-scan or PSD speedups.
GaugeRoPE: RoPE-Compatible Executable Latent Attention · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题比较与边界
Generic low-rank keys need not preserve rotary action and may require historical native reconstruction. GaugeRoPE fits complex carriers within equal-frequency blocks and jointly encodes residual keys/values with energy-balanced PCA. Decoder maps move to queries and post-aggregation output. Anchor shares TTT state across layers with learned read maps. GaugeRoPE retains per-layer token history in low-rank compatible coordinates. Cross-layer sharing and per-token latent compression are different interventions.
SIMQ: A Single Graph-based Index for Multi-Vector Query · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题对照, 高成本完整实验
ColBERT-style MaxSim matches every query token to document tokens. SIMQ samples initial aggregation points, assigns residual tokens through a temporary graph, recursively splits oversized clusters, normalizes their means and builds one centroid graph. Queries navigate to a few centroids, collect documents through membership maps and access original tokens only for exact candidate reranking, avoiding a full query-by-centroid matrix. HVMap handles incompatible encoder spaces through hub mappings and native/mapped SCORE2 reranking. SIMQ assumes one normalized token space and changes graph organization and late-interaction computation. SIMQ hit counts do not validate mapping quality, and HVMap tensor losses do not establish graph efficiency.
UniGraph: A Unified Graph-based Index for Dynamic Hybrid Dense-Sparse Vector Retrieval · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题对照, 高成本完整实验
Separate dense/sparse retrieval can prematurely discard vectors that are strong only under their combined distance. UniGraph takes neighbors under multiple sampled alpha values and frequency-merges them into one bounded-degree graph. Queries traverse it with their own alpha without rebuilding. Sparse or dense guides supply entry points to reduce hybrid-distance work near the target region. HVMap learns representation mappings across heterogeneous databases. UniGraph does not learn a new mapping; it retains dense/sparse components and changes neighborhoods across weights. SCORE2 native/mapped weights and UniGraph semantic/lexical alpha have different meanings and are not interchangeable.
Deal With It: On Better Schedules for Listwise Reranking · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题对照, 高成本完整实验
Parallel listwise reranking splits candidates into groups with fixed advancement quotas. Contiguous chunks crowd strong retriever-prefix documents into one group, so a better retriever can suffer more quota cuts. DealRank deals candidates round-robin by retriever rank to balance every prefix, then ranks groups concurrently and advances quotas into a final merge without repair certification. HVMap changes cross-space candidate mapping/scoring. DealRank does not train representations; it schedules existing candidates into ranker calls. They can compose in a retrieval pipeline, but fewer calls do not establish better alignment, and correct SCORE2 does not prove lossless listwise quotas.
Kernel Ridge Attention: Nonlinear Memory with Selective Forgetting · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题比较与边界
KRA stores associations in fixed-size regression coefficients and posterior covariance. Shared learned Fourier features supply a nonlinear kernel. A content-dependent OU clock decays coefficients while restoring uncertainty toward the prior, reopening forgotten directions for writing. Reads include the current write. Mamba controls an SSM with input-dependent steps and read/write vectors. KRA additionally maintains covariance to handle correlated-key interference, costing D-squared state per head. Bounded context-independent state does not make their costs identical.
HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题比较与边界
HiSA retains selected RoPE frequency pairs inside each query-key dot product rather than selecting whole tokens first. Nearby keys retain more pairs; distant keys retain slower pairs. Q/K projections stay unchanged, and positions, base and angle budget determine the static rule. RoFormer keeps every RoPE pair and encodes relative position by rotation. HiSA additionally removes pair contributions according to distance and frequency. This changes scoring and does not prove that switching an existing checkpoint without training preserves quality. Whole-token eviction cannot express retaining only a key's slow-frequency pairs.
Physics of Language Models: Part 4.2, Canon Layers at Scale where Synthetic Pretraining Resonates in Reality · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题比较与边界
Canon adds residual short convolutions along the token axis at several within-layer locations. This paper tests architecture lessons from smaller synthetic training in64 real-corpus pretraining runs at1.3B–8B parameters, including GLA5/GDN2 with low-rank output gates. Budget alignment, baseline tuning and measurable skills are central to the study. Canon's causal width4 residual supplies local token mixing, not a long-history state or independent access to arbitrary distant positions; it can augment attention, linear attention or SSMs. Mamba also maintains input-selective recurrent state beyond its local convolution. These roles differ. Align parameters/state and tuning, then separately test retrieval: stronger knowledge scores do not establish attention-like remote reads from fixed-size state.
Eliciting the Recall Capacity of Linear Attention · Original source
Sections in the Chinese source: 背景与主要改动, 核心公式, 同主题比较与边界
TLCE keeps state capacity unchanged and compares full/short log-probabilities for the same target. A capped ratio applies only above1nat of benefit and after128short-context tokens, with total-weight normalization. It emphasizes distant information the model already uses. MERLIN changes multi-state readout using routing-key first/second moments; TLCE changes supervision allocation. Flexible readout does not establish learned recall, while weighting cannot recover information absent from state. Joint benefits require matched model/data budgets and are not established by existing small components.

Trade-off analysis

Expressible position is not accessible history

RoPE defines how QK carries relative position, but full attention still processes visible history. Mamba changes storage and propagation, replacing per-token access with state. Position extrapolation failure and forgetting a detail in state are different; extra state alone cannot explain the former and changing positions cannot fix the latter. Identify whether the task needs exact lookup or persistent state updates.

Sources: RoFormer: Enhanced Transformer with Rotary Position Embedding · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

Can compressed history still expose details?

NSA's compressed branch sits beside query-conditioned exact block reads. OpenAttention spends budget on exact rows and leaves the rest in normalization as log-count mean proxies. TTR maps whole groups to regression coefficients with no per-item invertibility guarantee. Trace where missing information goes rather than counting output vectors. Local formulas or short runs do not rank long-text capability.

Sources: Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention · OpenAttention: One Percent Is Enough with Tail Proxies · Rethinking Sequence Compression with Test-time Regression

October 29: new methods and evidence boundaries

Select-TTT changes how strongly each context chunk writes to fast weights based on current query token probability mass; apply-before-write preserves temporal order. Clipping can leave the total below the chunk count and must not be renormalized to fake conservation. Sleep separates active learning from offline consolidation; locally only LTI reward runs. Its full method trains added parameters, so the reward operator does not establish memory written into the model.

Sources: RoFormer: Enhanced Transformer with Rotary Position Embedding · Select-TTT: Query-Conditioned Selective Fast Weight Updates for In-Place Test-Time Training · Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories

Write state first, then choose which segments to read

Mamba's selective recurrence controls what enters a state; MERLIN assumes compressed segments and readouts already exist and routes the current query among them. Equal key means can hide a few strong matches. Raw second moments recover aligned variance but not missing within-segment detail. Eq. 9 normalizes means and variances separately before mixing, unlike mixing logits then softmax. Equal-length segments and causal visibility are required.

Sources: Multi-State Linear Attention with Generalized Second-Order Routing · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

Retaining original history and sharing compressed state are different access routes

NSA preserves distinct detail-access paths through summaries, selected blocks and sliding windows. Without retraining the model, CSB reorganizes original KV into semantic blocks and reads whole blocks. Anchor instead shares an already compressed recurrent state across layers, aligns coordinate frames with per-layer read maps, and gates the result into local output. CSB centroids select content; they do not replace the values read. Anchor still depends on a real writer: injecting a matrix externally does not implement TTT. Also separate causal support from index construction: although CSB masks future positions, whole-prompt clustering can let future keys change earlier routing, so it does not establish a strictly streaming-causal language model. Neither local L1 component provides full-model capability, end-to-end speedup or evidence for Evolve promotion.

Sources: Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention · Coarse Semantic Blocks for Efficient Training-Free Sparse Attention · Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training

A position-bias window is not a window on visible history

RoPE rotates Q and K so relative displacement enters their dot product. ConvPE predicts an input-dependent score adjustment from recent hidden states; visible keys outside the bias window still enter softmax with their original QK scores. CSB instead selects whole blocks of original KV and changes the support. These are changes to dot-product representation, additive scores, and support, respectively; W is not a KV budget. ConvPE also requires actual left-context hidden states for chunked decoding. Agreement between chunked and full-sequence slices verifies the bias contract, not long-context capability or speed.

Sources: RoFormer: Enhanced Transformer with Rotary Position Embedding · ConvPE: Convolutional Position Embedding Improves Transformers · Coarse Semantic Blocks for Efficient Training-Free Sparse Attention

Identify whether the saving comes from prefix scanning or approximating unread mass

ADIndex reuses candidate scanning across neighboring queries before query-specific refinement. The bank sees only anchor history; later queries add newly visible tokens. OpenAttention instead represents unread KV clusters with count-weighted mean proxies in a joint softmax with exact rows. The first does not preserve all unread probability mass, while the second does not retain exact within-cluster detail. Read percentages alone do not make them equivalent compression schemes.

Sources: ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation · OpenAttention: One Percent Is Enough with Tail Proxies

ECG: shared representations for retrieval and context compression: intervention and evidence are different axes

No. ECG compresses external documents into shared semantic vectors. ADIndex shares attention candidate banks, then refines per query and adds newly visible tokens. Their support, fidelity and cost units differ. Compression genuinely consumes stored E_ret. Teacher distributions/relevance are detached while alpha and temperature remain differentiable. FKL sums answer-token KLs before batch averaging; margin uses declared hard negatives only. The paper specifies a large positive gate bias but no exact value: five is an explicit local convention. There is no pretrained decoder, index, special-token integration or full training pipeline.

Sources: A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation · ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation

Sharing one representation and aligning several are different system choices

ECG-RAG jointly learns retrieval/compression to avoid duplicate storage and still needs decoder training. HVMap accepts already heterogeneous encoders, using paired maps and two-space scoring. Fuzzy diagonal terms anchor absolute correspondence; relative RKD geometry is insufficient. SCORE2 retains each native vector rather than always favoring the hub. Small-tensor gradients establish neither cross-modal retrieval nor index throughput, so author campaign results must not become local dashboard claims.

Sources: Federated Vector Retrieval across Heterogeneous VectorDBs · A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation

InfuseLoop: causal cross-trajectory latent injection

Anchor shares an external TTT state with learned read maps. InfuseLoop aggregates trajectory latents admitted by a parallel execution graph; arbitrary cross-layer averaging is not equivalent. Both keys and values use parameter-free RMS normalization. Document boundaries are masked before softmax. Every new state reads the same old buffer, with commit only after the cycle. The aggregate replaces the prior cross-loop input rather than being added twice.

Sources: InfuseLoop: Cross-Trajectory Latent Injection for Scalable Parallel Looped Transformers · Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training

Compare state dependency graphs before complexity labels

The Mamba README gives h_t=exp(Delta_t A)h_(t-1)+Delta_t B_t x_t on a one-dimensional chain and notes that its short-budget WikiText negative result does not represent paper scale. FM-Mamba cross-couples two axis steps in ZOH coefficients and retains the diagonal predecessor; cells on one anti-diagonal can run together. Its frozen-position stability condition is not a global theorem for arbitrary changing coefficient fields. Input dependence alone does not equalize their topology, discretization or parallel execution.

Sources: FM-Mamba: An Efficient Native 2D Selective State Space Model with Stability-Aware Discretization · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

GaugeRoPE: executable rotary carriers plus residual KV codes

Anchor shares TTT state across layers with learned read maps. GaugeRoPE retains per-layer token history in low-rank compatible coordinates. Cross-layer sharing and per-token latent compression are different interventions. The retained carrier executes RoPE exactly, but RKV replaces residual position-dependent scores with an unrotated correction. Overall attention remains approximate. PCA uses explicit calibration inputs and does not choose ranks from test answers.

Sources: GaugeRoPE: RoPE-Compatible Executable Latent Attention · Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training

simq: distinguish mechanism from capability

SectionIII/Algorithms1–2 retain sampling, graph-guided assignment, deferred splitting, normalized centroids, token-wise candidates and exact MaxSim reranking. SIMQ+ in SectionV/Algorithm3 counts distinct document membership in each raw token pool without TopDocs truncation. All boundary-count ties are retained, so the pool may exceedNmin. The local Index uses exact finite kNN graph construction and bounded Lloyd splitting instead of scalable HNSW/VSAG backends; this is an explicit small-data deviation, not an industrial build/QPS reproduction. HVMap handles incompatible encoder spaces through hub mappings and native/mapped SCORE2 reranking. SIMQ assumes one normalized token space and changes graph organization and late-interaction computation. SIMQ hit counts do not validate mapping quality, and HVMap tensor losses do not establish graph efficiency.

Sources: SIMQ: A Single Graph-based Index for Multi-Vector Query · Federated Vector Retrieval across Heterogeneous VectorDBs

unigraph: distinguish mechanism from capability

Algorithm1 takes top-kg neighbors peralpha and retainsM by occurrence frequency. Algorithm2 maintains candidate and ef-sized result sets under query-specific hybrid distance. Dense-first pruning uses a Cauchy–Schwarz norm bound to avoid some sparse inner products: gamma=1 is a safe lower bound, while gamma<1 is a more aggressive estimate without that guarantee. Main experiments usegamma=0.3; local controls usegamma=1 against unpruned beam results. The guide is dense abovealpha0.5 and sparse otherwise;0.5 is the paper’s comparable-scale convention. HVMap learns representation mappings across heterogeneous databases. UniGraph does not learn a new mapping; it retains dense/sparse components and changes neighborhoods across weights. SCORE2 native/mapped weights and UniGraph semantic/lexical alpha have different meanings and are not interchangeable.

Sources: UniGraph: A Unified Graph-based Index for Dynamic Hybrid Dense-Sparse Vector Retrieval · Federated Vector Retrieval across Heterogeneous VectorDBs

dealrank: distinguish mechanism from capability

For100 candidates, Section2.1 uses five hands of20, keeps four per hand and reranks the final20: six calls in two rounds. A consistent ranker guarantees only topq=4 recovery, not top10. The500 schedule is25 hands keeping three then four keeping five; the1,000 schedule is50 keeping two then five keeping four, both three rounds. Later eliminations precede earlier ones. Real ThreadPool calls must return an exact permutation of their input IDs; this tests schedules, not LLM ranking quality. HVMap changes cross-space candidate mapping/scoring. DealRank does not train representations; it schedules existing candidates into ranker calls. They can compose in a retrieval pipeline, but fewer calls do not establish better alignment, and correct SCORE2 does not prove lossless listwise quotas.

Sources: Deal With It: On Better Schedules for Listwise Reranking · Federated Vector Retrieval across Heterogeneous VectorDBs

Kernel Ridge Attention: Nonlinear Memory with Selective Forgetting

Mamba controls an SSM with input-dependent steps and read/write vectors. KRA additionally maintains covariance to handle correlated-key interference, costing D-squared state per head. Bounded context-independent state does not make their costs identical. Keys and queries share unit-norm sine/cosine features. P rotates and rescales a write; it is not a scalar gate. An independent dual reference solves each causal prefix with the product of content and OU-time Gram matrices.

Sources: Kernel Ridge Attention: Nonlinear Memory with Selective Forgetting · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs

RoFormer keeps every RoPE pair and encodes relative position by rotation. HiSA additionally removes pair contributions according to distance and frequency. This changes scoring and does not prove that switching an existing checkpoint without training preserves quality. Whole-token eviction cannot express retaining only a key's slow-frequency pairs. The rule compares the unwrapped relative angle strictly with Phi, not its remainder modulo2pi. Scaling stays1/sqrt(d), not the number of surviving dimensions. A key with no active pair must leave softmax; a zero logit would still attract probability. Future keys are masked. Infinite Phi recovers dense RoPE. Local positions are nonnegative signed-int64-range integers. uint64 bounds are checked before casting; other integers are converted before subtraction. Differences between nonnegative int64 values cannot overflow, and uint8 wraparound must not expose future keys.

Sources: HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs · RoFormer: Enhanced Transformer with Rotary Position Embedding

Physics of Language Models: Part 4.2, Canon Layers at Scale where Synthetic Pretraining Resonates in Reality

Canon's causal width4 residual supplies local token mixing, not a long-history state or independent access to arbitrary distant positions; it can augment attention, linear attention or SSMs. Mamba also maintains input-selective recurrent state beyond its local convolution. These roles differ. Align parameters/state and tuning, then separately test retrieval: stronger knowledge scores do not establish attention-like remote reads from fixed-size state. Canon is a per-channel causal width4 convolution with left zero padding and a hidden-state residual. A/C follow normalization, B follows QKV projections, and D covers both gated-MLP branches. The rank constraint applies before SiLU; the activated gate need not be low-rank. Released LlamaCanon also uses quarter RoPE, so its differences are not solely convolution.

Sources: Physics of Language Models: Part 4.2, Canon Layers at Scale where Synthetic Pretraining Resonates in Reality · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

Eliciting the Recall Capacity of Linear Attention

MERLIN changes multi-state readout using routing-key first/second moments; TLCE changes supervision allocation. Flexible readout does not establish learned recall, while weighting cannot recover information absent from state. Joint benefits require matched model/data budgets and are not established by existing small components. Short windows contain at most512tokens, reset state/attention, and run without gradients; weights are also detached. Full-training combined experiments include sentence repetition, absent locally. The loss interface is not a reproduction of the paper's recall comparison.

Sources: Eliciting the Recall Capacity of Linear Attention · Multi-State Linear Attention with Generalized Second-Order Routing

Cross-paper questions

Try answering before expanding the explanation. Each question relates at least two papers.

Why are changing RoPE and switching to recurrence not the same fix for a forgotten early one-off identifier?

Show answer and example

Answer: RoPE changes position in QK, not access to original evidence. Mamba changes selective state writing; if it omits the identifier, no original KV remains to query. Diagnose position distortion, invisibility, or compression loss first, then decide whether to use detail access such as NSA.

Illustrative example: An order ID appears once on the contract cover. Correct relative positions do not ensure it is read, and bounded state does not retain every ID.

Sources: RoFormer: Enhanced Transformer with Rotary Position Embedding · Mamba: Linear-Time Sequence Modeling with Selective State Spaces · Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention

How do selected NSA blocks and OpenAttention unread-cluster proxies handle omissions differently?

Show answer and example

Answer: NSA gates overview, selected blocks, and recent-window outputs; OpenAttention includes unread clusters as count-corrected proxies in the same attention normalization as exact rows. Multiple coverage paths and tail mass/value approximation can both lose within-group details.

Illustrative example: One outlier among 100 records can be diluted by either a coarse summary or a mean; test whether selection routes it to an exact read.

Sources: Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention · OpenAttention: One Percent Is Enough with Tail Proxies

Do TTR input-wise fitting and Mamba per-token state updates mean the deployment model trains its weights?

Show answer and example

Answer: No. TTR solves coefficients in the current group's forward pass using outer-trained targets and regularization. Mamba uses fixed parameters and current tokens to update state. These are input-dependent computation or runtime state, not optimizer updates, and have different solve versus recurrence costs.

Illustrative example: One frozen model can produce different states and coefficients for two texts without writing a new checkpoint.

Sources: Rethinking Sequence Compression with Test-time Regression · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

What actual execution is evidenced by query-conditioned write coefficients versus Sleep reward changes?

Show answer and example

Answer: Local Select-TTT updates a small fast-weight matrix, allowing pre-write outputs and final state checks. Local Sleep returns a reward without an optimizer or parameter expansion. Neither establishes long-context capability, and reward is not long-term retention.

Illustrative example: Updating a memory table and scoring a continuation 0.9 are different evidence.

Sources: RoFormer: Enhanced Transformer with Rotary Position Embedding · Select-TTT: Query-Conditioned Selective Fast Weight Updates for In-Place Test-Time Training · Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories

Does adding a second moment turn MERLIN's bounded Mamba-like state into full attention?

Show answer and example

Answer: No. The moment estimates alignment variance between the query and each segment's routing keys to combine readouts. Token values remain compressed and are not individually normalized; an added access cue cannot reverse compression.

Illustrative example: Means of 1 do not distinguish a segment of all ones from a segment of −1 and 3. Variance distinguishes them but cannot reconstruct every original record.

Sources: Multi-State Linear Attention with Generalized Second-Order Routing · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

If CSB selects history positions and Anchor shares a state, why can't a causal mask alone establish their full long-context capability?

Show answer and example

Answer: CSB masks future positions in original-QKV attention, but whole-prompt clustering can let future keys influence centroids and earlier selections; masking does not remove that indexing dependency. Anchor's read maps and gates specify how to read external shared state, while correct memory content still depends on the actual TTT writer and training. Local L1 contracts separately verify selection/attention and shared readout. They establish neither strict streaming-causal invariance nor long-range retrieval capability.

Illustrative example: Teaching example: Appending new keys and rebuilding clusters may change earlier block selections. Likewise, a correct Anchor reader output from a manually supplied matrix does not show that a model learned to write an order number into it.

Sources: Coarse Semantic Blocks for Efficient Training-Free Sparse Attention · Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training

With ConvPE bias window W = 4, does a causally visible key at lag 8 disappear? What does CSB do differently?

Show answer and example

Answer: No. ConvPE adds zero bias, preserving the original QK score and causal mask. In CSB, if the block containing that key is not selected and the key is outside the always-visible region, it is excluded from attention support. In ConvPE, W = 4 also means that the first query in a chunk needs at most three earlier raw hidden states, not that it can see only four historical positions.

Illustrative example: Example: A lag-8 key with a high original score can still receive high weight after ConvPE adds zero. If CSB excludes it, its original value cannot contribute to that query's readout.

Sources: ConvPE: Convolutional Position Embedding Improves Transformers · Coarse Semantic Blocks for Efficient Training-Free Sparse Attention

Do an ADIndex shared bank and OpenAttention tail proxies have the same missed-read semantics?

Show answer and example

Answer: No. ADIndex shares candidate search and still chooses a query-specific final Top-K; positions outside the candidate union receive no automatic proxy mass. OpenAttention keeps counted proxies for unread clusters, but their content is approximate and must exclude already read rows. Check index coverage and residual softmax mass separately.

Illustrative example: A position outside ADIndex's candidate union cannot enter that refinement. In OpenAttention, it may still contribute through a residual cluster mean and count, without retaining all its individual detail.

Sources: ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation · OpenAttention: One Percent Is Enough with Tail Proxies

Is ECG equivalent to ADIndex sparse retrieval?

Show answer and example

Answer: No. ECG compresses external documents into shared semantic vectors. ADIndex shares attention candidate banks, then refines per query and adds newly visible tokens. Their support, fidelity and cost units differ.

Illustrative example: Eliminating duplicate document vectors is not the same as avoiding scans of historical attention keys.

Sources: A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation · ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation

Do ECG shared representations plus a low HVMap fuzzy loss prove better RAG?

Show answer and example

Answer: No. They change different stages, and local components lack complete training, retrieval and answer evaluation. HVMap needs semantic generalization and union rankings; ECG needs compressed-context generation. Diagnostic loss is not end-to-end capability.

Illustrative example: Teaching example: successful backpropagation does not put a relevant document in top ten or make an answer correct.

Sources: Federated Vector Retrieval across Heterogeneous VectorDBs · A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation

How does this differ from Anchor?

Show answer and example

Answer: Anchor reads external TTT memory alongside local attention. InfuseLoop aggregates trajectory hidden states according to cycle availability.

Illustrative example: Broadcasting one KV matrix across loops does not implement cross-trajectory indexing.

Sources: InfuseLoop: Cross-Trajectory Latent Injection for Scalable Parallel Looped Transformers · Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training

Why is flattened-image Mamba not FM-Mamba?

Show answer and example

Answer: It changes the dependency graph. Native FM-Mamba reads upper, left and diagonal predecessors using two axis steps and stability projection; a flattened scan follows one chosen chain.

Illustrative example: An upper-left impulse can reach the next diagonal cell through an explicit predecessor term; removing that term changes the recurrence.

Sources: FM-Mamba: An Efficient Native 2D Selective State Space Model with Stability-Aware Discretization · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

How does it differ from Anchor state sharing?

Show answer and example

Answer: It reduces per-token, per-layer dimensions with frequency structure. Anchor shares recurrent state across layers and needs writer/read-map semantics.

Illustrative example: Equal byte savings do not imply equal information or update behavior.

Sources: GaugeRoPE: RoPE-Compatible Executable Latent Attention · Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training

Can SIMQ replace HVMap heterogeneous-space alignment?

Show answer and example

Answer: No. SIMQ changes candidate indexing within one token space; HVMap learns cross-space mappings.

Illustrative example: Teaching example: equal vector dimensionality does not make two encoders comparable by SIMQ inner products.

Sources: SIMQ: A Single Graph-based Index for Multi-Vector Query · Federated Vector Retrieval across Heterogeneous VectorDBs

Is UniGraph alpha the HVMap native weight?

Show answer and example

Answer: No. It mixes dense/sparse distances, whereas HVMap weights native/mapped scores.

Illustrative example: Teaching example: raisingalpha does not mean trusting a candidate’s own database more.

Sources: UniGraph: A Unified Graph-based Index for Dynamic Hybrid Dense-Sparse Vector Retrieval · Federated Vector Retrieval across Heterogeneous VectorDBs

Can it replace HVMap dual-space reranking?

Show answer and example

Answer: No. DealRank determines which candidates share a comparison; HVMap defines comparable cross-encoder scores.

Illustrative example: Teaching example: dealing cannot align incompatible embeddings.

Sources: Deal With It: On Better Schedules for Listwise Reranking · Federated Vector Retrieval across Heterogeneous VectorDBs

What extra state distinguishes it from Mamba?

Show answer and example

Answer: KRA stores a per-head D-by-D covariance in addition to regression coefficients. Mamba selective scans do not maintain that posterior geometry.

Illustrative example: Doubling D quadruples covariance elements even with fixed context length.

Sources: Kernel Ridge Attention: Nonlinear Memory with Selective Forgetting · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

How does this differ from RoFormer plus a token window?

Show answer and example

Answer: RoFormer uses all pairs. A token window drops whole keys; HiSA gives frequency pairs distinct distance windows while keeping the original1/sqrt(d) scale.

Illustrative example: With d64 and only16 surviving components, divide by8, not4.

Sources: HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs · RoFormer: Enhanced Transformer with Rotary Position Embedding

Is a30% token saving a30% training speedup?

Show answer and example

Answer: No. Per-step cost and the target skill must also match. With the paper's illustrative13% naive step overhead,0.7 times1.13 is about0.79, or roughly21% less time.

Illustrative example: Using30% fewer tokens with13% slower steps does not take70% of the original time.

Sources: Physics of Language Models: Part 4.2, Canon Layers at Scale where Synthetic Pretraining Resonates in Reality · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

Can TLCE replace MERLIN's multi-state routing?

Show answer and example

Answer: No. TLCE reallocates loss without changing memory structure; MERLIN changes segment-state readout. Missing information and unlearned use of available information are different bottlenecks.

Illustrative example: Illustration: weighting a later token cannot guarantee recovery after two histories become indistinguishable in one state; preserving multiple states changes what can be read.

Sources: Eliciting the Recall Capacity of Linear Attention · Multi-State Linear Attention with Generalized Second-Order Routing

Update log

Updates record new approaches, changed trade-offs, and follow-up evidence.

2026-11-25 · MERLIN changes multi-state readout using routing-key first/second moments; TLCE changes supervision allocation. Flexible readout does not establish learned recall, while weighting cannot recover information absent from state. Joint benefits require matched model/data budgets and are not established by existing small components. Full experiments are terminally cost-deferred; no L1 diagnostic or review-only entry is Evolve evidence.

Affected: Eliciting the Recall Capacity of Linear Attention · Multi-State Linear Attention with Generalized Second-Order Routing

2026-11-20 · Canon's causal width4 residual supplies local token mixing, not a long-history state or independent access to arbitrary distant positions; it can augment attention, linear attention or SSMs. Mamba also maintains input-selective recurrent state beyond its local convolution. These roles differ. Align parameters/state and tuning, then separately test retrieval: stronger knowledge scores do not establish attention-like remote reads from fixed-size state. Local evidence and high-cost non-reproduction remain separate.

Affected: Physics of Language Models: Part 4.2, Canon Layers at Scale where Synthetic Pretraining Resonates in Reality · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

2026-11-20 · RoFormer keeps every RoPE pair and encodes relative position by rotation. HiSA additionally removes pair contributions according to distance and frequency. This changes scoring and does not prove that switching an existing checkpoint without training preserves quality. Whole-token eviction cannot express retaining only a key's slow-frequency pairs. Local evidence and high-cost non-reproduction remain separate.

Affected: HiSA: Sparsifying the Hidden Dimension of RoPE Attention in LLMs · RoFormer: Enhanced Transformer with Rotary Position Embedding

2026-11-19 · Mamba controls an SSM with input-dependent steps and read/write vectors. KRA additionally maintains covariance to handle correlated-key interference, costing D-squared state per head. Bounded context-independent state does not make their costs identical. Local contracts and high-cost non-reproduction remain separate.

Affected: Kernel Ridge Attention: Nonlinear Memory with Selective Forgetting · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

2026-11-18 · The local ranker is a deterministic consistent callback, not a model. true_top is evaluator-only in quota_cuts and never enters schedule. There is no RankGPT prompt, token-cost or API-latency measurement; call accounting proves neither NDCG nor speed. The author links mixedbread-ai/dealrank, but repository/main-commit API checks return404 on2026-11-18; public source and license are unverified and no external code is executed. Full multi-model/27B timing is not reproduced due to cost. Grouping and final survivor order must follow the paper’s hierarchical schedules rather than a generic top-k shortcut. Full experiments are not reproduced due to high cost; no capability or Evolve-promotion claim.

Affected: Deal With It: On Better Schedules for Listwise Reranking · Federated Vector Retrieval across Heterogeneous VectorDBs

2026-11-18 · Exact all-pairs construction and exact guide lookup are finite diagnostic backends, not the scalable C++ candidate builders. BGE-M3 encoding, SINDI, million-vector indexes and QPS comparisons are absent. Safe pruning is relative to the same beam insertion rule and does not imply globally complete ANN recall; gamma<1 retains explicit risk. The full campaign is not reproduced due to cost. Full experiments are not reproduced due to high cost; no capability or Evolve-promotion claim.

Affected: UniGraph: A Unified Graph-based Index for Dynamic Hybrid Dense-Sparse Vector Retrieval · Federated Vector Retrieval across Heterogeneous VectorDBs

2026-11-18 · No ColBERT encoder, million-token index, residual compression, full HNSW or fair throughput experiment is supplied. Repeated seeds do not turn random vectors into semantic evaluation. SIMQ+ preserves the complete boundary tie group, so the rerank argument is not its hard candidate cap. The full five-dataset campaign is not reproduced due to cost(reviewDONE). Full experiments are not reproduced due to high cost; no capability or Evolve-promotion claim.

Affected: SIMQ: A Single Graph-based Index for Multi-Vector Query · Federated Vector Retrieval across Heterogeneous VectorDBs

2026-11-18 · Anchor shares TTT state across layers with learned read maps. GaugeRoPE retains per-layer token history in low-rank compatible coordinates. Cross-layer sharing and per-token latent compression are different interventions. Local boundaries and high-cost non-reproduction are recorded separately.

Affected: GaugeRoPE: RoPE-Compatible Executable Latent Attention · Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training

2026-11-18 · Mamba makes one-dimensional SSM steps and B/C input dependent, with causal convolution and gating. FM-Mamba uses upper, left and diagonal predecessors, two axis steps and ratio-dependent stability constraints. Flattened Mamba is not native FM-Mamba, and Python reference parity does not establish fused-scan or PSD speedups. The existing same-topic representative README was read; the comparison does not change the algorithm or claim cross-paper reproduction results.

Affected: FM-Mamba: An Efficient Native 2D Selective State Space Model with Stability-Aware Discretization · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

2026-11-18 · Anchor shares an external TTT state with learned read maps. InfuseLoop aggregates trajectory latents admitted by a parallel execution graph; arbitrary cross-layer averaging is not equivalent. Local boundaries and high-cost non-reproduction are recorded separately.

Affected: InfuseLoop: Cross-Trajectory Latent Injection for Scalable Parallel Looped Transformers · Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training

2026-11-18 · Add HVMap cross-space anchors, native weights and quota-free merging, contrasted with shared RAG representations. Separate L1 tensor evidence from high-cost full campaigns.

Affected: Federated Vector Retrieval across Heterogeneous VectorDBs · A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation

2026-11-13 · Added a fixed Google COLM historical-source paper and its L1 component, comparing definitions and evidence boundaries. Full experiments are explicitly not reproduced; diagnostics are not capability or Evolve-improvement evidence.

Affected: A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation · ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation

2026-11-11 · Added ADIndex, separating grouped candidate-scan reuse from OpenAttention's unread-tail proxy mass. Preserved standardized-softmax then max then Top-P, anchor visibility and newly visible tokens. These are L1 indexing/training checks; the full long-context and serving matrix is not reproduced.

Affected: ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation · OpenAttention: One Percent Is Enough with Tail Proxies

2026-11-06 · Add ConvPE alongside RoPE and CSB to distinguish dot-product representation, windowed additive bias, and visible support. Record the raw hidden-state requirement for chunked decoding and the exclusion of full training and fused kernels.

Affected: ConvPE: Convolutional Position Embedding Improves Transformers

2026-11-04 · Add CSB and Anchor, comparing semantic block selection over original KV with coordinate-adapted readout from shared recurrent state. Document the non-streaming-causal boundary of whole-prompt clustering and that an external writer is not full TTT. Both are L1 components; costly full experiments are not reproduced.

Affected: Coarse Semantic Blocks for Efficient Training-Free Sparse Attention · Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training

2026-10-30 · Reviewed MERLIN Eqs. 7–9: distinguish raw second moments, alignment variance, and two-softmax gated readout from Mamba recurrence; document completed causal segments, the external current segment, and the lack of exact attention.

Affected: Multi-State Linear Attention with Generalized Second-Order Routing · Mamba: Linear-Time Sequence Modeling with Selective State Spaces

2026-10-29 · Select-TTT scales fast-weight writes by query token probability mass and preserves apply-before-write order. Do not renormalize the clipped total to the chunk count. Sleep uses distinct active and consolidation stages; only its LTI reward runs here. Unlike frozen-parameter state updates, full Sleep trains extensions, which a reward operator cannot establish.

Affected: Select-TTT: Query-Conditioned Selective Fast Weight Updates for In-Place Test-Time Training · Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories

2026-10-27 · Initial version: compared position, selective state, three sparse read paths, tail proxies, and forward regression compression by how they preserve and recover history.

Covers 31 topic entries; see the full list below.

All 50 topic entries

The full catalog follows. The main comparison covers the representative papers listed above.

Paper-by-paper questions · All deep dives