Skip to main content
QUICK REVIEW

[논문 리뷰] Do Llamas Work in English? On the Latent Language of Multilingual Transformers

Chris Wendler, Veniamin Veselovsky|arXiv (Cornell University)|2024. 02. 16.
Natural Language Processing TechniquesComputer Science인용 수 7
한 줄 요약

이 논문은 다언어 Llama-2 모델이 내부 피봇 언어로 영어를 사용하는지 여부를, 계층별 로짓 렌즈(logit lens)로 중간 잠재 상태를 분석하여 실증적으로 조사한다.

ABSTRACT

We ask whether multilingual language models trained on unbalanced, English-dominated corpora use English as an internal pivot language -- a question of key importance for understanding how language models function and the origins of linguistic bias. Focusing on the Llama-2 family of transformer models, our study uses carefully constructed non-English prompts with a unique correct single-token continuation. From layer to layer, transformers gradually map an input embedding of the final prompt token to an output embedding from which next-token probabilities are computed. Tracking intermediate embeddings through their high-dimensional space reveals three distinct phases, whereby intermediate embeddings (1) start far away from output token embeddings; (2) already allow for decoding a semantically correct next token in the middle layers, but give higher probability to its version in English than in the input language; (3) finally move into an input-language-specific region of the embedding space. We cast these results into a conceptual model where the three phases operate in "input space", "concept space", and "output space", respectively. Crucially, our evidence suggests that the abstract "concept space" lies closer to English than to other languages, which may have important consequences regarding the biases held by multilingual language models.

연구 동기 및 목표

  • 다국어 LMs가 영어가 지배하는 학습 데이터에서 다른 언어로 일반화하는 방식을 이해하는 데에 동기를 부여한다.
  • 비영어 프롬프트 도중 내부 잠재 표현이 영어로 피봇하는지 여부를 드러낸다.
  • Llama-2의 순전파 동안 잠재 공간과 언어 편향의 진화를 특징짓는다.

제안 방법

  • 각 계층의 중간 잠재에서 다음 토큰 분포를 추출하기 위해 로짓 렌즈를 적용한다.
  • 언어 신호를 감지하기 위해 모호하지 않은 단일 토큰 언어 타깃을 갖는 비영어 프롬프트(번역, 반복, cloze)를 설계한다.
  • 계층 전체의 언어 확률을 분석하여 영어 또는 입력 언어가 우세한 단계를 식별한다.
  • 고차원 공간에서 잠재 임베딩의 기하학적 분석을 수행하여 순전파의 단계 전이를 추적한다.
  • 잠재 다이나믹스를 해석하기 위한 입력 공간, 개념 공간, 출력 공간의 개념적 모델을 개발한다.

실험 결과

연구 질문

  • RQ1비영어로 프롬프트를 주었을 때 Llama-2의 중간 잠재가 내부 피봇 언어를 드러내는가?
  • RQ2다양한 작업에서 계층을 거치며 언어 확률(중국어 대 영어)은 어떻게 진화하는가?
  • RQ3잠재 궤적의 기하학적 구조는 무엇이며, 이는 언어 편향과 어떻게 연관되는가?
  • RQ4단순한 어휘 번역 과정이라기보다는 영어 편향된 개념 공간의 존재에 대한 증거가 있는가?

주요 결과

  • 잠재 상태는 초기 고엔트로피, 중간의 영어 지배적 단계, 그리고 마지막 입력 언어(중국어) 실현의 세 가지 국면을 보인다.
  • 로짓 렌즈는 번역 및 클로즈 태스크에서 대상 언어 토큰을 출력하기 전에 영어로의 우회를 드러낸다.
  • 잠재는 영어에 더 가까운 개념 공간을 차지하며, 단순한 영어 번역 단계라기보다는 영어 편향된 표현을 시사한다.
  • 관찰된 피봇 유사 다이나믹스를 설명하는 세 공간 개념 모델(입력 공간, 개념 공간, 출력 공간).
  • 토큰 에너지와 언어 확률은 어휘적 직역 파이프라인이 아니라 의미상의 내부 피봇을 지지하는 방향으로 이동한다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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