Abstract
Dimensionality reduction techniques like t-SNE are standard tools for data exploration, yet they often suffer from a "loudest voice" problem, where dominant structures mask subtler, potentially more interesting patterns. We introduce Conditional t-SNE (ct-SNE), a novel framework that allows researchers to "factor out" known information by conditioning the embedding process on prior labels. By adjusting repulsive forces between points based on shared metadata, ct-SNE acts as a noise-canceling filter for dominant signals. We demonstrate that ct-SNE can reveal hidden clusters—such as shared interests across geographic boundaries—that are invisible to standard t-SNE. Our scalable implementation using an augmented Barnes-Hut approximation makes ct-SNE viable for datasets with hundreds of thousands of points.
Introduction: The "Loudest Voice" Problem
Dimensionality reduction (DR) is essential for visualizing high-dimensional data in 2D or 3D maps. However, popular methods like t-SNE and UMAP prioritize the most dominant structures. Often, this dominant signal represents information the analyst already knows, such as geographic grouping or broad demographic categories. This "loudest voice" can obscure secondary patterns that are distributed across the primary clusters. Simply removing features associated with the known signal is often ineffective, as the information is frequently redundant across many variables. ct-SNE addresses this by actively filtering out prior knowledge during the embedding process.
The ct-SNE Framework
ct-SNE generalizes the standard t-SNE objective function by introducing a conditional distribution. The algorithm modifies the interaction between points in the low-dimensional space based on their prior labels:
- Conditioning via Repulsion: Points sharing the same label are subjected to a stronger repulsive force, while points with different labels experience a weakened repulsion. This prevents the algorithm from grouping points solely because they share a known characteristic.
- Confidence Parameter: The strength of this conditioning is controlled by the hyperparameter $\alpha'$ (or its inverse $\beta'$). A high $\alpha'$ (low $\beta'$) indicates high confidence in the prior, forcing the algorithm to ignore the known structure more aggressively.
Scalable Optimization
To handle large-scale datasets, the authors extended the Barnes-Hut approximation. Standard Barnes-Hut summarizes groups of points by their center of mass in a quad-tree. ct-SNE augments this by adding a "label histogram" to each cell in the tree. This allows the algorithm to efficiently calculate weighted repulsive forces without exhaustive pairwise comparisons, maintaining a complexity of $O(L \cdot n \log n)$. In practice, a single gradient update for 500,000 points takes approximately 9.1 seconds.
Results and Discussion
The utility of ct-SNE was evaluated across synthetic and real-world datasets, including the Facebook user graph and the DBLP citation network.
As shown in the figure above, standard t-SNE (a) produces distinct clusters based on the primary labels. As the conditioning strength increases (b to c), these clusters are "scrambled," allowing the algorithm to find new arrangements. In the Facebook dataset, this process revealed a cluster of users with a shared interest in horse riding that was previously hidden within geographic (state-level) clusters.
Quantitative validation using Normalized Laplacian Scores confirmed that ct-SNE effectively removes the structure of the prior labels while maintaining or improving the clustering of hidden, complementary labels. The authors suggest a rule of thumb for practitioners: while moderate parameter values may be mathematically optimal, a very small $\beta'$ (around 0.01) typically yields the most useful visualizations for human discovery.
Conclusion
Conditional t-SNE transforms dimensionality reduction from a one-shot visualization into an iterative discovery tool. By allowing analysts to subtract what they already know, it provides a systematic way to explore the multi-faceted nature of complex datasets and uncover hidden insights.
Summary updated