---
title: "Automated optimized parameters for T-distributed stochastic"
description: "Belkina and colleagues show how opt-SNE adjusts t-SNE during a run to produce clearer maps of large single-cell datasets in fewer iterations."
canonical: "https://research.elamur.ai/free/en/papers/belkina-2019-automated-optimized-parameters-t-distributed/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/belkina-2019-automated-optimized-parameters-t-distributed/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Automated optimized parameters for T-distributed stochastic neighbor embedding improve visualization and analysis of large datasets

# Automated optimized parameters for T-distributed stochastic neighbor embedding improve visualization and analysis of large datasets

Paper · 2019 · Anna C. Belkina, Christopher O. Ciccolella, Rina Anno et al.

**Authors:** Anna C. Belkina, Christopher O. Ciccolella, Rina Anno, Richard Halpert, Josef Špidlen and Jennifer E Snyder-Cappione · **Year:** 2019 · **Venue:** Nature Communications · **Licence:** [CC BY (OpenAlex best open-access location)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **12** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/belkina-2019-automated-optimized-parameters-t-distributed/cited-by/) · Nature Communications · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://www.nature.com/articles/s41467-019-13055-y.pdf)
- [DOI 10.1038/s41467-019-13055-y](https://doi.org/10.1038/s41467-019-13055-y)

## Summary

A single-cell experiment can measure many features of each cell and record millions of cells. A useful map should make it possible to see both common populations and small groups that might disappear if the data were thinned out. Belkina and colleagues examine why t-distributed stochastic neighbor embedding, or t-SNE, frequently gives muddled maps at this scale. In their cytometry experiments, familiar settings could split cells with the same annotated phenotype among several islands or mix populations that a better embedding separated. Running the calculation longer sometimes helped, but the longer runs also spent more time in a special opening phase. The authors set out to determine when that phase had accomplished its job.

Their method, opt-SNE, monitors Kullback–Leibler divergence, the quantity t-SNE uses to measure disagreement between the input and map similarities. During the opening phase, called early exaggeration, the algorithm strengthens the attraction between similar cells. The divergence initially stays near a plateau before it begins to fall rapidly. Opt-SNE uses a peak in the relative decrease to decide when to remove the extra attraction. It also scales the initial learning rate with the number of cells and stops the full calculation when improvements become small. These changes let the behavior of the embedding determine how long it spends in each phase.

On the mass and fluorescence cytometry benchmarks, opt-SNE ended at lower divergence, gave higher nearest-neighbor classification accuracy, and took less time than the standard settings tested on the same multicore implementation. A fluorescence dataset with 20.1 × 10⁶ events produced a map with separated, recognizable populations in 770 iterations, including 73 of early exaggeration. On a mouse brain single-cell RNA sequencing dataset, opt-SNE used 885 iterations, compared with 4000 for the standard embedding. Both showed the broad arrangement indicated by marker genes, while several groups identified by a separate clustering analysis were easier to distinguish in the opt-SNE map.

The results clarify why timing matters. Early exaggeration can give populations room to separate, and the subsequent phase can reveal finer variation within those populations. Cutting the opening phase short can leave fragments that persist through a long run. Keeping the extra attraction active after separation can make continuous variation harder to see. Opt-SNE addresses this optimization problem while leaving the interpretation of the resulting map to marker measurements, cell annotations, and other analyses.

## Deep dive: Automated optimized parameters for T-distributed stochastic neighbor embedding improve visualization and analysis of large datasets

Belkina and colleagues show how opt-SNE adjusts t-SNE during a run to produce clearer maps of large single-cell datasets in fewer iterations. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Seeing populations defined by several measurements

In cytometry, an event is a recorded observation. The analyses in this paper use singlet events, observations selected to represent individual cells. A cell can have measurements for multiple proteins as well as light scatter characteristics. A population may be recognizable from their combination even if no single pair of measurements cleanly identifies it. When the sample contains both abundant and rare populations, the analyst has to consider the pattern across features and how many observations support it.

Traditional cytometry analysis commonly uses expert-guided gating. An analyst draws a boundary on a plot of two measurements, then examines the selected cells on further plots. Such a sequence can isolate a population whose markers and expected distributions are already understood. The need to choose the axes and boundaries also shapes what the analyst can see. Finding an unexpected combination, or getting a view of the entire mixture, becomes increasingly difficult as the number of measured features grows.

Dimension reduction gives each observation a location in a space with fewer coordinates. The paper describes principal component analysis, or PCA, as a linear approach with limited ability to show the nonlinear relationships encountered in cytometry. In a t-SNE map, cells with similar sets of measurements can form visually conspicuous groups. The analyst can color the map by a marker or a previously assigned cell type to see which measurements or annotations account for parts of the arrangement. A map can also support subsequent gating or clustering. The paper describes both uses, as well as workflows in which groups found directly in the original measurements are overlaid on a map.

A cell phenotype in this setting refers to a pattern of measured characteristics. An island can therefore provide a way to locate cells with related phenotypes and inspect how they vary. For instance, one marker might separate a group from the rest of the sample while another changes gradually within it. Those are different features of the data. A useful display has to accommodate both the contrast across groups and the variation that remains inside them.

#### Why large datasets create a practical problem

The value of keeping cells rises when the scientific question concerns a rare population. Random sub-sampling reduces the number of observations available to represent that population. If researchers first gate the data and retain only groups that they already intend to study, the display then reflects that selection. Both strategies make the calculation smaller, but they change the evidence available for exploratory analysis.

The issue becomes more pronounced when a study pools samples. A shared embedding places cells from different people or experimental conditions on the same map, so the analyst can examine which regions each sample contributes to. A population may be common in one sample and sparse in another. Retaining enough observations to inspect its representation across samples can require embedding a very large collection of cells. In the formulation discussed by the authors, t-SNE assigns coordinates to the observations it receives in a joint calculation. A completed map supplies no general placement rule for adding new observations to that same analysis.

Scale also affects the quality of the optimization. A map with crowded or fragmented populations may be difficult to interpret even when the underlying measurements are adequate. If cells belonging to the same annotated population form disconnected pieces, an analyst inspecting the map may wonder whether each piece represents a meaningful subtype. If separately annotated groups overlap, the map can conceal distinctions present in the input. The paper examines these outcomes by comparing maps with reference annotations and by looking at intermediate states of the calculation.

#### How the standard settings arose

The paper traces cytometry use of t-SNE to viSNE, an application of Barnes–Hut t-SNE to mass cytometry reported in 2013. Barnes–Hut t-SNE approximates part of the calculation required to update point positions, making larger embeddings more practical. Its implementations became common in cytometry software. According to the authors, many retained defaults originally tested on other kinds of data, including images from CIFAR and handwritten digits from MNIST.

Software packages exposed different controls, but iteration count and perplexity were commonly adjustable. An iteration is a round of coordinate updates. Perplexity sets the effective scope of a point’s neighborhood in the input similarity calculation. A package could allow users to change those values while keeping the learning rate fixed or tying the duration of early exaggeration to the total iteration budget.

Users had observed that longer runs could make cytometry maps easier to read. That observation did not identify the cause because changing the total budget could also change the opening schedule. With early exaggeration specified as 25% of the run, any increase in the total number of iterations gives the algorithm more time under enhanced attraction as well as more time afterwards. The authors examine those phases separately so they can identify what the added iterations do.

The paper also situates t-SNE among methods with related purposes. Hierarchical stochastic neighbor embedding, or HSNE, lets the analyst move from a landmark overview toward finer detail. FIt-SNE changes how t-SNE computes repulsion to accelerate the calculation. UMAP offers a different route to a low-dimensional embedding. The authors’ immediate question concerns the behavior of t-SNE itself. Even a faster implementation needs a way to decide when to change phases and how long to continue updating the coordinates.

### The method, step by step

#### Represent the cells by their input neighborhoods

The input to an embedding is a collection of observations with the features chosen for analysis. For a cytometry observation, the features come from the selected measurement channels after preprocessing. For the mouse brain transcriptomics analysis, they come from principal component projections supplied with the dataset. The choice matters because t-SNE uses the supplied feature values to determine which observations are similar. An additional marker can help annotate a map afterwards even when that marker was absent from the embedding input.

In the input space, t-SNE uses a Gaussian distribution centered on each observation to calculate similarities. A nearby point receives more weight than a distant one under that observation’s neighborhood distribution. Perplexity controls how broadly those weights are spread. It is useful to think of it as an effective neighborhood size. Its effect is on the weights given to neighboring observations, so it differs from a rule that simply selects a fixed number of neighbors and gives all selected points equal weight.

The map also has pairwise similarities, calculated from the current positions of its points. Here the paper describes a Cauchy distribution, a Student t-distribution with 1 degree of freedom. The input similarities and map similarities play different roles. The former express relationships derived from the measurements. The latter express what the current placement represents. Changing coordinates changes the map similarities, which can bring them into better agreement with the input.

All of the paper’s embeddings put the observations in 2D space. Each cell therefore ends up with a position that the analyst can plot alongside the others. The optimization works on the relative positions of the points. The axes supply a display coordinate system, and the biological interpretation comes from how the image relates to measured features and annotated populations.

#### Update the map by reducing divergence

Kullback–Leibler divergence, abbreviated KLD, measures the discrepancy between the similarity distributions. The input neighborhood relationships are held fixed for a run, while the coordinates move over successive iterations. Gradient descent uses the change in the objective associated with movements of those coordinates to determine the updates. A decrease in the measured KLD indicates that the current arrangement fits the similarity objective more closely.

The authors describe the gradient as a balance of attractive and repulsive forces. Attraction pulls together observations with strong input similarities. Repulsion pushes points apart and makes room for an arrangement in which separate neighborhoods can remain distinguishable. In the Barnes–Hut implementation studied here, the attractive calculation uses a nearest-neighbor approximation with vantage-point trees. The Barnes–Hut algorithm approximates repulsion at each iteration. These are computational devices for evaluating updates. The opt-SNE rules concern how the optimization proceeds with those updates.

Initialization gives the observations their starting coordinates. In the paper’s parameter comparisons, the authors used matching random seeds to make the corresponding maps easier to compare. They also repeated experiments with several seeds. The common starts support comparisons of what changes when a setting is altered, while the repeats help show whether a result depends on a particular start.

The C++ implementation could report KLD and coordinates during the run, at each iteration or at the requested reporting frequency. The divergence trace became both a diagnostic for the initial experiments and a signal for automatic control. Saving intermediate coordinates let the authors relate changes in that trace to what was happening in the map. A decline in the objective and the appearance of distinct cell populations could then be examined together.

#### Start with stronger attraction

Early exaggeration multiplies the input probabilities used in the force calculation by an early exaggeration factor. The paper denotes this factor by α. While it is active, the stronger attraction encourages similar observations to form compact groups with space between them on the map. The goal is to ease crowding early enough that the arrangement can support finer structure during subsequent updates.

The early exaggeration factor and the duration of exaggeration are separate settings. The factor controls how strong the extra attraction is. The duration controls how many updates use it. One can obtain a long exaggerated phase with a moderate factor or a short phase with the same factor, and the resulting maps need not behave alike. Much of the study is devoted to examining the duration while handling the factor and learning rate as distinct controls.

In Barnes–Hut t-SNE, exaggeration affects the reported divergence as well as the gradient. The inflated KLD during this phase therefore has to be read in light of the calculation that produced it. The authors focus on how the value changes while the same factor is still active. A drop associated with turning exaggeration off has a different cause from a decline reached while the algorithm continues applying the factor.

The empirical pattern is a plateau followed by a period of much faster decrease. On the plateau, the map is still rearranging while the reported divergence changes slowly. Around the end of the plateau, the authors observe the emergence of compact, distinct groups. After the factor is removed, attraction within those groups weakens and the map can show more of the variation within them. These observations give the phase transition its practical meaning. The plateau is part of the process that prepares the map for local refinement.

#### Set the initial learning rate from the size of the dataset

The learning rate governs the size of the coordinate updates. The implementations examined in the paper use an adaptive scheme attributed to Jacobs. It increases the learning rate in directions where the gradient is stable. The initial step size remains important because it determines the scale at which the calculation begins, before the adaptive updates have had time to act.

The standard starting value discussed in the paper is 200. The authors suspected that this value could be too small for a large collection of observations. They tested the initial step size across a wide range and watched how long the KLD remained on the plateau. Larger steps could bring the run to the end of that phase earlier, while very large steps produced irregular divergence traces.

The opt-SNE rule for the initial step size is

```
η = n / α
```

Here η is the initial learning rate step size, n is the number of observations in the embedding, and α is the early exaggeration factor. The slash denotes division. The algorithm retains adaptive learning after initialization.

The paper relates the rule to a result by Linderman and Steinerberger for a fixed learning rate. The nonconvergence condition it cites is

```
αη > n
```

Here α is the exaggeration factor, η is the fixed learning rate step size in the cited analysis, and αη is their product. The symbol `>` means the product exceeds n, the number of observations. The opt-SNE experiments use adaptive steps and examine the effect of the initial value. The authors report that efficient settings in their runs were close to the size-based rule when α was 12.

The initial learning rate and the duration of exaggeration work together. A larger initial step can shorten the time needed to finish forming distinct groups. If the exaggeration schedule is still fixed, the algorithm can then spend much of its opening budget applying extra attraction to groups that have already formed. A run-dependent cutoff lets the phase end earlier when the larger step has done its work.

#### Detect the end of the plateau during the run

The authors use the relative change in KLD to locate the transition. Their calculation for the current iteration is

```
KLDRC[N] = 100% × ((KLD[N−1] − KLD[N]) / KLD[N−1])
```

Here `N` is the current iteration index, and `N−1` identifies the preceding iteration. `KLD[N]` is the current divergence, and `KLD[N−1]` is the preceding value. The subtraction gives the decrease between consecutive iterations. Dividing by the preceding divergence expresses the decrease relative to the value at the start of that update. Multiplication by `100%` expresses the relative change as a percentage. `KLDRC[N]` denotes the resulting percentage change for iteration `N`.

During the plateau, consecutive divergence values are close together, so their relative decrease remains small. As the descent accelerates, the decrease grows. The paper calls the local maximum used to mark this transition maxKLDRC. Tracking a local peak gives the authors a way to identify a change in the behavior of a particular run even when the plateau falls at a different iteration under another setting.

A local maximum becomes detectable as the run moves past it. The authors describe removing exaggeration at the next iteration after the peak. That distinction matters when connecting the formula to the implementation. The rule responds to consecutive divergence observations available during the calculation. It does not require running the embedding to completion first to determine retrospectively where to switch phases.

The control signal uses the optimization trace alone. The labels used to color a map or evaluate its neighbors play no role in the calculation of the peak. They enter later, when the authors assess whether the schedule produced a map that respects the distinctions marked by those labels.

#### Refine the map and finish when improvements are small

After removing exaggeration, the algorithm continues applying gradient descent to refine the positions. The authors observed that the exaggerated phase could produce compact groups whose outlines changed little as long as the extra attraction continued. Once it stopped, there was more room for structure inside those groups to unfold. The final phase therefore serves a different purpose from the initial separation of populations.

The second automatic decision is when to end the whole run. The paper writes the criterion as

```
KLD[N−1] − KLD[N] < KLD[N] / X
```

Here `N` is the current iteration, `KLD[N−1]` is the previous divergence, and `KLD[N]` is the current divergence. Their difference is the latest improvement. `X` is the divisor that sets the threshold, and `<` means the latest improvement is smaller than the threshold calculated from the current divergence. The paper suggests `X` of 5000 for cytometry and makes the setting adjustable.

The two automatic decisions use the same stream of measurements but ask different questions. During exaggeration, the method looks for a peak in the relative decrease that marks the end of the plateau. At termination, it checks whether the current improvement is small enough to finish. The first decision changes the objective’s treatment of attraction. The second ends coordinate updates after the ordinary phase has had time to reveal local structure.

The stopping threshold concerns the optimization of the current embedding. Its practical justification comes from the paper’s evaluation of what happened when runs continued past the designated endpoint. The authors used nearest-neighbor accuracy to check whether additional computation after that cutoff gave a measurable benefit under their benchmark. This separates the rule itself, which only needs KLD, from the evidence used to assess it.

How opt-SNE runs a t-SNE embedding The steps in order.

#### Prepare the data and configure the implementation

For the principal cytometry benchmarks, the authors combined singlets from separate recordings and randomly sampled the resulting data. The dataset they call mass41parameter contains 1 million observations from 5 samples of human bone marrow. Its recordings had 41 parameters, of which 14 lineage parameters were used for embedding. The flow18parameter dataset contains 1 million observations from 2 samples of human peripheral blood mononuclear cells, or PBMC. Its recordings had 18 parameters, with 11 lineage parameters used for embedding. The preprocessing description gives 1,000,000 as the sampled event count for each benchmark.

The larger fluorescence dataset, Flow20M, retained observations from 27 recordings. The paper describes it as an 18 parameter dataset with 15 lineage parameters used for embedding. For the van Unen mass cytometry dataset, the authors concatenated observations from 104 recordings. That dataset included PBMC and gut biopsy cells, with 26 lineage parameters selected from 32 for the embedding. The large datasets test an important aspect of the workflow because their maps were calculated from the pooled observations rather than from the small benchmark samples.

The fluorescence measurements were compensated using matrices associated with acquisition. Compensation adjusts the measurement channels before the analysis. The paper reports an asinh transformation with cofactor 5 for mass cytometry and cofactor 150 for the smaller flow data, which it calls flow14parameter in the preprocessing description. It reports a biexponential transformation for Flow20M. Light scatter measurements were transformed logarithmically. These processing choices help define the input geometry that the embedding receives.

For the 10x Genomics mouse brain data, the authors used 20 principal component projections already supplied with the dataset. Those projections are the input coordinates for the t-SNE analysis. The experiment thus illustrates what the opt-SNE schedule does after an existing transcriptomics preprocessing step. Marker gene overlays and a separate Louvain clustering were used to examine the resulting maps.

The authors modified the original Barnes–Hut C++ implementation to make the exaggeration stop, perplexity, total iteration budget, exaggeration factor, and learning rate selectable for the parameter experiments. They then built opt-SNE on a multicore Barnes–Hut implementation. The paper reports releasing Multicore-opt-SNE as open-source C++ code and describes equivalent adjustments in Omiq, FlowJo, and SeqGeq. It also identifies deposits for the smaller cytometry benchmarks, the van Unen data, and the mouse brain data.

In the suggested cytometry configuration, the exaggeration factor remains a user setting, with 4–12 given as the suggested range. The suggested perplexity range is 30–50. The automated choices are the dataset-scaled initial learning rate, the end of early exaggeration, and the end of the full calculation. This is a specific division of responsibilities. The run supplies the timing information, while the feature selection and neighborhood scale remain part of the analysis design.

### Experiments and results

#### How the authors measured map quality

The paper compares maps through visual inspection, endpoint KLD, and classification accuracy. Density plots show where observations collect on the map. Overlays mark observations by an independently assigned cell population, a marker measurement, or a subject identifier. These views answer related questions. Density shows the shape of the embedding, population labels show how that shape relates to expert-defined groups, and sample labels show who contributes to a region.

In the cytometry benchmarks, expert-guided analysis supplied the cell population labels used in the overlays. Plotting the same labels on each map exposes cases where a population forms a single compact area in one embedding and several scattered areas in another. An uncolored map can make both arrangements appear plausible. Adding marker information helps determine whether apparent separation corresponds to the phenotype distinctions the analysis is meant to display.

Endpoint KLD measures how well the final coordinates match the objective. It provides a comparison of optimization quality when the embeddings use the same input similarity setup. The authors caution against directly comparing KLD for runs with different perplexities because those settings change the input similarity distribution itself. KLD also reflects the objective’s own priorities. The authors use annotation and nearest-neighbor checks to see whether improvements in the objective accompany improvements that matter for reading the data.

The classification measure is 1-nearest-neighbor accuracy, abbreviated 1NN accuracy. A point is assigned the label of its nearest neighbor according to the procedure described by the authors, and the assignment is compared with its known class. The paper reports accuracy overall and separately by class. A map with high overall accuracy can still represent a particular subset poorly, so the class-level values help show whether separation improves across the annotated populations.

The methods describe a uniformly sampled training set of ten thousand cells and a disjoint test set of 50,000 cells. They then state that the neighbor used for each test point comes from within the test set. This wording leaves the role of the training set unclear. The paper specifies that the procedure was repeated five times with different sampling seeds, that the scores were averaged, and that matching seeds were used across embeddings of a dataset so the same cells contributed to comparisons. Those details explain how the authors controlled the sampling across runs even though the reference set for the classifier is ambiguous.

#### Standard runs and the initial scale benchmarks

The first comparison used the mass41parameter and flow18parameter datasets. The authors ran Barnes–Hut t-SNE for 1000 iterations in the standard configuration and 3000 in the extended configuration. Early exaggeration stopped at 250 and 750 iterations, respectively, because the schedule used 25% of the total budget.

On both datasets, the shorter runs produced overlaps and fragments that became evident in the population overlays. The longer runs yielded more distinct, coherent islands. Their 1NN accuracies were also higher. These experiments established that changing the budget could improve the output. They also raised the question of whether the extra computation was needed throughout the run or particularly before the exaggeration stopped.

The comparisons with opt-SNE used a standard setting with initial learning rate 200 and exaggeration ending at 250 iterations. Opt-SNE used the dataset-scaled initial rate and peak-based timing. For endpoint divergence, the comparison used 5 seeds, with standard errors of the mean displayed in the paper. Opt-SNE obtained lower endpoint KLD in the flow and mass comparisons. The authors report that standard t-SNE still failed to reach those values when extended to 20,000 iterations.

The population overlays and the 1NN scores favored opt-SNE on the two benchmarks as well. The paper shows overall accuracy alongside class-level scores, allowing readers to see the spread across cell populations. Its numerical text supports the direction of the accuracy comparison. The plotted scores are presented graphically, so the precise values of the dots cannot be read from the numerical descriptions alone.

The time comparisons distinguish parallel computation from the change in optimization. Moving from single-core Barnes–Hut t-SNE to the multicore version gave the authors a 2–3× speed increase without a reported penalty in endpoint KLD, iteration count to the endpoint, or map quality. Within the multicore setting, opt-SNE gave an additional speedup of 2× or greater on the flow and mass data because it used fewer iterations. The reported improvement grew with dataset size, and the observed variation across different random initializations was small.

These speed comparisons track different parts of the cost. The multicore implementation does the work of an iteration faster. The opt-SNE settings reduce the number of iterations the method needs to reach its chosen endpoint. The paper follows post-exaggeration KLD in physical time as well as studying the trajectories by iteration. That makes it possible to see why a faster run can also get to a lower endpoint.

#### Keeping the large fluorescence dataset together

The authors next tested the method on Flow20M, a fluorescence dataset of 20.1 × 10⁶ events from 27 PBMC samples in two independent batches. The staining panel was a variation of OMIP-037. It supported annotation of several immune cell populations, including naïve and memory T cells, natural killer cells, and gamma delta T cells. Keeping all the events in one embedding let the authors examine those populations across subjects in a shared coordinate system.

Opt-SNE completed this embedding in 770 iterations. Its early exaggeration phase took 73 iterations. The annotations showed separated regions corresponding to the identified cell types. The standard t-SNE comparison shown for this dataset used 4000 iterations and did not resolve the population structure visible in the opt-SNE map. The comparison provides a concrete instance where a much larger fixed budget was insufficient under the standard settings.

The subject overlay provided a separate view of the data. The paper reports that most groups appeared to contain cells from all subjects. It also identifies conspicuous exceptions associated with sample-specific debris. The authors interpreted this pattern as evidence that the main population structure was shared across the batches. The observation illustrates why a subject overlay serves a different purpose from a cell type overlay. A region can be clear in the embedding and still owe its existence to features peculiar to a recording.

The map also gave the authors a way to inspect B cells and monocytes. In that panel their lineage markers shared a dump channel with a viability dye. A dump channel pools signals, so a gate on that measurement alone could not cleanly distinguish the cell types from events marked by the viability signal. The opt-SNE map showed groupings that the authors could identify using the combination of surface labels and light scatter. They observed little mixing with dead cells in these regions. The example concerns what becomes visible when neighboring events are defined by the pattern across channels.

#### Mouse brain transcripts

The transcriptomics experiment used a 1.3 × 10⁶ cell dataset from embryonic mouse brain. The comparison paired an opt-SNE embedding of the supplied PCA projections with the standard embedding distributed by 10x Genomics. The standard run used 1000 iterations of early exaggeration and 4000 in total. The paper reports an opt-SNE initial learning rate of 97,959, an exaggeration phase of 66 iterations, and a total of 885 iterations.

The authors used two views of the cell identities. In one, they overlaid marker genes associated with major cell types, including endothelial cells, astrocytes, oligodendrocytes, and neuronal groups. In the other, they overlaid Louvain clusters adopted from the Scanpy analysis. These groups come from a separate clustering procedure and allow a more detailed comparison of the arrangements even where a single gene gives an incomplete account of the cells’ identity.

Both embeddings captured the broad organization shown by the gene overlays. Several Louvain clusters, identified as 3, 18, 19, 25, 28, appeared partly or wholly overlapped by other clusters in the standard map and were more distinct in the opt-SNE version. The result combines a qualitative comparison of structure with a concrete count of optimizer iterations. The chart measures the latter.

Total embedding iterations on the 10x Genomics mouse brain dataset Opt-SNE completed the embedding in fewer iterations than the standard run.

**The numbers**

| System or setting | iterations |
| --- | --- |
| 10x Genomics standard t-SNE | 4000 |
| opt-SNE (this paper) | 885 |

The iteration result has meaning because both maps showed the broad features of the data while the opt-SNE map separated several additional annotated groups. As a measure of computation, iteration count tracks the number of coordinate updates. It leaves the wall-clock cost of those updates dependent on how the compared runs were implemented.

#### Mass cytometry at full resolution

The comparison with HSNE used the van Unen dataset, reported as 5.22 million observations in the dataset description. HSNE offers a hierarchy through which the analyst can examine an overview and then subdivide it. The authors compared their pooled opt-SNE map with the HSNE embedding at full resolution and inspected marker expression within a CD4-positive region.

In that region, opt-SNE showed separate groups of CD4-positive, CD28-negative cells with different CCR7 expression. The authors interpret these as potentially representing different states of differentiated memory T cells. HSNE gave a clear group for the CCR7-negative population. Cells matching the CCR7-positive phenotype appeared dispersed through the CD4 region in the HSNE view. The comparison concerns how coherently the cells appear on each map, which is what makes the group easy or difficult to inspect visually.

The finer comparison focused on the CD4-positive, CD28-negative, CCR7-negative cells. Both methods represented variation in CD56 expression. In the HSNE image, the difference lay across the poles of a rounded group. Opt-SNE showed separate CD56-positive and CD56-negative regions and made variation in CD45RA easier to see within them. The authors then used density plots by subject group to show how the marked regions were populated. In the opt-SNE analysis, cells positive for CD56 and negative for CD45RA in this group came from several subjects with Crohn’s disease.

The discussion relates the visibility of one group to how unevenly it was represented across subjects. The CD4-positive, CD28-negative, CCR7-negative phenotype made up \<1% of all CD4-positive cells in most PBMC samples, but the paper reports frequencies of 40.7% and 31.0% of all CD4-positive cells in two of the 11 Crohn’s disease subjects. The authors propose that those samples gave the population sufficient representation in the nearest-neighbor graph used by HSNE. That explanation is distinct from the observation that the two maps displayed the population differently.

#### Resource use and alternative implementations

The main workstation benchmark used a quad-core machine with 16 GB of RAM. The paper also reports a comparison of UMAP, opt-SNE, and FIt-SNE in the Omiq cloud using the 5.2 million cell van Unen dataset. In that comparison UMAP used up to 128 GB of RAM, while opt-SNE and FIt-SNE peaked at 16 GB. The authors describe UMAP’s runtime as comparable to opt-SNE’s in that setting.

Peak memory for embeddings of the van Unen mass cytometry dataset in Omiq Opt-SNE and FIt-SNE reached lower peak memory use than UMAP in this benchmark.

**The numbers**

| System or setting | GB RAM |
| --- | --- |
| UMAP | 128 |
| FIt-SNE | 16 |
| opt-SNE (this paper) | 16 |

The UMAP comparison was sensitive to parameter selection. It affected both what the authors could discern visually and the 1NN results. With careful selection, UMAP accuracy approached the opt-SNE result in their comparison. The discussion also reports that the settings that emphasized recognizable groups could make continuous marker variation harder to see. These observations tie the resource benchmark to a particular set of tested analyses.

FIt-SNE changes the approximation for repulsive forces using fast Fourier transforms. The authors report that when they applied opt-SNE parameter adjustments with the Fourier and Barnes–Hut approximations, they observed comparable map quality. That finding supports the view that the schedule can be useful with more than one implementation of t-SNE. In these experiments, the monitored divergence and the changing role of exaggeration carried over even though the computation of the repulsion used a different approximation.

### What the ablations show

#### Changing the exaggeration cutoff at a fixed budget

The initial comparison between standard and extended runs changed both phase lengths. To locate the source of the improvement, the authors next varied when early exaggeration ended and took snapshots during and after the calculation. The flow comparisons used a total budget of 2000 iterations, and the mass comparisons used 3000. Within each set, the variation in the schedule made it possible to observe what happened when the plateau was interrupted.

A run with exaggeration ending at 200 and a total of 3000 iterations could look better at a glance than the standard 1000-iteration map. Cell labels still revealed fragments of the same annotated populations. The authors examined fragments on pairs of the original marker axes and did not find an immediate marker pattern that explained the split. The comparison therefore gave them reason to connect the fragmentation to the optimization schedule.

When the plateau was allowed to finish, the authors observed tightly formed populations that largely kept their shape under continued exaggeration. They suggest that part of the remaining KLD decrease in this interval could reflect contraction of the map. Removing exaggeration allowed finer structures within the populations to become visible. These intermediate maps are central to the argument because they show the order in which features of the final map develop.

In the initial runs on the two cytometry datasets, the relative decrease in KLD peaked at about 700–720 iterations. With a further 300–1300 iterations after exaggeration, the authors obtained maps comparable in appearance to the longer run that ended exaggeration at 750. They observed no fragmentation of the kind seen in the short-exaggeration comparisons. The signal therefore identified a point at which the ordinary descent could take over, with timing tied to the observed progress of the run.

#### Changing the strength of exaggeration

The authors made the exaggeration factor editable so they could vary the strength separately from the cutoff. The standard Barnes–Hut value in the initial analysis was 12. With the factor set to 1, the calculations ran without exaggerated attraction. The resulting map showed substantial fragmentation that persisted even after 3000 iterations. The authors found less overlap than they had anticipated, illustrating that overlap and fragmentation can respond differently when the opening phase is removed.

They also examined stronger settings. When exaggeration ended at the detected peak, runs with factors from 4 to 60 had similar KLD at 2000 iterations. The authors describe visually similar outcomes over 4 to 20. Larger factors prolonged the plateau, and the paper reports detrimental KLD behavior for values over 100. At 200, the map was distorted and some smaller populations ceased to be recognizable.

Taken together, the comparisons explain the method’s treatment of the factor. Applying extra attraction helped the tested maps form coherent groups, and its timing mattered. Fine adjustment of the magnitude within the moderate range studied yielded much less change. This is why the proposed automation monitors the duration while retaining the factor as a setting. Extreme values remain consequential even when the algorithm can respond to the divergence trace.

#### Changing perplexity

The perplexity tests addressed a different proposed route to better maps. A higher perplexity gives a broader range of neighbors appreciable weight, which can affect the population arrangement. The authors examined maps and convergence traces across settings including 30, 50, 75, 100, and 150. They looked for clearer groups and for evidence that the plateau ended sooner.

With their early exaggeration setup, increasing perplexity offered little visible improvement and gave no clear acceleration of group formation. The KLD traces still helped describe the timing within each run. Their absolute values across settings were unsuitable for ranking the maps because each perplexity defines a different input similarity problem.

The authors found that the time needed to produce an embedding rose linearly with perplexity in the two Barnes–Hut implementations tested. They acknowledge that higher perplexity had helped some otherwise suboptimal runs. Their experiments suggest that part of the apparent opportunity for improvement through perplexity can diminish once the exaggeration phase is timed well. Any gain from a broader neighborhood then has to be evaluated against its cost and its effect on the kinds of structures the analyst wants to see.

#### Changing the learning rate and the time spent under exaggeration

The learning-rate sweep on mass41parameter fixed early exaggeration at 1000 iterations while the authors varied the initial step size. With starting values of 25 and 50, the divergence remained on the plateau throughout the exaggerated phase. At 200, the plateau ended in roughly the same part of the run as in the earlier baseline tests. Raising the starting rate let the calculation leave the plateau sooner and lowered the final KLD over part of the range.

The authors observed improvements up to 64,000 in this sweep. At 256,000, irregular peaks in the divergence trace indicated ineffective updates. A large initial step thus only helps within a usable range. Going beyond it can make the objective fluctuate even when the dataset is large enough to benefit from a substantially higher starting rate than the conventional default.

The authors then shortened exaggeration while exploring suitable larger steps. Runs with exaggeration limited to 200 or 100 iterations could reach low KLD quickly. One optimized example on mass41parameter used an initial step of 83,333, finished exaggeration at 77 iterations, and ran for 473 iterations in total. These settings illustrate how a transition that took several hundred updates with a conservative step could occur much earlier after scaling the rate.

The paper also compares standard settings, an adjusted plateau duration, an adjusted learning rate, and the combined opt-SNE schedule on the mass cytometry data. The post-exaggeration divergence traces are plotted in physical time. Putting these variants together helps separate the contributions of reaching the end of the plateau earlier and removing exaggeration once it has served its purpose. A larger step affects how soon the run becomes ready to switch. The cutoff determines when the switch actually occurs.

#### Extending opt-SNE beyond its endpoint

The termination test asks whether the chosen cutoff leaves measurable classification gains on the table. The authors took runs past the prescribed KLD endpoint and examined 1NN accuracy. They report that continuing did not improve accuracy in this comparison. The result supports the threshold as a practical endpoint for the evaluated runs.

The endpoint test differs from the earlier comparisons with standard t-SNE. In the standard comparison, extra iterations followed an opening phase that could produce persistent fragmentation. In the opt-SNE extension, the authors were testing a run that had already used the adapted phase schedule. Both experiments point to the importance of the trajectory. The value of another iteration depends on how the current arrangement was produced and how much room for improvement remains.

A further comparison concerned late exaggeration. Reapplying extra attraction can make compact groups visually prominent. The authors report only marginal benefits for the broad arrangement in their experiments and worse visibility of local structure. This observation fits their interpretation of the early phase: strong attraction is helpful while groups need to form, and the ordinary descent is important when variation inside them is the feature of interest.

### Limitations

#### Limits the authors identify

The authors explicitly identify cluster hierarchy as a structure that t-SNE cannot recover through the map alone. In the paper, broad structure means that populations become distinct, recognizable areas. A hierarchy would additionally specify nested relationships among groups. The comparisons with HSNE are about how particular cell subsets look at a chosen level of the display. HSNE’s ability to navigate multiple levels continues to address a separate analytical need.

The paper also emphasizes the tension between distinct clusters and continuous marker expression. Some features mark sharp phenotype differences. Others vary gradually across cells and their backgrounds. Stronger attraction or prolonged exaggeration can produce a visually compact map while making those gradients difficult to see. Local refinement gives the map more opportunity to express that variation. Its success remains tied to which features were measured and selected for analysis.

The authors discuss several cautions about perplexity. They cite earlier work warning that large values can introduce artificial breaks in a continuous manifold, a structure in which observations vary along connected directions. They also note that broader neighborhoods might preserve some continuous features when the computational cost is acceptable. Their own sweep concerns the tested datasets and settings. The importance of the parameter can change with the structure that the analyst is trying to display.

The discussion gives special weight to checking features with other analyses. A cluster can be visually prominent because of a biological distinction, preparation or acquisition effects, or preprocessing artifacts. Subject overlays and marker overlays help with that assessment because they link the apparent structure to measurements and sample membership. Where feasible, the authors advise confirmation by alternative methods. Their workflow improves the quality of a representation that can guide those checks.

The authors also qualify the transfer of opt-SNE to other implementations. Their comparison covers Barnes–Hut and Fourier approximations and motivates applicability where the core t-SNE procedure remains in place. They describe gradual, per-point removal of exaggeration in A-tSNE as a possibility for integration. The paper tests the global cutoff used in opt-SNE. The behavior of a gradual schedule applied separately to points remains outside that experiment.

#### Limits visible in the experimental setup

The paper tests several substantial single-cell datasets, but the strongest controlled parameter evidence comes from the mass and fluorescence benchmarks. The transcriptomics analysis uses one supplied set of PCA projections, and the HSNE analysis centers on the published mass cytometry comparison. These examples show that the schedule can help across different inputs. The size of the benefit and the best configuration for another type of data remain empirical questions.

The relative KLD peak is a heuristic derived from the convergence traces and intermediate maps. Its usefulness is shown by the observed relationship between the peak, the plateau, and visual separation. The fixed-step nonconvergence condition cited in the paper concerns a different learning-rate regime. It does not establish a general convergence guarantee for adaptive opt-SNE or a proof that the detected peak is the best switch point for every dataset. The final KLD threshold is supported by the reported accuracy check beyond the cutoff, under the conditions in which that check was performed.

The metrics cover different aspects of the output. Lower KLD means the map fits the chosen similarity objective better. Higher 1NN accuracy means nearby points more frequently share the supplied class under the evaluation procedure. Continuous phenotypes, unannotated rare groups, and nested population relationships are only partly represented by those measures. An embedding could improve its class agreement while still leaving a scientifically interesting gradient hard to discern. The paper’s use of marker overlays helps inspect such cases, though the interpretation remains feature-specific.

The nearest-neighbor methods description leaves the intended role of its training set ambiguous. A reader trying to reproduce the exact scores would need to establish whether the neighbor search used the sampled training reference or the stated test-set reference. The paper also reports many comparisons through representative plots. Matching seeds and repeated runs improve comparability, but the plotted examples give less detail about the spread of every result than the explicit seed and error-bar description for endpoint KLD.

The mouse brain experiment compares against an existing standard embedding. The total iteration counts are clear, and the gene and Louvain overlays give a direct way to inspect both outputs. The comparison offers more limited control over the conditions behind wall-clock time. The fluorescence and mass experiments on the multicore code provide a closer basis for attributing additional speed to the scheduling changes themselves.

The memory figures for UMAP, opt-SNE, and FIt-SNE describe the Omiq benchmark on the named dataset. The paper also reports that UMAP results are sensitive to its settings. Taken together, those details make the memory comparison specific to the implementations and conditions tested. The comparison with HSNE is similarly focused on particular phenotypes and on full-resolution views. It shows that an observed population can be clearer in one representation while leaving open how other populations would fare under other settings or levels of the hierarchy.

Biological interpretation has its own limits. The authors propose a differentiation-based reading of the CCR7 contrast and use sample overlays to associate a CD56 and CD45RA pattern with several subjects. The evidence shown is an arrangement of measured phenotypes and their distribution across those samples. Similarly, the mixing of subjects across most of the fluorescence map is evidence against a conspicuous batch separation in that display. Subtler batch effects and the biological basis of the observed subgroup differences require evidence beyond the coordinate map.

### What came after

The later citing work identified is Rudin and colleagues’ [Interpretable Machine Learning: Fundamental Principles and 10 Grand Challenges](https://md.research.elamur.ai/free/en/papers/rudin-2021-interpretable-machine-learning-fundamental/). The citation establishes a connection to a broader treatment of [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/). Its specific use of opt-SNE is unspecified, so the connection can be described at the level of the questions the titles and Belkina and colleagues’ experiments put in view.

Belkina and colleagues give a concrete example of why the construction of a visualization matters to its interpretation. The same cells and annotations can yield very different islands under different optimization schedules. Tracking the divergence and inspecting intermediate maps lets the authors connect some of those differences to when extra attraction was removed. Their evidence for a population still comes from the measurements and annotations that give the displayed group meaning. The later citation places this example of parameter-sensitive visualization in the literature on interpreting computational results.

## Cite

Cite as Anna C. Belkina, Christopher O. Ciccolella, Rina Anno, Richard Halpert, Josef Špidlen and Jennifer E Snyder-Cappione. 2019. Automated optimized parameters for T-distributed stochastic neighbor embedding improve visualization and analysis of large datasets. Nature Communications.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1038/s41467-019-13055-y](https://doi.org/10.1038/s41467-019-13055-y)

```bibtex
@inproceedings{belkina2019automated,
  title = {{Automated optimized parameters for T-distributed stochastic neighbor embedding improve visualization and analysis of large datasets}},
  author = {Anna C. Belkina, Christopher O. Ciccolella, Rina Anno, Richard Halpert, Josef Špidlen and Jennifer E Snyder-Cappione},
  booktitle = {Nature Communications},
  year = {2019},
  doi = {10.1038/s41467-019-13055-y},
  url = {https://doi.org/10.1038/s41467-019-13055-y}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
