Metraipolis › archive › dc_28669347549d
OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling — arXiv:2608.05141
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.05141
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-31T11:13:18.754Z
- SHA-256 of the archived text
55d528a78c8f5186ab3f27ac639803cfb6b7b8b9f785590d6357ebf5fe2a01cc- Stable URL of this page
https://metraipolis.com/documento/dc_28669347549d
How to cite
OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling — arXiv:2608.05141 — arXiv (en), https://arxiv.org/abs/2608.05141 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_28669347549d (Metraipolis archive dc_28669347549d, sha256 55d528a78c8f5186ab3f27ac639803cfb6b7b8b9f785590d6357ebf5fe2a01cc)
BibTeX
@misc{dc28669347549d,
title = {OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling — arXiv:2608.05141},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.05141},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_28669347549d; sha256 55d528a78c8f5186ab3f27ac639803cfb6b7b8b9f785590d6357ebf5fe2a01cc},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.05141. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Context lengths of language models (LMs) have dramatically increased, driven by the demands for in-context learning, self-improvement, and long-horizon agentic workflows. However, existing long-context corpora are dominated by books, academic articles, and code repositories, which are finite and often lack long-distance dependencies. In this work, we introduce OctoLong, a context-engineering pipeline that instruments an AST parser, a language server backend, and a package manager to recursively retrieve code references, enabling the curation of dependency-rich code contexts up to millions of tokens long. We then train OctoLong-Instruct, a suite of capable long-context open LMs, derived from base models ranging in size from 600M to 14B parameters, via context-extension mid-training on a approx 50B-token mixture containing approx 6.2B tokens of OctoLong code contexts, followed by approx 10B tokens of instruction tuning. Our ablations and experimental evaluations against 18 strong long-context open-weight LMs show that supplanting just 12% of conventional context-extension corpora with OctoLong data yields substantial gains in long-range retrieval, long-term state tracking, repository-level code understanding, and downstream agentic tasks, while also enhancing API usage in regular coding scenarios. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-06 in cs.AI). Categorie arXiv: Artificial Intelligence (cs.AI) ; Machine Learning (cs.LG); Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2608.05141 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-31T11:02:13.442Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-06?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).