Papers › Cross-lingual Contextualized Phrase Retrieval

Cross-lingual Contextualized Phrase Retrieval

25 Mar 2024arXiv:2403.16820archive 2025-07-28

Huayang Li, Deng Cai, Zhi Qu, Qu Cui, Hidetaka Kamigaito, Lemao Liu, Taro Watanabe

Phrase-level dense retrieval has shown many appealing characteristics in downstream NLP tasks by leveraging the fine-grained information that phrases offer. In our work, we propose a new task formulation of dense retrieval, cross-lingual contextualized phrase retrieval, which aims to augment cross-lingual applications by addressing polysemy using context information. However, the lack of specific training data and models are the primary challenges to achieve our goal. As a result, we extract pairs of cross-lingual phrases using word alignment information automatically induced from parallel sentences. Subsequently, we train our Cross-lingual Contextualized Phrase Retriever (CCPR) using contrastive learning, which encourages the hidden representations of phrases with similar contexts and semantics to align closely. Comprehensive experiments on both the cross-lingual phrase retrieval task and a downstream task, i.e, machine translation, demonstrate the effectiveness of CCPR. On the phrase retrieval task, CCPR surpasses baselines by a significant margin, achieving a top-1 accuracy that is at least 13 points higher. When utilizing CCPR to augment the large-language-model-based translator, it achieves average gains of 0.7 and 1.5 in BERTScore for translations from X=>En and vice versa, respectively, on WMT16 dataset. Our code and data are available at \url{https://github.com/ghrua/ccpr_release}.

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="2403.16820")

Code

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

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

ghrua/ccpr_release officialmentioned in papermentioned on GitHub 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

11 samples harvested; 6 ran; 0 honoured the contract we drafted; 5 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.

6ran
5unverified

Licence: 11 of the 11 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 ghrua/ccpr_release. “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.

adjust_config ghrua/ccpr_release/code/common_utils.py official repository ran no licence file found · pointer only · a2766e878d1e6e6e · report
decode_labse_with_brackets ghrua/ccpr_release/code/project_tools.py official repository ran no licence file found · pointer only · 00a180bdb40458d6 · report
decode_xlmr_with_brackets ghrua/ccpr_release/code/project_tools.py official repository ran no licence file found · pointer only · 03bb831846ef16e2 · report
escape_xml_chars ghrua/ccpr_release/code/eval_retriever.py official repository ran fingerprinted no licence file found · pointer only · b13d92e90516591c · report
extract_text_in_quotes ghrua/ccpr_release/Platypus/translation.py official repository ran fingerprinted no licence file found · pointer only · 78b64014b85a7007 · report
override ghrua/ccpr_release/code/common_utils.py official repository ran no licence file found · pointer only · af6665f5aaaab01e · report
create_dataloader ghrua/ccpr_release/code/dataloader.py official repository unverified no licence file found · pointer only · 22f43e3b9d994eca · report
create_model ghrua/ccpr_release/code/model.py official repository unverified no licence file found · pointer only · cb14e5576d07e35f · report
evaluate ghrua/ccpr_release/Platypus/inference.py official repository unverified no licence file found · pointer only · 3b6550e7e41ca28e · report
get_dataset_class ghrua/ccpr_release/code/dataloader.py official repository unverified no licence file found · pointer only · f256c19f2d48d31b · report
get_model_class ghrua/ccpr_release/code/model.py official repository unverified no licence file found · pointer only · 414deab65806558d · report

Tasks

Contrastive LearningLanguage ModellingLarge Language ModelMachine TranslationRetrievalWord Alignment

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGN

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