Python is Not Always the Best Choice: Embracing Multilingual Program of Thoughts

AmazUtah_NLP at SemEval-2024 Task 9: A MultiChoice Question Answering System for Commonsense Defying Reasoning


View a PDF of the paper titled Python is Not Always the Best Choice: Embracing Multilingual Program of Thoughts, by Xianzhen Luo and 7 other authors

View PDF
HTML (experimental)

Abstract: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).

Submission history

From: Xianzhen Luo [view email]
[v1]
Fri, 16 Feb 2024 13:48:06 UTC (8,323 KB)
[v2]
Sun, 16 Jun 2024 12:29:50 UTC (8,245 KB)
[v3]
Fri, 20 Sep 2024 02:54:30 UTC (8,245 KB)
[v4]
Mon, 18 Nov 2024 09:53:03 UTC (8,231 KB)



Source link
lol

By stp2y

Leave a Reply

Your email address will not be published. Required fields are marked *

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.