Lune

ICLR2026Top-tier venue

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 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Graph Neural Networks for Learning Equivariant Representations of Neural Networks cites Equivariant Architectures for Learning in Deep Weight Spaces
  • Graph Neural Networks for Learning Equivariant Representations of Neural Networks cites Self-Supervised Representation Learning on Neural Network Weights for Model Characteristic Prediction
  • Equivariant Architectures for Learning in Deep Weight Spaces cites Self-Supervised Representation Learning on Neural Network Weights for Model Characteristic Prediction
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on16

  1. Continual learning with hypernetworksJohannes von Oswald, Christian Henning, João Sacramento, Benjamin F. GreweICLR 2020 · 412 citations
  2. The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural NetworksZiqian Zhong, Ziming Liu, Max Tegmark, Jacob AndreasNeurIPS 2023 · 181 citations
  3. Equivariant Architectures for Learning in Deep Weight SpacesAviv Navon, Aviv Shamsian, Idan Achituve, Ethan Fetaya et al.ICML 2023 · 101 citations
  4. Self-Supervised Representation Learning on Neural Network Weights for Model Characteristic PredictionKonstantin Schürholt, Dimche Kostadinov, Damian BorthNeurIPS 2021 · 69 citations
  5. Graph Neural Networks for Learning Equivariant Representations of Neural NetworksMiltiadis Kofinas, Boris Knyazev, Yan Zhang, Yunlu Chen et al.ICLR 2024 · 57 citations

Related papers

  1. Graph Metanetworks for Processing Diverse Neural ArchitecturesDerek Lim, Haggai Maron, Marc T. Law, Jonathan Lorraine et al.ICLR 2024 · 47 citations
  2. NNiT: Width-Agnostic Neural Network Generation with Structurally Aligned Weight SpacesJiwoo Kim, Swarajh Mehta, Hao-Lun Hsu, Hyunwoo Ryu et al.ICML 2026
  3. Scale Equivariant Graph MetanetworksIoannis Kalogeropoulos, Giorgos Bouritsas, Yannis PanagakisNeurIPS 2024 · 24 citations
  4. A Graph Meta-Network for Learning on Kolmogorov–Arnold NetworksGuy Bar-Shalom, Ami Tavory, Itay Evron, Maya Bechler-Speicher et al.ICLR 2026 · 1 citation
  5. MLDGG: Meta-Learning for Domain Generalization on GraphsQin Tian, Chen Zhao, Minglai Shao, Wenjun Wang et al.KDD 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines