Reasoning Across Space: Tiny Recursive Models for Spatial Omics

Dhruva Rajwade, Marianna Rapsomaniki

TL;DR

Researchers have applied Tiny Recursive Models (TRM) to spatial omics, demonstrating that "thinking longer" is often better than "being bigger." By repeatedly refining predictions through a shared, small network, these models achieve state-of-the-art performance in identifying tissue domains and predicting gene expression while generalizing far better to unseen tissue samples than traditional deep models.

What Problem Does This Paper Address?

Spatial omics is a cutting-edge field that maps gene expression within the physical context of intact tissue. However, the field faces a "locality trap." Most current AI models process tissue in small, independent patches or local neighborhoods. This makes it difficult to capture long-range biological dependencies—the way cells on one side of a tissue section might influence those on the other.

Furthermore, these models often struggle with generalization. Because high-quality annotated data is scarce, many existing methods are "per-slice" (unsupervised), meaning they have to be retrained for every new piece of tissue. The authors wanted to find a way to build a supervised model that understands global tissue structure and can be applied to new patients or samples "zero-shot," without needing to see the test data during training.

Methods

The authors leverage the Tiny Recursive Model (TRM) architecture. Instead of building a massive, deep neural network with millions of parameters, they use a relatively small "backbone" (a 2-layer Transformer) and apply it recursively.

Key technical components include:

  • Iterative Refinement: The model doesn't produce an answer in one pass. It maintains an internal "latent reasoning state" (a digital scratchpad) and a "prediction state." It loops through the same network multiple times, using the scratchpad to self-correct and sharpen its predictions.
  • Effective Depth vs. Parameter Count: By recursing, a model with only ~900k parameters can achieve an "effective depth" of hundreds of layers.
  • Adaptive Computation Time (ACT): The authors adapted ACT—a technique where a model decides when to stop "thinking"—for continuous tasks. In gene expression prediction, the model uses a "per-gene" halting strategy to decide how much recursion is needed for a specific sample.

Datasets

The study evaluated the TRM on two primary benchmarks:

  1. DLPFC (Dorsolateral Prefrontal Cortex): 12 human brain sections used for Spatial Domain Identification (SDI). The goal is to cluster spots into the seven distinct layers of the cortex.
  2. HER2+ ST (Breast Cancer): 36 sections used for Histology-to-Gene (H2G) prediction. The goal is to predict the expression levels of 302 genes using only an H&E-stained microscope image as input.

The authors used a strict Leave-One-Slice-Out (LOSO) validation protocol, ensuring the model never saw the test patient's biology during training.

Key Insights and Ideas

  • Recursion as a Spatial Bias: The most striking "aha moment" is that recursion acts as a natural proxy for global spatial reasoning. As the model recurses, information propagates across the tissue grid, allowing the model to "see" the broader context.
  • Sharpening Boundaries: Qualitative results show that with only one recursion step, the model’s output is blurry and uncertain. By six steps, the boundaries between cortical layers become sharp and biologically accurate.
  • Generalization over Memorization: Deep, non-recursive models often "collapse" or overfit when trained on limited spatial omics data. The TRM’s weight-sharing (using the same layers over and over) forces it to learn robust reasoning patterns rather than just memorizing specific tissue patterns.
  • Cross-Tissue Transfer: Surprisingly, a TRM trained on brain tissue could still identify meaningful structures in breast cancer tissue when given spatial coordinates, suggesting the "reasoning" it learns is somewhat universal to tissue architecture.

Key Results

  • Spatial Domain Identification: TRM achieved a mean Adjusted Rand Index (ARI) of 0.559, significantly outperforming supervised baselines and even surpassing established unsupervised methods like SpaGCN (0.360) and STAGATE (0.491).
  • Gene Expression Prediction: In the H2G task, TRM achieved state-of-the-art Pearson correlation (PCC) among supervised methods, outperforming models like HisToGene and TRIPLEX.
  • Efficiency: Using Adaptive Computation (ACT), the model achieved a 42% reduction in compute on certain slides by halting early on "easy" samples while maintaining high accuracy.

Limitations and Future Work

While powerful, the TRM is not yet the undisputed champion of all tasks.

  • Spatial Hierarchies: A specialized model called 3d-OT still outperforms TRM in brain layer identification because it uses an explicit hierarchical spatial bias that TRM lacks.
  • Variance Issues: In gene expression prediction, TRM (like most regression models) tends to "smooth out" the data. Generative models like STEM are currently better at capturing the high-variance "noise" of real biology.
  • Hyperparameter Sensitivity: The Adaptive Computation (ACT) strategies require delicate tuning for different datasets.

The authors suggest that future work should focus on integrating generative modeling with recursive reasoning to get the best of both worlds: the global logic of TRM and the biological realism of diffusion models.

Summary updated

BibTeX
@inproceedings{rajwade2026reasoning,
  author = {Dhruva Rajwade and Marianna Rapsomaniki},
  title = {{Reasoning Across Space: Tiny Recursive Models for Spatial Omics}},
  booktitle = {SD4H @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=G05mb0EfIc},
}
Figure