Protein Circuit Tracing via Cross-layer Transcoders
Darin Tsui, Kunal Talreja, Daniel Saeedi, Amirali Aghazadeh
TL;DR
ProtoMech introduces cross-layer transcoders to capture the full computational circuitry of protein language models, providing a faithful replacement model that links multi-layer transformations. It demonstrates that compact, sparse circuits can recover most of the original model’s performance and that steering along these circuits can design high-fitness protein variants. The framework also reveals alignment with known motifs (e.g., kinase HRD, Rossmann folds) and supports interactive visualization for biological interpretation. Together, ProtoMech offers a principled, scalable approach to circuit tracing in pLMs with practical implications for protein design and interpretability.
Abstract
Protein language models (pLMs) have emerged as powerful predictors of protein structure and function. However, the computational circuits underlying their predictions remain poorly understood. Recent mechanistic interpretability methods decompose pLM representations into interpretable features, but they treat each layer independently and thus fail to capture cross-layer computation, limiting their ability to approximate the full model. We introduce ProtoMech, a framework for discovering computational circuits in pLMs using cross-layer transcoders that learn sparse latent representations jointly across layers to capture the model's full computational circuitry. Applied to the pLM ESM2, ProtoMech recovers 82-89% of the original performance on protein family classification and function prediction tasks. ProtoMech then identifies compressed circuits that use <1% of the latent space while retaining up to 79% of model accuracy, revealing correspondence with structural and functional motifs, including binding, signaling, and stability. Steering along these circuits enables high-fitness protein design, surpassing baseline methods in more than 70% of cases. These results establish ProtoMech as a principled framework for protein circuit tracing.
