Bridging the Language Gaps in Large Language Models with Inference-Time Cross-Lingual Intervention

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wang, Weixuan, Wu, Minghao, Haddow, Barry, Birch, Alexandra
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909351998914560
author Wang, Weixuan
Wu, Minghao
Haddow, Barry
Birch, Alexandra
author_facet Wang, Weixuan
Wu, Minghao
Haddow, Barry
Birch, Alexandra
contents Large Language Models (LLMs) have shown remarkable capabilities in natural language processing but exhibit significant performance gaps among different languages. Most existing approaches to address these disparities rely on pretraining or fine-tuning, which are resource-intensive. To overcome these limitations without incurring significant costs, we propose Inference-Time Cross-Lingual Intervention (INCLINE), a novel framework that enhances LLM performance on low-performing (source) languages by aligning their internal representations with those of high-performing (target) languages during inference. INCLINE initially learns alignment matrices using parallel sentences from source and target languages through a Least-Squares optimization, and then applies these matrices during inference to transform the low-performing language representations toward the high-performing language space. Extensive experiments on nine benchmarks with five LLMs demonstrate that INCLINE significantly improves performance across diverse tasks and languages, compared to recent strong baselines. Our analysis demonstrates that INCLINE is highly cost-effective and applicable to a wide range of applications. In addition, we release the code to foster research along this line: https://github.com/weixuan-wang123/INCLINE.
format Preprint
id arxiv_https___arxiv_org_abs_2410_12462
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Bridging the Language Gaps in Large Language Models with Inference-Time Cross-Lingual Intervention
Wang, Weixuan
Wu, Minghao
Haddow, Barry
Birch, Alexandra
Computation and Language
Large Language Models (LLMs) have shown remarkable capabilities in natural language processing but exhibit significant performance gaps among different languages. Most existing approaches to address these disparities rely on pretraining or fine-tuning, which are resource-intensive. To overcome these limitations without incurring significant costs, we propose Inference-Time Cross-Lingual Intervention (INCLINE), a novel framework that enhances LLM performance on low-performing (source) languages by aligning their internal representations with those of high-performing (target) languages during inference. INCLINE initially learns alignment matrices using parallel sentences from source and target languages through a Least-Squares optimization, and then applies these matrices during inference to transform the low-performing language representations toward the high-performing language space. Extensive experiments on nine benchmarks with five LLMs demonstrate that INCLINE significantly improves performance across diverse tasks and languages, compared to recent strong baselines. Our analysis demonstrates that INCLINE is highly cost-effective and applicable to a wide range of applications. In addition, we release the code to foster research along this line: https://github.com/weixuan-wang123/INCLINE.
title Bridging the Language Gaps in Large Language Models with Inference-Time Cross-Lingual Intervention
topic Computation and Language
url https://arxiv.org/abs/2410.12462