ProNMT — English→German, without preceding context
Paper: Balancing Global Quality and Pronoun-Specific Feedback for Context-Aware Machine Translation
NLLB-200-distilled-600M fine-tuned with ProNMT reward-guided iterative self-training for English→German pronoun translation, from the paper Balancing Global Quality and Pronoun-Specific Feedback for Context-Aware Machine Translation. Code and data: https://github.com/Harshit2807161/ProNMT
This model is for the context-agnostic condition: the input is the current source sentence only.
Training
- Base model:
facebook/nllb-200-distilled-600M, no SFT stage. - Data: Europarl En–De sentences whose German reference contains er/sie/es (42,750 train).
- Each update: for 8 source sentences, sample up to 10 unique candidates; keep the candidate maximising
1.0 · QE + ProConf / 30(QE =wmt21-comet-qe-da; 30 ≈ average source length); take one supervised step on the kept candidates. - Optimiser Adafactor, learning rate 6e-6, gradient accumulation 16.
- The pronoun confidence is read at the generated pronoun's own decoding step.
Usage
from transformers import AutoModelForSeq2SeqLM, NllbTokenizerFast
repo = "satanicmangoes/pronmt-nllb-600m-en-de-no-context"
tokenizer = NllbTokenizerFast.from_pretrained(repo, src_lang="eng_Latn", tgt_lang="deu_Latn")
model = AutoModelForSeq2SeqLM.from_pretrained(repo)
src = 'He said it was too late, but she did not listen.'
inputs = tokenizer(src, return_tensors="pt")
out = model.generate(**inputs, forced_bos_token_id=tokenizer.convert_tokens_to_ids("deu_Latn"))
print(tokenizer.decode(out[0], skip_special_tokens=True))
License
CC-BY-NC-4.0, inherited from NLLB-200.