Metraipolis › archive › dc_5085411c9a8c
Entropy-based Code Adversarial Translation for Real-world Repository Migration — arXiv:2608.09273
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.09273
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T09:01:06.810Z
- SHA-256 of the archived text
9d57180eed367ad8b9ce129c6ceb644f0ad4657103a5ab8198abcc6f32aa78c0- Stable URL of this page
https://metraipolis.com/documento/dc_5085411c9a8c
How to cite
Entropy-based Code Adversarial Translation for Real-world Repository Migration — arXiv:2608.09273 — arXiv (en), https://arxiv.org/abs/2608.09273 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_5085411c9a8c (Metraipolis archive dc_5085411c9a8c, sha256 9d57180eed367ad8b9ce129c6ceb644f0ad4657103a5ab8198abcc6f32aa78c0)
BibTeX
@misc{dc5085411c9a8c,
title = {Entropy-based Code Adversarial Translation for Real-world Repository Migration — arXiv:2608.09273},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.09273},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_5085411c9a8c; sha256 9d57180eed367ad8b9ce129c6ceb644f0ad4657103a5ab8198abcc6f32aa78c0},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.09273. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
LLMs have demonstrated strong capabilities in code generation and automated program repair, but migrating an entire repository rarely produces a runnable application because long-horizon translation challenges LLM-based agents' ability to maintain repository-level migration objectives. In this work, we propose Entropy-based Code Adversarial Translation (ECAT), a multi-agent framework for automated Android-to-HarmonyOS repository migration. ECAT formulates repository migration as adversarial entropy minimization through a generator-discriminator architecture. The discriminator measures migration quality using a unified metric called Code Entropy and produces text gradients that specify both file-level generation directives and the skills needed to execute them. Guided by these optimization signals, the generator iteratively updates the repository, and each update is accepted only if it reduces Code Entropy. Repeated generator--discriminator interactions progressively drive the migration from an initial template toward a functionally complete HarmonyOS repository. Successful low-entropy trajectories are further distilled into a self-evolving memory tree, enabling transferable migration knowledge across repositories. We also introduce A2H-RepoBench, the first real-world benchmark for Android-to-HarmonyOS repository migration, covering applications from tens of thousands to hundreds of thousands of lines of code. Evaluated by node alignment and an agent-based functional judge, ECAT achieves 74.7% overall migration quality and consistently outperforms existing agent-based methods across repositories of different scales. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-11 in cs.SE). Categorie arXiv: Artificial Intelligence (cs.AI) ; Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2608.09273 — 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-19T09:00:31.520Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).