Optimization and Practice of Long Text Foreign Language Translation Algorithm Based on Transformer-XL Architecture

When processing long text foreign language translation, the traditional Transformer model faces computing resource and memory limitations when processing long sequences, which affects translation efficiency and quality. This study adopts a long text foreign language translation algorithm optimization method based on the Transformer-XL architecture, and expands the context length of the Transformer model by applying a segmented recurrence mechanism and relative position encoding, enabling it to process long text sequences more effectively. During the training process, segmented pre-training and autoregressive training strategies are adopted. A mixed expert strategy is also used to increase the capacity of the model, combining multiple expert networks together, each of which focuses on a specific part of the sequence. Transformer-XL outperforms Vanilla Transformer in BLEU (Bilingual Evaluation Understudy) scores; Transformer-XL’s TER (Translation Edit Rate) scores are between 0.10% and 0.79%, and its METEOR (Metric for Evaluation of Translation with Explicit ORdering) scores are also excellent, while its inference latency is lower than that of Vanilla Transformer. Ablation experiments further verify the important contributions of relative position encoding and dynamic caching to model performance.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.05.109
Citations
1
Primary Topic
Subtitles and Audiovisual Media
Type
article
Field-Weighted Citation Impact
10.42
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimization and Practice of Long Text Foreign Language Translation Algorithm Based on Transformer-XL Architecture

Lihe Chen, Peixiang Zhong, Xiaodong Wang, Cheng Zhang
1 citations
Procedia Computer Science
Subtitles and Audiovisual Media
10.42
article

Optimization and Practice of Long Text Foreign Language Translation Algorithm Based on Transformer-XL Architecture

Lihe Chen, Peixiang Zhong, Xiaodong Wang, Cheng Zhang
article en
1 citations

Abstract

When processing long text foreign language translation, the traditional Transformer model faces computing resource and memory limitations when processing long sequences, which affects translation efficiency and quality. This study adopts a long text foreign language translation algorithm optimization method based on the Transformer-XL architecture, and expands the context length of the Transformer model by applying a segmented recurrence mechanism and relative position encoding, enabling it to process long text sequences more effectively. During the training process, segmented pre-training and autoregressive training strategies are adopted. A mixed expert strategy is also used to increase the capacity of the model, combining multiple expert networks together, each of which focuses on a specific part of the sequence. Transformer-XL outperforms Vanilla Transformer in BLEU (Bilingual Evaluation Understudy) scores; Transformer-XL’s TER (Translation Edit Rate) scores are between 0.10% and 0.79%, and its METEOR (Metric for Evaluation of Translation with Explicit ORdering) scores are also excellent, while its inference latency is lower than that of Vanilla Transformer. Ablation experiments further verify the important contributions of relative position encoding and dynamic caching to model performance.

Procedia Computer ScienceVol. 262
Changchun Discovery Sciences (China) (CN)
Quality Education
Openalex Percentile: Top 3%
Subtitles and Audiovisual Media
10.42
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.