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

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

5 Oct 2024arXiv:2410.04139archive 2025-07-28

Eunseong Choi, Sunkyung Lee, Minjin Choi, June Park, Jongwuk Lee

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

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.04139")

Code

Syntology Ran 13 of 15 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 13 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

eunseongc/r2c officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 13 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

13ran
2unverified

Licence: 15 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from eunseongc/r2c. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

best_subspan_em eunseongc/r2c/LLM_inference.py official repository ran no licence file found · pointer only · a8e9bf4b191097fc · report
calculate_entropy eunseongc/r2c/compress.py official repository ran fingerprinted no licence file found · pointer only · 011fa22b8040e461 · report
check_answer eunseongc/r2c/src_fid/evaluation.py official repository ran no licence file found · pointer only · 6bad17909398049e · report
encode_passages eunseongc/r2c/src_fid/data.py official repository ran no licence file found · pointer only · 9410e388b51e48de · report
exact_match_score eunseongc/r2c/LLM_inference.py official repository ran fingerprinted no licence file found · pointer only · 31f795a3e0c1be69 · report
find_pattern_locations eunseongc/r2c/src_comp/compress_utils.py official repository ran no licence file found · pointer only · 40d69700a2d8447c · report
get_prompt eunseongc/r2c/src_comp/compress_utils.py official repository ran no licence file found · pointer only · edc9d2c346eeeec0 · report
gini eunseongc/r2c/src_comp/compress_utils.py official repository ran fingerprinted no licence file found · pointer only · 858eb20414dce303 · report
has_answer eunseongc/r2c/src_fid/evaluation.py official repository ran no licence file found · pointer only · 4b554fe4ab3551c4 · report
load_data eunseongc/r2c/src_fid/data.py official repository ran no licence file found · pointer only · c9985d22a0447bb5 · report
most_frequent eunseongc/r2c/eval_fid.py official repository ran fingerprinted no licence file found · pointer only · 97a6fd2cf08cd835 · report
normalize_answer eunseongc/r2c/LLM_inference.py official repository ran fingerprinted no licence file found · pointer only · 2c014e1529169f70 · report
process_batch_input_ids eunseongc/r2c/src_fid/data.py official repository ran no licence file found · pointer only · 993b9e4952f05b0c · report
calculate_matches eunseongc/r2c/src_fid/evaluation.py official repository unverified no licence file found · pointer only · 95aa31d2bb3d8787 · report
get_options eunseongc/r2c/src_fid/options.py official repository unverified no licence file found · pointer only · 966db28850700a6a · report

Tasks

Decoder

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections