# Eliciting Better Multilingual Structured Reasoning from LLMs through Code

Source: [Eliciting Better Multilingual Structured Reasoning from LLMs through Code](<https://www.sota2.com/research/paper/68fa739a1e209131cea5d85d>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T04:43:04.791Z

Authors: Bryan Li, Tamer Alkhouli, Daniele Bonadiman, Nikolaos Pappas, Saab Mansour

Published: 2024-03-05T00:48:56.000Z

## 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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Reasoning and Problem Solving on STREET English (test)](<https://www.sota2.com/research/sota/reasoning-and-problem-solving-on-street-english-test.md>): Reasoning and Problem Solving; STREET English (test); ARC Score: 99.1.

- [Reasoning and Problem Solving on xSTREET average 5 languages (test)](<https://www.sota2.com/research/sota/reasoning-and-problem-solving-on-xstreet-average-5-languages-test.md>): Reasoning and Problem Solving; xSTREET average 5 languages (test); ARC Score: 94.2.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2403.02567>)

[PDF](<https://arxiv.org/pdf/2403.02567.pdf>)

[Implementation](<https://github.com/amazon-science/xstreet>)
