Skip to main content
QUICK REVIEW

[논문 리뷰] Building Accurate Translation-Tailored LLMs with Language Aware Instruction Tuning

Changtong Zan, Liang Ding|arXiv (Cornell University)|2024. 03. 21.
Natural Language Processing TechniquesComputer Science인용 수 3
한 줄 요약

이 논문은 번역에 특화된 LLM에서 언어 인식 지시어 따르기 능력을 향상시키기 위해 이중 단계 미세조정 방법을 제안한다. 지시어 갈등 샘플과 비가능도 손실을 사용하여 비대상 번역을 감소시킨다. 이는 53.3% 평균 비대상 비율 감소와 제로샷 번역 벤치마크에서 +5.7 SacreBLEU 향상을 달성한다.

ABSTRACT

Translation-tailored Large language models (LLMs) exhibit remarkable translation capabilities, even competing with supervised-trained commercial translation systems. However, off-target translation remains an unsolved problem, especially for low-resource languages, hindering us from developing accurate LLMs-based translation models. To mitigate the off-target translation problem and enhance the performance of LLMs on translation, recent works have either designed advanced prompting strategies to highlight the functionality of translation instructions or exploited the in-context learning ability of LLMs by feeding few-shot demonstrations. However, these methods essentially do not improve LLM's ability to follow translation instructions, especially the language direction information. In this work, we design a two-stage fine-tuning algorithm to improve the instruction-following ability (especially the translation direction) of LLMs. Specifically, we first tune LLMs with the maximum likelihood estimation loss on the translation dataset to elicit the basic translation capabilities. In the second stage, we construct instruction-conflicting samples by randomly replacing the translation directions with a wrong one within the instruction, and then introduce an extra unlikelihood loss to learn those samples. Experiments on IWSLT and WMT benchmarks upon the LLaMA model spanning 16 zero-shot directions show that, compared to the competitive baseline -- translation-finetuned LLama, our method could effectively reduce the off-target translation ratio (averagely -53.3\%), thus improving translation quality with average +5.7 SacreBLEU and +16.4 BLEURT. Analysis shows that our method could preserve the model's general task performance on AlpacaEval. Code and models will be released at \url{https://github.com/alphadl/LanguageAware_Tuning}.

연구 동기 및 목표

  • 특히 저자원 언어에 대해 지속적인 비대상 번역 문제를 해결한다.
  • 표준 LLM 사전학습이 지시어 인코딩이 약하기 때문에 번역 방향 지시어를 제대로 따르지 못함을 밝힌다.
  • 일반적 또는 감독 번역 성능을 떨어뜨리지 않으면서 LLM의 지시어 따르기 능력, 특히 언어 방향에 대해 향상시킨다.
  • 특히 갈등하는 번역 방향에 대해 모델의 지시어 내용에 대한 민감도를 높이는 방법을 개발한다.
  • 비대상 출력의 환각 유사 현상을 줄이면서도 제로샷 및 감독 번역 방향 양쪽에서 강력한 성능을 유지한다.

제안 방법

  • 첫 번째 단계 미세조정은 다국어 번역 데이터에서 최대우도추정(MLE)을 사용하여 LLaMA에 기본 번역 능력을 활성화한다.
  • 두 번째 단계 학습에서는 지시어의 올바른 번역 방향을 잘못된 것으로 무작위로 교체함으로써 지시어 갈등 샘플을 도입한다.
  • 이 갈등 샘플에 대해 비가능도 손실을 적용하여 지시어와 모순되는 시퀀스의 생성을 억제한다.
  • 올바른 샘플에 대한 MLE 손실과 갈등 샘플에 대한 비가능도 손실을 함께 최적화하며, 균형 조정 하이퍼파rameter α를 사용한다.
  • 생성 과정에서 지시어 토큰을 강조하여 모델이 언어 방향 신호에 더 민감하도록 한다.
  • 이 방법은 LLaMA에 적용되어 IWSLT 및 WMT 벤치마크에서 16개의 제로샷 번역 방향에 대해 평가된다.
Figure 2: Overview of our fine-tuning framework for zero-shot translation . (a) In the first stage, we perform pre-tuning on LLMs using MLE loss on multilingual translation samples, focusing on unlocking the translation ability of LLMs. (b) Subsequently, we introduce instruction-conflicting samples
Figure 2: Overview of our fine-tuning framework for zero-shot translation . (a) In the first stage, we perform pre-tuning on LLMs using MLE loss on multilingual translation samples, focusing on unlocking the translation ability of LLMs. (b) Subsequently, we introduce instruction-conflicting samples

실험 결과

연구 질문

  • RQ1표준 지시어 미세조정이 제로샷 설정에서 번역 방향 지시어를 정확히 따르는 데 얼마나 실패하는가?
  • RQ2지시어 갈등 샘플에 대해 비가능도 학습을 도입하면 비대상 번역을 피하는 데 모델 능력이 향상되는가?
  • RQ3제안된 방법이 감독 번역 방향 또는 일반 지시어 따르기 작업 성능에 영향을 주는가?
  • RQ4이 방법은 다양한 저자원 및 제로샷 언어 쌍에서 비대상 번역 비율을 얼마나 효과적으로 줄이는가?
  • RQ5비가능도 손실 메커니즘이 다국어 번역 작업에서 지시어 따르기 능력을 향상시키는 데 효과적으로 적용될 수 있는가?

주요 결과

  • 16개의 제로샷 방향에서 평균 비대상 번역 비율이 53.3% 감소했으며, IWSLT에서는 -92.2% 감소, WMT에서는 -29.9% 감소했다.
  • 벤치마크 전반에서 번역 품질은 +5.7 SacreBLEU 및 +16.4 BLEURT 향상되었으며, IWSLT/WMT에서 각각 +23.0/+12.4 BLEURT 및 +5.2/+6.1 SacreBLEU 향상되었다.
  • 감독 번역 방향에서도 강력한 성능을 유지하여 도메인 내 능력에 변화가 없음을 보여준다.
  • AlpacaEval 점수의 안정성으로 일반 지시어 따르기 능력이 유지됨을 보여주어 보다 넓은 작업에 부정적 영향이 없음을 확인했다.
  • 저자원 언어 포함 다양한 언어 쌍에서 뛰어난 강건성과 일관된 향상 효과를 보였으며, De→Fr와 같은 도전적인 경우에도 효과적이었다.
  • 비가능도 손실이 지시어에서 잘못된 방향을 지정할 경우 특히 지시어와 갈등하는 시퀀스의 생성을 효과적으로 억제함을 확인했다.
Building Accurate Translation-Tailored LLMs with Language Aware Instruction Tuning

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.