Research workflows for testing when reasoning, retrieval, quality estimation, and iterative refinement improve multilingual machine translation—and when they fail.
The project compares controlled translation conditions using the same source sentences and models. Its retrieval condition uses a held-out translation memory indexed with LaBSE embeddings and FAISS. Its refinement study routes low-confidence translations through another revision step using either model self-critique or COMET-KIWI quality estimation.
- Retrieval-augmented translation with FAISS and multilingual LaBSE embeddings.
- Four controlled conditions: direct translation, multi-step reasoning, retrieval, and reasoning plus retrieval.
- Conditional routing based on external quality-estimation thresholds.
- Iterative translate → estimate → refine workflows with early freezing of acceptable translations.
- COMET, COMET-KIWI, and chrF evaluation with paired bootstrap comparisons.
- Reproducible WMT/FLORES+ sampling, prompt traces, cached outputs, and SLURM execution.
flowchart LR
A[WMT or FLORES+ source] --> B{Condition}
B --> C[Direct translation]
B --> D[Reasoning chain]
B --> E[FAISS + LaBSE retrieval]
B --> F[Reasoning + retrieval]
C --> G[Translation]
D --> G
E --> G
F --> G
G --> H{QE above threshold?}
H -- yes --> I[Freeze result]
H -- no --> J[Critique and refine]
J --> H
I --> K[COMET / COMET-KIWI / chrF]
The tools and routes are ordinary Python components. The experiments do not use LangChain, LangGraph, AutoGen, CrewAI, autonomous external-tool selection, or long-term user memory.
In the Phase 3 controlled comparison, retrieval without a reasoning chain (l1_tool) was the strongest condition on both English→German and English→Hausa across COMET, COMET-KIWI, and chrF. Multi-turn reasoning frequently degraded with Aya-101 because the encoder-decoder model was not conversation-tuned; the result is evidence for retrieval in this setup, not a general claim that reasoning harms translation.
| Pair | Baseline COMET | Retrieval COMET | Baseline chrF | Retrieval chrF |
|---|---|---|---|---|
| en→de | 0.821 | 0.843 | 53.3 | 59.5 |
| en→ha | 0.762 | 0.780 | 42.2 | 45.5 |
See results/phase_3_summary.md for the complete experiment, significance tests, and limitations. Later smoke tests in results/phase_6_summary.md show that target-language pretraining exposure can impose a generation floor before an agentic comparison is meaningful.
src/agentic_mt/
pipelines/ controlled translation and FAISS retrieval conditions
refinement/ critique/QE routing and iterative refinement
triggering/ source-feature extraction and trigger modeling
qe/ QE-versus-human-judgment analysis
configs/ experiment configurations and schema
scripts/ SLURM launchers and analysis utilities
results/ compact phase summaries and selected evidence
reports/ research report source and figures
tests/ offline regression tests
Large datasets, checkpoints, prompt logs, and per-run outputs are intentionally excluded.
Python 3.10 is recommended:
uv syncSome experiments depend on a local AmanaMT checkout containing cached metric scores. Set its location before running the QE study:
export MQMBENCH_ROOT=/path/to/amana-mtRun the four-condition translation study:
uv run python -m agentic_mt.pipelines.run_experiment \
--config configs/pipelines_l1_conditions.yaml \
--pair en-ha \
--generateRun conditional iterative refinement:
uv run python -m agentic_mt.refinement.run_experiment \
--config configs/refinement_tear.yaml \
--generateConfiguration conventions are documented in configs/schema.md. Cluster launchers live under scripts/.
The lightweight tests avoid model downloads and GPUs:
PYTHONPATH=src pytest- Several studies use small, deliberately controlled samples rather than production traffic.
- Retrieval quality and refinement decisions depend on pretrained LaBSE and COMET-family models.
- Phase 3's multi-turn conditions are confounded by Aya-101's weak conversation behavior.
- Phase 6 contains only five language points and supports a generation-floor observation, not a universal scaling curve.
MIT. Dataset and model artifacts remain subject to their original licenses.