{"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/understanding-the-interplay-between","title":"Understanding the Interplay between Parametric and Contextual Knowledge for Large Language Models","arxiv_id":"2410.08414","date":"2024-10-10","proceeding":null,"authors":["Sitao Cheng","Liangming Pan","Xunjian Yin","Xinyi Wang","William Yang Wang"],"abstract":"Large language models (LLMs) encode vast amounts of knowledge during pre-training (parametric knowledge, or PK) and can further be enhanced by incorporating contextual knowledge (CK). Can LLMs effectively integrate their internal PK with external CK to solve complex problems? In this paper, we investigate the dynamic interaction between PK and CK, categorizing their relationships into four types: Supportive, Complementary, Conflicting, and Irrelevant. To support this investigation, we introduce ECHOQA, a benchmark spanning scientific, factual, and commonsense knowledge. Our results show that LLMs tend to suppress their PK when contextual information is available, even when it is complementary or irrelevant. While tailored instructions can encourage LLMs to rely more on their PK, they still struggle to fully leverage it. These findings reveal a key vulnerability in LLMs, raising concerns about their reliability in knowledge-intensive tasks. Resources are available at https://github.com/sitaocheng/Knowledge Interplay.","url_abs":"https://arxiv.org/abs/2410.08414v1","url_pdf":"https://arxiv.org/pdf/2410.08414v1.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":"understanding-the-interplay-between","repo_url":"https://github.com/sitaocheng/Knowledge_Interplay","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.08414","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.08414"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/sitaocheng/Knowledge_Interplay","reach":{"status":"ok"}}],"summary":{"ran":8,"unverified":2},"by_repo_kind":{"official":{"samples":10,"ran":8,"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":10,"samples":[{"code_sha256_prefix":"7bea2e8c4a99e460","entry":"build_relation_answer_dict_pool","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"src/conflictQA/run_conflictQA_complementary.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/src/conflictQA/run_conflictQA_complementary.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7bea2e8c4a99e460"}},{"code_sha256_prefix":"674d2c9eabcdc8e6","entry":"calc_cost_w_prompt","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"llm/gpt.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/llm/gpt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"674d2c9eabcdc8e6"}},{"code_sha256_prefix":"5003b8fab256b527","entry":"calc_cost_w_tokens","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"llm/gpt.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/llm/gpt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5003b8fab256b527"}},{"code_sha256_prefix":"1ec155f2cab30eae","entry":"filter_model_memories","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"src/conflictQA/conflictQA_data_preprocess.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/src/conflictQA/conflictQA_data_preprocess.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1ec155f2cab30eae"}},{"code_sha256_prefix":"5cbaabf7f2d9d033","entry":"openai_unit_price","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"llm/gpt.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/llm/gpt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5cbaabf7f2d9d033"}},{"code_sha256_prefix":"15f3a78ab67a248c","entry":"translate_dropout_attribute_to_question_verification","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"src/alcuna/run_alcuna_conflicting.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/src/alcuna/run_alcuna_conflicting.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"15f3a78ab67a248c"}},{"code_sha256_prefix":"b93805bb02f4a78a","entry":"translate_triple_to_question_variation","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"src/alcuna/run_alcuna_conflicting.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/src/alcuna/run_alcuna_conflicting.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b93805bb02f4a78a"}},{"code_sha256_prefix":"5f99f8e9d2376fcf","entry":"translate_triplets_to_boolean_question","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"src/alcuna/run_alcuna_noise.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/src/alcuna/run_alcuna_noise.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5f99f8e9d2376fcf"}},{"code_sha256_prefix":"1cde82a19b8f3bb2","entry":"get_questions_by_type","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"src/alcuna/alcuna_data_preprocess.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/src/alcuna/alcuna_data_preprocess.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1cde82a19b8f3bb2"}},{"code_sha256_prefix":"2002ea35dcdbf722","entry":"translate_triplets_to_boolean_question","repo":"sitaocheng/Knowledge_Interplay","repo_kind":"official","path":"src/alcuna/run_alcuna_complementary.py","file_url":"https://github.com/sitaocheng/Knowledge_Interplay/blob/HEAD/src/alcuna/run_alcuna_complementary.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2002ea35dcdbf722"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}