Skip to main content
QUICK REVIEW

[Paper Review] A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operations

Bilal Chughtai, Lawrence Chan|arXiv (Cornell University)|Feb 6, 2023
Neural Networks and ApplicationsComputer Science11 citations
TL;DR

The paper presents a group-theoretic algorithm (GCR) for how networks implement finite-group composition, reverse-engineers networks to show they learn this algorithm, and evaluates universality across architectures and groups with evidence for weak but not strong universality.

ABSTRACT

Universality is a key hypothesis in mechanistic interpretability -- that different models learn similar features and circuits when trained on similar tasks. In this work, we study the universality hypothesis by examining how small neural networks learn to implement group composition. We present a novel algorithm by which neural networks may implement composition for any finite group via mathematical representation theory. We then show that networks consistently learn this algorithm by reverse engineering model logits and weights, and confirm our understanding using ablations. By studying networks of differing architectures trained on various groups, we find mixed evidence for universality: using our algorithm, we can completely characterize the family of circuits and features that networks learn on this task, but for a given network the precise circuits learned -- as well as the order they develop -- are arbitrary.

Motivation & Objective

  • Investigate whether neural networks learn identical circuits across models when trained on similar group-composition tasks.
  • Develop and formalize a group composition algorithm using representation and character theory (GCR) that networks may implement.
  • Empirically reverse-engineer neural networks to determine if they implement the GCR algorithm via embeddings, activations, and unembedding weights.
  • Assess whether universality in mechanistic interpretability holds strongly (identical representations across models) or weakly (shared algorithm with model-specific representations).
  • Examine how different architectures (MLP and Transformer) and groups influence the learned representations and circuits.

Proposed method

  • Propose a general algorithm (GCR) that embeds group elements as matrices through a representation 5, multiplies them, and reads out logs via character traces.
  • Use equations from representation theory to justify that the argmax of logits corresponds to the correct group product ab, via 5(abc^{-1}) and character theory.
  • Train small networks (one hidden layer MLP and later Transformer) on finite groups G to perform group composition ab = c.
  • Reverse-engineer embeddings, unembeddings, and MLP activations to identify representation matrices 5(a), 5(b), and 5(ab) in network components.
  • Conduct ablations on weights and activations to test the dependence of performance on predicted GCR components.
  • Measure logit similarity to characters, project embeddings/unembeddings onto representation spaces, and verify sparsity and clustering of neurons by representation.

Experimental results

Research questions

  • RQ1Does training on finite-group composition lead networks to implement a common algorithm grounded in representation theory?
  • RQ2To what extent is universality of learned features and circuits observed across different architectures and groups (strong vs weak universality)?

Key findings

  • Networks consistently implement a group-composition algorithm based on representations, with logits aligning to characters of representations.
  • Embeddings, unembeddings, and activations are well-explained by a small, sparse set of representations (the key representations) across groups and architectures.
  • MLP neurons cluster by representation and compute rho(ab) within the hidden layer, and the final logits map linearly to tr(rho(ab)rho(c^{-1})) via the unembedding.
  • Ablations of the predicted GCR components degrade performance, while ablating non-predicted components often leaves performance unchanged, supporting the proposed algorithm.
  • Across seven groups and two architectures, networks learn a family of circuits implementing GCR, indicating weak universality but not strong universality, with different representations learned across seeds and models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.