RouteLMT: Learned Sample Routing for Hybrid LLM Translation Deployment

Yingfeng Luo, Hongyu Liu, Dingyang Lin, Kaiyan Chang, Chenglong Wang, Bei Li, Quan Du, Tong Xiao, Jingbo Zhu

TL;DR

RouteLMT optimizes hybrid large language model (LLM) translation systems by routing requests based on marginal gain—the exact quality boost a large model provides over a smaller one. By probing the small model's internal hidden states during its initial prefill step, RouteLMT achieves a superior quality-cost Pareto frontier without the computational overhead of external classifiers or full text generation.

What Problem Does This Paper Address?

While LLMs excel at machine translation, deploying massive models at scale is prohibitively expensive. To balance cost and quality, industrial systems often use a hybrid paradigm: a small, cheap model handles most traffic, while a large, capable model is selectively invoked for difficult requests.

However, determining which requests to upgrade remains a challenge. Existing strategies rely on naive heuristics (like sentence length) or external Quality Estimation (QE) models. Crucially, many optimize for absolute difficulty or low small-model quality. This is a flawed proxy: an input might be so inherently ambiguous that both models perform poorly, resulting in zero actual improvement despite a high cost. This paper addresses the core challenge of predicting the true marginal gain—the difference in translation quality between the large and small models—before committing expensive compute.

Methods

The authors formulate routing as a formal budget allocation problem aimed at maximizing overall translation quality under a fixed budget of large-model calls.

To predict marginal gain efficiently, they introduce RouteLMT, an "in-model" router embedded directly into the small translator ($M_s$). The process works as follows:

  1. Probing Hidden States: When a prompt is fed into the small model, RouteLMT extracts the hidden representation of the final prompt token right after the prefill step.
  2. Lightweight Regression: This hidden state is projected to a scalar score via a single linear regression head ($f_\theta$), predicting the expected quality delta.
  3. Joint Training: The regression head is trained jointly with the small model using Parameter-Efficient Fine-Tuning (LoRA). The loss function minimizes the Mean Squared Error (MSE) between the predicted gain and the true gain (measured using XCOMET scores).

Because the translation direction (e.g., English $\rightarrow$ Chinese) is already embedded in the prompt, a single RouteLMT router inherently learns direction-aware routing policies across multiple language pairs. The authors also explore a Guarded Routing variant, which pairs the gain predictor with a quality filter to catch catastrophic translation regressions.

Datasets

The models were trained and evaluated on several established machine translation datasets:

  • Training: The General Translation split of ComMT, consisting of 56,918 sentence pairs for English$\leftrightarrow$Chinese (En$\leftrightarrow$Zh) and 40,862 pairs for English$\leftrightarrow$Russian (En$\leftrightarrow$Ru).
  • Evaluation: A combined test set aggregating FLORES-200 devtest, WMT24++, and BOUQuET (3,368 pairs per language direction).
  • Domain Generalization: Medical and colloquial domain test sets from ComMT were used to evaluate how well the router handles out-of-domain shifts.

Key Insights and Ideas

  • Absolute Quality $\neq$ Marginal Gain: The oracles reveal that maximizing absolute quality is mathematically misaligned with budgeting. Even an oracle with perfect knowledge of the small model's quality underperforms a gain-based oracle because it wastes budget upgrading hard sentences that the large model can't fix either.
  • The Small Model "Already Knows": Instead of deploying a separate, heavy external model to judge difficulty, RouteLMT proves that a small translator's internal representations during the prefill stage already encode rich, latent cues about its own upcoming translation quality and limitations.
  • Coarse-to-Fine Risk Control: While pre-routing saves massive compute, it can occasionally suffer from severe regression risks (where the large model actually performs worse due to rare entity errors or over-paraphrasing). Combining gain-based pre-routing with a post-route hypothesis check yields the safest risk-utility balance.

Key Results

The authors evaluated RouteLMT using LMT-60-0.6B as the small model and LMT-60-8B as the large model, setting a strict budget where only 30% of requests ($p=0.3$) could be routed to the large model.

  • Superior Pareto Frontier: RouteLMT consistently dominated all heuristic and external baselines across all translation directions, delivering the best quality-budget trade-off.
Figure 1: Quality–budget trade-offs of hybrid translation routing. We sweep the large-model budget p (route-to-large rate) and report the quality of the resulting hybrid system. Higher curves indicate a better Pareto frontier.
  • Quantifiable Gains: At $p=0.3$, RouteLMT achieved an average marginal gain (Mean$\Delta$@p) of 12.13, significantly outperforming the strongest heuristic baseline (Length at 9.35) and more than doubling random routing (5.83).
  • Robust Domain Transfer: When tested on out-of-domain medical and colloquial data without any additional fine-tuning, RouteLMT maintained its performance edge, proving that the internal routing signals transfer effectively across domains.
Figure 2: Gain-bucket distribution among routed-to- large model requests under budget p=0.3, averaged across four directions.

Limitations and Future Work

While promising, the authors note a few limitations:

  1. Metric Bias: The router relies on an automatic reference-based metric (XCOMET-XXL) for its training supervision, meaning it can inherit any underlying biases present in the evaluation metric.
  2. Two-Model Constraint: The current framework is optimized for a binary hybrid setup (one small, one large model). Extending this to multi-tier model cascades or incorporating real-time latency constraints remains an open area for exploration.
  3. Scale Validation: The approach was validated on a 0.6B/8B model pair; future work is required to confirm if these routing dynamics hold true at much larger scales (e.g., 7B to 70B+ pairs).

Summary updated

Abstract

Large Language Models (LLMs) have achieved remarkable performance in Machine Translation (MT), but deploying them at scale remains prohibitively expensive. A widely adopted remedy is the hybrid system paradigm, which balances cost and quality by serving most requests with a small model and selectively routing a fraction to a large model. However, existing routing strategies often rely on heuristics, external predictors, or absolute quality estimation, which fail to capture whether the large model actually provides a worthwhile improvement over the small one. In this paper, we formulate routing as a budget allocation problem and identify marginal gain, i.e., the large model's improvement over the small model, as the optimal signal for budgeted decisions. Building on this, we propose \textbf{RouteLMT} (routing for LLM-based MT), an efficient in-model router that predicts this expected gain by probing the small translators prompt-token representation, without requiring external models or hypothesis decoding. Extensive experiments demonstrate that our RouteLMT outperforms heuristics, quality/difficulty estimation baselines, achieving a superior quality-budget Pareto frontier. Furthermore, we analyze regression risks and show that a simple guarded variant can mitigate severe quality losses.
BibTeX
@inproceedings{luo2026routelmt,
  author = {Yingfeng Luo and Hongyu Liu and Dingyang Lin and Kaiyan Chang and Chenglong Wang and Bei Li and Quan Du and Tong Xiao and Jingbo Zhu},
  title = {{RouteLMT: Learned Sample Routing for Hybrid LLM Translation Deployment}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-industry.129},
}
Figure