SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.09014 · EMNLP · 2024

COMPACT: Compressing Retrieved Documents Actively for Question Answering

Chanwoong Yoon, Minbyul Jeong, Jaewoo Kang, Taewhoo Lee, Hyeon Hwang

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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; 0 honoured the contract we drafted, 3 violated it and 1 has no contract verdict; 5 failures of our instrument; 1 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/2407.09014.json · badge: /api/ran/2407.09014.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
dmis-lab/CompAct canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
apply_chat_template Ran
ran; our contract draft was wrong, not the code
dmis-lab/CompAct/alignment-handbook/src/alignment/data.py
pointer only (licence: NONE) · get_code("9be97bcdb51fd634")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dmis-lab/CompAct 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
dmis-lab/CompAct/evaluate.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/contriever, is pointer only (licence: NOASSERTION) · get_code("637b51b8df78832a")
How it ran

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

create_prompt Ran
ran; our contract draft was wrong, not the code
dmis-lab/CompAct/utils.py
pointer only (licence: NONE) · get_code("de1f2a7546b67b6a")
How it ran

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

extract_docstring Ran
ran; our contract draft was wrong, not the code
dmis-lab/CompAct/alignment-handbook/src/alignment/decontaminate.py
pointer only (licence: NONE) · get_code("0edeacd7a9034f53")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dmis-lab/CompAct 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_dataset Ran
ran; our contract draft was wrong, not the code
dmis-lab/CompAct/utils.py
pointer only (licence: NONE) · get_code("09b933c4a5249e81")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dmis-lab/CompAct 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
dmis-lab/CompAct/evaluate.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/contriever, is pointer only (licence: NOASSERTION) · get_code("fa4ecbff4b9a354b")
How it ran

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

is_openai_format Ran
ran, violated the contract we drafted
dmis-lab/CompAct/alignment-handbook/src/alignment/data.py
pointer only (licence: NONE); the stored copy get_code serves, from tengxiao1/cal-dpo, is pointer only (licence: NONE) · get_code("4253aac010c4504f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dmis-lab/CompAct 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_dataset_column Ran
ran on a synthesized input
dmis-lab/CompAct/alignment-handbook/src/alignment/decontaminate.py
pointer only (licence: NONE) · get_code("a3791c5c2185e013")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dmis-lab/CompAct 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_whitespace Ran
ran; our contract draft was wrong, not the code
dmis-lab/CompAct/alignment-handbook/src/alignment/decontaminate.py
pointer only (licence: NONE) · get_code("f43e59d239019e86")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dmis-lab/CompAct 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)
dmis-lab/CompAct/evaluate.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/contriever, is pointer only (licence: NOASSERTION) · get_code("7a4988952dd3a127")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dmis-lab/CompAct 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 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 8 later) and 2 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
calculate_matches 13 other papers
9 dated earlier, 4 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
9 dated earlier, 4 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
is_openai_format 12 other papers
3 dated earlier, 9 later
2405.14734 (2024-05)
SimPO: Simple Preference Optimization with a Reference-Free Reward
2406.08414 (2024-06)
Discovering Preference Optimization Algorithms with and for Large Language Models
2406.19371 (2024-06)
Suri: Multi-constraint Instruction Following for Long-form Text Generation
and 9 more not named here
has_answer 11 other papers
8 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 8 more not named here
extract_docstring 10 other papers
3 dated earlier, 7 later
2405.14734 (2024-05)
SimPO: Simple Preference Optimization with a Reference-Free Reward
2406.08414 (2024-06)
Discovering Preference Optimization Algorithms with and for Large Language Models
2406.19371 (2024-06)
Suri: Multi-constraint Instruction Following for Long-form Text Generation
and 7 more not named here
normalize_whitespace 9 other papers
3 dated earlier, 6 later
2405.14734 (2024-05)
SimPO: Simple Preference Optimization with a Reference-Free Reward
2406.08414 (2024-06)
Discovering Preference Optimization Algorithms with and for Large Language Models
2406.19371 (2024-06)
Suri: Multi-constraint Instruction Following for Long-form Text Generation
and 6 more not named here
load_dataset_column 8 other papers
3 dated earlier, 5 later
2405.14734 (2024-05)
SimPO: Simple Preference Optimization with a Reference-Free Reward
2406.08414 (2024-06)
Discovering Preference Optimization Algorithms with and for Large Language Models
2406.19371 (2024-06)
Suri: Multi-constraint Instruction Following for Long-form Text Generation
and 5 more not named here
apply_chat_template 7 other papers
2 dated earlier, 5 later
2405.14734 (2024-05)
SimPO: Simple Preference Optimization with a Reference-Free Reward
2406.08414 (2024-06)
Discovering Preference Optimization Algorithms with and for Large Language Models
2409.03444 (2024-09)
Fine-tuning large language models for domain adaptation: Exploration of training strategies, scaling, model merging and synergistic capabilities
and 4 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-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

Retrieval-augmented generation supports language models to strengthen their factual groundings by providing external contexts. However, language models often face challenges when given extensive information, diminishing their effectiveness in solving questions. Context compression tackles this issue by filtering out irrelevant information, but current methods still struggle in realistic scenarios where crucial information cannot be captured with a single-step approach. To overcome this limitation, we introduce COMPACT, a novel framework that employs an active strategy to condense extensive documents without losing key information. Our experiments demonstrate that COMPACT brings significant improvements in both performance and compression rate on multi-hop question-answering benchmarks. COMPACT flexibly operates as a cost-efficient plug-in module with various off-the-shelf retrievers or readers, achieving exceptionally high compression rates (47x). 1

For agents

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

get_harvested_code_for_paper("2407.09014")
get_code_for_paper("2407.09014")
have("2407.09014")

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

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

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

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

Connect an agent — have() is free.