{"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/arxiv-2606-02372","title":"COMAP: Co-Evolving World Models and Agent Policies for LLM Agents","arxiv_id":"2606.02372","date":"2026-06-01","proceeding":null,"authors":["Youwei Liu","Jian Wang","Hanlin Wang","Wenjie Li"],"abstract":"Equipping language agents with world models enables them to anticipate environment dynamics and evaluate candidate actions before execution. However, existing textual world models are typically fixed after training, preventing them from adapting to the on-policy state-action distributions induced by an evolving agent. Meanwhile, agent-improvement methods often rely on external rewards or verifiers, limiting their applicability in realistic interactive environments. In this paper, we propose COMAP, a novel framework that co-evolves textual world models and agent policies through closed-loop interaction. At each decision step, the world model predicts future state feedback for candidate actions, and the agent performs future-aware reflection by estimating the reliability of this feedback and refining its action accordingly. The resulting on-policy trajectories are then used to update the world model via self-distillation, allowing it to better match the agent's evolving interaction distribution. Across embodied task planning, Web navigation, and tool-use benchmarks, COMAP consistently outperforms competitive baselines, e.g., +16.75% relative improvement with Qwen3-4B. Further analyses show that the co-evolutionary loop improves the world model's prediction accuracy over time and leads to more effective long-horizon decision-making. Our code is available at: https://github.com/loyiv/CoMAP.","url_abs":"https://arxiv.org/abs/2606.02372","url_pdf":"https://arxiv.org/pdf/2606.02372","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2606.02372","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.02372"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/loyiv/CoMAP","reach":null}],"summary":{"ran":4,"ran_draft_wrong":12,"ran_violates":1,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":22,"ran":17,"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":22,"samples":[{"code_sha256_prefix":"578db3588c789a1d","entry":"LMAgent","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.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":"578db3588c789a1d"}},{"code_sha256_prefix":"11b6a42a94861316","entry":"RolloutStepRecord","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.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":"11b6a42a94861316"}},{"code_sha256_prefix":"e270c357983d7d27","entry":"_adapter_base_model_path","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e270c357983d7d27"}},{"code_sha256_prefix":"22f44ab4545a90bc","entry":"_canonicalize_action","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.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":"22f44ab4545a90bc"}},{"code_sha256_prefix":"feb659819509a83f","entry":"_extract_entities","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"feb659819509a83f"}},{"code_sha256_prefix":"352bb92cb8057cc8","entry":"_fallback_action","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"352bb92cb8057cc8"}},{"code_sha256_prefix":"31769cd0812496c6","entry":"_find_entity_with_base","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.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":"31769cd0812496c6"}},{"code_sha256_prefix":"bcd5f8c092868902","entry":"_first_numbered_entity","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bcd5f8c092868902"}},{"code_sha256_prefix":"581d0de5277ca35f","entry":"_infer_goal_receptacle","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"581d0de5277ca35f"}},{"code_sha256_prefix":"dc7561fcc4cde854","entry":"_is_peft_adapter_dir","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dc7561fcc4cde854"}},{"code_sha256_prefix":"4b4219853977c98d","entry":"_latest_observation_text","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4b4219853977c98d"}},{"code_sha256_prefix":"75d4fa14da67aad0","entry":"_normalize_action_text","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"75d4fa14da67aad0"}},{"code_sha256_prefix":"07b75d854d10b72d","entry":"_normalize_prediction_text","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"07b75d854d10b72d"}},{"code_sha256_prefix":"35558fd03955103f","entry":"_truncate_at_stop_words","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"35558fd03955103f"}},{"code_sha256_prefix":"f40f41143b7986b7","entry":"build_world_model_prompt","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f40f41143b7986b7"}},{"code_sha256_prefix":"fe169973c6051149","entry":"extract_goal","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fe169973c6051149"}},{"code_sha256_prefix":"22ee0f622de222d5","entry":"messages_to_text","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"22ee0f622de222d5"}},{"code_sha256_prefix":"6a5d301f760aadea","entry":"CoevolvingLocalAgent","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.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":"6a5d301f760aadea"}},{"code_sha256_prefix":"4e3ece072227a199","entry":"HuggingFaceLocalAgent","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.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":"4e3ece072227a199"}},{"code_sha256_prefix":"a366f451d2624901","entry":"_extract_first_thought_and_action","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.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":"a366f451d2624901"}},{"code_sha256_prefix":"c7e05b578650f0d8","entry":"_load_base_generation_model","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.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":"c7e05b578650f0d8"}},{"code_sha256_prefix":"f3ecbd8307d16a84","entry":"load_generation_model","repo":"loyiv/CoMAP","repo_kind":"found_in_text","path":"comap/integrations/eto/eval_agent/agents/coevolving_local_agent.py","file_url":"https://github.com/loyiv/CoMAP/blob/HEAD/comap/integrations/eto/eval_agent/agents/coevolving_local_agent.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":"f3ecbd8307d16a84"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}