Skip to content

Graph Metanetworks for Transformer Based Language Models

Oct 2026 · 0 citations · 53 references
Computer Science

TL;DR

A graph-based approach that is both symmetry-aware and applicable across depths and widths is proposed, and two new transformer-population datasets with novel tasks, such as training-corpus prediction and fine-tuning detection, are introduced.

Abstract

Weight-space learning treats the weights of neural networks as data, processed by other models called metanetworks. A key challenge is that different weights can realize the same function, related by a group of symmetries the metanetwork should respect. While symmetry-aware metanetworks for simple architectures such as MLPs are well developed, a comprehensive treatment of transformers, and in particular transformer-based language models, is still missing. Importantly, their weight space has a richer symmetry group: beyond neuron permutations, attention introduces continuous general-linear symmetries of the attention matrices and permutations of entire heads. Existing methods for transformer weights either capture only part of these symmetries or are restricted to a single, fixed architecture, and none accounts for language-model-specific components such as the token embeddings. Building on graph metanetworks, we propose a graph-based approach that is both symmetry-aware and applicable across depths and widths. We formalize a weight-space symmetry group of complete decoder-only language models and provide a graph construction that is invariant to it. We further introduce two new transformer-population datasets with novel tasks, such as training-corpus prediction and fine-tuning detection, on which our approach notably outperforms existing baselines.

View source

Similar papers

#machine learning Preprint Oct 2026

CrossGMN: Graph Metanetworks for Cross-Architecture Weight-Space Transformations

Weight-space networks operate directly on parameters of other neural networks, enabling tasks such as predicting model properties, editing trained models, and generating weights. Weight-space symmetries such as neuron permutations make equivariance a key design principle. However, existing equivariant weight-space arch...

A. Dayan, Yam Eitan, Haggai Maron · 0 citations
#machine learning Preprint Sep 2026

Transferable Graph Metanetworks

This work proposes Transferable Graph Metanetworks, which extends the graph metanetwork paradigm with a set of modifications that make performance transferable across input networks of different widths, and proves size-generalization guarantees for the model on $\mu$P-trained inputs.

Yu-Xin Ma, A. Dayan, Yam Eitan et al. · 1 citation
#machine learning Preprint Oct 2026

Interfaces and Modules: A Scalable Representation for Weight-Space Learning across Architectures

A typed graph organized around shared coordinate-permutation actions, which outperforms the evaluated baselines at ranking networks within unseen architectures, including architectures larger than those used for training, while using substantially less memory.

Michał Kozyra, M. Bronstein · 1 citation
#artificial intelligence Preprint Oct 2026

Scaling Graph Reasoning in Language Models with Learnable Graph Positional Encodings

Solving reasoning tasks supported on graphs typically requires providing a Language Reasoning Model (LRM) with a serialized description of the graph. This approach results in the input length growing with the number of edges, which limits the size of the problems that can be solved. Furthermore, even when graphs fit in...

Javier Porras-Valenzuela, Arushi Arora, Alejandro Ribeiro · 0 citations
#machine learning Preprint Oct 2026

Global Communication or Graph-Specific Memory?

Scalable Graph Transformers are commonly trained and evaluated on static large graphs in a transductive setup. Many scalable Graph Transformer components can be formulated as a constant-size shared memory, similar to virtual nodes, providing compressed information about the whole graph. The counterpart of these models...

Hamed Shirzad, Danica J. Sutherland · 0 citations
#machine learning Preprint Nov 2026

Improving fine-grained expressivity of graph neural networks

This thesis investigates the expressive power of neural networks for structured data, focusing on graph neural networks and symmetry-aware architectures. We present four main contributions. First, we characterize the generic expressive power of geometric message-passing neural networks on sparse graphs and introduce EG...

Yonatan Sverdlov · 0 citations

Related blog posts

MIT News · Artificial Intelligence Nov 17, 2026

Learning the language of machine learning

By studying the computational foundations of language learning, Associate Professor Jacob Andreas builds intelligent systems that can communicate effectively with humans.

Microsoft Research Blog Nov 16, 2026

TokenEconomizer: Learning from Experience to Make AI Coding Agents More Efficient

AI coding agents are increasingly help developers fix bugs and build features largely on their own, but every interaction with their models consumes tokens. In each session, an agent sends instructions, tool descriptions, and session history to its model. Most efforts to reduce this cost focus on individual tasks. Yet developers return to the same […] The post TokenEconomizer: Learning from Experience to Make AI Coding Agents More Efficient appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.