cs.AINov 24, 2026

MetaFORGE: A Meta-Learning Framework for Harness Optimization in Automated Code Generation for Parallel Computing

Authors: Scott Piersall, Yang Gao, Shenyang Liu, Liqiang Wang

Organizations: Department of Computer Science, University of Central Florida, Orlando, FL, USA

Abstract

Large language models (LLMs) can generate parallel programs, but their correctness and performance depend strongly on the instructions that guide generation. We present MetaFORGE, an execution-grounded meta-learning framework that iteratively optimizes persistent natural-language skill specifications for MPI C code generation. 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, MetaFORGE improves static-analysis quality, runtime, and load balance relative to zero-shot generation and generally exceeds the evaluated TextGrad iterative baseline. A model-matched refinement ablation shows that the MetaFORGE advantage persists when its refinement model is reduced to 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.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. From Prompts to Performance: Evaluating LLMs for Task-based Parallel Code Generation

    Feb 24, 2026Linus Bantel, Moritz Strack, Alexander Strack +1Code GenerationLLM Code Generation

  2. PerfArena: Ranking LLMs by Code Performance

    Nov 13, 2026Rui Rua, Hailemariam Mersha, Joao Paulo Fernandes +1Code Generation EvaluationCode Generation Benchmarks

  3. CodeForge-MA: Execution-Verified Multi-Agent Learning with Language-Conditioned LoRA for Multilingual Code Generation

    Oct 4, 2026Zhizhou Gu, Xianting Wu, Siyu Gu +2RL for Code GenerationSynthetic Data Generation for Language Models