{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/cross-lingual-retrieval-augmented-prompt-for","title":"Cross-Lingual Retrieval Augmented Prompt for Low-Resource Languages","arxiv_id":"2212.09651","date":"2022-12-19","proceeding":null,"authors":["Ercong Nie","Sheng Liang","Helmut Schmid","Hinrich Schütze"],"abstract":"Multilingual Pretrained Language Models (MPLMs) have shown their strong multilinguality in recent empirical cross-lingual transfer studies. In this paper, we propose the Prompts Augmented by Retrieval Crosslingually (PARC) pipeline to improve the zero-shot performance on low-resource languages (LRLs) by augmenting the context with semantically similar sentences retrieved from a high-resource language (HRL) as prompts. PARC improves the zero-shot performance on three downstream tasks (binary sentiment classification, topic categorization and natural language inference) with multilingual parallel test sets across 10 LRLs covering 6 language families in both unlabeled settings (+5.1%) and labeled settings (+16.3%). PARC-labeled also outperforms the finetuning baseline by 3.7%. We find a significant positive correlation between cross-lingual transfer performance on one side, and the similarity between the high- and low-resource languages as well as the amount of low-resource pretraining data on the other side. A robustness analysis suggests that PARC has the potential to achieve even stronger performance with more powerful MPLMs.","url_abs":"https://arxiv.org/abs/2212.09651v4","url_pdf":"https://arxiv.org/pdf/2212.09651v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"cross-lingual-retrieval-augmented-prompt-for","repo_url":"https://github.com/ercong21/parc","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"cross-lingual-transfer","task_name":"Cross-Lingual Transfer"},{"task_slug":"natural-language-inference","task_name":"Natural Language Inference"},{"task_slug":"retrieval","task_name":"Retrieval"},{"task_slug":"sentiment-analysis","task_name":"Sentiment Analysis"},{"task_slug":"sentiment-classification","task_name":"Sentiment Classification"}],"methods":[{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2212.09651","atlas_url":"https://app.syntology.ai/?focus=2212.09651","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2212.09651"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ercong21/parc","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"unverified":4},"by_repo_kind":{"official":{"samples":7,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"603b4d3328577d3a","entry":"cal_sim_score","repo":"ercong21/parc","repo_kind":"official","path":"lang_feat.py","file_url":"https://github.com/ercong21/parc/blob/HEAD/lang_feat.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"603b4d3328577d3a"}},{"code_sha256_prefix":"1e0f06075baf5eee","entry":"compute_similarity","repo":"ercong21/parc","repo_kind":"official","path":"measure_trans_quality.py","file_url":"https://github.com/ercong21/parc/blob/HEAD/measure_trans_quality.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1e0f06075baf5eee"}},{"code_sha256_prefix":"e43c571b97d3e868","entry":"cosine_similarity","repo":"ercong21/parc","repo_kind":"official","path":"lang_feat.py","file_url":"https://github.com/ercong21/parc/blob/HEAD/lang_feat.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e43c571b97d3e868"}},{"code_sha256_prefix":"a5dd4cd1cb87109c","entry":"compute_bleu_chrf","repo":"ercong21/parc","repo_kind":"official","path":"measure_trans_quality.py","file_url":"https://github.com/ercong21/parc/blob/HEAD/measure_trans_quality.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a5dd4cd1cb87109c"}},{"code_sha256_prefix":"72a5dcad3d519d9a","entry":"create_datasets","repo":"ercong21/parc","repo_kind":"official","path":"measure_trans_quality.py","file_url":"https://github.com/ercong21/parc/blob/HEAD/measure_trans_quality.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"72a5dcad3d519d9a"}},{"code_sha256_prefix":"dfdabda1fafd3d9e","entry":"get_logger","repo":"ercong21/parc","repo_kind":"official","path":"log.py","file_url":"https://github.com/ercong21/parc/blob/HEAD/log.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dfdabda1fafd3d9e"}},{"code_sha256_prefix":"a2f56ac3c4842462","entry":"get_verbalization_ids","repo":"ercong21/parc","repo_kind":"official","path":"utils.py","file_url":"https://github.com/ercong21/parc/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a2f56ac3c4842462"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}