Self-Augmented In-Context Learning for Unsupervised Word Translation

Yaoyiran Li, Anna Korhonen, Ivan Vulic

Abstract

SAIL (Self-Augmented In-Context Learning) is a novel framework that enables Large Language Models (LLMs) to excel at unsupervised word translation without any human-provided examples. By using an iterative "back-translation" loop to bootstrap its own high-confidence dictionary, SAIL allows LLMs to outperform traditional specialized mapping-based methods and even state-of-the-art models like GPT-4 in zero-shot settings.

Introduction

The task of Bilingual Lexicon Induction (BLI) involves automatically translating words between languages (e.g., "macska" in Hungarian to "cat" in English). While LLMs are powerful few-shot learners, they often struggle in unsupervised scenarios where no seed translation pairs exist. Historically, mapping-based approaches like VecMap have dominated this niche. LLMs in a zero-shot setup often fail to understand the desired output format or struggle with lower-resource languages. SAIL bridges this gap by providing LLMs with the benefits of few-shot learning using zero starting data.

The SAIL Framework

SAIL bootstraps a dictionary through three main steps:

  1. Initial Retrieval (S1): The LLM is prompted in a zero-shot fashion to generate initial translations for the most frequent words in the source language.
  2. High-Confidence Filtering via Back-Translation: To prevent hallucinations, SAIL uses a cycle-consistency check. If the LLM translates word $A \to B$, it then attempts to translate $B \to A$. If it returns to the original word $A$, the pair is added to a "silver-standard" dictionary ($D_h$).
  3. Iterative Refinement (S2): High-confidence pairs from the previous step are used as in-context learning (ICL) examples to help the LLM find even more accurate pairs in subsequent rounds.
  4. Final Inference (S3): The final refined dictionary provides 5-shot ICL examples for the test set, anchoring the model's behavior and formatting.

Analysis and Insights

A key finding is that an LLM's zero-shot failures are often due to formatting issues rather than a total lack of lexical knowledge. Back-translation serves as a remarkably effective filter for noise.

Accuracy vs. number of iterations ($N_{it}$) for various Llama models.

As shown in the figure above, most of the performance gain occurs in the very first iteration ($N_{it}=1$). Further iterations provide only marginal improvements, suggesting the model quickly adapts to the task requirements. Additionally, starting with the most frequent words is crucial, as LLMs have more reliable lexical knowledge for high-frequency terms encountered during pre-training.

Performance Results

SAIL was evaluated on the XLING (high-resource) and PanLex-BLI (low-resource) benchmarks using the Llama and Llama-2 model families.

Unsupervised BLI performance comparison on the XLING benchmark.

SAIL consistently outperformed zero-shot prompting across all models. On the XLING benchmark, Llama-2-13B using SAIL achieved an average accuracy of 61.8%, a significant jump from its 49.71% zero-shot performance. Notably, SAIL also outperformed traditional mapping-based methods like VecMap and ContrastiveBLI. In head-to-head comparisons, a Llama-2-13B model equipped with SAIL (59.31% avg) even outperformed GPT-4 in a zero-shot setup (58.37% avg), highlighting the power of effective prompting over raw model size.

Limitations and Future Work

Despite its success, SAIL is limited by the LLM's pre-training; it cannot induce lexicons for languages the model has never seen. Furthermore, the iterative process is computationally intensive, requiring multiple passes for translation and filtering. Future work may apply this self-augmented approach to other unsupervised NLP tasks, such as sentence-level translation or cross-lingual retrieval.

Summary updated

BibTeX
@inproceedings{li2024self,
  author = {Yaoyiran Li and Anna Korhonen and Ivan Vulic},
  title = {{Self-Augmented In-Context Learning for Unsupervised Word Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-short.67},
}
Figure