Guiding In-Context Learning of LLMs through Quality Estimation for Machine Translation

Javad Pourmostafa Roshan Sharami, Dimitar Shterionov, Pieter Spronck
6/12/2024
cs.CL

No official code found. Best implementation: JoyeBright/ICLviaQE (1 star, last commit 2024-09-28).

Abstract

The quality of output from large language models (LLMs), particularly in machine translation (MT), is closely tied to the quality of in-context examples (ICEs) provided along with the query, i.e., the text to translate. The effectiveness of these ICEs is influenced by various factors, such as the domain of the source text, the order in which the ICEs are presented, the number of these examples, and the prompt templates used. Naturally, selecting the most impactful ICEs depends on understanding how these affect the resulting translation quality, which ultimately relies on translation references or human judgment. This paper presents a novel methodology for in-context learning (ICL) that relies on a search algorithm guided by domain-specific quality estimation (QE). Leveraging the XGLM model, our methodology estimates the resulting translation quality without the need for translation references, selecting effective ICEs for MT to maximize translation quality. Our results demonstrate significant improvements over existing ICL methods and higher translation performance compared to fine-tuning a pre-trained language model (PLM), specifically mBART-50.

View on arXivView PDF

Code Implementations(1)

JoyeBright/ICLviaQECommunity100%

This repository contains the data, code, and model necessary to replicate the results of the experiments in my paper titled "Guiding In-Context Learning of LLMs through Quality Estimation for Machine Translation."

10PythonJun 12, 20242 years ago

Similar Papers

Cite this paper

@article{sharami2024guiding,
  title  = {Guiding In-Context Learning of LLMs through Quality Estimation for Machine Translation},
  author = {Javad Pourmostafa Roshan Sharami and Dimitar Shterionov and Pieter Spronck},
  year   = {2024},
  eprint = {2406.07970},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.07970v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.07970.svg)](https://codeofpaper.com/paper/2406.07970)

Discussion