mlsanityData to 14 Oct 2026

Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translation

arXiv 2609.15381 ↗First posted 14 Sep 2026cs.SEcited by 0

On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks

Abstract (arXiv)

C-to-Rust translation remains challenging due to the substantial semantic gap between the two languages. Recent experience-enhanced LLM translators improve translation quality by learning reusable insights from prior failures and repairs. Yet learned insights do not automatically constitute reusable translation knowledge: derived from sparse, program-specific traces, they often contain missing conditions, narrow applicability boundaries, or overlooked corner cases. This limits their robustness and generalizability in new translation scenarios. We present TRAIL, an adversarial agentic learning framework for robust C-to-Rust translation. TRAIL employs two collaborating agents: a Translator that derives candidate insights from translation failures and accepted repairs, and a Challenger that actively searches for weaknesses, gaps, and boundary cases through adversarial challenges. To improve the robustness of individual insights and the completeness of insight collections, TRAIL performs adversarial learning at two levels. Individual-insight adversarial learning repeatedly stress-tests each insight to refine its applicability conditions and constraints, while compositional insight adversarial learning strengthens groups of related insights by exposing conflicts, gaps, and uncovered corner cases. By challenging insights and their compositions with executable counterexamples, TRAIL transforms trace-specific experience into robust, reusable, and generalizable translation knowledge. We evaluate TRAIL on two project-level benchmarks, CRUST-Bench and SmartC2Rust-Bench. Compared with the strongest LLM-based baseline, TRAIL achieves average relative improvements of 23.1% in syntax accuracy and 15.9% in semantic accuracy. Furthermore, the adversarially refined insights transfer effectively across benchmarks, demonstrating strong generalizability across diverse C-to-Rust translation tasks.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 39 of its 55 references that are in the map. First posted on arXiv 14 Sep 2026.

Builds on

39 of 55 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025Get Experience from Practice: LLM Agents with Record & Replay23 May
  2. 2024AutoGuide: Automated Generation and Selection of Context-Aware Guidelines for Large Language Model Agents13 Mar
  3. 2023ExpeL: LLM Agents Are Experiential Learners20 Aug

Other references · 36

  1. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  2. 2024Agent Workflow Memorycited by 383
  3. 2025Agent KB: Leveraging Cross-Domain Experience for Agentic Problem Solvingcited by 94
  4. 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 65
  5. 2024Towards Translating Real-World Code with LLMs: A Study of Translating to Rustcited by 35
  6. 2025Pruning the Unsurprising: Efficient LLM Reasoning via First-Token Surprisalcited by 32
  7. 2025CRUST-Bench: A Comprehensive Benchmark for C-to-safe-Rust Transpilationcited by 19
  8. 2025EvoC2Rust: A Skeleton-guided Framework for Project-Level C-to-Rust Translationcited by 19
  9. 2025C2SaferRust: Transforming C Projects into Safer Rust with NeuroSymbolic Techniquescited by 18
  10. 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
  11. 2026GlimpRouter: Efficient Collaborative Inference by Glimpsing One Token of Thoughtscited by 17
  12. 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysiscited by 16
24 more
  1. 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agentscited by 15
  2. 2023Ownership guided C to Rust translationcited by 13
  3. 2025RustMap: Towards Project-Scale C-to-Rust Migration via Program Analysis and LLMcited by 10
  4. 2025SACTOR: LLM-Driven Correct and Idiomatic C to Rust Translation with Static Analysis and FFI-Based Verificationcited by 9
  5. 2026Dockerless: Environment-Free Program Verifier for Coding Agentscited by 9
  6. 2024To Tag, or Not to Tag: Translating C's Unions to Rust's Tagged Unionscited by 8
  7. 2024Translating C To Rust: Lessons from a User Studycited by 8
  8. 2025SafeTrans: LLM-assisted Transpilation from C to Rustcited by 8
  9. 2024RustRepoTrans: Repository-level Code Translation Benchmark Targeting Rustcited by 6
  10. 2025Integrating Rules and Semantics for LLM-Based C-to-Rust Translationcited by 6
  11. 2025Translating Large-Scale C Repositories to Idiomatic Rustcited by 6
  12. 2023Concrat: An Automatic C-to-Rust Lock API Translator for Concurrent Programscited by 5
  13. 2024SmartC2Rust: Iterative, Feedback-Driven C-to-Rust Translation via Large Language Models for Safety and Equivalencecited by 5
  14. 2025Forcrat: Automatic I/O API Translation from C to Rust via Origin and Capability Analysiscited by 5
  15. 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rustcited by 4
  16. 2025Project-Level C-to-Rust Translation via Pointer Knowledge Graphscited by 3
  17. 2025RustAssure: Differential Symbolic Testing for LLM-Transpiled C-to-Rust Codecited by 2
  18. 2026ENCRUST: Encapsulated Substitution and Agentic Refinement on a Live Scaffold for Safe C-to-Rust Translationcited by 2
  19. 2026Code Quality Analysis of Translations from C to Rustcited by 1
  20. 2026C2RustXW: Program-Structure-Aware C-to-Rust Translation via Program Analysis and LLMcited by 1
  21. 2026Dependency-Guided Repository-Level C-to-Rust Translation with Reinforcement Alignmentcited by 1
  22. 2026ORBIT: Guided Agentic Orchestration for Autonomous C-to-Rust Transpilationcited by 1
  23. 2026&inator: Correct, Precise C-to-Rust Interface Translationcited by 1
  24. 2026ParaTempo: Efficient Parallel Reasoning via Temporal Confidencecited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Adversarial Agent Collaboration for Correctness Improvements of C to Safe Rust Translation
  2. 2026Translate-R1: Cost-Aware Translation Tool Use via Reinforcement Learning
  3. 2026Generating Adversarial Texts for Machine Translation via GRPO
  4. 2026Agentic AI Translate: An Agentic Translator Prototype for Translation as Communication Design
  5. 2026Towards Reliable C-to-Rust Translation with Rule-Guided Reasoning and Reinforcement Learning
  6. 2025RIVAL: Reinforcement Learning with Iterative and Adversarial Optimization for Machine Translation
  7. 2026Improving Low-Resource Machine Translation via Round-Trip Reinforcement Learning
  8. 2026Mending the Holes: Mitigating Reward Hacking in Reinforcement Learning for Multilingual Translation