The research framework MetaFORGE improves the instructions used by language models to generate parallel MPI C programs. In tests covering six tasks and three workload sizes, it improved static-analysis quality, runtime, and load balance compared with generation without additional optimization. It also generally outperformed the evaluated TextGrad variant. The findings matter because they explore how execution results can be used to refine not just a model, but the instructions guiding its code generation.
MetaFORGE runs generated code and combines several signals into a reward: correctness tests, compiler diagnostics, static-analysis findings, runtime measurements, and profiles of load balance across MPI ranks. The framework uses this feedback to iteratively refine natural-language specifications. An external memory also stores optimization knowledge supported by rewards from earlier runs and retrieves it for new tasks.
Further ablations qualify the results: MetaFORGE retained its advantage over the comparison approach when its refinement model was limited to gpt-4o. Across 18 task-and-workload configurations, retrieved context consistently benefited runtime and broadly benefited static analysis and load balance. Controlled held-out and no-update experiments provide, according to the study, evidence that knowledge persists in both transferred specifications and external memory. The evaluation nevertheless covers six tasks and a specific test protocol; the abstract does not establish general superiority across other programs or deployment settings. The original source details the experiments and ablations: arXiv: MetaFORGE