TL;DR
Conditional t-SNE (ct-SNE) aims to visualize hidden data structures by "factoring out" known labels, but it often fails when those labels represent very distinct, well-separated clusters. This paper introduces Revised ct-SNE, which fixes these failures by explicitly searching for neighbors with different labels and conditioning high-dimensional similarities rather than low-dimensional ones. The result is a more robust method that is also significantly faster, thanks to its integration with the FIt-SNE framework.
What Problem Does This Paper Address?
Data scientists often use t-SNE to visualize high-dimensional data, but sometimes the most prominent clusters in a visualization are things we already know about—like "batch effects" in biological experiments or known categories. We often want to "look past" these known labels to see if there is any other interesting structure hidden in the data.
Conditional t-SNE (ct-SNE) was designed for exactly this: it tries to embed same-labeled points further apart than their raw distances suggest, ideally revealing complementary structures. However, the authors point out a major flaw: ct-SNE relies on a local neighborhood (typically 3x the "perplexity" parameter). If your data is very well-clustered by the labels you want to ignore, a point's nearest neighbors will all have the same label. In this "locality trap," the algorithm has no information about how to relate that point to other groups, leading to arbitrary or incorrect merging of clusters.
Methods
The authors propose two fundamental changes to the ct-SNE algorithm:
- Expanded Neighbor Search: Instead of just taking the top $3u$ nearest neighbors (where $u$ is perplexity), Revised ct-SNE searches for neighbors separately. It identifies $1.5u$ neighbors with the same label and $1.5u$ neighbors with different labels. This ensures the algorithm always "sees" the other groups it is supposed to mix with.
- Conditioning High-Dimensional Similarities: The original ct-SNE adjusted the low-dimensional (LD) similarities, which primarily affected the repulsive forces between points. Revised ct-SNE conditions the high-dimensional (HD) similarities instead. This shifts the focus to the attractive forces, pulling differently-labeled points together if they share secondary structural similarities.
Crucially, because the conditioning now happens in the HD space (which is pre-computed), the authors were able to implement the algorithm using FIt-SNE, a fast interpolation-based version of t-SNE. This provides a massive boost in scalability.
Datasets
The authors evaluated their method on three distinct datasets:
- Synthetic Data: A dataset ($n=1500, d=10$) where points are clustered into two groups in dimensions 1-4 (the "known" labels) and three different groups in dimensions 5-6 (the "hidden" structure).
- Pancreas Data: A real-world single-cell RNAseq dataset ($n=14890$) containing cells from 5 different sequencing technologies. The goal was to factor out the "technology" label to see the 13 underlying cell types.
- Human Immune Dataset: A larger biological dataset ($n=33506$) with 10 batches across different tissues and donors, used to test scalability and batch-effect removal.
Key Insights and Ideas
- The Locality Trap: The very thing that makes t-SNE good at preserving local structure is what makes original ct-SNE fail. If the algorithm doesn't "look beyond" the immediate neighborhood of same-labeled points, it can never learn how to integrate them with other groups.
- Attraction vs. Repulsion: By moving the conditioning to the HD space, the authors changed the optimization dynamics. Instead of just pushing same-labeled points away, they are effectively pulling differently-labeled points together based on their shared features.
- Scalability as a Feature: By making the algorithm compatible with FIt-SNE, the authors turned a niche research tool into something that can handle tens of thousands of points in seconds rather than minutes.
Key Results
- Accuracy: On synthetic data, Revised ct-SNE perfectly recovered the three hidden clusters, whereas the original ct-SNE produced a messy, incorrect overlap (see Figure 1 above).
- Speed: The performance gains were dramatic. On the Pancreas dataset, Revised ct-SNE finished in 28 seconds, compared to 168 seconds for the original version. On the Human Immune dataset, the gap was 80 seconds vs 470 seconds.
- Biological Utility: In the Pancreas dataset, Revised ct-SNE achieved a better trade-off in "mixing" different sequencing technologies while keeping distinct cell types separate, whereas original ct-SNE tended to overlap different cell types too much.
Limitations and Future Work
Despite the improvements, the authors noted some remaining challenges:
- Parameter Sensitivity: The merging strength (controlled by a parameter $\beta$) still requires tuning. If $\beta$ is too small, the algorithm might completely discard the neighborhood information of same-labeled points.
- Outlier Sensitivity: In some cases, outliers in the HD space can dominate the similarity distribution, leading to strange "circular patterns" in the final embedding (Figure S5).
- Future Directions: The authors suggest exploring separate merging strengths for different labels and developing more robust ways to estimate point-wise variance to handle varying cluster densities.
Summary updated