Saved in:
Bibliographic Details
Main Authors: Wang, Weixuan, Wu, Minghao, Haddow, Barry, Birch, Alexandra
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.12462
Tags: Add Tag
No Tags, Be the first to tag this record!
_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