Back to search

Johns Hopkins University

Improving In-context Machine Translation

Abstract

dc:description.abstract

In-context Learning for Machine Translation (MT) is a new paradigm enabled by very large language models self-supervised on massive amounts of language data. These models have demonstrated potential to translate between multiple languages using monolingual data. While they still lag behind supervised systems, the gap appears to be closing. In the first part of the thesis, we conduct early investigations into improving In-context Machine Translation, keeping consistent with the unsupervised (monolingual) promise of this paradigm. The methods we develop are lightweight in both computation and data resource such that regular practitioners can easily adopt them to improve In-context MT systems. We introduce Prefix Embeddings which only requires monolingual data to train, and induces the model to generate in the target language. Having identified prefixes as an important aspect of inducing a model to translate in the target language, we propose an automatic method of initialising this prefix instead of an arbitrary manual one. Next we consider an alternative way to improve translation at the output stage via the decoding step. We propose an Anti-Language Model decoding objective with decay time-step for reducing the influence of the dominant source language. The second part of the thesis makes contributions towards understanding In-context Machine Translation. We challenge the dominant notion that good prompts must be lexically and semantically similar to the test sentence. Instead, we suggest that coherence of the prompt examples and the test sentence are more important for performance, and demonstrate this using domain and document level experiments. The findings of this work have practical implications for both style adaptation and Document Level Machine Translation. Finally, we go beyond the input/output of the model in an attempt to understand In-context MT at a deeper level. Through a series of layer-wise masking, positional-masking and compression analysis, we locate where instructions and examples are processed in the model, and find evidence that the distribution of MT attention heads fundamentally differs from supervised Neural Machine Translation.

Degree

thesis:*
Name thesis:degree_name
Ph.D.
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor dc:publisher
Johns Hopkins University
Year dc:date.issued
2023

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Sia, Suzanna
Advisor dc:contributor.advisor
  • Duh, Kevin
Committee members dc:contributor.committeemember
  • Van Durme, Benjamin
  • Koehn, Philipp

Subjects

dc:subject × 4

Rights

Language dc:language.iso
en_US

Identifiers

dc:identifier.*
Repository record dc:identifier.uri
https://jscholarship.library.jhu.edu/handle/1774.2/69153

Chain of custody

source
Harvested from
Johns Hopkins University
Base URL
jscholarship.library.jhu.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

Sia, Suzanna. Improving In-context Machine Translation. Doctoral thesis, Johns Hopkins University, 2023. https://jscholarship.library.jhu.edu/handle/1774.2/69153