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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 9d7ab051-fa1d-485c-a3ed-567dba66a01aBuilds on16
- Continual learning with hypernetworksJohannes von Oswald, Christian Henning, João Sacramento, Benjamin F. GreweICLR 2020 · 412 citations
- The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural NetworksZiqian Zhong, Ziming Liu, Max Tegmark, Jacob AndreasNeurIPS 2023 · 181 citations
- Equivariant Architectures for Learning in Deep Weight SpacesAviv Navon, Aviv Shamsian, Idan Achituve, Ethan Fetaya et al.ICML 2023 · 101 citations
- Self-Supervised Representation Learning on Neural Network Weights for Model Characteristic PredictionKonstantin Schürholt, Dimche Kostadinov, Damian BorthNeurIPS 2021 · 69 citations
- 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
- Graph Metanetworks for Processing Diverse Neural ArchitecturesDerek Lim, Haggai Maron, Marc T. Law, Jonathan Lorraine et al.ICLR 2024 · 47 citations
- NNiT: Width-Agnostic Neural Network Generation with Structurally Aligned Weight SpacesJiwoo Kim, Swarajh Mehta, Hao-Lun Hsu, Hyunwoo Ryu et al.ICML 2026
- Scale Equivariant Graph MetanetworksIoannis Kalogeropoulos, Giorgos Bouritsas, Yannis PanagakisNeurIPS 2024 · 24 citations
- 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
- MLDGG: Meta-Learning for Domain Generalization on GraphsQin Tian, Chen Zhao, Minglai Shao, Wenjun Wang et al.KDD 2025 · 3 citations
