ICLR2026
Structure-Aware Graph Hypernetworks for Neural Program Synthesis
Wenhao Li, Yudong Xu, Elias Boutros Khalil, Scott Sanner
Abstract
We study the neural program synthesis of function families through the lens of meta-learning with hypernetworks. Given a user intent , a meta-learner produces a full weight set for a target neural network with fixed architecture , and the instantiated network realizes the behavior intended for . Classical hypernetworks typically and emit a flat list of weights; as a consequence, they fail to account for —many distinct parameterizations of implement the same function—so equivalent solutions are treated as different targets, fragmenting supervision and hurting out-of-distribution generalization. To address this, we propose , a hypernetwork that constructs a from the target architecture and applies message passing with parameter-tied encoders and decoders. This design reduces the search space during learning by collapsing equivalent classes of target networks, without loss of expressivity. Empirically, across modular arithmetic (-), array operations (-), and inverse-rule tasks from 1D-ARC, substantially improves learning and compared to classic hypernetworks and direct baselines. Mechanistic analyses reveal : on - the synthesized Transformers recover the canonical clock representation and admit a compact closed-form map . These results demonstrate that structure-aware Meta-GNNs enable reliable generalization to , providing a critical advance for the nascent field of neural program synthesis.