Python is Not Always the Best Choice: Embracing Multilingual Program of Thoughts
Xianzhen Luo, Qingfu Zhu, Zhiming Zhang, Libo Qin, Xuanyu Zhang, Qing Yang, Dongliang Xu, Wanxiang Che
摘要
Program of Thoughts (PoT) is an approach characterized by its executable intermediate steps, which ensure the accuracy of the logical calculations in the reasoning process. Currently, PoT primarily uses Python. However, relying solely on a single language may result in suboptimal solutions and overlook the potential benefits of other programming languages. In this paper, we conduct comprehensive experiments on the programming languages used in PoT and find that no single language consistently delivers optimal performance across all tasks and models. The effectiveness of each language varies depending on the specific scenarios. Inspired by this, we propose a task and model agnostic approach called MultiPoT, which harnesses strength and diversity from various languages. Experimental results reveal that it significantly outperforms Python Self-Consistency. Furthermore, it achieves comparable or superior performance compared to the best monolingual PoT in almost all tasks across all models. In particular, MultiPoT achieves more than 4.6% improvement on average on ChatGPT (gpt-3.5-turbo-0701) 1 .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- PAL: Program-aided Language Models 引用了 Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them
- ViperGPT: Visual Inference via Python Execution for Reasoning 引用了 PAL: Program-aided Language Models
- Automated Creation of Reusable and Diverse Toolsets for Enhancing LLM Reasoning 引用了 PAL: Program-aided Language Models
- Executable Code Actions Elicit Better LLM Agents 引用了 PAL: Program-aided Language Models
- Executable Code Actions Elicit Better LLM Agents 引用了 ViperGPT: Visual Inference via Python Execution for Reasoning
引用它的顶会 Paper2
它引用的 Paper11
- ViperGPT: Visual Inference via Python Execution for ReasoningDídac Surís, Sachit Menon, Carl VondrickICCV 2023 · 732 次引用
- PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon 等ICML 2023 · 700 次引用
- Executable Code Actions Elicit Better LLM AgentsXingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang 等ICML 2024 · 436 次引用
- Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve ThemMirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann 等ACL Findings 2023 · 253 次引用
- CodeGen: An Open Large Language Model for Code with Multi-Turn Program SynthesisErik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu 等ICLR 2023 · 234 次引用
相关 Paper
- MultiLingPoT: Boosting Mathematical Reasoning in LLMs through Multilingual Program IntegrationNianqi Li, Zujie Liang, Siyu Yuan, Jiaqing Liang 等EMNLP Findings 2025
- Towards Better Understanding of Program-of-Thought Reasoning in Cross-Lingual and Multilingual EnvironmentsPatomporn Payoungkhamdee, Pume Tuchinda, Jinheon Baek, Samuel Cahyawijaya 等ACL Findings 2025
- Self-Consistency from Only Two Samples: CoT-PoT Ensembling for Efficient LLM ReasoningRaman Saparkhan, Majd Hawasly, Md. Rizwan Parvez, Mohammad RazaACL Findings 2026
- How Do Humans Write Code? Large Models Do It the Same Way TooLong Li, Xuzheng He, Haozhe Wang, Linlin Wang 等EMNLP 2024 · 1 次引用
- Dynamic Planning for LLM-based Graphical User Interface AutomationShaoqing Zhang, Zhuosheng Zhang, Kehai Chen, Xinbei Ma 等EMNLP Findings 2024 · 10 次引用
