Skip to content
Shazan Ansar
Back to selected work

Research, ICAI 2026, to appear in Springer CCIS

LLM post-editing for test-time domain adaptation

Keep the translation model frozen, let it draft, and have an LLM edit the draft for a specific domain. No retraining, and most of the fine-tuning gain.

Role
Co-author
Stack
Python, Hugging Face, NMT, LLMs, COMET, chrF, BLEU
  1. Source text
  2. Frozen NMT draft
  3. Domain-aware LLM edit
  4. Evaluation vs fine-tuned model
Gain recovered vs full fine-tuning
87–92%
Domains tested
4
Retraining needed
None

Problem

Translation models trained on general text get worse when they meet a new domain: medical notes, legal language, technical manuals. The usual fix is to fine-tune a copy of the model for each domain. That costs data, compute, and a deployment per domain.

Idea

Leave the translation model untouched. It produces a draft, and a large language model edits that draft with the target domain in mind. Adaptation happens at test time, in the editing step, instead of in the weights.

How it was tested

The frozen-model-plus-editor set-up was compared against a fully fine-tuned model on the same four domains.

Result

Across four domains, LLM post-editing recovered 87–92% of the improvement a fully fine-tuned model achieved, without any retraining.

Why it matters

For teams that can't maintain one fine-tuned model per domain, a frozen model plus an editor is a cheaper path that keeps most of the quality.

Co-authors

Dr. Benyamin Ahmadnia (CSUDH), Dr. Sahar Hooshmand (CSUDH), and Dr. Li Zhou (Harvard Medical School).

What I'd look at next

  • When does editing hurt? Separating real fixes from fluent rewrites that change meaning.
  • Cost and latency of the editing step compared with serving fine-tuned models.
  • This question is what led to my thesis, TRACE-MT, on measuring when added context actually helps.
Next projectClinical translation for English–Nepali