Mechanistic Analysis of Circuit Preservation in Federated Learning
Muhammad Haseeb, Salaar Masood, Muhammad Abdullah Sohail
TL;DR
This work analyzes Federated Averaging under Non-IID data through Mechanistic Interpretability, revealing that weight divergences correspond to the collapse of functional sub-networks (circuits) responsible for class predictions. By enforcing extreme weight sparsity and discovering class-specific circuits via mask learning with STE, the study demonstrates that IID data yields a single canonical circuit consistent across clients, while Non-IID data produces either structural drift or destructive interference as updates are averaged. Importantly, higher sparsity mitigates interference, stabilizing the global model and enabling some modular, task-specific circuits to persist. The findings motivate circuit-aware aggregation strategies and orthogonalization to preserve functional sub-networks in decentralized learning environments, with practical implications for designing robust FL systems on heterogeneous data.
Abstract
Federated Learning (FL) enables collaborative training of models on decentralized data, but its performance degrades significantly under Non-IID (non-independent and identically distributed) data conditions. While this accuracy loss is well-documented, the internal mechanistic causes remain a black box. This paper investigates the canonical FedAvg algorithm through the lens of Mechanistic Interpretability (MI) to diagnose this failure mode. We hypothesize that the aggregation of conflicting client updates leads to circuit collapse, the destructive interference of functional, sparse sub-networks responsible for specific class predictions. By training inherently interpretable, weight-sparse neural networks within an FL framework, we identify and track these circuits across clients and communication rounds. Using Intersection-over-Union (IoU) to quantify circuit preservation, we provide the first mechanistic evidence that Non-IID data distributions cause structurally distinct local circuits to diverge, leading to their degradation in the global model. Our findings reframe the problem of statistical drift in FL as a concrete, observable failure of mechanistic preservation, paving the way for more targeted solutions.
