Integrated Gradients Enhance Microbiome Transformer Explainability

Oren Nelson· August 10, 2026 View original

Key takeaways

  • Traditional attention weights limit microbiome transformer interpretability.
  • Signed Integrated Gradients provide fusion-aware, directional attributions.
  • IG can distinguish pathogenic from protective microbial signals.
  • Integrated Hessians reveal complex microbiome community interactions.

Who benefits

BiotechnologyPharmaceuticalsHealthcareDiagnosticsFood & Nutrition

Summary

This research proposes using Signed Integrated Gradients (IG) for explainability in BiomeGPT-style microbiome transformers, moving beyond traditional attention weights. IG provides fusion-aware, signed attributions that distinguish between disease-supporting and health-supporting microbial signals, revealing species-abundance relationships and community interactions obscured by standard methods.

Interpreting the decisions of complex AI models, particularly transformers applied to biological data like microbiomes, is crucial for trust and scientific discovery. In models like BiomeGPT, where input tokens fuse fixed species identities with variable abundances, traditional attention weights of the [CLS] token have been used for interpretation. However, these attention weights have significant limitations: they are non-negative, meaning they cannot differentiate between features that promote a disease state versus those that support health, and they operate after token fusion, obscuring the individual contributions of species identity and abundance. To overcome these shortcomings, this study advocates for the use of Integrated Gradients (IG), a signed and fusion-aware attribution method. The researchers propose a novel source-derived baseline for feature-tokenized models, which preserves species identity while isolating the impact of abundance variations. When applied to a disease-versus-health classification margin, IG yields polarity, explicitly identifying pathogenic or protective microbial signals. This gradient-based approach uncovers directional relationships between species and their abundances, along with sensitivity diagnostics that are entirely missed by unsigned attention weights. Furthermore, the paper recommends employing second-order Integrated Hessians to explore complex microbiome community interaction rules. This advanced technique can reveal how perturbing one microbial member alters the model's sensitivity to another, and which other species influence ambiguous cases towards disease or health at specific abundance levels. This work establishes a principled and more comprehensive approach to explainability for BiomeGPT and similar differentiable feature-tokenized transformers.

Why it matters

For professionals in bioinformatics, drug discovery, and clinical research, this method provides a far more nuanced and accurate way to interpret complex microbiome AI models. Understanding which specific microbial species and their abundances contribute positively or negatively to health outcomes can accelerate biomarker discovery, therapeutic development, and personalized medicine.

How to implement this in your domain

  1. 1Adopt Signed Integrated Gradients as a primary explainability method for microbiome transformer models.
  2. 2Implement the proposed source-derived baseline for feature-tokenized inputs to isolate species and abundance contributions.
  3. 3Utilize IG to identify and differentiate between disease-promoting and health-promoting microbial signals.
  4. 4Explore the application of Integrated Hessians to uncover complex microbial community interaction rules.
  5. 5Integrate these advanced attribution techniques into model development and validation pipelines for improved interpretability and scientific insight.

Original post by Oren Nelson

"arXiv:2608.06486v1 Announce Type: new Abstract: In a feature-tokenized transformer (arXiv:2106.11959) such as BiomeGPT (doi:10.64898/2026.01.05.697599), each input token is built by fusing a fixed identity with a sample-specific measurement: a fixed species and a variable abundan…"

View on X

Originally posted by Oren Nelson on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses