{
  "id": 1112,
  "kind": "post",
  "title": "Reaching 1B context length with RAG",
  "summary": "Zyphra research blog (2024-10-21, Palo Alto). Combines fast sparse embeddings with personalized-PageRank-style graph retrieval so only a small retrieved subset (~65 chunks / several thousand tokens) is fed to gpt-4o-mini. Reports near-perfect Hash-Hop accuracy through 1B tokens, matching/beating Magic LTM at 50M–100M while running embedding+retrieval on CPU. Contrasts with dense BERT embedders (gte-small/base/large) that embed much more slowly.",
  "body": "",
  "notes": "Primary: zyphra.com/post/reaching-1b-context-length-with-rag (WebFetch 2026-09-02; authors Nick Alonso, Beren Millidge; date Oct 21, 2024). Preliminary results blog; not a peer-reviewed paper. item_type=blog; source_url_type=web (catalog convention).",
  "url": "https://www.zyphra.com/post/reaching-1b-context-length-with-rag",
  "links": [],
  "authors": [
    "Nick Alonso",
    "Beren Millidge"
  ],
  "tags": [
    "zyphra",
    "rag",
    "hash-hop",
    "long-context",
    "sparse-embeddings",
    "personalized-pagerank",
    "magic-ltm",
    "1b-context",
    "vendor-blog"
  ],
  "topics": "ultra-long-context RAG; sparse graph retrieval; personalized PageRank over text chunks",
  "venue": "Zyphra",
  "publisher": "Zyphra",
  "source": "web",
  "language": "en",
  "access": "free (public blog); method described at high level — full algorithm deferred to future work; no open weights claimed on page",
  "license": "",
  "published_year": null,
  "added_at": "2026-09-02T15:53:00.000Z",
  "verified_at": "2026-09-02T15:53:00.000Z",
  "attrs": {
    "scale": "Hash-Hop tested to 1B tokens (15–40 questions at 100M–1B; 100 questions at shorter lengths); retrieves 65 items per query; dense baselines: gte-small 33M / gte-base-en-v1.5 130M / gte-large-en-v1.5 500M on RTX 4090",
    "domain": "ultra-long-context RAG; sparse graph retrieval; personalized PageRank over text chunks",
    "purpose": "Demonstrate a CPU-friendly sparse-graph RAG system that extends off-the-shelf LLMs to ~1B-token contexts and achieves strong Hash-Hop results without modifying the generator model.",
    "used_for": "ultra-long-context retrieval research; Hash-Hop evaluation; CPU-efficient RAG design",
    "author_type": "lab (Zyphra)",
    "time_period": "2024-10-21 (blog post date)"
  },
  "enrichment": {},
  "enriched_at": "2026-10-03T14:33:50.863Z",
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "local-803",
    "needs_deep_eval": "no",
    "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/1112",
  "markdown": "https://papers.projxon.ai/entries/1112.md",
  "api": "https://papers.projxon.ai/api/entries/1112",
  "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": 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": 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.",
      "url": "https://arxiv.org/abs/2512.13898",
      "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"
      ],
      "venue": "arXiv / Meta / Harvard",
      "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": 20,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/533",
      "markdown": "https://papers.projxon.ai/entries/533.md",
      "api": "https://papers.projxon.ai/api/entries/533"
    },
    {
      "id": 793,
      "kind": "paper",
      "title": "Context Language Models",
      "summary": "Introduces Context Language Models (CLMs): language models that natively manage their own context by treating the context as a file and allowing unrestricted updates to it, letting the model learn what is most important to maintain in context and naturally extending to multi-agent systems where multiple agent contexts coexist as files. Building CLMs zero-shot with existing models outperforms SOTA context-management strategies: 11.4% higher accuracy with 21.5% fewer FLOPs on BrowseComp-Plus, 5% higher scores with 59% fewer FLOPs on 12-hour EdgeBench, and 65% greater improvement with the same compute on a 24-hour multi-repository agent-swarm task. Shifting context management from external harness control to intrinsic model behavior enables both in-context and parametric learning of context-management strategies: steering CLMs with natural-language instructions evolved through a skill-optimization loop improves held-out accuracy by up to 35.9 points while reducing compute. An online RL method for CLMs improves Qwen3.5-9B on BrowseComp-Plus by 47.6% while using 12% fewer FLOPs. Co-designed Suffix Cache Reuse for CLM serving further cuts server-side compute by 35% relative to standard SGLang at matched performance.",
      "url": "https://arxiv.org/abs/2609.37725",
      "authors": [
        "Rulin Shao",
        "Shannon Zejiang Shen",
        "Junjie Oscar Yin",
        "Yuetai Li",
        "Minheng Wang",
        "Hamish Ivison",
        "Radha Poovendran",
        "Nathan Lambert",
        "Teng Xiao",
        "Mike Lewis",
        "Wen-tau Yih",
        "Luke Zettlemoyer",
        "Pang Wei Koh"
      ],
      "tags": [
        "agents",
        "long-context",
        "context-management",
        "rl",
        "multi-agent",
        "inference",
        "caching"
      ],
      "venue": "arXiv",
      "source": "arxiv",
      "license": "CC-BY-4.0",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/793",
      "markdown": "https://papers.projxon.ai/entries/793.md",
      "api": "https://papers.projxon.ai/api/entries/793"
    },
    {
      "id": 825,
      "kind": "model",
      "title": "pplx-embed-v2-context-9b-preview: contextual embedding beyond the gold passage",
      "summary": "New method to train contextual embedding models: instead of embedding each document chunk on its own, the 9B model encodes the whole document once and pools chunk vectors afterward, so every chunk embedding sees the full document. The new training signal: instead of one labeled \"gold\" chunk per query, relevance is distilled from Perplexity's own context compression model, which scores every document token against the query; this teaches the model to retrieve both the answer and the context that supports it. Claimed results: pplx-embed-v2-context-9b-preview sets a new SOTA on ConTEB and on turbopuffer's new private context-bench (evaluated blind): +14.4 points answer recall@10 over voyage-context-4; at 1024 dims in int8 (1KB per vector) it still beats voyage-context-4 at 8KB per vector.",
      "url": "https://www.perplexity.ai/hub/blog/contextual-embedding-beyond-the-gold-passage",
      "authors": [
        "Denis Yarats (Perplexity)"
      ],
      "tags": [
        "embeddings",
        "retrieval",
        "rag",
        "context-compression"
      ],
      "venue": "Perplexity (2026-09-30; preview)",
      "source": "blog",
      "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": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/825",
      "markdown": "https://papers.projxon.ai/entries/825.md",
      "api": "https://papers.projxon.ai/api/entries/825"
    },
    {
      "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": 572,
      "kind": "paper",
      "title": "From Local to Global: A Graph RAG Approach to Query-Focused Summarization",
      "summary": "GraphRAG: LLM extracts entities/relations/claims into a knowledge graph, Leiden-partitions it hierarchically, and pregenerates community summaries; query-time map-reduce over those summaries answers global QFS that vector RAG misses. Podcast (~1M tok) and news (~1.7M tok) graphs: 8,564/15,754 nodes. vs vector RAG, comprehensiveness win rates ~72–83% and diversity ~62–82% (GPT-4 judge, 125 questions×5). Root-level summaries use ~2–3% of source tokens. Code https://github.com/microsoft/graphrag.",
      "url": "https://arxiv.org/abs/2404.16130",
      "authors": [
        "Darren Edge",
        "Ha Trinh",
        "Newman Cheng",
        "Joshua Bradley",
        "Alex Chao",
        "Apurva Mody",
        "Steven Truitt",
        "Dasha Metropolitansky",
        "Robert Osazuwa Ness",
        "Jonathan Larson"
      ],
      "tags": [
        "graphrag",
        "rag",
        "knowledge-graph",
        "leiden",
        "qfs",
        "microsoft",
        "community-detection",
        "sensemaking"
      ],
      "venue": "arXiv / Microsoft",
      "source": "",
      "license": "CC BY 4.0",
      "published_year": 2024,
      "added_at": "2026-10-01T16:45:06.278Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 2263,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/572",
      "markdown": "https://papers.projxon.ai/entries/572.md",
      "api": "https://papers.projxon.ai/api/entries/572"
    }
  ]
}
