Easing Optimization Paths: a Circuit Perspective
Ambroise Odonnat, Wassim Bouaziz, Vivien Cabannes
TL;DR
The paper addresses understanding how gradient descent navigates internal computations in deep networks by adopting a circuit perspective from mechanistic interpretability. It demonstrates this in a controlled sparse modular addition task over $\mathbb{F}_p$ using a one-layer Transformer with cross-attention, showing that updates reinforce useful circuits while pruning spurious ones. A key finding is that learning proceeds through the emergence of sub-circuits that perform intermediate steps (e.g., modular sums before final modulo), and curriculum learning or careful data curation can expose and compose these sub-circuits to achieve generalization rather than memorization. These insights suggest practical strategies for efficient training and reliability in large models, with code at the authors' GitHub repository.
Abstract
Gradient descent is the method of choice for training large artificial intelligence systems. As these systems become larger, a better understanding of the mechanisms behind gradient training would allow us to alleviate compute costs and help steer these systems away from harmful behaviors. To that end, we suggest utilizing the circuit perspective brought forward by mechanistic interpretability. After laying out our intuition, we illustrate how it enables us to design a curriculum for efficient learning in a controlled setting. The code is available at \url{https://github.com/facebookresearch/pal}.
