Eliciting Better Multilingual Structured Reasoning from LLMs through Code

The development of large language models (LLM) has shown progress on reasoning, though studies have largely considered either English or simple reasoning tasks. To address this, we introduce a multilingual structured reasoning and explanation dataset, termed xSTREET, that covers four tasks across si...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Li, Bryan, Alkhouli, Tamer, Bonadiman, Daniele, Pappas, Nikolaos, Mansour, Saab
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title
container_volume
creator Li, Bryan
Alkhouli, Tamer
Bonadiman, Daniele
Pappas, Nikolaos
Mansour, Saab
description The development of large language models (LLM) has shown progress on reasoning, though studies have largely considered either English or simple reasoning tasks. To address this, we introduce a multilingual structured reasoning and explanation dataset, termed xSTREET, that covers four tasks across six languages. xSTREET exposes a gap in base LLM performance between English and non-English reasoning tasks. We then propose two methods to remedy this gap, building on the insight that LLMs trained on code are better reasoners. First, at training time, we augment a code dataset with multilingual comments using machine translation while keeping program code as-is. Second, at inference time, we bridge the gap between training and inference by employing a prompt structure that incorporates step-by-step code primitives to derive new facts and find a solution. Our methods show improved multilingual performance on xSTREET, most notably on the scientific commonsense reasoning subtask. Furthermore, the models show no regression on non-reasoning tasks, thus demonstrating our techniques maintain general-purpose abilities.
doi_str_mv 10.48550/arxiv.2403.02567
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_2403_02567</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2403_02567</sourcerecordid><originalsourceid>FETCH-LOGICAL-a677-1a40c1794a5a734b87b35da5bd97d1c6cc3db33678a878e42fdb92b2b1dbc1193</originalsourceid><addsrcrecordid>eNotz8tKAzEYBeBsXEjrA7gyLzBjrpPMsg5VC1ME7X74c5k2kHYkk4i-vbZ2deBwOPAhdE9JLbSU5BHSd_iqmSC8Jkw26hZt1jHYkMNpj598zj7hbYk5xL-iQMQfORWbS_IOv3uYp9N5OKbpiPt-O-N8SFPZH3A3Ob9ENyPE2d9dc4F2z-td91r1by-bbtVX0ChVURDEUtUKkKC4MFoZLh1I41rlqG2s5c5w3igNWmkv2OhMywwz1BlLacsX6OH_9mIZPlM4QvoZzqbhYuK_KHBHfg</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Eliciting Better Multilingual Structured Reasoning from LLMs through Code</title><source>arXiv.org</source><creator>Li, Bryan ; Alkhouli, Tamer ; Bonadiman, Daniele ; Pappas, Nikolaos ; Mansour, Saab</creator><creatorcontrib>Li, Bryan ; Alkhouli, Tamer ; Bonadiman, Daniele ; Pappas, Nikolaos ; Mansour, Saab</creatorcontrib><description>The development of large language models (LLM) has shown progress on reasoning, though studies have largely considered either English or simple reasoning tasks. To address this, we introduce a multilingual structured reasoning and explanation dataset, termed xSTREET, that covers four tasks across six languages. xSTREET exposes a gap in base LLM performance between English and non-English reasoning tasks. We then propose two methods to remedy this gap, building on the insight that LLMs trained on code are better reasoners. First, at training time, we augment a code dataset with multilingual comments using machine translation while keeping program code as-is. Second, at inference time, we bridge the gap between training and inference by employing a prompt structure that incorporates step-by-step code primitives to derive new facts and find a solution. Our methods show improved multilingual performance on xSTREET, most notably on the scientific commonsense reasoning subtask. Furthermore, the models show no regression on non-reasoning tasks, thus demonstrating our techniques maintain general-purpose abilities.</description><identifier>DOI: 10.48550/arxiv.2403.02567</identifier><language>eng</language><subject>Computer Science - Artificial Intelligence ; Computer Science - Computation and Language</subject><creationdate>2024-03</creationdate><rights>http://arxiv.org/licenses/nonexclusive-distrib/1.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,885</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/2403.02567$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.2403.02567$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Li, Bryan</creatorcontrib><creatorcontrib>Alkhouli, Tamer</creatorcontrib><creatorcontrib>Bonadiman, Daniele</creatorcontrib><creatorcontrib>Pappas, Nikolaos</creatorcontrib><creatorcontrib>Mansour, Saab</creatorcontrib><title>Eliciting Better Multilingual Structured Reasoning from LLMs through Code</title><description>The development of large language models (LLM) has shown progress on reasoning, though studies have largely considered either English or simple reasoning tasks. To address this, we introduce a multilingual structured reasoning and explanation dataset, termed xSTREET, that covers four tasks across six languages. xSTREET exposes a gap in base LLM performance between English and non-English reasoning tasks. We then propose two methods to remedy this gap, building on the insight that LLMs trained on code are better reasoners. First, at training time, we augment a code dataset with multilingual comments using machine translation while keeping program code as-is. Second, at inference time, we bridge the gap between training and inference by employing a prompt structure that incorporates step-by-step code primitives to derive new facts and find a solution. Our methods show improved multilingual performance on xSTREET, most notably on the scientific commonsense reasoning subtask. Furthermore, the models show no regression on non-reasoning tasks, thus demonstrating our techniques maintain general-purpose abilities.</description><subject>Computer Science - Artificial Intelligence</subject><subject>Computer Science - Computation and Language</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNotz8tKAzEYBeBsXEjrA7gyLzBjrpPMsg5VC1ME7X74c5k2kHYkk4i-vbZ2deBwOPAhdE9JLbSU5BHSd_iqmSC8Jkw26hZt1jHYkMNpj598zj7hbYk5xL-iQMQfORWbS_IOv3uYp9N5OKbpiPt-O-N8SFPZH3A3Ob9ENyPE2d9dc4F2z-td91r1by-bbtVX0ChVURDEUtUKkKC4MFoZLh1I41rlqG2s5c5w3igNWmkv2OhMywwz1BlLacsX6OH_9mIZPlM4QvoZzqbhYuK_KHBHfg</recordid><startdate>20240304</startdate><enddate>20240304</enddate><creator>Li, Bryan</creator><creator>Alkhouli, Tamer</creator><creator>Bonadiman, Daniele</creator><creator>Pappas, Nikolaos</creator><creator>Mansour, Saab</creator><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20240304</creationdate><title>Eliciting Better Multilingual Structured Reasoning from LLMs through Code</title><author>Li, Bryan ; Alkhouli, Tamer ; Bonadiman, Daniele ; Pappas, Nikolaos ; Mansour, Saab</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a677-1a40c1794a5a734b87b35da5bd97d1c6cc3db33678a878e42fdb92b2b1dbc1193</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Computer Science - Artificial Intelligence</topic><topic>Computer Science - Computation and Language</topic><toplevel>online_resources</toplevel><creatorcontrib>Li, Bryan</creatorcontrib><creatorcontrib>Alkhouli, Tamer</creatorcontrib><creatorcontrib>Bonadiman, Daniele</creatorcontrib><creatorcontrib>Pappas, Nikolaos</creatorcontrib><creatorcontrib>Mansour, Saab</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Li, Bryan</au><au>Alkhouli, Tamer</au><au>Bonadiman, Daniele</au><au>Pappas, Nikolaos</au><au>Mansour, Saab</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Eliciting Better Multilingual Structured Reasoning from LLMs through Code</atitle><date>2024-03-04</date><risdate>2024</risdate><abstract>The development of large language models (LLM) has shown progress on reasoning, though studies have largely considered either English or simple reasoning tasks. To address this, we introduce a multilingual structured reasoning and explanation dataset, termed xSTREET, that covers four tasks across six languages. xSTREET exposes a gap in base LLM performance between English and non-English reasoning tasks. We then propose two methods to remedy this gap, building on the insight that LLMs trained on code are better reasoners. First, at training time, we augment a code dataset with multilingual comments using machine translation while keeping program code as-is. Second, at inference time, we bridge the gap between training and inference by employing a prompt structure that incorporates step-by-step code primitives to derive new facts and find a solution. Our methods show improved multilingual performance on xSTREET, most notably on the scientific commonsense reasoning subtask. Furthermore, the models show no regression on non-reasoning tasks, thus demonstrating our techniques maintain general-purpose abilities.</abstract><doi>10.48550/arxiv.2403.02567</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.2403.02567
ispartof
issn
language eng
recordid cdi_arxiv_primary_2403_02567
source arXiv.org
subjects Computer Science - Artificial Intelligence
Computer Science - Computation and Language
title Eliciting Better Multilingual Structured Reasoning from LLMs through Code
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-13T02%3A57%3A05IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-arxiv_GOX&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Eliciting%20Better%20Multilingual%20Structured%20Reasoning%20from%20LLMs%20through%20Code&rft.au=Li,%20Bryan&rft.date=2024-03-04&rft_id=info:doi/10.48550/arxiv.2403.02567&rft_dat=%3Carxiv_GOX%3E2403_02567%3C/arxiv_GOX%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true