NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Searching for Translation Students That Adapt Well on the Desktop

Translators working under confidentiality rules often cannot send text to cloud services, so they run small translation models on their own laptops. These models are "students": compact networks trained to imitate a large "teacher" model, a process called knowledge distillation. They run in a C++ engine using 8-bit integer arithmetic. The student's shape (how many layers, how wide, how many attention heads) is currently picked by hand. The translator then adapts it to a client's translation memory, meaning the archive of their past translations, with one epoch of CPU training. We propose an architecture search whose objective is the quality a student reaches after that one-epoch desktop adaptation, at a latency measured directly in the real engine. The goal is not quality on generic news text.

The second half of the idea concerns cost. For this deployment, speed costs almost nothing to evaluate. The runtime of an integer-quantized network does not depend on its trained weights, so an untrained candidate can be timed exactly in the production engine in seconds. All of the search budget can therefore go to estimating quality, which is the expensive part. We ask how cheaply that estimate can be made before it stops picking the right model among the best few candidates. Every result is charged against an equal-compute, hand-designed grid of students.

Core Claim

We make two testable claims. The first is that ranking candidate students by generic test quality differs meaningfully from ranking them by in-domain quality after one epoch of CPU fine-tuning. We call this a rank flip, and it matters most among the top candidates. The second is that a staged estimator can recover the adapted ranking at a small fraction of full-training cost. The estimator combines exact latency measurement, a training-free score, a short distillation run and a short simulated fine-tuning. The result would be students that beat the hand-designed state of the art on post-adaptation quality at matched desktop speed.

If the first claim fails and the two rankings agree, a generic hardware-aware search is sufficient. That outcome is itself useful, because it tells the local-first community that fine-tunability does not need to be a design axis.

Why This Gap Is Real

Local-first engines motivate the problem. TranslateLocally built a desktop translator on the C++ engine Marian, combining 8-bit matrix multiplication, lexical shortlists (lists that restrict which output words are scored) and a hand-designed distilled student. OPUS-CAT integrates OPUS-MT models into professional translation tools and lets users fine-tune on their translation memories. That fine-tuning is CPU-bound and "limited to a single epoch to prevent over-fitting and manage processing time." Nobody has asked which student shapes make that single epoch count.

The out-of-domain search of He et al. shows that architecture choices change how translation models behave under domain shift. It uses a gradient-based search over full-size GPU models with no efficiency constraint. We keep the insight that architecture affects domain behaviour and drop the expensive search machinery.

Hardware-aware search supplies the method we build on and defines what we must beat. HAT searches translation Transformers in 32-bit floating point, using a weight-shared "SuperTransformer" and learned latency predictors. SpeedLimit shows that int8 latency can diverge by 50% between models with identical floating-point latency, and puts quantization inside the search. It does so only for encoder classifiers in PyTorch. Neither method targets post-adaptation quality, and both learn a latency model where direct measurement in Marian is feasible.

Zheng et al. constrain our design. They find that weight-sharing rankings correlate locally but not globally with standalone trained models. That warning is why we evaluate candidates as short standalone runs rather than as SuperTransformer subnetworks.

Training-free scores supply our cheapest estimator tier and set expectations for it. LPZero evolves symbolic scores for BERT and GPT-2. TF-TAS designs attention-aware scores for vision Transformers, after showing that proxies built for convolutional networks fail on attention. DisWOT scores candidate students by their similarity to the teacher at initialization, but only for vision CNNs. EZNAS concedes that such scores discriminate poorly within the top 10% of candidates. That is precisely the regime where a translation-student decision is made, so we treat training-free scores as a filter, not a selector.

Research Program

We define a search space restricted to configurations Marian can run in int8 with shortlists. The varied dimensions are encoder depth, decoder depth, embedding and feed-forward widths, attention head count, and shortlist size. The space includes the TranslateLocally and OPUS-MT tiny configurations as members. Every candidate in the space is compiled in Marian with random weights and timed on two or three consumer CPUs, one with AVX-512 and one without. We measure throughput on the WNGT 2020 efficiency set and single-segment latency on short, translation-tool-length inputs. This gives exact, per-device latency for the whole space at negligible cost.

Quality estimation proceeds in stages. Within a latency budget, candidates are first filtered by training-free scores: an LPZero-style or DSS-style score, and a DisWOT-style similarity between student and OPUS-MT teacher encoder states, adapted to encoder-decoder models. Survivors receive short distillation runs from the OPUS-MT teacher, in the budgeted-estimation style of Zheng et al. Survivors of that stage then receive a simulated desktop adaptation. That adaptation is one epoch of CPU fine-tuning, following the OPUS-CAT recipe, on a held-out domain sample standing in for a translation memory. We allocate compute across the stages with successive halving, the scheme already used as progressive hurdles in The Evolved Transformer. The finalists are then fully distilled.

To measure how good each estimator is, we build a ground-truth pool of roughly 60 to 100 students. Each is trained to convergence and adapted on several domains. On this pool we report Kendall's tau and, more importantly, top-decile regret: the BLEU lost by trusting the estimator's top pick instead of the true best.

Baselines

The naive reference is doing nothing: the published TranslateLocally English-German student "tiny11." It reports 41.8 BLEU on WMT19 English-German at 15MB and 7350 words per second on a MacBook Pro 16" 2019, per TranslateLocally. We will retrain it with our teacher and data so that it differs from the searched students only in shape. We then apply the same one-epoch fine-tuning to it. We found no reported post-fine-tuning in-domain BLEU for OPUS-CAT or TranslateLocally students on Lacuna, so that number must be produced here.

The strongest practical competitor is a hand-designed grid, and it is a genuine threat. It consists of a dozen-odd sensible depth and width variants around tiny11, each fully distilled. We give it exactly the total GPU-hours our search consumes, including the ground-truth pool used for tuning, and select its winner by the same adapted-quality criterion. Beating the grid means a higher post-adaptation in-domain BLEU at the same measured latency, by more than the seed-to-seed spread, averaged over domains.

The strongest existing search method is HAT-style search run on our space. It trains a weight-shared SuperTransformer and uses a latency predictor fitted to our Marian measurements, under the same compute budget. This comparison tests both the direct-measurement choice and the standalone-short-run choice against weight sharing.

The ablation that isolates our key ingredient runs the identical staged search with the adaptation stage removed, selecting on generic WMT quality only. The gap between this search and the full search, measured on post-adaptation quality, is the value of searching for fine-tunability. A second ablation drops the training-free stage to measure what that stage saves.

Why not just…?

Why not just grid-search a few hand-designed students? In a small, engine-constrained space this may work as well as search. HAT argues that hardware-dependent bottlenecks make uniform scaling suboptimal, but it did not test against an equal-compute grid of the kind we propose. Our budget-matched grid baseline settles this directly. If the grid wins, we report that search is not worth its compute for local-first students, and we narrow the contribution to the rank-flip finding.

Why not just use HAT or SpeedLimit with a Marian latency predictor? Those methods optimize generic quality. The generic-objective ablation shows whether that objective picks different students than post-adaptation quality. If the two rankings agree, their objective is sufficient. If they disagree, their objective is misaligned with what translators actually use. We also expect their learned predictors to add error without saving time, since measuring an untrained int8 network directly is exact and cheap.

Why not just rely on training-free scores throughout? EZNAS reports that such scores are unreliable among the top 10%. None of LPZero, TF-TAS or DisWOT has been tested on encoder-decoder translation. Our ground-truth pool measures their top-decile regret directly. If that regret is near zero, the later stages can be removed.

Why not just fine-tune only part of a fixed student, such as selected layers or added adapters? This is a plausible way to get more out of one CPU epoch without changing the architecture, and no evidence in our sources rules it out. We therefore include partial-layer fine-tuning of tiny11 as an extra reference point under the same CPU time. It is also orthogonal to our proposal: the searched students can be fine-tuned the same way, and we will check whether the architecture gain survives that change.

Proposed Experiments and Decisive Checks

We will use English-German and one medium-resource pair covered by OPUS-MT teachers. Generic quality is measured on WMT19. Adaptation targets are several OPUS domain subcorpora, such as IT, medical and software localization, as in the domains used by He et al.. Tatoeba serves as the out-of-domain check that OPUS-CAT uses. Metrics are BLEU before and after one-epoch CPU fine-tuning, wall-clock fine-tuning time on the laptop, int8 words per second and per-segment latency in Marian, and total search GPU-hours.

The first and decisive check is on the ground-truth pool. We measure the Kendall's tau between generic and post-adaptation rankings, and the top-decile regret of selecting by generic quality. If the regret is under roughly half a BLEU point, the fine-tunability objective is dropped. The second check is estimator fidelity: the regret of each stage as a function of its cost, which yields a cost-versus-reliability curve for seq2seq students. The third check is the head-to-head against the budget-matched grid and the HAT-style search at two or three latency budgets on each CPU. The last reports whether desktop latency rankings transfer across CPUs, which determines whether a single searched student can ship to all users or must be searched per device.