mlsanityData to 14 Oct 2026

Adversarial Agent Collaboration for Correctness Improvements of C to Safe Rust Translation

arXiv 2510.03879 ↗First posted 4 Oct 2025cs.SE cs.AIcited by 3

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Translating C to memory-safe languages, like Rust, prevents critical memory safety vulnerabilities that are prevalent in legacy C software. Even with recent LLM-based and tool-augmented translators, the resulting Rust code frequently diverges from the C source on inputs absent from the test suite used during translation; this correctness gap on unseen inputs remains a dominant obstacle to reliable, automatic C-to-Rust translation. In this work, we present ACToR (Adversarial C To Rust), a simple LLM-agent loop that closes this gap by adversarially searching for inputs on which the translation diverges from the C source, and using them to drive subsequent refinements. Inspired by GANs, ACToR pits a translator agent against a discriminator agent that collaborate to iteratively refine the Rust translation. On each iteration, the translator agent synthesizes and refines a Rust translation to pass an existing suite of tests, and then the discriminator agent finds new failing tests by constructing and refining a differential fuzzer over the C and Rust binaries. Across 63 real-world command-line C utilities, with an average size of 473 lines of code and the longest reaching thousands of lines in size, ACToR achieves over 90% test pass rate with zero human intervention. The improvement holds across seven agent-LLM configurations on our micro-benchmark, indicating that the loop is largely independent of the choice of underlying translator and LLM. Compared to a non-adversarial, coverage-driven test-generation baseline, ACToR improves correctness by up to 36.7%. When applied on top of one recent translator, C2SaferRust, ACToR further improves the validation pass rate by 16.6%.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 36 of its 61 references that are in the map. First posted on arXiv 4 Oct 2025.

Builds on

36 of 61 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May
  2. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation16 Aug
  3. 2023ChatDev: Communicative Agents for Software Development16 Jul
  4. 2023Self-collaboration Code Generation via ChatGPT15 Apr

Other references · 32

  1. 2022Generative Adversarial Networkscited by 5,627
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  3. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  4. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
  5. 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,784
  6. 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 1,011
  7. 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
  8. 2023ChatEval: Towards Better LLM-based Evaluators through Multi-Agent Debatecited by 742
  9. 2022CodeT: Code Generation with Generated Testscited by 384
  10. 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 324
  11. 2023A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaborationcited by 290
  12. 2020Unsupervised Translation of Programming Languagescited by 263
20 more
  1. 2024LLM Critics Help Catch LLM Bugscited by 147
  2. 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
  3. 2024Self-play with Execution Feedback: Improving Instruction-following Capabilities of Large Language Modelscited by 73
  4. 2024Towards Translating Real-World Code with LLMs: A Study of Translating to Rustcited by 35
  5. 2024VERT: Verified Equivalent Rust Transpilation with Large Language Models as Few-Shot Learnerscited by 20
  6. 2025CRUST-Bench: A Comprehensive Benchmark for C-to-safe-Rust Transpilationcited by 19
  7. 2025EvoC2Rust: A Skeleton-guided Framework for Project-Level C-to-Rust Translationcited by 19
  8. 2025C2SaferRust: Transforming C Projects into Safer Rust with NeuroSymbolic Techniquescited by 18
  9. 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysiscited by 16
  10. 2025ELFuzz: Efficient Input Generation via LLM-driven Synthesis Over Fuzzer Spacecited by 15
  11. 2024LLAMAFUZZ: Large Language Model Enhanced Greybox Fuzzingcited by 14
  12. 2023Ownership guided C to Rust translationcited by 13
  13. 2025RustMap: Towards Project-Scale C-to-Rust Migration via Program Analysis and LLMcited by 10
  14. 2024To Tag, or Not to Tag: Translating C's Unions to Rust's Tagged Unionscited by 8
  15. 2024Translating C To Rust: Lessons from a User Studycited by 8
  16. 2025SafeTrans: LLM-assisted Transpilation from C to Rustcited by 8
  17. 2025Integrating Rules and Semantics for LLM-Based C-to-Rust Translationcited by 6
  18. 2024SmartC2Rust: Iterative, Feedback-Driven C-to-Rust Translation via Large Language Models for Safety and Equivalencecited by 5
  19. 2025Forcrat: Automatic I/O API Translation from C to Rust via Origin and Capability Analysiscited by 5
  20. 2025MatchFixAgent: Language-Agnostic Autonomous Repository-Level Code Translation Validation and Repaircited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translation
  2. 2026Towards Reliable C-to-Rust Translation with Rule-Guided Reasoning and Reinforcement Learning
  3. 2026CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agents
  4. 2026ENCRUST: Encapsulated Substitution and Agentic Refinement on a Live Scaffold for Safe C-to-Rust Translation
  5. 2026Fine-Tuning Qwen3-27B for C-to-Rust Code Translation: A Three-Stage Curriculum of Pretraining, Debugging-Aware SFT, and Task-Specific SFT
  6. 2026RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
  7. 2026LLM4C2Rust: Large Language Models for Automated Memory-Safe Code Transpilation ↗
  8. 2026Documentation-Guided Agentic Codebase Migration from C to Rust