Attribution assignment for deep-generative sequence models enables interpretability analysis using positive-only data

Robert Frank, Michael Widrich, Rahmad Akbar, Günter Klambauer, Geir Kjetil Sandve, Philippe A. Robert, Victor GreiffarXiv 2025 · DOI

Introduction

Deep generative models have become essential for designing novel biological sequences, such as antigen-specific antibodies. However, these models often function as "black boxes," making it difficult to discern whether they have learned genuine biological rules or merely statistical noise. A significant challenge in this field is the scarcity of reliable negative data; traditional supervised learning requires both positive and negative examples, but in biology, negative results are often ambiguous or unavailable. To address this, we present Generative Attribution Metric Analysis (GAMA), a method designed to extract interpretable motifs from autoregressive models trained exclusively on positive (1-class) data.

Overview of the GAMA framework, illustrating the transition from antigen-specific antibody sequences to identified binding motifs through 1-class generative modeling.

Methodology

GAMA is built upon Integrated Gradients (IG), an attribution technique that quantifies the contribution of each input feature to a model's prediction. For autoregressive models like Long Short-Term Memory (LSTM) networks, GAMA computes IG for every input-output token pair. The key innovation is the use of a randomly initialized "reference" model. By subtracting the IG of this random baseline from the IG of the trained model, GAMA isolates the learned biological signal from the inherent structural artifacts of the neural network.

Experimental Evaluation

The authors validated GAMA using a tiered approach of increasing complexity:

  • Synthetic Datasets: 270 variations were used to test the recovery of implanted motifs under different noise levels and logical interactions (AND, OR, XOR).
  • Simulated Antibody Data: Using the Absolut! framework, the method was tested against ground-truth binding energies for CDRH3 sequences across four antigens.
  • Experimental Validation: Real-world Trastuzumab-HER-2 binding data was used to verify GAMA's ability to identify known critical binding residues.

Results and Discussion

GAMA demonstrated high fidelity in recovering biological motifs. In synthetic tests, it achieved a 0% false-negative rate for "AND-logic" motifs at signal-to-noise ratios of 80% or higher. Crucially, the attribution scores correlated strongly with physical binding affinities in simulated datasets (Spearman $\rho = 0.74$ for the 5CZV antigen). In real-world applications, GAMA successfully identified three out of four known critical binding positions in the Trastuzumab-HER-2 complex, aligning with established structural data.

Conclusion

GAMA provides a robust framework for interpreting 1-class generative sequence models, enabling the validation of AI-designed therapeutics without the need for negative training data. While current limitations include the need for dataset-level averaging and a focus on single-position attributions, future work aims to extend GAMA to more complex architectures like Transformers and to capture higher-order 3D dependencies between amino acids.

Summary updated

BibTeX
@misc{frank2025attribution,
  author = {Robert Frank and Michael Widrich and Rahmad Akbar and Günter Klambauer and Geir Kjetil Sandve and Philippe A. Robert and Victor Greiff},
  title = {{Attribution assignment for deep-generative sequence models enables interpretability analysis using positive-only data}},
  year = {2025},
  eprint = {2506.23182},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.23182},
}
Figure