Metraipolis › archive › dc_aa6cf73c84e0

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

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.15381
License (as archived)
CC0-1.0
Archived
2026-10-16T00:31:03.772Z
SHA-256 of the archived text
fdbac21cf3bdc0cb6e85a8717fab1e2d8314576cc9fc661cee442ccb2c5fdc8d
Stable URL of this page
https://metraipolis.com/documento/dc_aa6cf73c84e0

How to cite

Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translation — arXiv:2609.15381 — arXiv (en), https://arxiv.org/abs/2609.15381 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_aa6cf73c84e0 (Metraipolis archive dc_aa6cf73c84e0, sha256 fdbac21cf3bdc0cb6e85a8717fab1e2d8314576cc9fc661cee442ccb2c5fdc8d)
BibTeX
@misc{dcaa6cf73c84e0,
  title = {Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translation — arXiv:2609.15381},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.15381},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_aa6cf73c84e0; sha256 fdbac21cf3bdc0cb6e85a8717fab1e2d8314576cc9fc661cee442ccb2c5fdc8d},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.15381. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-15 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2609.15381 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-16T00:12:31.104Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-15?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).