Pith. sign in

REVIEW 28 cited by

Cartridges: Lightweight and general-purpose long context representations via self-study

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2506.06266 v3 pith:23GPZM4G submitted 2025-06-06 cs.CL cs.AIcs.LG

Cartridges: Lightweight and general-purpose long context representations via self-study

classification cs.CL cs.AIcs.LG
keywords corpusself-studycartridgecartridgestrainingcachecontexttrained
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
Share X Bluesky LinkedIn Reddit HN
read the original abstract

Large language models are often used to answer queries grounded in large text corpora (e.g. codebases, legal documents, or chat histories) by placing the entire corpus in the context window and leveraging in-context learning (ICL). Although current models support contexts of 100K-1M tokens, this setup is costly to serve because the memory consumption of the KV cache scales with input length. We explore an alternative: training a smaller KV cache offline on each corpus. At inference time, we load this trained KV cache, which we call a Cartridge, and decode a response. Critically, the cost of training a Cartridge can be amortized across all the queries referencing the same corpus. However, we find that the naive approach of training the Cartridge with next-token prediction on the corpus is not competitive with ICL. Instead, we propose self-study, a training recipe in which we generate synthetic conversations about the corpus and train the Cartridge with a context-distillation objective. We find that Cartridges trained with self-study replicate the functionality of ICL, while being significantly cheaper to serve. On challenging long-context benchmarks, Cartridges trained with self-study match ICL performance while using 38.6x less memory and enabling 26.4x higher throughput. Self-study also extends the model's effective context length (e.g. from 128k to 484k tokens on MTOB) and surprisingly, leads to Cartridges that can be composed at inference time without retraining.

discussion (0)

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

Forward citations

Cited by 28 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Continual Learning Bench: Evaluating Frontier AI Systems in Real-World Stateful Environments

    cs.AI 2026-06 unverdicted novelty 8.0

    CL-Bench is the first expert-validated benchmark for continual learning in frontier LLMs across six real-world domains, showing limited gains and that naive in-context learning outperforms dedicated memory systems.

  2. Can a Language Model Learn Facts Continually in Its Weights?

    cs.CL 2026-07 conditional novelty 7.0

    Facts written into LLM weights are stored but question-keyed; broad data creates usable knowledge while later writes destroy access rather than storage, leaving context more reliable than weights for composition and r...

  3. Self-Study Reconsidered: The Hidden Fragility of Learning from Self-Generated QA

    cs.AI 2026-06 unverdicted novelty 7.0

    Self-generated QA supervision for language models is fragile due to non-uniform question selection and instruction compliance during answering, with mitigations that reduce compliance from 88% to 13%.

  4. Doc-to-Atom: Learning to Compile and Compose Memory Atoms

    cs.CL 2026-06 unverdicted novelty 7.0

    Doc-to-Atom decomposes documents into composable micro-LoRA adapters selected by a query router for efficient long-context QA.

  5. Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference

    cs.CL 2026-05 unverdicted novelty 7.0

    A sleep mechanism with N offline recurrent passes consolidates context into fast weights, improving performance on reasoning tasks where standard transformers fail.

  6. MeMo: Memory as a Model

    cs.CL 2026-05 unverdicted novelty 7.0

    MeMo encodes new knowledge into a separate memory model for frozen LLMs, achieving strong performance on BrowseComp-Plus, NarrativeQA, and MuSiQue while capturing cross-document relationships and remaining robust to r...

  7. SnapStream: Efficient Long Sequence Decoding on Dataflow Accelerators

    cs.AI 2025-11 unverdicted novelty 7.0

    SnapStream deploys sparse KV attention in a production inference system on dataflow accelerators, delivering 4x on-chip memory savings for DeepSeek-671B at 128k context with up to 1832 tokens/sec and minimal accuracy ...

  8. MIRIX: Multi-Agent Memory System for LLM-Based Agents

    cs.CL 2025-07 unverdicted novelty 7.0

    MIRIX introduces a modular multi-agent architecture with Core, Episodic, Semantic, Procedural, Resource, and Knowledge Vault memories that outperforms RAG baselines by 35% on ScreenshotVQA and reaches 85.4% on LOCOMO.

  9. Learning What to Remember: Test-Time Training via Context Distillation

    cs.CL 2026-08 conditional novelty 6.0

    IP-TTCD distills the hidden-state gap between a long-window teacher and a short-window student into MLP fast weights, improving long-context language modeling and retrieval over DeltaNet, Gated DeltaNet, SWA, and IP-TTT.

  10. Back from the Future: Key-Value Cache Management by Counter-Causal Surprise

    cs.LG 2026-07 conditional novelty 6.0

    Past tokens that the model can predict from their future context are evicted from the KV cache, judged by a counter-causal attention pass that reuses cached keys and values.

  11. Can a Language Model Learn Facts Continually in Its Weights?

    cs.CL 2026-07 unverdicted novelty 6.0

    Weight writes create question-keyed knowledge that later sequential writes redirect, so context—not weights—is the reliable channel for facts that must survive or be composed.

  12. What to Keep, What to Forget: A Rate--Distortion View of Memory Compaction in LLMs and Agents

    cs.LG 2026-07 conditional novelty 6.0

    KV-cache eviction, prompt compression, recurrent state bounding, and agent memory consolidation are unified as one rate-distortion problem with a shared lower bound, shared failure mode, and transferable mechanisms.

  13. When Does Continual Learning Require Learning

    cs.LG 2026-07 conditional novelty 6.0

    Different patterns of environmental change (space vs time) require different LLM update behaviors; no single family of methods—prompts, distillation, RL, or compression—handles all regimes.

  14. End-to-End Context Compression at Scale

    cs.CL 2026-06 unverdicted novelty 6.0

    LCLMs are scaled 0.6B-encoder 4B-decoder compressors pre-trained on over 350B tokens that improve the Pareto frontier for general-task performance, compression speed, and peak memory in long-context language model inference.

  15. Still: Amortized KV Cache Compaction in a Single Forward Pass

    cs.LG 2026-06 unverdicted novelty 6.0

    Still is an amortized per-layer Perceiver that synthesizes compact KV caches in one forward pass, outperforming selection and per-context baselines on RULER, HELMET, and LongBench at 8-200x compression.

  16. Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories

    cs.LG 2026-06 conditional novelty 6.0

    Sleep-time Knowledge Seeding plus Dreaming lets LLMs expand capacity, distill fragile in-context memories into stable parameters, and self-improve without human labels.

  17. Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories

    cs.LG 2026-06 unverdicted novelty 6.0

    Language models can use a two-stage sleep process of upward distillation for memory consolidation and RL-based dreaming for unsupervised self-improvement to enable continual learning.

  18. Knowledge Offloading: Decomposing LLMs into Sparse Backbones and Memory Modules

    cs.LG 2026-05 unverdicted novelty 6.0

    KOFF prunes LLMs to ~12% sparsity while adding LoRA and learned KV memories, preserving performance where plain pruning fails across 3B-8B Llama and Qwen models.

  19. Parallel Context Compaction for Long-Horizon LLM Agent Serving

    cs.AI 2026-05 unverdicted novelty 6.0

    Parallel compaction for LLM agent context management provides predictable volume control and reduces wall time versus sequential baselines on HotpotQA and LoCoMo.

  20. PreFT: Prefill-only finetuning for efficient inference

    cs.LG 2026-05 accept novelty 6.0

    Prefill-only adaptation of LLMs yields 1.9x higher throughput for 512 adapters on Llama 3.1 70B with near-parity performance on RL tasks and recoverable loss on SFT.

  21. Position: Modular Memory is the Key to Continual Learning Agents

    cs.LG 2026-03 conditional novelty 6.0

    A modular memory combining in-context learning and in-weight learning is proposed as the key to continual learning agents.

  22. ARC-Encoder: learning compressed text representations for large language models

    cs.CL 2025-10 conditional novelty 6.0

    ARC-Encoder pools queries in an encoder's last attention layer to produce compressed continuous representations that a frozen decoder consumes as token embeddings.

  23. Data Quality over Capacity: Internalizing Documents into LoRA Adapters for Closed-Book QA

    cs.CL 2026-07 conditional novelty 5.0

    For closed-book QA via LoRA adapters, once capacity is sufficient, training-data quality—especially answer brevity—outperforms rank, learning rate, and architecture changes, lifting 15-doc accuracy from 57.7% to 85.7%.

  24. The Verbose Context Problem in Medical Records

    cs.CL 2026-06 unverdicted novelty 5.0

    Presents PopMedQA benchmark and shows domain-independent LLM methods fail on token-inefficient longitudinal medical records, leaving room for domain-specific approaches.

  25. Amortizing Federated Adaptation: Hypernetwork Driven LoRA for Personalized Foundation Models

    cs.AI 2026-06 unverdicted novelty 5.0

    HyperLoRA amortizes federated LoRA adaptation via hypernetwork-generated initializations and product-space aggregation to fix structural bias and initialization lag.

  26. MeMo: Memory as a Model

    cs.CL 2026-05 unverdicted novelty 5.0

    MeMo encodes new knowledge into a separate memory model that integrates with frozen LLMs, showing strong performance on QA benchmarks while avoiding catastrophic forgetting and working without access to model weights.

  27. Context Distillation as Latent Memory Management

    cs.LG 2026-05 unverdicted novelty 4.0

    Context distillation is reformulated as latent memory management via a bank of LoRA adapters, retrieval, routing, and self-gating to outperform retrieval baselines and improve robustness.

  28. Back to Basics: Let Conversational Agents Remember with Just Retrieval and Generation

    cs.CL 2026-04 unverdicted novelty 4.0

    A minimalist retrieval-and-generation framework using turn isolation and query-driven pruning outperforms complex memory systems by directly addressing signal sparsity and dual-level redundancy in dialogues.