MetaFORGE:面向并行计算自动代码生成的元学习框架,优化MPI C代码生成指令
MetaFORGE: A Meta-Learning Framework for Harness Optimization in Automated Code Generation for Parallel Computing
MetaFORGE是一个执行驱动的元学习框架,通过迭代优化持久化自然语言技能规范来提升MPI C代码生成质量。该框架将正确性测试、编译器诊断、静态分析、运行时测量和rank级负载不均衡画像整合为标量奖励,驱动文本梯度精炼,并借助外部记忆跨运行蒸馏检索优化知识。在6个MPI任务和3种负载规模上,其静态分析质量、运行时和负载均衡均优于零样本生成,且多数超过TextGrad迭代基线。
arXiv:2611.33119v1 Announce Type: new Abstract: Large language models (LLMs) can generate parallel programs, but their correctness and performance depend strongly on the instructions that guide generation. We present \textsc{MetaFORGE}, an execution-grounded meta-learning framework that iteratively optimizes persistent natural-language skill specifications for MPI C code generation. \textsc{MetaFORGE} combines correctness testing, compiler diagnostics, static-analysis findings, runtime measurements, and rank-level load-imbalance profiles into a scalar reward that drives textual-gradient refinement, while an external memory distills and retrieves reward-supported optimization knowledge across runs. Across six MPI tasks and three workload sizes, \textsc{MetaFORGE} improves static-analysis quality, runtime, and load balance relative to zero-shot generation and generally exceeds the evaluated \textsc{TextGrad} iterative baseline. A model-matched refinement ablation shows that the MetaFORGE advantage persists when its refinement model is reduced to \texttt{gpt-4o}. An expanded retrieval ablation across all 18 task--workload configurations shows consistent runtime benefit and broad static-analysis and load-balance benefit from retrieved context. Leakage-controlled held-out and zero-update experiments further provide evidence that optimization knowledge persists in both the transferred skill and external memory under the evaluated protocol.
来源:arXiv (AI + Vision + Imaging) · arxiv.org