SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.06838 · ACL · 2024

MAPO: Advancing Multilingual Reasoning through Multilingual-Alignment-as-Preference Optimization

Shujian Huang, Jiajun Chen, Xiang Liu, Wei Zou, Wenhao Zhu, Xiang Geng, Shuaijie She

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 3 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2401.06838.json · badge: /api/ran/2401.06838.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
njunlp/mapo canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
check_repeated_sentences Ran
ran, violated the contract we drafted
njunlp/mapo/Alignment/RM_Function.py
pointer only (licence: NONE) · get_code("f9d947865d5c2df5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_last_num Ran
ran, honoured the contract we drafted
njunlp/mapo/Alignment/RM_Function.py
pointer only (licence: NONE); the stored copy get_code serves, from nuochenpku/Graph-Reasoning-LLM, is pointer only (licence: NONE) · get_code("287846e257403143")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_prompt Ran
ran; our contract draft was wrong, not the code
njunlp/mapo/Alignment/dpo.py
pointer only (licence: NONE) · get_code("e6cd16b73d39b2f9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_valuehead_params Ran
ran, violated the contract we drafted
njunlp/mapo/Alignment/load_model.py
pointer only (licence: NONE) · get_code("709e5380f7a98c0c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_model_gradient_checkpointing_compatible Ran
ran; our contract draft was wrong, not the code
njunlp/mapo/Alignment/rlhf_model.py
pointer only (licence: NONE) · get_code("8a0c67573897efe9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

process Ran
ran; our contract draft was wrong, not the code
njunlp/mapo/Preprocess/extract_dpo_data.py
pointer only (licence: NONE) · get_code("e72ea21ca5a7f293")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MultiLigual_Alighment_reward_fuction Not yet run
unverified (harvested, no recorded run)
njunlp/mapo/Alignment/RM_Function.py
pointer only (licence: NONE) · get_code("d2581bfd614214b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_hh Not yet run
unverified (harvested, no recorded run)
njunlp/mapo/Alignment/dpo.py
pointer only (licence: NONE) · get_code("6cb9adf1c32bb303")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_hh Not yet run
unverified (harvested, no recorded run)
njunlp/mapo/Alignment/dpo13B.py
pointer only (licence: NONE) · get_code("40ad288a296c417a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_prompter Not yet run
unverified (harvested, no recorded run)
njunlp/mapo/Alignment/generatePrompt.py
pointer only (licence: NONE) · get_code("870013f30ea56fa5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, njunlp/mapo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
extract_last_num 1 other paper
1 later
2402.16029 (2024-02)
GraphWiz: An Instruction-Following Language Model for Graph Problems
make_model_gradient_checkpointing_compatible 1 other paper
1 dated earlier
2311.10947 (2023-11)
RecExplainer: Aligning Large Language Models for Explaining Recommendation Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Intuitively, reasoning abilities are considered language-agnostic. However, existing LLMs exhibit inconsistent reasoning abilities across different languages, e.g., reasoning in the dominant language like English is superior to other languages due to the imbalance of multilingual training data. To enhance reasoning abilities in non-dominant languages, we propose a Multilingual-Alignment-as-Preference Optimization framework (MAPO) to align the reasoning processes in other languages with the dominant language. Specifically, we harness an off-the-shelf translation model for the consistency between answers in non-dominant and dominant languages, which we adopt as the preference for optimization, e.g., Direct Preference Optimization (DPO) or Proximal Policy Optimization (PPO). Experiments show that MAPO stably achieves significant improvements in the multilingual reasoning of various models on all three benchmarks (MSVAMP +16.2%, MGSM +6.1%, and MNumGLUESub +13.3%), with improved reasoning consistency across languages 1 .

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.06838")
get_code_for_paper("2401.06838")
have("2401.06838")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.06838.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.06838.svg)](https://syntology.ai/paper/2401.06838)

Connect an agent — have() is free.