Papers › Contextualized Sparse Representations for Real-Time Open-Domain Question Answering

Contextualized Sparse Representations for Real-Time Open-Domain Question Answering

7 Nov 2019ACL 2020 6arXiv:1911.02896archive 2025-07-28

Jinhyuk Lee, Minjoon Seo, Hannaneh Hajishirzi, Jaewoo Kang

Open-domain question answering can be formulated as a phrase retrieval problem, in which we can expect huge scalability and speed benefit but often suffer from low accuracy due to the limitation of existing phrase representation models. In this paper, we aim to improve the quality of each phrase embedding by augmenting it with a contextualized sparse representation (Sparc). Unlike previous sparse vectors that are term-frequency-based (e.g., tf-idf) or directly learned (only few thousand dimensions), we leverage rectified self-attention to indirectly learn sparse vectors in n-gram vocabulary space. By augmenting the previous phrase retrieval model (Seo et al., 2019) with Sparc, we show 4%+ improvement in CuratedTREC and SQuAD-Open. Our CuratedTREC score is even better than the best known retrieve & read model with at least 45x faster inference speed.

PaperPDFConference PDFCodeCode 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="1911.02896")

Code

Syntology Ran 10 of 18 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 5 ran · honoured contract; 2 ran · violated contract; 3 ran · our draft was wrong.

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

jhyuklee/sparc officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
dmis-lab/covidAsk mentioned on GitHubpytorch report
dmis-lab/covidsearch mentioned on GitHubpytorch 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

18 samples harvested; 10 ran; 5 honoured the contract we drafted; 8 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.

5ran · honoured contract
2ran · violated contract
3ran · our draft was wrong
8unverified

Licence: 0 of the 18 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 jhyuklee/sparc. “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.

exact_match_score jhyuklee/sparc/evaluate-v1.1.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · f6c275d6a18330a9 · report
exact_match_score jhyuklee/sparc/eval_utils.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 9d0dc82a4491f803 · report
f1_score jhyuklee/sparc/evaluate-v1.1.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 2112c433b9c6d343 · report
f1_score jhyuklee/sparc/eval_utils.py official repository ran · honoured contract Apache-2.0 (permissive) · 32a5f1733d9a8971 · report
gelu jhyuklee/sparc/modeling.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 40e9fee2e0b7e278 · report
normalize_answer jhyuklee/sparc/eval_utils.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · dae7ab386661a4f4 · report
normalize_answer jhyuklee/sparc/evaluate-v1.1.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · c6a80c065d2e4851 · report
url_to_filename jhyuklee/sparc/file_utils.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5eff22fa0a651276 · report
warmup_constant jhyuklee/sparc/optimization.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · e7d542062316094a · report
warmup_linear jhyuklee/sparc/optimization.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · c58d57224530d17e · report
cached_path jhyuklee/sparc/file_utils.py official repository unverified Apache-2.0 (permissive) · df9f10631fa5d322 · report
compress_metadata jhyuklee/sparc/post.py official repository unverified Apache-2.0 (permissive) · 01bcde4d16ae2a8e · report
fetch_text jhyuklee/sparc/build_tfidf.py official repository unverified Apache-2.0 (permissive) · 4e83a47cdc3c30e8 · report
filename_to_url jhyuklee/sparc/file_utils.py official repository unverified Apache-2.0 (permissive) · 6db16fe8f67e56b6 · report
filter_metadata jhyuklee/sparc/post.py official repository unverified Apache-2.0 (permissive) · dd2626636273d5ba · report
run_dump_phrase jhyuklee/sparc/local_dump.py official repository unverified Apache-2.0 (permissive) · 22461a1b6fbcaa9c · report
tokenize jhyuklee/sparc/build_tfidf.py official repository unverified Apache-2.0 (permissive) · 77535ec3fc559506 · report
warmup_cosine jhyuklee/sparc/optimization.py official repository unverified Apache-2.0 (permissive) · 35f7cddf90dd05d4 · report

Tasks

Information RetrievalOpen-Domain Question AnsweringQuestion AnsweringRetrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SPEED

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