Nested-Refinement Metamorphosis: Reflective Evolution for Efficient Optimization of Networking Problems

Shuhan Guo, Nan Yin, James Kwok, Quanming Yao


Abstract
Large Language Models (LLMs) excel in network algorithm design but suffer from inefficient iterative coding and high computational costs. Drawing inspiration from butterfly metamorphosis—where structured developmental phases (Phase I: larval nutrient accumulation → Phase II: pupal transformation) enable adaptive evolution—we propose Nested-Refinement Metamorphosis (NeRM). Building on this principle, we introduce Metamorphosis on Prompts (MoP) to iteratively refine task descriptions (e.g. latency / bandwidth constraints) and Metamorphosis on Algorithms (MoA) to generate more effective solutions (e.g. appropriate network processing architecture). Their nested refinement ensures task-algorithm alignment, systematically improving both task descriptions and algorithmic solutions for more efficient algorithm design. To further enhance efficiency, we incorporate predictor-assisted code evaluation, mimicking natural selection by filtering out weak candidates early and reducing computational costs. Experimental results on TSP (routing), MKP (resource allocation), and CVRP (service-network coordination) demonstrate that NeRM consistently outperforms state-of-the-art approaches in both performance and efficiency.
Anthology ID:
2025.findings-acl.895
Volume:
Findings of the Association for Computational Linguistics: ACL 2025
Month:
July
Year:
2025
Address:
Vienna, Austria
Editors:
Wanxiang Che, Joyce Nabende, Ekaterina Shutova, Mohammad Taher Pilehvar
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
17398–17429
Language:
URL:
https://preview.aclanthology.org/display_plenaries/2025.findings-acl.895/
DOI:
Bibkey:
Cite (ACL):
Shuhan Guo, Nan Yin, James Kwok, and Quanming Yao. 2025. Nested-Refinement Metamorphosis: Reflective Evolution for Efficient Optimization of Networking Problems. In Findings of the Association for Computational Linguistics: ACL 2025, pages 17398–17429, Vienna, Austria. Association for Computational Linguistics.
Cite (Informal):
Nested-Refinement Metamorphosis: Reflective Evolution for Efficient Optimization of Networking Problems (Guo et al., Findings 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/display_plenaries/2025.findings-acl.895.pdf