SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.04139 · 2024

From Reading to Compressing: Exploring the Multi-document Reader for Prompt Compression

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 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; 4 honoured the contract we drafted, 5 violated it and 0 have no contract verdict; 4 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.04139.json · badge: /api/ran/2410.04139.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
eunseongc/r2c canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
best_subspan_em Ran
ran, honoured the contract we drafted
eunseongc/r2c/LLM_inference.py
pointer only (licence: NONE) · get_code("a8e9bf4b191097fc")
How it ran

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

calculate_entropy Ran
ran, honoured the contract we drafted
eunseongc/r2c/compress.py
pointer only (licence: NONE) · get_code("011fa22b8040e461")
How it ran

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

check_answer Ran
ran, violated the contract we drafted
eunseongc/r2c/src_fid/evaluation.py
pointer only (licence: NONE) · get_code("6bad17909398049e")
How it ran

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

encode_passages Ran
ran, honoured the contract we drafted
eunseongc/r2c/src_fid/data.py
pointer only (licence: NONE) · get_code("9410e388b51e48de")
How it ran

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

exact_match_score Ran
ran, violated the contract we drafted
eunseongc/r2c/LLM_inference.py
pointer only (licence: NONE) · get_code("31f795a3e0c1be69")
How it ran

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

find_pattern_locations Ran
ran, violated the contract we drafted
eunseongc/r2c/src_comp/compress_utils.py
pointer only (licence: NONE) · get_code("40d69700a2d8447c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, eunseongc/r2c 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_prompt Ran
ran; our contract draft was wrong, not the code
eunseongc/r2c/src_comp/compress_utils.py
pointer only (licence: NONE) · get_code("edc9d2c346eeeec0")
How it ran

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

gini Ran
ran, violated the contract we drafted
eunseongc/r2c/src_comp/compress_utils.py
pointer only (licence: NONE) · get_code("858eb20414dce303")
How it ran

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

has_answer Ran
ran, violated the contract we drafted
eunseongc/r2c/src_fid/evaluation.py
pointer only (licence: NONE) · get_code("4b554fe4ab3551c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, eunseongc/r2c 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_data Ran
ran; our contract draft was wrong, not the code
eunseongc/r2c/src_fid/data.py
pointer only (licence: NONE) · get_code("c9985d22a0447bb5")
How it ran

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

most_frequent Ran
ran; our contract draft was wrong, not the code
eunseongc/r2c/eval_fid.py
pointer only (licence: NONE) · get_code("97a6fd2cf08cd835")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, eunseongc/r2c 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
eunseongc/r2c/LLM_inference.py
pointer only (licence: NONE) · get_code("2c014e1529169f70")
How it ran

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

process_batch_input_ids Ran
ran, honoured the contract we drafted
eunseongc/r2c/src_fid/data.py
pointer only (licence: NONE) · get_code("993b9e4952f05b0c")
How it ran

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

calculate_matches Not yet run
unverified (harvested, no recorded run)
eunseongc/r2c/src_fid/evaluation.py
pointer only (licence: NONE) · get_code("95aa31d2bb3d8787")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, eunseongc/r2c 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_options Not yet run
unverified (harvested, no recorded run)
eunseongc/r2c/src_fid/options.py
pointer only (licence: NONE) · get_code("966db28850700a6a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, eunseongc/r2c 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 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 4 later) and 9 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
exact_match_score 56 other papers
50 dated earlier, 6 later
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 53 more not named here
calculate_matches 13 other papers
10 dated earlier, 3 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.03568 (2024-01)
Agent AI: Surveying the Horizons of Multimodal Interaction
2401.16979 (2024-01)
Re3val: Reinforced and Reranked Generative Retrieval
and 10 more not named here
check_answer 13 other papers
10 dated earlier, 3 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.03568 (2024-01)
Agent AI: Surveying the Horizons of Multimodal Interaction
2401.16979 (2024-01)
Re3val: Reinforced and Reranked Generative Retrieval
and 10 more not named here
normalize_answer 11 other papers
8 dated earlier, 2 the same month, 1 later
2308.07922 (2023-08)
RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Models
2403.04797 (2024-03)
Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encoding
2403.15268 (2024-03)
Awakening Augmented Generation: Learning to Awaken Internal Knowledge of Large Language Models for Question Answering
and 8 more not named here
best_subspan_em 5 other papers
4 dated earlier, 1 the same month
2403.04797 (2024-03)
Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encoding
2403.15268 (2024-03)
Awakening Augmented Generation: Learning to Awaken Internal Knowledge of Large Language Models for Question Answering
2406.02536 (2024-06)
Mitigate Position Bias in Large Language Models via Scaling a Single Dimension
and 2 more not named here
get_options 4 other papers
4 dated earlier
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.16979 (2024-01)
Re3val: Reinforced and Reranked Generative Retrieval
2402.05391 (2024-02)
Knowledge Graphs Meet Multi-Modal Learning: A Comprehensive Survey
and 1 more not named here

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

Large language models (LLMs) have achieved significant performance gains using advanced prompting techniques over various tasks. However, the increasing length of prompts leads to high computational costs and often obscures crucial information. Prompt compression has been proposed to alleviate these issues, but it faces challenges in (i) capturing the global context and (ii) training the compressor effectively. To tackle these challenges, we introduce a novel prompt compression method, namely Reading To Compressing (R2C), utilizing the Fusion-in-Decoder (FiD) architecture to identify the important information in the prompt. Specifically, the cross-attention scores of the FiD are used to discern essential chunks and sentences from the prompt. R2C effectively captures the global context without compromising semantic consistency while detouring the necessity of pseudo-labels for training the compressor. Empirical results show that R2C retains key contexts, enhancing the LLM performance by 6% in out-of-domain evaluations while reducing the prompt length by 80%.

For agents

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

get_harvested_code_for_paper("2410.04139")
get_code_for_paper("2410.04139")
have("2410.04139")

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

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

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

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

Connect an agent — have() is free.