每天早上一封邮件,把昨天的 AI 梳理好订阅邮件

METAL LAB

LLMs Get Smarter from Targeted Synthetic Multilingual Data

arXiv:2608.159642026-08-15

让AI自己出题找出自己在哪些语言上答不好,再针对性补课

大语言模型常常在英语提问下答对,换成西班牙语或阿拉伯语提问却答错,这种现象叫做语言能力差异(LSC)。研究者提出了HOTFIXR框架,训练一个出题模型专门挖掘目标模型(学生模型)在多语言上的薄弱环节,再用这些题目重新训练学生模型。结果显示,在训练涉及的任务上性能提升了6.2%,在未训练过的任务和语言上性能下降幅度也分别减少了3.7%和7.1%。

他们做了什么

  1. 语言模型对同一个问题,用不同语言提问可能给出不同甚至错误的答案,原因是模型内部对不同语言的语义表示存在偏差。
  2. 现有解决办法要么把所有问题都转成英语处理(牺牲其他语言的表达能力),要么用各语言均衡的数据训练(整体准确率下降)。
  3. HOTFIXR训练一个独立的出题模型,通过强化学习算法GRPO,让它学会生成能够暴露学生模型多语言弱点的问题。
  4. 衡量弱点用两种方式:一是学生模型即使用最擅长的英语推理时也表现出的不确定性,二是同一问题用英语推理和用其他语言推理时,模型内部表示的差异程度。
  5. 训练时用了英语、法语、西班牙语、阿拉伯语、葡萄牙语、意大利语六种语言,测试时还加入了未训练过的德语、日语、俄语、中文,HOTFIXR在这些新语言和新任务上都比现有方法表现更稳定、遗忘更少。
Figure 1: Motivating results for LSC: the performance of Aya (with a more language-balanced pretraining dataset) versus Qwen (with a more English-dominant pretraining dataset) on multilingual HotPotQA (11). We see that although Aya performs more consistently across languages, Aya degrades in performance (see Qwen’s performance in English).
Figure 1: Motivating results for LSC: the performance of Aya (with a more language-balanced pretraining dataset) versus Qwen (with a more English-dominant pretraining dataset) on multilingual HotPotQA (11). We see that although Aya performs more consistently across languages, Aya degrades in performance (see Qwen’s performance in English).
Table 1: HOTFIXR has the best in-distribution performance, the best out-of-distribution performance among the training-based baselines, and remains multilingually consistent. This table shows the cross-lingual consistency with respect to ID and OOD performance. Language spread is the standard deviation of performance across languages. Low spread indicates more consistent performance across languages. Note: the training-based baselines are SelectionGT, SelectionGEN, Filtered, Untrained, and DataEnvGym.
PerformanceLanguage
MethodID (↑)OOD (↑)Spread (↓)
Base51.965.69.6
EngReason50.865.48.8
SelectionGT49.260.99.8
SelectionGEN50.255.89.5
Filtered48.958.210.6
Untrained50.463.49.7
DataEnvGym49.057.410.2
HOTFIXR (ours)56.264.79.4
Figure 2: Intuition behind HOTFIXR. The “data space” represents the data samples generated by the question generator. Essentially, we want to hill climb through the data space to find samples that have high lingual deficit scores, as they will be most informative to the student model. By fine-tuning the question generation model to generate samples according to the student model’s lingual deficit, we can improve the information embedded within data, improving our models on downstream tasks.
Figure 2: Intuition behind HOTFIXR. The “data space” represents the data samples generated by the question generator. Essentially, we want to hill climb through the data space to find samples that have high lingual deficit scores, as they will be most informative to the student model. By fine-tuning the question generation model to generate samples according to the student model’s lingual deficit, we can improve the information embedded within data, improving our models on downstream tasks.
Table 2: Average performance difference of HOTFIXR versus each baseline. The average is over nine settings: three students (Qwen 7B, Qwen 14B, Llama 8B) × three ID/OOD tasks. “Wins” counts the number of settings where HOTFIXR scores higher.
In-DistributionOut-of-Distribution
BaselineΔWinsΔWins
Base+4.39/9-0.93/9
EngReason+5.49/9-0.74/9
SelectionGT+7.09/9+3.89/9
SelectionGEN+6.09/9+8.98/9
Filtered+7.39/9+6.68/9
Untrained+5.89/9+1.47/9
DataEnvGym+7.19/9+7.39/9
Average+6.29/9+3.77/9
Figure 3: An illustration of how to train the question generation model in HOTFIXR, along with the reward design.
Figure 3: An illustration of how to train the question generation model in HOTFIXR, along with the reward design.
Table 3: OOD language generalization: performance differences relative to the Base model, averaged across all models and corresponding tasks. Averaging the difference in HOTFIXR and other methods, we can compute how much HOTFIXR avoids catastrophic forgetting. For example, averaged across all languages, HOTFIXR avoids catastrophic forgetting by 8.7% compared to DataEnvGym (10.1-1.4).
MethodDeJaRuZhAvg
SelectionGT-3.3-4.7-9.5-10.5-7.0
SelectionGEN-1.9-4.0-22.5-21.5-12.5
Filtered-3.8-4.8-14.7-16.3-9.9
Untrained-2.9-2.0-2.3-5.3-3.1
DataEnvGym-6.8-6.0-12.2-15.4-10.1
HOTFIXR-2.6-0.7-0.9-1.3-1.4
Figure 4: Performance of data curation methods in-distribution.
Figure 4: Performance of data curation methods in-distribution.
Table 4: Cross-lingual spread of student performance, averaged over three student models (Qwen2.5-7B, Qwen2.5-14B, Llama-3.1-8B) and three multilingual tasks (OPUS, MMMLU, mHotpotQA) evaluated with each task’s primary metric. Lower is more consistent for all dispersion columns; Bold marks the best value among data-generation methods. Range is the max − min performance across all languages. Trimmed Range is the best minus the 2nd worst language accuracy. Std is standard deviation of the performance. IQR is the Inter-Quartile Range (difference in the 25% and 75% quartile). CV is the coeffiecient of variation (the standard devation divided by the mean).
MethodRangeTrim. RangeTrim.RangeStdIQRCV
Trim.
Range
Base20.216.07.29.60.12
EngReason20.715.47.28.80.12
SelectionGT22.317.17.99.80.13
SelectionGEN18.814.96.99.50.13
Filtered22.617.18.010.60.14
Untrained20.115.07.19.70.12
DataEnvGym22.817.08.010.20.14
HOTFIXR19.414.66.99.40.11
Figure 5: Performance of data curation methods for factual (MMMLU) queries, an out-of-distribution task.
Figure 5: Performance of data curation methods for factual (MMMLU) queries, an out-of-distribution task.
Table 5: Reward-signal ablation. All rows include the format reward. “Nemo.” is Nemotron, “Trans.” is Translation, “Fact.” is Factual. Highlights the impact each reward has—there is more effect of the reward functions combined, than individually. LAI is the “Language Agnostic Incompetency” and LSI is the “Language Specific Incompetency”, as described in Section 3.
IDOOD
ModelConfigNemo.Trans.Fact.RAG
Qwen 7BFormat52.057.664.075.8
+ LAI50.957.964.377.2
+ LSI50.857.863.677.7
+ LAI + LSI57.859.164.376.7
Llama 8BFormat48.257.849.970.2
+ LAI48.557.249.269.2
+ LSI47.557.549.367.8
+ LAI + LSI52.558.949.369.7
Qwen 14BFormat49.358.071.579.8
+ LAI50.958.666.376.0
+ LSI48.857.262.376.8
+ LAI + LSI58.358.267.978.3
Figure 6: Performance of data curation methods for RAG (multilingual HotPotQA) queries, an out-of-distribution task.
Figure 6: Performance of data curation methods for RAG (multilingual HotPotQA) queries, an out-of-distribution task.
Table 6: Minimum and maximum standard deviation (across 3 runs) for the Nemotron task (STEM, MATH, and CHAT), per model and method. This explains the small error bars in Figure 8.
Qwen 7BQwen 14BLlama 8B
Methodminmaxminmaxminmax
Base0.301.500.100.400.202.00
EngReason0.251.230.160.750.341.00
SelectionGT0.203.400.101.000.402.20
SelectionGEN0.303.100.000.900.102.20
Filtered0.700.900.300.800.301.70
Untrained0.401.900.001.500.300.70
DataEnvGym0.401.200.100.700.201.70
HOTFIXR0.100.900.200.400.050.50
Figure 7: Performance of data curation methods for translation (OPUS-100) queries, an out-of-distribution task.
Figure 7: Performance of data curation methods for translation (OPUS-100) queries, an out-of-distribution task.
Table 7: Minimum and maximum standard deviation (across 3 runs) for the Translation task (OPUS-100), per model and method. This explains the small error bars in Figure 10.
Qwen 7BQwen 14BLlama 8B
Methodminmaxminmaxminmax
Base0.430.850.411.550.581.56
EngReason0.400.830.431.050.551.56
SelectionGT0.101.400.201.000.401.60
SelectionGEN0.000.800.001.500.101.50
Filtered0.101.600.100.800.101.60
Untrained0.200.500.000.700.301.70
DataEnvGym0.001.100.200.700.200.80
HOTFIXR0.000.900.000.800.201.10
Figure 8: Performance of data curation methods for Nemotron queries, per task.
Figure 8: Performance of data curation methods for Nemotron queries, per task.
Table 8: Minimum and maximum standard deviation (across 3 runs) for the Factual task (MMMLU), per model and method. This explains the small error bars in Figure 9.
Qwen 7BQwen 14BLlama 8B
Methodminmaxminmaxminmax
Base0.101.500.101.100.002.30
EngReason0.091.270.281.090.331.73
SelectionGT0.302.300.201.800.101.60
SelectionGEN0.402.600.101.800.102.30
Filtered0.101.300.201.200.001.20
Untrained0.301.000.101.000.202.20
DataEnvGym0.302.400.101.400.101.20
HOTFIXR0.301.400.301.300.302.60
Figure 9: Performance of data curation methods for factual (MMMLU) queries, per language.
Figure 9: Performance of data curation methods for factual (MMMLU) queries, per language.
Table 9: Minimum and maximum standard deviation (across 3 runs) for the RAG task (mHotPotQA), per model and method. This explains the small error bars in Figure 11.
Qwen 7BQwen 14BLlama 8B
Methodminmaxminmaxminmax
Base0.100.900.100.800.802.50
EngReason0.330.990.161.050.531.71
SelectionGT0.301.200.100.800.301.80
SelectionGEN0.801.400.301.500.002.50
Filtered0.101.100.401.500.001.30
Untrained0.201.100.301.100.101.30
DataEnvGym0.201.400.300.600.301.20
HOTFIXR0.000.600.201.500.001.40
Figure 10: Performance of data curation methods for translation (OPUS-100) queries, per language.
Figure 10: Performance of data curation methods for translation (OPUS-100) queries, per language.
Table 10: Average performance per model, with the added Distillation method. Here, we are able to show that a lot of HOTFIXR’s empirical success comes from the targeted question generation, rather than having correct, distilled labels from a large model.
MethodNemotronFactualTranslationRAG
Qwen2.5-7B-Instruct
Base52.367.059.279.0
EngReason51.268.259.079.3
SelectionGT48.563.953.861.5
SelectionGEN50.359.956.841.4
Filtered48.661.756.666.5
mCOT47.955.354.453.8
Untrained51.259.257.172.3
DataEnvGym49.346.256.947.5
Distillation (32B)49.664.758.977.3
HOTFIXR57.864.359.176.7
Qwen2.5-14B-Instruct
Base55.273.759.479.9
EngReason54.173.059.581.0
SelectionGT51.467.354.273.8
SelectionGEN52.170.357.442.8
Filtered50.959.159.145.5
Untrained52.171.057.977.5
DataEnvGym50.362.657.470.4
Distillation (32B)53.369.559.078.4
HOTFIXR58.367.958.278.3
Llama-3.1-8B-Instruct
Base48.148.556.367.7
EngReason47.047.356.465.2
SelectionGT47.648.857.667.2
SelectionGEN48.148.657.667.2
Filtered47.248.857.768.4
Untrained47.749.557.168.6
DataEnvGym47.648.857.569.1
Distillation (32B)47.751.158.070.3
Figure 11: Performance of data curation methods for RAG (multilingual HotPotQA) queries, per language.
Figure 11: Performance of data curation methods for RAG (multilingual HotPotQA) queries, per language.

为什么重要

很多实际应用都需要AI能可靠地处理多种语言,而这个方法不需要重新做昂贵的预训练就能改善已有模型的多语言表现。它为开发者提供了一种具体的数据生成策略,用来修补模型在特定语言上的短板。

Figure 12: The delta in performance of student models trained with two rounds of HOTFIXR versus one round. The improvement with two rounds is much more than the improvement with one round.
Figure 12: The delta in performance of student models trained with two rounds of HOTFIXR versus one round. The improvement with two rounds is much more than the improvement with one round.

本文术语

  • 大语言模型(LLM) · 通过海量文本训练、能够回答问题和进行对话的AI模型
  • 语言能力差异(LSC) · 模型对同一语义问题因提问语言不同而准确率不同的现象
  • 学生模型 · 被HOTFIXR生成的数据训练、实际需要被改进的语言模型
  • GRPO · 一种强化学习算法,用于根据奖励信号优化出题模型
  • 分布外(OOD)任务/语言 · 训练时没有见过的任务类型或语言,用来检验模型的泛化能力

论文原文摘要(英文)

Language-specific competency (LSC) is the phenomenon of a language model performing better or worse depending on the language of the prompt. In other words, a language model outputs different (and potentially incorrect) responses to the same semantic query when prompted in different languages. Prior work attributes this to an internal misalignment of semantic representation across languages. Currently, there are two main approaches to address LSC in the literature: (1) routing all queries through English, improving performance, but limiting language expressivity to English; or (2) training on language-balanced data, equalizing model performance across languages, but reducing overall performance. In this work, we take a data centric perspective and introduce HOTFIXR: Hardness Optimized Training data For Improving X-Lingual Reasoning. It is a data generation framework that uses models to probe and learn a student model's multilingual weaknesses, and generates data to mitigate them. HOTFIXR can generate multilingual synthetic training data that can improve multilingual performance. We evaluate on three in-distribution tasks, three out-of-distribution tasks, and four out-of-distribution languages. On average, HOTFIXR (1) improves in-distribution performance by 6.2%, (2) reduces catastrophic forgetting (induced by fine-tuning) on OOD tasks by 3.7%, and (3) on OOD languages by 7.1%. Overall, as many real-world applications requires multilingual LLMs, our work contributes to the efforts of making LLMs multilingually proficient. We will release code upon acceptance.

作者 · Ishika Agarwal

在 arXiv 阅读

最新论文

全部论文 →

METAL LAB 最新报道

图片来源: Ishika Agarwal et al., arXiv:2608.15964, cc-by-nc-sa-4.0