Abstract: Spatial transcriptomic data enable study of cell-cell communication, yet current analysis tools often fail to provide dynamic, interpretable estimates of interactions and their spatial range across tissue. We present AMICI, an interpretable attention framework that jointly estimates interaction length scales, adaptively resolves sender-receiver subpopulations, and links communication to downstream gene programs. AMICI recovers ground-truth interactions in semi-synthetic data, uncovers gene programs linked to cell communication in the mouse cortex, and reveals length-scale-dependent tumor-immune signaling that reinforces estrogen receptor (ER) programs in breast cancer.
Introduction
Cells within a tissue function as a coordinated network, constantly exchanging signals that govern their behavior and identity. Spatial transcriptomics (ST) has revolutionized our ability to observe these processes by providing simultaneous measurements of gene expression and spatial coordinates. However, extracting meaningful, dynamic interactions from ST data remains a significant challenge. Existing methods often rely on rigid assumptions, such as fixed-radius neighborhoods or broad, static cell-type labels, which fail to capture the nuanced, distance-dependent nature of biological signaling. Furthermore, many sophisticated models act as "black boxes," offering little insight into the underlying biological mechanisms.
The AMICI Framework
To address these limitations, we developed AMICI (Attention-Mechanism Interpretation of Cell–cell Interactions). AMICI is a scalable, interpretable framework that treats cell-cell communication as a distance-dependent attention problem. Inspired by the multi-headed cross-attention mechanisms used in Large Language Models, AMICI adapts this technology to the spatial domain.
Key innovations of the AMICI framework include:
- Distance-Dependent Attention: Unlike standard attention, AMICI enforces a monotonic decrease in influence as distance increases. This allows the model to learn the specific "length scale" of different signals, distinguishing between short-range synaptic-like interactions and long-range paracrine signaling.
- Self-Supervised Reconstruction: The model learns by "masking" a receiver cell's expression and attempting to reconstruct it based solely on the phenotypes and distances of its neighbors.
- Interpretable Linear Decoder: Instead of a complex neural network output, AMICI uses a linear decoder to create a direct, measurable link between sender cell states and the specific receiver genes that are modulated.
Benchmarking and Validation
We validated AMICI across several settings, starting with a semisynthetic benchmark where ground-truth interaction rules were pre-defined. AMICI significantly outperformed existing state-of-the-art methods, including NCEM, NicheDE, and GITIII, in predicting downstream gene changes and identifying the correct sender and receiver cell populations.
In real-world biological applications, AMICI demonstrated its discovery potential:
- Mouse Primary Motor Cortex: AMICI correctly identified that oligodendrocytes trigger specific gene expression changes in astrocytes, a known interaction involved in brain tissue maintenance.
- Human Breast Cancer: In high-resolution Xenium datasets, AMICI revealed that immune-to-immune signaling typically occurs at shorter distances than immune-to-tumor signaling. Crucially, it identified that CD8+ T cells unexpectedly reinforce Estrogen Receptor (ER) programs in tumor cells, suggesting the immune environment may inadvertently contribute to hormone-dependent tumor growth.
Conclusion
AMICI provides a powerful new lens for viewing spatial transcriptomics data. By moving beyond static niches to dynamic "communication hubs," it allows researchers to pinpoint the exact spatial range and functional impact of cell-cell interactions. While challenges like transcript leakage and cell-type resolution remain, AMICI represents a major step toward a more interpretable and biologically grounded understanding of tissue architecture.
Summary updated