Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Mohswalm545/Mohswalm545-Tri-Agent-Reinforcement-Learning-for-Low-Resource-English-Arabic-Translation

Domain:

natural language processing

Record type:

software
Creator:
Moh
Host:
# 🧠 STJ — Tri-Agent Reinforcement Learning for Low-Resource English→Arabic Translation This repository introduces **STJ**, a *Student–Teacher–Judge* (tri-agent) reinforcement learning framework that enables a model to **learn Arabic meaning, grammar, and fluency** through **self-play** — without large supervised datasets. --- ## 🔍 Overview **Core Idea:** Three interacting agents form a closed training loop: | Agent | Role | Goal | |--------|------|------| | **A (Student)** | Generates Arabic words or sentences. | Maximize correctness reward from the Judge. | | **B (Teacher / Adversary)** | Provides increasingly difficult or misleading English examples. | Minimize Student’s success rate. | | **C (Judge / Grounded Evaluator)** | Scores each translation based on accuracy, grammar, and fluency. | Provide stable, fair rewards (+1 / 0 / –1). | Figure: STJ Tri-Agent Reinforcement Learning System Training phases: 1. **Supervised Warm-Up:** A learns basic English→Arabic mappings from a bilingual lexicon. 2. **Reinforcement Phase:** A and B self-play while C evaluates correctness. 3. **Curriculum Growth:** Tasks scale from single words → phrases → sentences. --- ## ⚙️ Code Structure | File | Description | |------|--------------| | `teacher.py` | Adversarial teacher (B) — generates English words, adjusts difficulty, adds fakes. | | `student.py` | Simple baseline student (A). | | `student_rl.py` | RL-based student (A) — GRU policy trained with REINFORCE + imitation warm-up. | | `judge_translation.py` | Rule-based judge (C) for one-word translation. | | `judge.py` | Transformer-based judge (C) with multi-component rubric scoring. | | `env_rl.py` | RL environment connecting A, B, and C. | | `loop.py` | Main tri-agent training loop with logging. | --- ## 🧠 Conceptual Inspiration The **STJ** architecture combines: - *Knowledge distillation* (Hinton et al., 2015) - *Sequence-level RL* (Ranzato et al., 2016) - *Adversarial training* (Goodfellow et al., 2014) - *AI s …

Visit

github.com

Tasks

machine translation

Licenses

MIT

Similar

Improving Low-Resource Machine Translation via Round-Trip Reinforcement LearningLow-Resource Machine Translation for Moroccan ArabicDatasets for Low-Resource Machine Translation of Arabic DialectsSource-Grounded Semantic Reinforcement Learning for Low-Resource Target-Language GenerationKERLQA: Knowledge-Enhanced Reinforcement Learning for Question Answering in Low-resource LanguagesFine-Tuning mBART-50 for Akkadian-to-English Translation: A Transfer Learning Approach for Low-Resource

Improving Low-Resource Machine Translation via Round-Trip Reinforcement Learning

Low-resource machine translation (MT) has gained increasing attention as parallel data from low-reso

Low-Resource Machine Translation for Moroccan Arabic

Datasets for Low-Resource Machine Translation of Arabic Dialects

Low-resource Machine Translation recently gained a lot of popularity, and for certain languages, it

Source-Grounded Semantic Reinforcement Learning for Low-Resource Target-Language Generation

Low-resource target-language generation is often limited by scarce parallel data, while high-resourc

KERLQA: Knowledge-Enhanced Reinforcement Learning for Question Answering in Low-resource Languages

Question answering in low-resource languages faces critical challenges when models encounter questio

Fine-Tuning mBART-50 for Akkadian-to-English Translation: A Transfer Learning Approach for Low-Resource

Overview The research paper "Fine-Tuning mBART-50 for Akkadian-to-English Translation" by Frank Mor