SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.13846 · 2024

LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptation

arXiv · PDF · Open in the Atlas

Code that ran

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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 10 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2410.13846.json · badge: /api/ran/2410.13846.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
sail-sg/simlayerkv canonical (classifier label)
classifier basis: census
12 ran · 2 no recorded run
FunctionStatusWhere it lives
apply_rotary_pos_emb_single Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sail-sg/simlayerkv/LongBench/SimLayerKV_attention_llama.py
pointer only (licence: NONE) · get_code("109fdfadb74e7b7e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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.

build_chat Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sail-sg/simlayerkv/LongBench/pred.py
pointer only (licence: NONE) · get_code("324506640e971548")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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
sail-sg/simlayerkv/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, sail-sg/simlayerkv 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
sail-sg/simlayerkv/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, sail-sg/simlayerkv 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
sail-sg/simlayerkv/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, sail-sg/simlayerkv 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
sail-sg/simlayerkv/LongBench/pred.py
pointer only (licence: NONE) · get_code("a5e6881df94a8792")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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.

post_process Ran
ran, violated the contract we drafted
sail-sg/simlayerkv/LongBench/pred.py
pointer only (licence: NONE) · get_code("4489113b536ca6eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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.

relative_top_filter Ran
ran; our contract draft was wrong, not the code
sail-sg/simlayerkv/LongBench/SimLayerKV_llama.py
pointer only (licence: NONE) · get_code("fa0ead5eb565a101")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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.

repeat_kv_quant Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sail-sg/simlayerkv/LongBench/KIVI/models/mistral_kivi.py
pointer only (licence: NONE) · get_code("fa013be990ccedab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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.

scaled_dot_product_attention Ran
ran; our contract draft was wrong, not the code
sail-sg/simlayerkv/LongBench/SimLayerKV_attention_llama.py
pointer only (licence: NONE) · get_code("15435bf612fd7f6f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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.

scaled_dot_product_attention Ran
ran; our contract draft was wrong, not the code
sail-sg/simlayerkv/LongBench/SimLayerKV_attention_qwen.py
pointer only (licence: NONE) · get_code("996f634b37f61510")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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.

slerp Ran
ran; our contract draft was wrong, not the code
sail-sg/simlayerkv/LongBench/SimLayerKV_llama.py
pointer only (licence: NONE) · get_code("3a5da3106b298ea0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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.

ori_forward Not yet run
unverified (harvested, no recorded run)
sail-sg/simlayerkv/LongBench/SimLayerKV_attention_llama.py
pointer only (licence: NONE) · get_code("7f2e8a952b2a3486")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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.

ori_forward Not yet run
unverified (harvested, no recorded run)
sail-sg/simlayerkv/LongBench/SimLayerKV_attention_qwen.py
pointer only (licence: NONE) · get_code("8bef8b8d37f07b4e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/simlayerkv 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 13 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, 6 later) and 6 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
93 dated earlier, 5 the same month, 34 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
17 dated earlier, 2 the same month, 7 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
14 dated earlier, 2 the same month, 7 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
post_process 14 other papers
7 dated earlier, 1 the same month, 6 later
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
2404.14469 (2024-04)
SnapKV: LLM Knows What You are Looking for Before Generation
and 11 more not named here
build_chat 4 other papers
1 dated earlier, 3 later
2406.10774 (2024-06)
Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference
2025.emnlp-main.443 (2025 (year only))
A Training-Free Length Extrapolation Approach for LLMs: Greedy Attention Logit Interpolation
2509.19633 (2025-09)
Mamba Modulation On the Length Generalization of Mamba
and 1 more not named here
repeat_kv_quant 2 other papers
2 dated earlier
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
relative_top_filter 1 other paper
1 later
2509.16598 (2025-09)
PruneCD: Contrasting Pruned Self Model to Improve Decoding Factuality

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-23.

Repositories linked to this paper

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

Abstract

Scaling language models to handle longer contexts introduces substantial memory challenges due to the growing cost of key-value (KV) caches. Motivated by the efficiency gains of hybrid models and the broad availability of pretrained large transformer backbones, we explore transitioning transformer models into hybrid architectures for a more efficient generation. In this work, we propose LightTransfer, a lightweight method that transforms models such as LLaMA into hybrid variants. Our approach identifies lazy layers -- those focusing on recent or initial tokens -- and replaces their full attention with streaming attention. This transformation can be performed without any training for long-context understanding tasks or with minimal fine-tuning for o1-like long reasoning generation tasks that require stronger reasoning capabilities. Experiments across diverse benchmarks and models (e.g., LLaMA, Mistral, QwQ-STILL) demonstrate that, even when half of the layers are identified as lazy, LightTransfer achieves up to 2.17$\times$ throughput improvement with minimal performance loss ($<1.5\%$ on LongBench) and achieves 53.3\% on math benchmark AIME24 of advanced o1-like long reasoning model QwQ-STILL.

For agents

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

get_harvested_code_for_paper("2410.13846")
get_code_for_paper("2410.13846")
have("2410.13846")

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

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

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

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

Connect an agent — have() is free.