{"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/knowagent-knowledge-augmented-planning-for","title":"KnowAgent: Knowledge-Augmented Planning for LLM-Based Agents","arxiv_id":"2403.03101","date":"2024-03-05","proceeding":null,"authors":["Yuqi Zhu","Shuofei Qiao","Yixin Ou","Shumin Deng","Shiwei Lyu","Yue Shen","Lei Liang","Jinjie Gu","Huajun Chen","Ningyu Zhang"],"abstract":"Large Language Models (LLMs) have demonstrated great potential in complex reasoning tasks, yet they fall short when tackling more sophisticated challenges, especially when interacting with environments through generating executable actions. This inadequacy primarily stems from the lack of built-in action knowledge in language agents, which fails to effectively guide the planning trajectories during task solving and results in planning hallucination. To address this issue, we introduce KnowAgent, a novel approach designed to enhance the planning capabilities of LLMs by incorporating explicit action knowledge. Specifically, KnowAgent employs an action knowledge base and a knowledgeable self-learning strategy to constrain the action path during planning, enabling more reasonable trajectory synthesis, and thereby enhancing the planning performance of language agents. Experimental results on HotpotQA and ALFWorld based on various backbone models demonstrate that KnowAgent can achieve comparable or superior performance to existing baselines. Further analysis indicates the effectiveness of KnowAgent in terms of planning hallucinations mitigation. Code is available in https://github.com/zjunlp/KnowAgent.","url_abs":"https://arxiv.org/abs/2403.03101v3","url_pdf":"https://arxiv.org/pdf/2403.03101v3.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":"knowagent-knowledge-augmented-planning-for","repo_url":"https://github.com/zjunlp/knowagent","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"hallucination","task_name":"Hallucination"},{"task_slug":"self-learning","task_name":"Self-Learning"}],"methods":[{"method_slug":"base","method_name":"BASE"},{"method_slug":"self-learning","method_name":"Self-Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2403.03101","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.03101"}},"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/zjunlp/knowagent","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":7,"ran_draft_wrong":3,"unverified":1},"by_repo_kind":{"official":{"samples":11,"ran":10,"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":"d4718882966222cb","entry":"eval_llm_agent","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/hotpotqa_run/evaluate.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/hotpotqa_run/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d4718882966222cb"}},{"code_sha256_prefix":"d3594f629a54f25b","entry":"eval_reward","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/hotpotqa_run/evaluate.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/hotpotqa_run/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d3594f629a54f25b"}},{"code_sha256_prefix":"ec4600e4ef7a5dab","entry":"eval_success","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/hotpotqa_run/evaluate.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/hotpotqa_run/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ec4600e4ef7a5dab"}},{"code_sha256_prefix":"84d28fbaf38b0a59","entry":"format_step","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/hotpotqa_run/agent_arch.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/hotpotqa_run/agent_arch.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"84d28fbaf38b0a59"}},{"code_sha256_prefix":"9454beee89209dff","entry":"fuzzy_parse_action","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/hotpotqa_run/agent_arch.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/hotpotqa_run/agent_arch.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9454beee89209dff"}},{"code_sha256_prefix":"2fa5e49fdf800870","entry":"log_trial","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/hotpotqa_run/utils.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/hotpotqa_run/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2fa5e49fdf800870"}},{"code_sha256_prefix":"9f8148d447f9ea0c","entry":"parse_action","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/hotpotqa_run/agent_arch.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/hotpotqa_run/agent_arch.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9f8148d447f9ea0c"}},{"code_sha256_prefix":"9bc78b9cc9aaf2bc","entry":"prompt_retrieve","repo":"zjunlp/knowagent","repo_kind":"official","path":"Self-Learning/train/HotpotQA_reformat.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Self-Learning/train/HotpotQA_reformat.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9bc78b9cc9aaf2bc"}},{"code_sha256_prefix":"9435e7e172eab04b","entry":"remove_fewshot","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/hotpotqa_run/utils.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/hotpotqa_run/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9435e7e172eab04b"}},{"code_sha256_prefix":"e55a194777b73c29","entry":"summarize_trial","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/hotpotqa_run/utils.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/hotpotqa_run/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e55a194777b73c29"}},{"code_sha256_prefix":"dfb17eb3e6eaed35","entry":"process_ob","repo":"zjunlp/knowagent","repo_kind":"official","path":"Path_Generation/alfworld_run/run_alfworld.py","file_url":"https://github.com/zjunlp/knowagent/blob/HEAD/Path_Generation/alfworld_run/run_alfworld.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dfb17eb3e6eaed35"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}