MetaFORGE:面向并行计算自动代码生成的元学习优化框架
MetaFORGE: A Meta-Learning Framework for Harness Optimization in Automated Code Generation for Parallel Computing
AI 导读
MetaFORGE 是一个以执行结果为依据的元学习框架,通过整合正确性测试、编译器诊断、静态分析、运行时测量和 rank 级负载不均衡画像,迭代优化用于 MPI C 代码生成的自然语言技能规范。在 6 个 MPI 任务和 3 种工作负载规模上,其静态分析质量、运行时和负载均衡均优于零样本生成,普遍超过 TextGrad 迭代基线,且优化知识在外部记忆与技能规范中持续保留。
正文 · 原文
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.
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.33119 [cs.AI] |
| (or arXiv:2611.33119v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2611.33119 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Scott Piersall [view email]
[v1]
Tue, 24 Nov 2026 18:49:19 UTC (425 KB)
来源:arXiv cs.AI · arxiv.org