MetaFORGE:用元学习优化提示技能,提升 MPI 并行代码生成质量
MetaFORGE: A Meta-Learning Framework for Harness Optimization in Automated Code Generation for Parallel Computing
搞并行计算的可以看看:它把编译报错、运行时间和负载均衡数据喂回去自动改提示技能,在6个MPI任务上跑赢了TextGrad基线,gpt-4o也能用。做HPC或者想自动调prompt的人都用得上这个思路。
一篇arXiv论文提出MetaFORGE,一个面向MPI C代码生成的执行驱动元学习框架,在6个MPI任务、3种负载规模共18个配置上测试。该框架将正确性测试、编译器诊断、静态分析、运行时测量和rank级负载不均衡数据合并为标量奖励,驱动textual-gradient方式迭代优化持久化的自然语言技能规范,并通过外部记忆在多轮运行间蒸馏、检索已验证的优化知识。
实验结果显示,MetaFORGE在静态分析质量、运行时间和负载均衡上优于零样本生成,多数情况下超过TextGrad迭代基线;消融实验表明把优化模型降到gpt-4o仍保持优势,检索消融证实外部记忆带来的运行时收益一致。泄漏控制的held-out实验证明优化知识能持久保留在技能规范和外部记忆中。
对写高性能计算并行程序的工程师来说,这条路径说明提示词本身可以被程序化地自动优化,而不依赖人工调prompt。
MetaFORGE: A Meta-Learning Framework for Harness Optimization in Automated Code Generation for Parallel Computing
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.
本条情报归属 AITOP「论文」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:MetaFORGE、MPI、TextGrad、提示词工程,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Scott Piersall, Yang Gao, Shenyang Liu, Liqiang Wang),经 AITOP 多维评分管线结构化提炼。