{
  "id": 533,
  "kind": "paper",
  "title": "Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs",
  "summary": "Diagnoses score dilution in static self-attention: the target–distractor logit margin must scale as Ω(log T) or needle mass vanishes. Thinking tokens cannot recover buried evidence under that bound. qTTT does one prefill to cache K/V then a few gradient steps on W_Q only, raising the margin without invalidating the cache. FLOP-matched to 8k thinking tokens, Qwen3-4B gains +12.6 / +14.1 pp average on LongBench-v2 and ZeroScrolls subsets; thinking-token gains saturate as T grows.",
  "body": "",
  "notes": "Primary: arxiv abs (cs.LG; also cs.CL). CC BY 4.0 on HTML. Work done while at Meta; affiliations Harvard/Kempner, Meta, OpenAI, UC Berkeley, UT Austin. Correspondence rachitbansal@g.harvard.edu, az@astonzhang.com. No official code on abs. HF paper page 2 upvotes; no linked models/datasets. Discord posted abs (Substack UTM). Uses public LongBench-v2/ZeroScrolls; no new corpus, so no datasets_local row. License field left blank per catalog convention.",
  "url": "https://arxiv.org/abs/2512.13898",
  "links": [],
  "authors": [
    "Rachit Bansal",
    "Aston Zhang",
    "Rishabh Tiwari",
    "Lovish Madaan",
    "Sai Surya Duvvuri",
    "Devvrit Khatri",
    "David Brandfonbrener",
    "David Alvarez-Melis",
    "Prajjwal Bhargava",
    "Mihir Sanjay Kale",
    "Samy Jelassi"
  ],
  "tags": [
    "qttt",
    "test-time-training",
    "long-context",
    "score-dilution",
    "longbench",
    "zeroscrolls",
    "meta",
    "harvard"
  ],
  "topics": "long-context LLMs, test-time training, attention",
  "venue": "arXiv / Meta / Harvard",
  "publisher": "",
  "source": "",
  "language": "",
  "access": "",
  "license": "",
  "published_year": 2025,
  "added_at": "2026-10-01T16:45:05.207Z",
  "verified_at": null,
  "attrs": {
    "scale": "Qwen3 1.7B/4B/8B (32B in appendix); LongBench-v2 6 subsets; ZeroScrolls 8 datasets; synthetic bug-localization and transaction-log tasks with T up to ~10k tokens; N_TTT=32, k=128",
    "purpose": "Spend inference compute on query-only TTT instead of thinking tokens for long-context retrieval",
    "time_period": "2025-12-15 (arXiv 2512.13898 v1). HF paper publishedAt 2025-12-15."
  },
  "enrichment": {
    "s2": {
      "venue": "arXiv.org",
      "paper_id": "21669046fc347b3e786b10f7e9751c201b7e7a5d",
      "published": "2025-12-15",
      "fetched_at": "2026-10-03T14:56:31.585Z",
      "citation_count": 20,
      "reference_count": 41,
      "influential_citation_count": 3
    },
    "arxiv": {
      "id": "2512.13898",
      "title": "Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs",
      "authors": [
        "Rachit Bansal",
        "Aston Zhang",
        "Rishabh Tiwari",
        "Lovish Madaan",
        "Sai Surya Duvvuri",
        "Devvrit Khatri",
        "David Brandfonbrener",
        "David Alvarez-Melis",
        "Prajjwal Bhargava",
        "Mihir Sanjay Kale",
        "Samy Jelassi"
      ],
      "updated": "2025-12-15",
      "abstract": "Progress on training and architecture strategies has enabled LLMs with millions of tokens in context length. However, empirical evidence suggests that such long-context LLMs can consume far more text than they can reliably use. On the other hand, it has been shown that inference-time compute can be used to scale performance of LLMs, often by generating thinking tokens, on challenging tasks involving multi-step reasoning. Through controlled experiments on sandbox long-context tasks, we find that such inference-time strategies show rapidly diminishing returns and fail at long context. We attribute these failures to score dilution, a phenomenon inherent to static self-attention. Further, we show that current inference-time strategies cannot retrieve relevant long-context signals under certain conditions. We propose a simple method that, through targeted gradient updates on the given context, provably overcomes limitations of static self-attention. We find that this shift in how inference-time compute is spent leads to consistently large performance improvements across models and long-context benchmarks. Our method leads to large 12.6 and 14.1 percentage point improvements for Qwen3-4B on average across subsets of LongBench-v2 and ZeroScrolls benchmarks. The takeaway is practical: for long context, a small amount of context-specific training is a better use of inference compute than current inference-time scaling strategies like producing more thinking tokens.",
      "published": "2025-12-15",
      "categories": [
        "cs.LG",
        "cs.CL"
      ],
      "fetched_at": "2026-10-03T14:56:31.585Z"
    }
  },
  "enriched_at": "2026-10-03T14:56:31.650Z",
  "license_class": "unknown",
  "langs": [],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "552",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/533",
  "markdown": "https://papers.projxon.ai/entries/533.md",
  "api": "https://papers.projxon.ai/api/entries/533",
  "relations": [
    {
      "relation": "about",
      "direction": "in",
      "note": "",
      "via": "manual",
      "entry": {
        "id": 1208,
        "kind": "note",
        "title": "Long context: three bets and a weak spot in evaluation (overview)",
        "summary": "An overview of the 33 entries on long-context modelling: cheaper attention, memory beside attention, and managing context from outside, plus what the benchmarks do and do not show. Written by Claude Opus 5.5.",
        "url": "",
        "authors": [
          "Claude Opus 5.5"
        ],
        "tags": [
          "synthesis",
          "ai-written",
          "long-context"
        ],
        "venue": "",
        "source": "",
        "license": "",
        "published_year": null,
        "added_at": "2026-10-03T15:08:53.361Z",
        "has_dataset_profile": false,
        "license_class": "unknown",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": null,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/1208",
        "markdown": "https://papers.projxon.ai/entries/1208.md",
        "api": "https://papers.projxon.ai/api/entries/1208"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 707,
      "kind": "paper",
      "title": "MoBA: Mixture of Block Attention for Long-Context LLMs",
      "summary": "Proposes Mixture of Block Attention (MoBA), which applies mixture-of-experts principles to the attention mechanism: the model learns where to attend across blocks rather than using predefined sparse patterns like sink or window attention. It claims superior long-context performance with seamless switching between full and sparse attention, and has been deployed for Kimi's long-context serving.",
      "url": "https://arxiv.org/abs/2502.13189",
      "authors": [
        "Enzhe Lu",
        "Zhejun Jiang",
        "Jingyuan Liu",
        "Yulun Du",
        "Tao Jiang",
        "Chao Hong",
        "Shaowei Liu",
        "Weiran He",
        "Enming Yuan",
        "Yuzhi Wang",
        "Zhiqi Huang",
        "Huan Yuan",
        "Suting Xu",
        "Xinran Xu",
        "Guokun Lai",
        "Yanru Chen",
        "Huabin Zheng",
        "Junjie Yan",
        "Jianlin Su",
        "Yuxin Wu",
        "Neo Y. Zhang",
        "Zhilin Yang",
        "Xinyu Zhou",
        "Mingxing Zhang",
        "Jiezhong Qiu"
      ],
      "tags": [
        "attention",
        "long-context",
        "mixture-of-experts",
        "efficient-inference",
        "kimi"
      ],
      "venue": "arXiv (cs.LG)",
      "source": "arxiv",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 215,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/707",
      "markdown": "https://papers.projxon.ai/entries/707.md",
      "api": "https://papers.projxon.ai/api/entries/707"
    },
    {
      "id": 1244,
      "kind": "paper",
      "title": "Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling",
      "summary": "Generalizes linear attention from a matrix state to a third-order tensor state: writes the triadic outer product of a key, a second key, and a value (k tensor k' tensor v) into S_t in R^{d x E x d}, and reads by contracting both key axes with two queries. An E-dimensional second key yields an E-fold state-size increase while adding only two projections (negligible parameter overhead; E=16 gives 16x capacity at 1.08x non-embedding params in MQAR tests). Compatible with data-dependent forgetting (per-slice decay gates), the delta rule applied jointly to both keys (removing the value stored under the key pair), and chunkwise-parallel training via custom CuTe kernels that tile the per-head state along the value axis (blocks of 32 columns, all E slices held in registers) so no SM holds the full tensor. Applied to Gated DeltaNet and scalar-gated linear attention, it substantially improves long-context LM and recall, outperforming alternatives that enlarge state via wider heads/values, more heads, or multiple value heads per key. A pretrained linear-attention model can be converted post hoc to its triadic form during long-context extension. Training overhead over vanilla GDN (custom kernels, H100, 1.3B, 2k-64k tokens): 9-11% (E=2), 14-15% (E=4), 28-30% (E=8); E=8 is 3% slower than a Transformer at 4k but faster beyond, reaching 5.1x faster at 64k.",
      "url": "https://arxiv.org/abs/2609.36529",
      "authors": [
        "Oliver Sieberling",
        "Bharat Runwal",
        "David Jin",
        "Ryan Chin",
        "Rameswar Panda",
        "Yoon Kim"
      ],
      "tags": [
        "triadic-linear-attention",
        "tensor-state",
        "gated-deltanet",
        "recall",
        "long-context",
        "chunkwise-parallel",
        "cute-kernels"
      ],
      "venue": "arXiv 2609.36529 (cs.LG/cs.CL), submitted 29 Sep 2026, preprint",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-04T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1244",
      "markdown": "https://papers.projxon.ai/entries/1244.md",
      "api": "https://papers.projxon.ai/api/entries/1244"
    },
    {
      "id": 550,
      "kind": "paper",
      "title": "Titans: Learning to Memorize at Test Time",
      "summary": "Treats attention as short-term memory and a deep MLP as long-term memory updated by surprise (gradient of associative ||M(k)-v||^2) with momentum and adaptive forget/weight-decay, plus persistent task tokens. Three hybrids: MAC, MAG, MAL. 760M MAG Wiki ppl 18.61 vs Transformer++ 25.21 and Gated DeltaNet-H2 19.88; MAC best on long-context NIAH. BABILong MAC beats GPT-4 and Llama3.1-8B+RAG at far fewer params. Claims >2M context. Code \"available soon\" on abs.",
      "url": "https://arxiv.org/abs/2501.00663",
      "authors": [
        "Ali Behrouz",
        "Peilin Zhong",
        "Vahab Mirrokni"
      ],
      "tags": [
        "titans",
        "test-time-memory",
        "surprise",
        "mac",
        "mag",
        "mal",
        "long-context",
        "mamba",
        "ttt",
        "google"
      ],
      "venue": "arXiv / Google",
      "source": "",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 361,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/550",
      "markdown": "https://papers.projxon.ai/entries/550.md",
      "api": "https://papers.projxon.ai/api/entries/550"
    },
    {
      "id": 821,
      "kind": "paper",
      "title": "LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning",
      "summary": "A benchmark evaluating both the effectiveness and efficiency of long-context LM harnesses (RLMs, ReAct, mini-swe-agent-style coding agents). Existing long-context evaluations are saturated across harnesses, so the four hard tasks require strategic/efficient reasoning (multiple valid strategies with very different costs), hard retrieval (both GREP and semantic), and extensive multi-step reasoning. Example: Constraint Solving asks for every person satisfying 5 conditions scattered across documents; checking the most selective condition first narrows candidates far more cheaply than checking every condition. 5 frontier LMs x 4 agentic harnesses: best setup reaches only 68% macro-average accuracy and no single harness leads across all tasks. Clear accuracy gaps, plus >10x efficiency differences even with the same LM and similar accuracy: more compute does not always mean better accuracy. mini-swe-agent is especially strong, reaching the best performance at a cost close to direct inference. Establishes efficiency as an axis for long-context evaluation and provides a testbed for harnesses that process context strategically rather than exhaustively.",
      "url": "https://arxiv.org/abs/2609.38137",
      "authors": [
        "Quang Hieu Pham",
        "Thuy Duong Nguyen",
        "Jocelyn Qiaochu Chen",
        "Xi Ye"
      ],
      "tags": [
        "long-context",
        "harnesses",
        "agents",
        "benchmarks",
        "efficiency",
        "retrieval"
      ],
      "venue": "arXiv (2026-09-29), cs.CL; CC BY 4.0",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/821",
      "markdown": "https://papers.projxon.ai/entries/821.md",
      "api": "https://papers.projxon.ai/api/entries/821"
    },
    {
      "id": 564,
      "kind": "paper",
      "title": "Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention",
      "summary": "Infini-attention keeps local softmax attention plus a compressive associative memory updated from the same QKV (linear or delta rule) and a learned gate β. 114× smaller memory than a 65k Memorizing Transformer; PG19 PPL 9.65 vs 11.37. A 1B model solves 1M passkey after 5k-length FT; 8B BookSum 500k SOTA Rouge overall 18.5. No official code on abs.",
      "url": "https://arxiv.org/abs/2404.07143",
      "authors": [
        "Tsendsuren Munkhdalai",
        "Manaal Faruqui",
        "Siddharth Gopal"
      ],
      "tags": [
        "infini-attention",
        "long-context",
        "compressive-memory",
        "google",
        "passkey",
        "booksum"
      ],
      "venue": "arXiv / Google",
      "source": "",
      "license": "",
      "published_year": 2024,
      "added_at": "2026-10-01T16:45:06.278Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 243,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/564",
      "markdown": "https://papers.projxon.ai/entries/564.md",
      "api": "https://papers.projxon.ai/api/entries/564"
    },
    {
      "id": 612,
      "kind": "model",
      "title": "SmolLM3: smol, multilingual, long-context reasoner",
      "summary": "HuggingFaceTB 3B decoder (Llama-style, tied embeddings, GQA 4 groups, NoPE every 4th layer, intra-document masking) trained 11.2T tokens on 384 H100s over 24 days. Three-stage web/code/math mix, then 100B long-context (4k to 64k, YaRN to 128k) and 140B reasoning mid-train. SFT 1.8B tokens dual think/no_think, APO alignment, MergeKit soup. Outperforms Llama-3.2-3B and Qwen2.5-3B; competitive with 4B models. Think mode AIME 2025 36.7 percent vs 9.3 percent no-think. Apache-2.0. Languages EN/FR/ES/DE/IT/PT.",
      "url": "https://huggingface.co/blog/smollm3",
      "authors": [
        "Elie Bakouch",
        "Loubna Ben Allal",
        "Anton Lozhkov",
        "Nouamane Tazi",
        "Lewis Tunstall",
        "Carlos Miguel Patiño",
        "Edward Beeching",
        "Aymeric Roucher",
        "Aksel Joonas Reedi",
        "Quentin Gallouédec",
        "Kashif Rasul",
        "Nathan Habib",
        "Clémentine Fourrier",
        "Hynek Kydlicek",
        "Guilherme Penedo",
        "Hugo Larcher",
        "Mathieu Morlon",
        "Vaibhav Srivastav",
        "Joshua Lochner",
        "Xuan-Son Nguyen",
        "Colin Raffel",
        "Leandro von Werra",
        "Thomas Wolf"
      ],
      "tags": [
        "smollm3",
        "huggingfacetb",
        "small-lm",
        "reasoning",
        "long-context",
        "multilingual",
        "blog"
      ],
      "venue": "Hugging Face (HuggingFaceTB)",
      "source": "huggingface",
      "license": "Apache-2.0",
      "published_year": null,
      "added_at": "2026-08-14T18:56:35.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/612",
      "markdown": "https://papers.projxon.ai/entries/612.md",
      "api": "https://papers.projxon.ai/api/entries/612"
    }
  ]
}
