potentialpaper

Structure-Aware Graph Hypernetworks for Neural Program Synthesis

Wenhao Li, Yudong Xu, Elias Boutros Khalil, Scott Sanner

ICLR 2026

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. We study the neural program synthesis of parameterized\textit{parameterized} function families through the lens of meta-learning with hypernetworks. Given a user intent UU, a meta-learner MϕM_{\phi} produces a full weight set θ^=Mϕ(U)\hat{\theta}=M_{\phi}(U) for a target neural network with fixed architecture SS, and the instantiated network mS,θ^(X)→Ym_{S,\hat{\theta}}(X)\to Y realizes the behavior intended for UU. Classical hypernetworks typically ignore the target network’s structure\textit{ignore the target network’s structure} and emit a flat list of weights; as a consequence, they fail to account for neuron-permutation symmetry\textit{neuron-permutation symmetry}—many distinct parameterizations of SS 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 Meta-GNN\textit{Meta-GNN}, a hypernetwork that constructs a neural graph\textit{neural graph} from the target architecture SS and applies structure-aware\textbf{structure-aware} 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 (AddMod\textit{AddMod}-pp), array operations (SumFirst\textit{SumFirst}-nn), and inverse-rule tasks from 1D-ARC, Meta-GNN\textit{Meta-GNN} substantially improves learning and out-of-distribution generalization\textbf{out-of-distribution generalization} compared to classic hypernetworks and direct (U,X)→Y(U,X)\to Y baselines. Mechanistic analyses reveal what is learned\textit{what is learned}: on AddMod\textit{AddMod}-pp the synthesized Transformers recover the canonical clock representation and admit a compact closed-form map U↦θU\mapsto\theta. These results demonstrate that structure-aware Meta-GNNs enable reliable generalization to unseen program parameterizations\textit{unseen program parameterizations}, providing a critical advance for the nascent field of neural program synthesis.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…