MetaFORGE: A Meta-Learning Framework for Harness Optimization in Automated Code Generation for Parallel Computing
MetaFORGE refined reusable skills for MPI C generation. On six tasks at three workload sizes, it improved static-analysis results, runtime, and load balance over zero-shot generation.
Across **six MPI tasks at three workload sizes**, MetaFORGE improved static-analysis results, runtime, and load balance over zero-shot generation. It also generally outperformed **TextGrad**.
MetaFORGE combines correctness tests, compiler diagnostics, static analysis, runtime, and load imbalance across MPI ranks into a **single reward**. That score guides revisions to the skill text, while external memory retrieves lessons from earlier runs.
Across **six MPI tasks at three workload sizes**, MetaFORGE improved static-analysis results, runtime, and load balance over zero-shot generation. It also generally outperformed **TextGrad**. MetaFORGE combines correctness tests, compiler diagnostics, static analysis, runtime, and load imbalance across MPI ranks into a **single reward**. That score guides revisions to the skill text, while external memory retrieves lessons from earlier runs. Retrieved context improved runtime in **all 18 tested configurations**. Evidence that the skill and memory retained useful lessons comes from the authors’ leakage-controlled tests on held-out cases and runs with updates disabled.
MetaFORGE brings measured skill maintenance and memory retrieval into MPI code generation. Combining correctness and performance in the reward lets the harness assess skill revisions against both goals. Held-out and update-disabled runs give the case for reusing lessons stronger footing in the tested MPI workloads.