Mechanistic Mode Connectivity
Ekdeep Singh Lubana, Eric J. Bigelow, Robert P. Dick, David Krueger, Hidenori Tanaka
TL;DR
Mechanistic Mode Connectivity investigates how minimizers that rely on different predictive mechanisms relate in loss landscapes. The authors define mechanistic similarity via invariances to input transformations and show that lack of linear connectivity signals mechanistic dissimilarity, with naive fine-tuning potentially failing to change a model's reliance on spurious attributes. They introduce Connectivity-Based Fine-Tuning (CBFT), a sample-efficient method that uses a minimal clean dataset and barrier/invariance losses to alter a model's mechanisms, and validate it on synthetic datasets with spurious cues. The work provides both theoretical results and empirical evidence that mechanistic distinctions modulate connectivity, with practical implications for robust fine-tuning and model editing.
Abstract
We study neural network loss landscapes through the lens of mode connectivity, the observation that minimizers of neural networks retrieved via training on a dataset are connected via simple paths of low loss. Specifically, we ask the following question: are minimizers that rely on different mechanisms for making their predictions connected via simple paths of low loss? We provide a definition of mechanistic similarity as shared invariances to input transformations and demonstrate that lack of linear connectivity between two models implies they use dissimilar mechanisms for making their predictions. Relevant to practice, this result helps us demonstrate that naive fine-tuning on a downstream dataset can fail to alter a model's mechanisms, e.g., fine-tuning can fail to eliminate a model's reliance on spurious attributes. Our analysis also motivates a method for targeted alteration of a model's mechanisms, named connectivity-based fine-tuning (CBFT), which we analyze using several synthetic datasets for the task of reducing a model's reliance on spurious attributes.
