Lee, Yushi Bai, Juanzi Li, Yuhao Wu, Zhiqiang Hu, Ka-Wei Roy
12 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; 10 failures of our instrument; 2 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-24; 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/2506.18841.json · badge: /api/ran/2506.18841.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.
| Repository | Role | Ran |
|---|---|---|
| thudm/longwriter | canonical (classifier label) classifier basis: census |
12 ran · 2 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| repeat_kv | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
thudm/longwriter/train/patch/modeling_llama.py code served (permissive licence) · get_code("30d7eec482ebf6b1") How it ranRan in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 6, 5, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T23:09:20Z). If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| apply_rotary_pos_emb | Ran ran; our contract draft was wrong, not the code |
thudm/longwriter/train/patch/modeling_llama.py code served (permissive licence) · get_code("bac65c3dafaec040") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple, ndim 5, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| apply_rotary_pos_emb | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
thudm/longwriter/train/patch/modeling_chatglm.py code served (permissive licence) · get_code("5cfeaee89a75c5ff") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (3, 2, 4, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| count_words | Ran ran, honoured the contract we drafted |
thudm/longwriter/evaluation/pred.py code served (permissive licence) · get_code("2bb5c6316f656bec") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| extract_info | Ran ran; our contract draft was wrong, not the code |
thudm/longwriter/evaluation/eval_quality.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from mozhu621/superwriter, is pointer only (licence: NONE) · get_code("05ae45b3b7e836be") How it ranThe body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from mozhu621/superwriter, and GitHub detected no licence in that repository 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. |
| get_response_gpt4 | Ran ran; our contract draft was wrong, not the code |
thudm/longwriter/agentwrite/plan.py code served (permissive licence) · get_code("72494291664f9618") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| get_response_gpt4 | Ran ran; our contract draft was wrong, not the code |
thudm/longwriter/evaluation/eval_quality.py code served (permissive licence) · get_code("8017d011436ee94c") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| parse_args | Ran ran; our contract draft was wrong, not the code |
thudm/longwriter/train/pre_tokenize_glm4.py code served (permissive licence) · get_code("5399d42525c76303") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Namespace. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| parse_args | Ran ran; our contract draft was wrong, not the code |
thudm/longwriter/train/pre_tokenize_llama3.py code served (permissive licence) · get_code("3686c5e8cbb5882e") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Namespace. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| rotate_half | Ran ran; our contract draft was wrong, not the code |
thudm/longwriter/train/patch/modeling_llama.py code served (permissive licence) · get_code("b99eea6376d1e212") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| score | Ran ran, honoured the contract we drafted |
thudm/longwriter/evaluation/eval_length.py code served (permissive licence) · get_code("653c358686bbb406") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| split_tensor_along_last_dim | Ran ran; our contract draft was wrong, not the code |
thudm/longwriter/train/patch/modeling_chatglm.py code served (permissive licence) · get_code("d7e378ee7899fbde") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| default_init | Not yet run unverified (harvested, no recorded run) |
thudm/longwriter/train/patch/modeling_chatglm.py code served (permissive licence) · get_code("237019e36b9481d9") How it ranno invocation recorded. |
| load_model_and_tokenizer | Not yet run unverified (harvested, no recorded run) |
thudm/longwriter/trans_web_demo.py code served (permissive licence) · get_code("b966ffef888e5413") How it ranno invocation recorded. |
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, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 4 the same month, 3 later) and 7 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.
| Function | Also present in | Earliest-dated | Others named |
|---|---|---|---|
| rotate_half | 360 other papers 282 dated earlier, 10 the same month, 60 later, 5 same year, order not determinable, 3 undated · 30 only as an assembly brick |
1901.02860 (2019-01) Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context |
2203.08913 (2022-03) Memorizing Transformers 2302.13971 (2023-02) LLaMA: Open and Efficient Foundation Language Models and 357 more not named here |
| repeat_kv | 243 other papers 192 dated earlier, 5 the same month, 40 later, 4 same year, order not determinable, 2 undated · 22 only as an assembly brick |
1901.02860 (2019-01) Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context |
2203.08913 (2022-03) Memorizing Transformers 2305.17888 (2023-05) LLM-QAT: Data-Free Quantization Aware Training for Large Language Models and 240 more not named here |
| apply_rotary_pos_emb | 94 other papers 64 dated earlier, 4 the same month, 21 later, 2 same year, order not determinable, 3 undated · 6 only as an assembly brick |
1901.02860 (2019-01) Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context |
2305.17888 (2023-05) LLM-QAT: Data-Free Quantization Aware Training for Large Language Models 2309.11674 (2023-09) A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models and 91 more not named here |
| split_tensor_along_last_dim | 8 other papers 8 dated earlier |
2307.13528 (2023-07) FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios |
2311.18445 (2023-11) VTimeLLM: Empower LLM to Grasp Video Moments 2401.18058 (2024-01) LongAlign: A Recipe for Long Context Alignment of Large Language Models and 5 more not named here |
| default_init | 6 other papers 6 dated earlier |
2307.13528 (2023-07) FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios |
2311.18445 (2023-11) VTimeLLM: Empower LLM to Grasp Video Moments 2401.18058 (2024-01) LongAlign: A Recipe for Long Context Alignment of Large Language Models and 3 more not named here |
| apply_rotary_pos_emb | 4 other papers 4 dated earlier |
2307.13528 (2023-07) FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios |
2311.18445 (2023-11) VTimeLLM: Empower LLM to Grasp Video Moments 2401.18058 (2024-01) LongAlign: A Recipe for Long Context Alignment of Large Language Models and 1 more not named here |
| extract_info | 1 other paper 1 the same month |
2506.04180 (2025-06) SuperWriter: Reflection-Driven Long-Form Generation with Large Language Models |
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-24.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Ultra-long generation by large language models (LLMs) is a widely demanded scenario, yet it remains a significant challenge due to their maximum generation length limit and overall quality degradation as sequence length increases. Previous approaches, exemplified by LongWriter (Bai et al., 2025), typically involve supervised fine-tuning (SFT) on synthetic long-form outputs. However, this strategy heavily depends on synthetic SFT data, which is difficult and costly to construct, often lacks coherence and consistency, and tends to be overly artificial and structurally monotonous. In this work, we propose an incentivization-based approach that, starting entirely from scratch and without relying on any annotated or synthetic data, leverages reinforcement learning (RL) to foster the emergence of ultra-long, high-quality text generation capabilities in LLMs. We perform RL training starting from a base model, similar to R1-Zero, guiding it to engage in reasoning that facilitates planning and refinement during the writing process. To support this, we employ specialized reward models that steer the LLM towards improved length control, writing quality, and structural formatting. Experimental evaluations show that our LongWriter-Zero model, trained from Qwen2.5-32B, consistently outperforms traditional SFT methods on long-form writing tasks, achieving state-of-the-art results across all metrics on WritingBench and Arena-Write, and even surpassing 100B+ models such as DeepSeek R1 and Qwen3-235B.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2506.18841")
get_code_for_paper("2506.18841")
have("2506.18841")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2506.18841.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2506.18841)
Connect an agent — have() is free.