SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.12181 · 2024

A Controlled Study on Long Context Extension and Generalization in LLMs

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2409.12181.json · badge: /api/ran/2409.12181.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
leooyii/lceg canonical (classifier label)
classifier basis: census
11 ran · 3 no recorded run
FunctionStatusWhere it lives
add_mem_tokens Ran
ran; our contract draft was wrong, not the code
leooyii/lceg/continuous_finetuning/fine-tune.py
pointer only (licence: NONE) · get_code("2fce765e480061f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_score Ran
ran, honoured the contract we drafted
leooyii/lceg/longbench/metrics.py
pointer only (licence: NONE); the stored copy get_code serves, from borealisai/radar-decoding, is pointer only (licence: LGPL-3.0) · get_code("b349b79d9cc2934b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate Ran
ran; our contract draft was wrong, not the code
leooyii/lceg/eval_perplexity/eval_lm_infinite.py
pointer only (licence: NONE) · get_code("7d8751620f2e23ff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

iceildiv Ran
ran, honoured the contract we drafted
leooyii/lceg/eval_perplexity/eval_clex.py
pointer only (licence: NONE); the stored copy get_code serves, from yangjianxin1/longqlora, is pointer only (licence: NONE) · get_code("51ee91de5e3fdcaa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_model_and_tokenizer Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
leooyii/lceg/longbench/pred.py
pointer only (licence: NONE) · get_code("2b06c68ea29c8f3b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_answer Ran
ran; our contract draft was wrong, not the code
leooyii/lceg/longbench/metrics.py
pointer only (licence: NONE); the stored copy get_code serves, from borealisai/radar-decoding, is pointer only (licence: LGPL-3.0) · get_code("e7e75981cb464788")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_zh_answer Ran
ran; our contract draft was wrong, not the code
leooyii/lceg/longbench/metrics.py
pointer only (licence: NONE); the stored copy get_code serves, from borealisai/radar-decoding, is pointer only (licence: LGPL-3.0) · get_code("8c5c581f9264c810")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_args Ran
ran; our contract draft was wrong, not the code
leooyii/lceg/longbench/eval_trec.py
pointer only (licence: NONE) · get_code("ca066a4c088c8cf5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_args Ran
ran; our contract draft was wrong, not the code
leooyii/lceg/longbench/pred.py
pointer only (licence: NONE) · get_code("ca70f1c4db4f1296")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reshape_fn Ran
ran; our contract draft was wrong, not the code
leooyii/lceg/continuous_finetuning/fine-tune.py
pointer only (licence: NONE) · get_code("d2c659b7707d28bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

tokenize_fn Ran
ran; our contract draft was wrong, not the code
leooyii/lceg/continuous_finetuning/fine-tune.py
pointer only (licence: NONE) · get_code("ad4c52b7c7083143")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
leooyii/lceg/eval_perplexity/eval_clex.py
pointer only (licence: NONE) · get_code("708bed3133d01060")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
leooyii/lceg/eval_perplexity/eval_landmark.py
pointer only (licence: NONE) · get_code("d69813e43224dc01")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_pred Not yet run
unverified (harvested, no recorded run)
leooyii/lceg/longbench/pred.py
pointer only (licence: NONE) · get_code("ac5698be4313ef23")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leooyii/lceg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 6 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normalize_answer 133 other papers
90 dated earlier, 2 the same month, 40 later, 1 undated · 1 only as an assembly brick
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 130 more not named here
normalize_zh_answer 28 other papers
14 dated earlier, 2 the same month, 10 later, 1 same year, order not determinable, 1 undated
2311.04934 (2023-11)
Prompt Cache: Modular Attention Reuse for Low-Latency Inference
2311.09198 (2023-11)
Never Lost in the Middle: Mastering Long-Context Question Answering with Position-Agnostic Decompositional Training
2024.findings-emnlp.230 (2024 (year only))
CLongEval: A Chinese Benchmark for Evaluating Long-Context Large Language Models
and 25 more not named here
count_score 24 other papers
12 dated earlier, 1 the same month, 10 later, 1 undated
2311.04934 (2023-11)
Prompt Cache: Modular Attention Reuse for Low-Latency Inference
2311.09198 (2023-11)
Never Lost in the Middle: Mastering Long-Context Question Answering with Position-Agnostic Decompositional Training
2402.02750 (2024-02)
KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache
and 21 more not named here
iceildiv 3 other papers
2 dated earlier, 1 later
2306.15595 (2023-06)
Extending Context Window of Large Language Models via Positional Interpolation
2311.04879 (2023-11)
LongQLoRA: Efficient and Effective Method to Extend Context Length of Large Language Models
2603.28743 (2026-03)
Rethinking Language Model Scaling under Transferable Hypersphere Optimization
parse_args 3 other papers
2 dated earlier, 1 later
2402.02750 (2024-02)
KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache
2406.03482 (2024-06)
QJL: 1-Bit Quantized JL Transform for KV Cache Quantization with Zero Overhead
2505.22913 (2025-05)
MUSTAFAR: Promoting Unstructured Sparsity for KV Cache Pruning in LLM Inference
tokenize_fn 2 other papers
1 dated earlier, 1 later
2309.12307 (2023-09)
LongLoRA: Efficient Fine-tuning of Long-Context Large Language Models
aaai_34662 (2025 (year only))
3D-RPE: Enhancing Long-Context Modeling Through 3D Rotary Position Encoding

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Broad textual understanding and in-context learning require language models that utilize full document contexts. Due to the implementation challenges associated with directly training long-context models, many methods have been proposed for extending models to handle long contexts. However, owing to differences in data and model classes, it has been challenging to compare these approaches, leading to uncertainty as to how to evaluate long-context performance and whether it differs from standard evaluation. We implement a controlled protocol for extension methods with a standardized evaluation, utilizing consistent base models and extension data. Our study yields several insights into long-context behavior. First, we reaffirm the critical role of perplexity as a general-purpose performance indicator even in longer-context tasks. Second, we find that current approximate attention methods systematically underperform across long-context tasks. Finally, we confirm that exact fine-tuning based methods are generally effective within the range of their extension, whereas extrapolation remains challenging. All codebases, models, and checkpoints will be made available open-source, promoting transparency and facilitating further research in this critical area of AI development.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2409.12181")
get_code_for_paper("2409.12181")
have("2409.12181")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2409.12181.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2409.12181.svg)](https://syntology.ai/paper/2409.12181)

Connect an agent — have() is free.