Skip to main content
QUICK REVIEW

[논문 리뷰] In-context Learning as Maintaining Coherency: A Study of On-the-fly Machine Translation Using Large Language Models

Suzanna Sia, Kevin Duh|arXiv (Cornell University)|2023. 05. 05.
Topic ModelingComputer Science인용 수 3
한 줄 요약

이 논문은 기계 번역에서의 컨텍스트 내 학습을 단순히 예시 학습이 아닌 맥락 일관성 유지 문제로 재정의한다. 도메인 일관성과 이전 번역의 이동 윈도우를 통한 일관성 평가를 통해 저자들은 일관성이 번역 성능을 크게 향상시킴을 보여주며, 세 모델과 세 언어 방향에서 유사성 기반 방법보다 최대 2.6 BLEU 포인트 향상됨을 입증한다.

ABSTRACT

The phenomena of in-context learning has typically been thought of as "learning from examples". In this work which focuses on Machine Translation, we present a perspective of in-context learning as the desired generation task maintaining coherency with its context, i.e., the prompt examples. We first investigate randomly sampled prompts across 4 domains, and find that translation performance improves when shown in-domain prompts. Next, we investigate coherency for the in-domain setting, which uses prompt examples from a moving window. We study this with respect to other factors that have previously been identified in the literature such as length, surface similarity and sentence embedding similarity. Our results across 3 models (GPTNeo2.7B, Bloom3B, XGLM2.9B), and three translation directions ( exttt{en}$ ightarrow$\{ exttt{pt, de, fr}\}) suggest that the long-term coherency of the prompts and the test sentence is a good indicator of downstream translation performance. In doing so, we demonstrate the efficacy of In-context Machine Translation for on-the-fly adaptation.

연구 동기 및 목표

  • 기계 번역에서의 컨텍스트 내 학습을 예시 기반 학습이 아닌 일관성 유지 문제로 재정의하기.
  • 영역 일관성과 국소적 일관성이 제로샷 및 온더플라이 설정에서 번역 성능에 미치는 영향을 조사하기.
  • 기존 방법들인 BM25, 의미 유사성, 길이 제어와 비교해 일관성 기반 프롬프트 선택 전략을 평가하기.
  • 프롬프트 간섭(긍정적 및 부정적)이 제로샷 프롬프팅 대비 미치는 영향을 평가하기.
  • 기계 번역에서의 컨텍스트 내 성능 예측에 있어 표면적 또는 의미적 유사성보다 일관성이 더 예측력 있는 요소인지 평가하기.

제안 방법

  • 저자들은 문서 수준 번역에서 각 테스트 문장 이전의 골드 표준 번역을 이동 윈도우로 사용해 국소적 일관성을 평가한다.
  • 일관성 기반 프롬프트 선택을 랜덤 샘플링, BM25, 단어 커버리지가 있는 BM25(BM25-s), 근접 이웃(NT) 검색과 같은 기준 방법과 비교한다.
  • 성능은 세 모델(GPTNeo2.7B, Bloom3B, XGLM2.9B)과 세 번역 방향(en→{pt, de, fr})에서 BLEU 점수로 측정된다.
  • 프롬프트 선택에서 길이 편향의 영향을 분리하기 위해 문장 길이를 제어한다.
  • 제로샷 설정과 프롬프트 설정 간 BLEU 점수를 비교해 간섭 효과를 분석하고, 긍정적 및 부정적 간섭을 정량화한다.
  • 프롬프트 형식은 '영어'와 '프랑스어' 레이블을 사용하며, 다른 분리 기호도 테스트되었지만 성능 향상 없음.
Figure 1: Factors identified and studied in this paper. Selecting from matching Domain increases coherence ( Appendix C ) and each domain has different length distributions ( subsection 5.2 ). Surface similarity and embedding similarity are associated ( Table 4 ). Surface similarity selection also r
Figure 1: Factors identified and studied in this paper. Selecting from matching Domain increases coherence ( Appendix C ) and each domain has different length distributions ( subsection 5.2 ). Surface similarity and embedding similarity are associated ( Table 4 ). Surface similarity selection also r

실험 결과

연구 질문

  • RQ1프롬프트 예시와 테스트 문장 간 일관성을 유지할 경우 컨텍스트 내 기계 번역 성능이 향상되는가?
  • RQ2프롬프트 예시와 테스트 문장 간 도메인 일관성이 번역 품질에 어떤 영향을 미치는가?
  • RQ3이전 골드 표준 번역의 이동 윈도우가 유사성 기반 검색보다 더 나은 프롬프트 선택 전략이 될 수 있는가?
  • RQ4컨텍스트 내 번역에서 프롬프트 선택에 있어 일관성이 표면적 또는 의미적 유사성보다 얼마나 더 우수한가?
  • RQ5프롬프트 예시를 사용할 때 제로샷 프롬프팅 대비 간섭(긍정적 또는 부정적)이 성능에 미치는 영향은 무엇인가?

주요 결과

  • 프롬프트 예시와 테스트 문장 간 일관성은 번역 성능의 강력한 예측 요소이며, 도메인 일관성이 결과를 크게 향상시킴.
  • 이동 윈도우 방법은 모든 모델 및 번역 방향에서 유사성 기반 기준 방법보다 최대 2.6 BLEU 포인트 높은 성능 기록.
  • 이동 윈도우 방법은 제로샷 대비 BLEU 점수 변화에서 가장 높은 양성 간섭 비율(0.62)과 가장 낮은 부정성 간섭 비율(0.29) 기록.
  • 테스트 세트와 동일한 도메인에서 프롬프트 예시를 선택할 경우 성능이 향상되어 도메인 수준의 일관성이 핵심임을 시사.
  • 길이 제어가 필요하며, 유사성 지표로 설명되지 않는 성능 차이는 종종 길이 편향 때문이며, 일관성이 이를 완화하는 데 기여함.
  • 제로샷 기능이 존재하더라도 프롬프트 예시를 추가하면 일반적으로 성능 향상되며, 이때 일관성이 부정적 간섭을 최소화하는 핵심 요소임.
Figure 2: Histograms of sentence lengths (word counts) randomly sampled from different domains, which has implications for the total prompt length when sampling from these domains. FLORES sentences tend to be nearly twice as long as MTNT and TED sentences.
Figure 2: Histograms of sentence lengths (word counts) randomly sampled from different domains, which has implications for the total prompt length when sampling from these domains. FLORES sentences tend to be nearly twice as long as MTNT and TED sentences.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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