pith:NHNDZ7GO
Correctness-Aware Repository Filtering Under Maximum Effective Context Window Constraints
A size-based filter using only file metadata cuts tokens in LLM repository contexts by 80 to 89 percent and raises task accuracy from 25 to 72 percent.
arxiv:2605.14362 v1 · 2026-05-14 · cs.SE · cs.AI
Add to your LaTeX paper
\usepackage{pith}
\pithnumber{NHNDZ7GOL6G5MP3M7VRLDM6DTY}
Prints a linked badge after your title and injects PDF metadata. Compiles on arXiv. Learn more · Embed verified badge
Record completeness
Claims
Across 10 real open-source repositories (22,046 files, 5 languages), the proposed SizeFilter at θ=1 MB achieves 79.6% (±13.2%) mean token reduction at 0.30 ms overhead; the HybridFilter achieves 89.3% (±9.0%) the lowest variance of any filter evaluated. A limited-scope evaluation (18 tasks, CodeLlama-7B-Instruct) yields 72% file-level accuracy under filtering versus 25% at baseline; hallucination frequency declines from 61% to 17%.
That file size (or a quick token-density estimate) is a reliable proxy for task relevance and that discarding large files will not remove critical code needed for the downstream LLM task.
A pre-execution size filter cuts repository tokens by 80-89% at sub-millisecond cost and raises file-level accuracy from 25% to 72% in a small CodeLlama evaluation.
References
Receipt and verification
| First computed | 2026-05-17T23:39:07.938136Z |
|---|---|
| Builder | pith-number-builder-2026-05-17-v1 |
| Signature | Pith Ed25519
(pith-v1-2026-05) · public key |
| Schema | pith-number/v1.0 |
Canonical hash
69da3cfcce5f8dd63f6cfd62b1b3c39e2207c6e4553eff25b14fdaa3276c66b2
Aliases
· · · · ·Agent API
Verify this Pith Number yourself
curl -sH 'Accept: application/ld+json' https://pith.science/pith/NHNDZ7GOL6G5MP3M7VRLDM6DTY \
| jq -c '.canonical_record' \
| python3 -c "import sys,json,hashlib; b=json.dumps(json.loads(sys.stdin.read()), sort_keys=True, separators=(',',':'), ensure_ascii=False).encode(); print(hashlib.sha256(b).hexdigest())"
# expect: 69da3cfcce5f8dd63f6cfd62b1b3c39e2207c6e4553eff25b14fdaa3276c66b2
Canonical record JSON
{
"metadata": {
"abstract_canon_sha256": "96fafebce4393315df46d1861b122fd5f1406251292483c0d26f22d481d9709a",
"cross_cats_sorted": [
"cs.AI"
],
"license": "http://arxiv.org/licenses/nonexclusive-distrib/1.0/",
"primary_cat": "cs.SE",
"submitted_at": "2026-05-14T04:37:39Z",
"title_canon_sha256": "afe0ba635aaf9c64fa12842b8e4eaea32cdce8e44dcc83c732a2b8421ad5767e"
},
"schema_version": "1.0",
"source": {
"id": "2605.14362",
"kind": "arxiv",
"version": 1
}
}