Jian Wang, Wenjie Li, Kaitao Song, Jiashuo Wang, Chunpu Xu, Fenggang Yu, Jiawen Duan, Johan Hoorn, Johnny Ho
We lifted 11 functions out of this paper's own repositories and ran 10 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| wangjs9/ForesightOptim | canonical | 10 of 11 |
| Function | Status | Where it lives |
|---|---|---|
| add_mc_return | Ran | wangjs9/ForesightOptim/environment/env_utils.py pointer only (licence: NONE) · get_code("f2cc0ef29f0975e0") |
| add_trajectory_reward | Ran | wangjs9/ForesightOptim/environment/env_utils.py pointer only (licence: NONE) · get_code("48cfc63582411f6f") |
| broadcast_list | Ran | wangjs9/ForesightOptim/utils.py pointer only (licence: NONE) · get_code("9dbcd02c74f79e6b") |
| convert_to_numpy | Ran | wangjs9/ForesightOptim/environment/env_utils.py pointer only (licence: NONE) · get_code("0066c6e100759218") |
| dict_mean | Ran | wangjs9/ForesightOptim/agent_trainers/trainers.py pointer only (licence: NONE) · get_code("e154ffa50c4434d1") |
| get_response | Ran | wangjs9/ForesightOptim/competitive_taboo/dialogue_refinement.py pointer only (licence: NONE) · get_code("a28f0703801c60e0") |
| read_from_dir | Ran | wangjs9/ForesightOptim/cooperative_rsa/imitation_preparation.py pointer only (licence: NONE) · get_code("6c4b26646d7414d5") |
| read_json_or_jsonl_data | Ran | wangjs9/ForesightOptim/utils.py pointer only (licence: NONE) · get_code("88d37ef54976663d") |
| refine_prediction | Ran | wangjs9/ForesightOptim/competitive_taboo/dialogue_refinement.py pointer only (licence: NONE) · get_code("ee0476417c1be237") |
| set_special_tokens | Ran | wangjs9/ForesightOptim/utils.py pointer only (licence: NONE) · get_code("2ccdc3e026353dfb") |
| get_batch_responses | Not yet run | wangjs9/ForesightOptim/competitive_taboo/dialogue_refinement.py pointer only (licence: NONE) · get_code("fb65d5b43729b7ec") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Reasoning capabilities in large language models (LLMs) have generally advanced significantly. However, it is still challenging for existing reasoning-based LLMs to perform effective decision-making abilities in multiagent environments, due to the absence of explicit foresight modeling. To this end, strategic reasoning, the most fundamental capability to anticipate the counterpart's behaviors and foresee its possible future actions, has been introduced to alleviate the above issues. Strategic reasoning is fundamental to effective decision-making in multi-agent environments, yet existing reasoning enhancement methods for LLMs do not explicitly capture its foresight nature. In this work, we introduce Foresight Policy Optimization (FoPO) to enhance strategic reasoning in LLMs, which integrates opponent modeling principles into policy optimization, thereby enabling explicit consideration of both self-interest and counterpart influence. Specifically, we construct two curated datasets, namely Cooperative RSA and Competitive Taboo, equipped with well-designed rules and moderate difficulty to facilitate a systematic investigation of FoPO in a self-play framework. Our experiments demonstrate that FoPO significantly enhances strategic reasoning across LLMs of varying sizes and origins. Moreover, models trained with FoPO exhibit strong generalization to out-of-domain strategic scenarios, substantially outperforming standard LLM reasoning optimization baselines. 1 * Equal contribution. 1 https://github.com/wangjs9/ForesightOptim.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2604.13592")
get_code_for_paper("2604.13592")
have("2604.13592")
Connect an agent — have() is free.