본문 펼치기
# A Bayesian Framework for Cryo-EM Heterogeneity Analysis using Regularized Covariance Estimation
Marc Aur`ele Gilles, Amit Singer
October 27, 2023
## Abstract
Proteins and the complexes they form are central to nearly all cellular processes. Their flexibility, expressed through a
continuum of states, provides a window into their biological functions. Cryogenic-electron microscopy (cryo-EM) is an
ideal tool to study these dynamic states as it captures specimens in non-crystalline conditions and enables high-resolution
reconstructions. However, analyzing the heterogeneous distribution of conformations from cryo-EM data is challenging.
Current methods face issues such as a lack of explainability, overfitting caused by lack of regularization, and a large number of
parameters to tune; problems exacerbated by the lack of proper metrics to evaluate or compare heterogeneous reconstructions.
To address these challenges, we present RECOVAR, a white-box method based on principal component analysis (PCA)
computed via regularized covariance estimation that can resolve intricate heterogeneity with similar expressive power to
neural networks with significantly lower computational demands. We extend the ubiquitous Bayesian framework used in
homogeneous reconstruction to automatically regularize principal components, overcoming overfitting concerns and removing
the need for most parameters. We further exploit the conservation of density and distances endowed by the embedding in
PCA space, opening the door to reliable free energy computation. We leverage the predictable uncertainty of image labels
to generate high-resolution reconstructions and identify high-density trajectories in latent space. We make the code freely
available at `[https://github.com/ma-gilles/recovar](https://github.com/ma-gilles/recovar)` .
Proteins and their complexes play pivotal roles in cellular processes, governing essential biological functions. The function
of these biological macromolecules can be elucidated through the continuum of their structural states encompassing local
dynamics, large-scale rearrangement of domains, and modification of subunits.
Cryogenic electron-microscopy (cryo-EM) stands out as an ideal technique to study the dynamic conformational landscape
of biomolecules and was selected as one of the “Methods to Watch” in 2022 by Nature Methods [9]. The reason lies primarily
in its sample preparation: cryo-EM enables imaging of biological specimens in a frozen-hydrated condition, bypassing the
need for crystallization, which can alter the structure and force all specimens to take the same conformation. Therefore,
cryo-EM’s unique preservation technique offers a more faithful representation of their functional states and can capture a
snapshot of their entire conformational ensemble. Furthermore, cryo-EM’s capacity to capture high-resolution images of
individual particles allows the reconstruction of high-resolution structures and the identification of distinct conformational
states with even tiny differences.
However, the computational and modeling challenges posed by deciphering the heterogeneous distribution of conformations
from cryo-EM datasets are considerable. The workhorse of cryo-EM heterogeneity analysis is 3D-classification [34], which
aims to discern discrete conformational states. While effective for a few evenly distributed states, this approach encounters
difficulties with many states or uneven distributions of discrete states and cannot capture continuous changes.
A diverse array of methods has been proposed to address these challenges. These methods encompass rigid body fitting [25], linear subspace methods [42, 15, 26, 1, 29], deep-learning approaches [48, 3], manifold learning methods [12, 24, 37],
strategies based on molecular dynamics [44], and methods focused on computing deformation maps [13, 30]. For comprehensive coverage of these rapidly evolving methodologies, refer to [40, 43, 10].
Though diverse in their details, most of these methods share a common framework: they employ a mapping to embed
images into a “latent space”. This mapping aims to isolate image variations stemming from irrelevant factors like pose,
imaging effects, and noise, focusing solely on variability due to conformational changes. A second mapping then translates
this latent space into conformational states, either through a parametric map or by generating homogeneous reconstructions
based on images situated in the same neighborhood of the latent space.
Significant advancements have been made in recent times, particularly with the utilization of neural networks achieving
high visual resolution <sup>1</sup> . However, present methods grapple with several issues, including a lack of explainability, the absence
of regularization, and numerous parameters requiring tuning. These challenges are further exacerbated by the absence
of metrics to validate or compare results from heterogeneity analysis in cryo-EM. Consequently, distinguishing between a
genuinely high-resolution reconstruction and a mere overfit artifact remains difficult.
Additionally, the reconstruction phase is often only the beginning of the analysis. Estimating the energy of states or
motions is often the ultimate goal. Both quantities are typically calculated based on recovering the likelihood of observing
each state in the data, usually numerically estimated by density estimation in latent space. However, most methods for
generating latent space do not conserve distances or densities. Thus, the energy estimates obtained this way can be entirely
unrelated to the data and instead be artifacts of the method [19, 43].
To tackle these challenges, we introduce RECOVAR, a method grounded in principal component analysis (PCA) computed
via REgularized COVARiance estimation. This method is white-box, automatically regularized, allows for the estimation of
density, and offers results that are competitive with neural networks but with significantly reduced computational requirements.
We overcome overfitting and parameter-tuning issues using a Bayesian framework, building upon successful schemes for
homogeneous reconstructions [35]. Our method belongs to the family of linear subspace methods, which have recently achieved
practical success thanks to 3DVA [29], implemented in the popular software suite cryoSPARC [31]. However, linear subspace
methods have often been considered to be limited to low resolution [41] or suitable only for capturing “small” motion and
“simple” heterogeneity. We demonstrate that this perception is primarily based on misunderstanding their properties. Linear
subspace methods do not capture the inherent heterogeneous dimension but are more akin to a change of basis. Specifically,
they compute the optimal truncated basis to represent the heterogeneity and express conformational states as projections
in this new coordinate system. As a result, a one-dimensional motion is typically not well-embedded in a one-dimensional
subspace. However, we show that simply computing larger subspaces overcomes this limitation.
This advancement allows the exploitation of crucial properties of linear subspace methods: they approximately conserve
density and distances, opening the door to rigorous energy computation. They yield predictable uncertainty, which we
leverage to generate high-resolution volumes by selecting subsets of images using simple statistical tests. Finally, we leverage
the density estimates to identify high-density trajectories in latent space and recover motions.
## 1 Results
1.1 Heterogeneity analysis by regularized covariance estimation
The method presented here uses PCA to compute an optimal linear subspace to represent the heterogeneous distribution of
states. However, applying PCA to conformational states in cryo-EM data introduces a significant complexity: the observations
are projection images of the conformational states, not the states themselves. Therefore, more than a straightforward
application of PCA is needed. The principal components are also the eigenvectors of the covariance matrix of conformations,
and remarkably, this covariance matrix can be estimated directly from projection images [15, 1]. Hence, as depicted in fig. 1 <sup>2</sup>,
our pipeline initiates with the statistical estimation of the mean and covariance of the conformational states directly from
projection images. These estimation problems are regularized by splitting the data into halfsets and extending the Fourier
Shell Correlation (FSC) regularization scheme ubiquitously used in homogeneous reconstruction [35]. Once computed, the
eigenbasis of the covariance matrix provides the principal components. In the subsequent stage, we employ a Bayesian
framework to infer each image’s probable conformation distribution within this eigenbasis. Ultimately, the aggregated
distribution in the latent space is harnessed to generate volumes and high-density motions.
The image formation process of cryo-EM, relating a 2-D image _yi_ _∈_ C <sup>_N_</sup> <sup>2</sup> to a 3-D conformation _xi_ _∈_ C <sup>_N_</sup> <sup>3</sup>, is typically
modeled as:
_yi_ = _CiP_ <sup>ˆ</sup> ( _φi_ ) _xi_ + _ϵi,_ _ϵi_ _∼N_ (0 _,_ Λ _i_ ) _,_ (1)
where _P_ <sup>ˆ</sup> ( _φi_ ) is a projection from 3-D to 2-D after rigid body motion parametrized by _φi_, _Ci_ is the contrast transfer function
(CTF), and _ϵi_ is Gaussian noise with covariance Λ _i_ . In typical cryo-EM reconstruction, the poses _φi_ are unknown and need
to be inferred, often through a scheme alternating between inferring states _xi_ and poses _φi_ . In what follows, we assume
that poses _φi_ have been previously estimated, typically from a consensus reconstruction as is a common assumption for
heterogeneity methods [48, 29], and fix the linear maps _Pi_ := _CiP_ <sup>ˆ</sup> ( _φi_ ). This assumption is restrictive as the poses cannot
be estimated from consensus reconstructions for some highly heterogeneous cryo-EM datasets. For datasets where poses can
be estimated from consensus reconstructions, alignment will likely not be perfect, and the residual pose errors can result in
lower-than-possible resolution or even spurious heterogeneity. While some neural methods [20, 49] have shown the ability to
infer poses ab initio on some datasets, robust pose estimation for highly heterogeneous datasets remains an open problem
which we come back to in the discussion.
1We use the term “visual resolution” to refer to volume reconstructions which display visually high-resolution features, although quantifying
that resolution is typically challenging; see appendix A.7 for clarification
2The spatial domain variance map is displayed in fig. 1 only for illustration, the regularization is computed between columns of the covariance
matrix in the Fourier domain, see appendix A.3.
When poses are known, the mean conformation can be straightforwardly estimated by solving a linear least-squares
problem:
<sup>_−_</sup> _i_ <sup>1</sup> + _∥µ∥_ <sup>2</sup> _w_
_µ_ ˆ := arg min
_µ_
_n_
_i_ =1
_∥yi −_ _Piµ∥_ <sup>2</sup> Λ
<sup>2</sup> Λ <sup>_−_</sup> _i_ <sup>1</sup>
<sup>2</sup> _w_ <sup>_,_</sup> (2)
where _w_ are the Wiener filter parameters, and _n_ is the number of images. Equation (2) is also the problem usually solved
during homogeneous reconstruction. In that case, the weights _w_ are often set using the FSC regularization scheme [35]; for
example, it is the default method in popular cryo-EM software such as RELION [35] and cryoSPARC [31].
Analogously, the covariance of conformations - encoding the first-order deviations from the mean conformation - can be
estimated using the following linear least-squares estimator [1, 15]:
_n_
ˆΣ := arg min
Σ
_i_ =1
_i_ <sup>_∗_</sup> <sup>+ Λ</sup> <sup>_i_</sup> <sup>)</sup> <sup>_∥_</sup> <sup>2</sup> _F_
<sup>2</sup> _R_ <sup>_,_</sup> (3)
_∥_ ( _yi −_ _Piµ_ ˆ)( _yi −_ _Piµ_ ˆ) <sup>_∗_</sup> _−_ ( _Pi_ Σ _Pi_ <sup>_∗_</sup>
<sup>2</sup> _F_ <sup>+</sup> <sup>_∥_</sup> <sup>Σ</sup> <sup>_∥_</sup> <sup>2</sup> _R_
where _∥A∥_ <sup>2</sup> _F_
_i,j_ <sup>_A_</sup> <sup>2</sup>
<sup>2</sup> _R_ <sup>=</sup> <sup>�</sup>
_i,j_ <sup>_A_</sup> <sup>2</sup>
<sup>2</sup> _F_ <sup>=</sup> <sup>�</sup>
_i,j_ <sup>2</sup> <sup>and</sup> <sup>_∥A∥_</sup> <sup>2</sup> _R_
where _∥A∥_ <sup>2</sup> _F_ <sup>=</sup> <sup>�</sup> _i,j_ <sup>_A_</sup> _i,j_ <sup>2</sup> <sup>and</sup> <sup>_∥A∥_</sup> <sup>2</sup> _R_ <sup>=</sup> <sup>�</sup> _i,j_ <sup>_A_</sup> _i,j_ <sup>2</sup> <sup>_Ri,j_</sup> <sup>and</sup> <sup>_R_</sup> <sup>is</sup> <sup>the</sup> <sup>regularization</sup> <sup>weights.</sup> <sup>Unfortunately,</sup> <sup>the</sup> <sup>computation</sup> <sup>of</sup>
this covariance estimator is a massive computational burden; e.g., representing conformations on a grid of size 128 <sup>3</sup> would
result in a covariance matrix with 128 <sup>6</sup> entries—or 17 terabytes in single-precision floating-point. One solution to this
problem proposed in [42] and adopted in 3DVA [28] is bypassing the covariance estimation and approximating the principal
components through an iterative procedure.
We take a different route that does not require iteration—an expensive computation for large cryo-EM datasets—and
instead computes the principal component using modern linear algebra techniques. The algorithm presented relies on two
main computational tricks; the first exploits the hidden structure in eq. (3): it can be reduced to a _Hadamard_ linear system,
whose entries can be solved efficiently and independently, see appendix A.1. The second trick is based on the observation
that for low-rank covariance matrices Σ, only a subset of the columns is required to estimate the entire matrix and its leading <sup>ˆ</sup>
eigenvectors, which are the principal components we seek. This celebrated fact in numerical linear algebra is the basis of
numerical schemes such as the Nystr¨om extension [46], see appendix A.2.
Entries of Σ are estimated with a high dynamic range of signal-to-noise ratio (SNR). This is analogous to the homogeneous <sup>ˆ</sup>
reconstruction problem: low-frequency coefficients are easier to estimate as they are more often observed in images due to the
Fourier slice theorem. The covariance estimation problem presents an even wider range of SNR across pairs of frequencies [15];
making careful regularization even more crucial. To that end, we generalize the FSC regularization used in homogeneous
reconstruction to the covariance estimation problem by carefully accounting for the highly nonuniform sampling of entries
of the covariance matrix. Briefly, this regularization proceeds by splitting the dataset into two halves and computing two
independent copies of the same object. The correlation scores between the two copies provide estimates of the SNR, which
can be used to set the regularization weights; see appendix A.3 for details. Optionally, we use a real-space mask to focus
the analysis on the part of the molecule or to boost the SNR of the covariance estimation. Finally, after the regularized
covariance is estimated, principal components are extracted with a singular value decomposition.
These computational advances, coupled with new regularization strategies for the covariance matrix, allow us to robustly
and efficiently compute many principal components at high resolution that can encode a rich distribution of heterogeneous
conformations. This helps alleviate a main limitation of linear subspace methods: their sometimes limited representation
power for low dimensional subspace.
1.2 Estimation of random conformations
We next turn to the problem of estimating the conformation present in each image. Due to noise and projection ambiguity,
confidently matching an image to a single conformation is often impossible. Instead, we use a Bayesian framework to find
a distribution of likely states for each image; Under the likelihood model in eq. (1), the posterior probability that an image
comes from a particular state can be computed using Bayes’ law:
_P_ ( _xi|yi_ ) = <sup>_<u>P</u>_</sup> <sup><u>(</u></sup> <sup>_<u>yi|xi</u>_</sup> <sup><u>)</u></sup> <sup>_<u>P</u>_</sup> <sup><u>(</u></sup> <sup>_<u>xi</u>_</sup> <sup><u>)</u></sup> _∝_ _P_ ( _yi|xi_ ) _P_ ( _xi_ ) _._ (4)
_P_ ( _yi_ )
We approximate the distribution of states as a normal distribution _P_ ( _xi_ ) = _N_ (ˆ _µ,_ Σ), plug the truncated eigenvalue expansion <sup>ˆ</sup>
of the estimated covariance matrix Σ <sup>ˆ</sup> _≈_ _U_ Γ _U_ <sup>_∗_</sup> where the columns of _U_ _∈_ C <sup>_N_</sup> <sup>3</sup> <sup>_×d_</sup> are the estimated principal components
and the diagonal entries of Γ are the estimated eigenvalues, and reparametrize _xi_ by its coordinates in the low-dimensional
basis _zi_ = _U_ <sup>_∗_</sup> ( _xi −_ _µ_ ˆ) _∈_ R <sup>_d_</sup>, where _d_ is the number of chosen principal components. We refer to the coordinate _zi_ as living in
latent space and refer to states _xi_ _∈_ R <sup>_N_</sup> <sup>3</sup> as living in volume space to make the distinction. We can now estimate explicitly
a distribution of possible states _zi_ present in a given image _yi_ :
_P_ ( _zi|yi_ ) _∝N_ ( _µzi,_ Σ _zi_ ) _,_ (5)
where _µzi_ and Σ _zi_ are the mean and covariance estimate of the conformation in image _i_, with explicit formulas given
in appendix A 5 The covariance conformation estimate Σ reflects the uncertainty in the latent variable assigned to image
_i_, and is leveraged to generate volumes and trajectories in subsequent steps. We further allow for contrast variation in
each image by computing a per-image optimal scaling parameter similar to [29, 39], and describe a method to estimate this
parameter at virtually no extra cost; see appendices A.4 and A.5 for details.
We define the _latent_ _density_ as the average of densities across all images:
_D_ ( _z_ ) = <sup><u>1</u></sup>
_n_
_n_
- _N_ ( _µzi,_ Σ _zi_ ) _._ (6)
_i_ =1
The _true_ density of conformational states is of great biological interest as it is a measure of the free energy of a particular
state through the Boltzmann statistics. The latent density in eq. (6) is a kernel density estimate of the volume density,
and may be used as a proxy of this true density for some purposes. It should be noted that it differs from it in important
ways: _D_ ( _z_ ) is defined over a different space (volumes instead of atomic positions), and it encodes not only states but also
uncertainty around states due to noise and projection ambiguities. Most importantly, the dimension of the linear subspace
required to represent a certain heterogeneity is often higher than the intrinsic dimension of that heterogeneity; thus, only a
small subset of positions in latent space encodes a valid state. For this reason, it is essential to sample conformational states
only at meaningful places in the latent space, typically those of high density.
1.3 Volume generation
Once a latent space coordinate _z_ is selected, the corresponding volume can be reconstructed by different methods. We highlight
two here and dicuss others in section 2. One approach, coined _reprojection_, uses the explicit inverse map _z_ _→_ _Uz_ + ˆ _µ_, which
entails taking a linear combination of principal components. This reprojection scheme works well when the SNR is sufficiently
high to compute all the relevant principal components. This is illustrated in fig. A.9, for instance.
In practice, limited SNR often allows access to only a subset of necessary principal components, and it is preferable to
generate volumes from a different method. A simple alternative is to use a _reweighting_ scheme, which generates homogeneous
reconstructions from particle subsets. It is a common strategy in heterogeneity methods [29, 5], with the choice of subsets
heavily dependent on the employed embedding.
These two schemes for volume generation highlight two different interpretations of linear subspace methods. While
the reprojection scheme might be interpreted as explicitly modeling heterogeneous distributions as linear combinations of
volumes, the reweighting scheme underscores an alternative and sometimes more appealing interpretation: it merely computes
the projection of conformational states onto a low-dimensional subspace. PCA identifies the _optimal_ subspace, and endows
the resulting embedding with desirable properties: distances, density, and uncertainty are preserved between volume and
latent space up to truncation error in the subspace.
We propose a reweighting scheme that leverages these benefits: given a state represented by a latent vector _z_, we compute
the likelihood that each image belongs to that state. Images with a high likelihood of originating from state _z_ are selected
according to the likelihood model in eq. (5). Specifically, we identify the set of images as defined by:
_d_ <sup>2(</sup> <sup>_q_</sup> <sup>)</sup>
_I_ ( _z_ ) =
- _i |_ ( _z −_ _µzi_ ) <sup>_∗_</sup> Σ <sup>_−_</sup> _zi_ <sup>1</sup>
<sup>_−_</sup> _zi_ <sup>1(</sup> <sup>_z −_</sup> <sup>_µz_</sup> _i_ <sup>)</sup> <sup>_≤_</sup> <sup>_χ_</sup> _d_ <sup>2</sup>
- _,_ (7)
where _χ_ <sup>2</sup> _d_ <sup>(</sup> <sup>_q_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>quantile</sup> <sup>function</sup> <sup>for</sup> <sup>probability</sup> <sup>_q_</sup> <sup>of</sup> <sup>the</sup> <sup>chi-squared</sup> <sup>distribution</sup> <sup>with</sup> <sup>_d_</sup> <sup>degrees</sup> <sup>of</sup> <sup>freedom</sup> <sup>(equal</sup> <sup>to</sup> <sup>the</sup>
dimension of _z_ ). This is the high-dimensional generalization of the familiar interval estimation, and unless stated otherwise,
we set _q_ _≈_ 0 _._ 95 corresponding to a two-standard deviation interval when _d_ = 1. That is, under this model, we expect that
_q_ _≈_ 95% of images in the dataset truly coming from state _z_ are included in the set _I_ ( _z_ ), though subspace truncation may
introduce some covariance estimation inaccuracy. Increasing _q_ increases the number of images coming from _z_ included in
_I_ ( _z_ ) (i.e., it decreases false negatives), but also includes images coming from increasingly different states (it increases false
positives).
To resolve the high-resolution frequencies, homogeneous reconstructions carefully average individual frequencies across
a large number of images, thereby averaging out the noise. Ideally, one would like to do the same in heterogeneous reconstruction, but that averaging comes with a tradeoff as each image may come from a slightly different conformation. Here
lies the delicate tradeoff at the heart of every heterogeneous reconstruction algorithm: aggregating images is necessary to
overcome the noise but degrades the amount of heterogeneity captured. When the mapping from latent space to volume
space is parametric, this choice is made implicitly by the parametrization, often by imposing some degree of smoothness.
Here, the parameter _q_ makes this tradeoff explicit.
After the subset of images is identified, a homogeneous reconstruction, including FSC regularization, is employed to
reconstruct a volume from that subset of images. The different strategies for volume reconstruction are illustrated in fig. 2.
1.4 Motion recovery
Traditionally, linear subspace methods attempt to recover motions by moving along straight lines in the latent space, corresponding to linear interpolation in volume space. For instance, in 3DVA [29], individual principal components are traversed
to generate axes of motion However this straightforward linear approach falls short because even a simple linear motion
of atoms translates to a highly nonlinear trajectory when observed in volume space. Consequently, a linear path in volume
or latent space cannot adequately capture rigid motion, let alone general atomic movements. Fortunately, linear functions
locally approximate smooth functions well, allowing small motions to occasionally be captured by traversing a single principal
component. In most cases, multiple principal components are needed to accurately represent a single motion, which can lead
to significant artifacts when using only one, as illustrated in fig. A.8. Furthermore, multiple axes of motion are typically
embedded in the same principal component, as we illustrate below. This lack of separation is clear from the theory: independent variables are not encoded in different principal components by PCA. Alternative decompositions such as Independent
Component Analysis (ICA) [7] have that property but require estimating higher-order statistics.
We adopt an alternate strategy based on physical considerations: molecules display stochastic motions, randomly walking
from one state to neighboring ones with probability depending on the rate of change of free energy, generally preferring to
move towards low free energy states. A physically more meaningful way to estimate trajectory would thus be to find the
most likely trajectory between two states. This trajectory could, in theory, be computed using linear subspace methods; as
both distances and density, which can be used to infer energy, are approximately conserved by the embedding. However,
high noise levels and the motion’s stochastic nature make this task difficult.
We instead propose a simpler heuristic with some of the properties of this trajectory that overcomes the clear pitfalls of
linear trajectories: we generate non-linear motions by computing short and high-density continuous trajectories of volumes
between two predetermined conformational states. Since high-density states correspond to low energy, we expect this trajectory to behave like the most likely one. Furthermore, exploiting density allows the trajectory to stay in meaningful regions
of latent space.
Given that distances and density are approximately preserved between volume and latent space due to the PCA embedding,
we can directly approximate these trajectories in the latent space. Specifically, we compute a trajectory between two states
that minimizes the cumulative inverse density. That is, we find the trajectory _Z_ ( _t_ ) : R <sup>+</sup> _→_ R <sup>_d_</sup> that minimizes the expression
min
_Z_ ( _t_ )
- _t_ = _Ta_
_t_ =0
_D_ ( _Z_ ( _t_ )) <sup>_−_</sup> <sup>1</sup> _dt_ _,_ (8)
subject to _Z_ (0) = _z_ start, _Z_ ( _Ta_ ) = _z_ end, with _Ta_ = min _{t|Z_ ( _t_ ) = _z_ end _}_ and _D_ ( _z_ ) is the latent density defined in eq. (6).
Minimizing eq. (8) falls under the category of classical optimal control problems, see e.g. [2, 38], and appendix A.6 for our
implementation details. Next, we demonstrate on real and simulated datasets that this approach can recover large and
intricate motions.
1.5 Reconstruction of large synthetic motion
We commence our evaluation by applying our method to a synthetic dataset introduced in [48]. This dataset depicts an
artificial rotational motion of a protein complex comprising 50,000 images, each sized at 128 _×_ 128. Despite being characterized
by relatively high SNR and having known uniform poses, this motion is large, presenting a scenario where linear subspace
methods are traditionally expected to perform poorly.
First, we obtain a mask using real-space correlation based on mean estimates obtained from two half-sets through the
EMDA toolbox [45]. Next, we retrieve principal components estimated with varying levels of accuracy, see fig. A.6. We use
the top four for analysis. We then project the two ground-truth extreme states into the latent space through the mapping
_x_ _→_ _U_ <sup>_∗_</sup> ( _x −_ _µ_ ˆ), recover a trajectory between these states by solving eq. (8), and generate volumes by reweighting. As
observed in fig. 2, we recover the correct motion with high visual resolution. The computation requires 8 minutes on one
GPU, with detailed timings in table 1.
Despite the simplicity of the rigid motion, its representation forms a highly nonlinear curve in latent and volume space.
This example illustrates the issues of attempting to decode motion solely by traversing a principal component: a single
motion is present in the dataset, yet its accurate recovery requires multiple principal components. Thus, generating multiple
motions from different principal components would yield multiple erroneous trajectories. Furthermore, the motion is not
monotonous within any of the principal components. Therefore, traversing a single principal component coupled with a
reweighted strategy results in averaging images from very different states, as illustrated in the output of 3DVA in fig. A.8.
In appendix A.8, we also show results of our method on the same trajectory but with images sampled nonuniformly across
states, and a comparison with the neural network method cryoDRGN on that dataset. Our method performs similarly to
the uniform case, only with lower-resolution reconstructions of states less frequently observed in images. In contrast, while
cryoDRGN embeds the distribution effectively, its embedding is disordered in this case. This uninformative structure results
from the lack of conservation of distances in latent space. Consequently, the trajectories generated in this embedding show
either no motion or discontinuous jumps. Furthermore, the recovered trajectory visits low-occupancy parts of the latent space,
resulting in hallucinated states not present in the data but still displaying high-resolution features. This difference between
the trajectories recovered by the two methods highlights the importance of density, distance, and uncertainty preservation in
the embedding.
Step Complexity Timing
Covariance Σ <sup>ˆ</sup> col and principal component _U_ estimation _O_ ( _nkN_ <sup>2</sup> + _nk_ <sup>3</sup> + _k_ <sup>2</sup> _N_ <sup>3</sup> ) 5m58s
Per-image means _µzi_ and covariance Σ _zi_ estimations _O_ ( _ndN_ <sup>2</sup> + _nd_ <sup>3</sup> _na_ ) 12s
Trajectory computation _O_ ( _g_ <sup>4</sup> _n_ + _g_ <sup>2</sup> _dn_ ) 1m55s
Volume generation (per conformation, amortized) _O_ ( _nN_ <sup>2</sup> + _N_ <sup>3</sup> ) 2s
Total 8m21s
Table 1: Timing and complexity of each step on simulated dataset of _n_ = 50 _,_ 000 images of size _N ×N_ = 128 _×_ 128, computing
_k_ = 298 columns, using the first _d_ = 4 principal components, with contrast interval and latent space discretization parameters
_na_ = _g_ = 50 defined in appendices A.5 and A.6 respectively. Since all _k, g, na_ are fixed in practice, the run time is typically
_O_ ( _nN_ <sup>2</sup> ) for large datasets ( _n_ ⪆ 10 <sup>5</sup> ), and _O_ ( _N_ <sup>3</sup> ) for small datasets. Timings were performed on an NVIDIA A100 80GB
GPU.
1.6 Reconstruction of synthetic multi-dimensional motion
Next, we evaluate our method using a more complex synthetic dataset that better resembles real-world conditions with
realistic factors such as SNR, pose distribution, image contrast, and motion patterns, see fig. 3. This dataset comprises
approximately 300,000 images and is designed to mimic the heterogeneity observed in the precatalytic spliceosome structure,
as reported in previous studies [27, 25]. The dataset involves three bodies that move independently, creating multidimensional
heterogeneity. We construct two types of motions: one two-dimensional landscape of top-down motions where two bodies
move independently (80% of images) and one trajectory of left-right motions of both bodies (20% of images). One trajectory
is significantly more frequent in the images among the top-down motions.
We again form a mask from the halfset mean estimates, compute the first four principal components, and project the
ground truth extremal states into latent space. We then generate trajectories by solving eq. (8), and generate volumes along
the recovered trajectories by the reweighting scheme.
We recover the correct motion in both cases, highlighting the capability of linear subspace methods to recover large,
intricate motions in realistic conditions. The reconstructed volumes closely match the ground truth volumes, even though
trajectories do not exactly match in latent space. This discrepancy is due to the regularization of latent coordinates in eq. (19),
which improves the robustness of the trajectory at the cost of biasing the estimated latent coordinates towards the origin.
This further regularization makes the method robust to the number of and noise in principal components; e.g., even though
the fourth central component displays some noise, the ultimate reconstructions do not suffer from it. The resolution of the
reconstructed states in these trajectories is not constant, a variation that stems from the uneven distribution of images along
each trajectory. This observation underscores the data-hungry nature of reweighting schemes [43] and points to the possible
advantages of parametric mapping, which can trade off bias for improved resolution.
The results also highlight that interpreting principal components as motions as in 3DVA is misleading since two motions
in orthogonal directions are partially embedded into the same principal component direction _z_ 2.
1.7 Motions of the spliceoseaume
We apply the method on the precatalytic spliceosome dataset [27] (EMPIAR-10180), which is a well-characterized dataset
commonly employed for benchmarking continuous cryo-EM heterogeneity methods. We downsample the stack of approximately 300,000 images to a size of 256 _×_ 256.
Our analysis focuses on a specific region, the head of the structure, for which we create a loose focusing mask to highlight
the capability and boost SNR. We compute principal components with contrast correction (see fig. 4(a)) and use the first
ten to generate 40 different states using the centers of k-means clustering on the collection of _µzi_ . Six of these states,
superimposed on a UMAP [23] visualization of the set of _µzi_ are shown in fig. 4(b).
Similar to the findings in [48], our observations reveal a combination of discrete and continuous heterogeneity. The discrete
heterogeneity is due to a denatured state characterized by a partially absent head region, and the continuous heterogeneity
is due to a large range of top-down displacements and a smaller range of left-right displacements of the head from a central
base state (visualized here as the _z_ = 0 position). We generate a top-down motion and a left-right motion by picking states
generated from the k-means centers as endpoints (see fig. 4(c)). Notably, the latent space exhibits less structured behavior
than the simulated dataset in fig. 3. This lack of structure could be due to a single central state being stable, with all other
states representing perturbations of it. However, unmodeled error sources such as miss-alignments or junk particles could
contribute to this less structured latent space configuration. Our method computes this embedding in 1 hour and 42 minutes
on 1 GPU, 12 _×_ faster than cryoDRGN on the same hardware, see table A.2 for details.
1.8 Assembly states of the ribosome
We next analyze the ribosomal subunit dataset (EMPIAR-10076) [6], known for its significant compositional heterogeneity.
This dataset has been extensively studied, revealing 14 distinct assembly states through repeated 3D classification [6] in the
original research and one additional state identified by cryoDRGN [48].
Starting with a filtered particle stack containing around 87,000 particles from the cryoDRGN study, we perform an initial
run of our algorithm by downsampling images to a box size of 128 and using a loose spherical mask. We then compute the
real-space variance map <sup>3</sup> allowing us to pinpoint regions with high variance used to generate a mask for subsequent analysis
(as seen in fig. 5(a)). Using the mask, we run the algorithm once more on the stack with a box size of 256. We find that this
strategy of generating a focusing mask around regions of high variance helps boost the SNR of highly heterogeneous datasets.
We use a 20-dimensional PCA to embed the particles in latent space and display UMAP visualization of the _{µzi}i_ . We
then produce volumes by reweighting to highlight the wealth of states captured by the linear subspace in fig. 5. Reprojected
states, stability under different numbers of principal components, and the embedding obtained by cryoDRGN are also shown
in fig. A.9 for comparison. Interestingly, the UMAP representation of cryoDRGN and our method are strikingly similar despite
the two approaches using vastly different embedding strategies. This result illustrates the high representation capacity of
linear subspace methods with a large subspace size comparable to a highly non-linear neural method. We compute the
embedding with box size 128 in 7 minutes, 11 _×_ faster than cryoDRGN, and the embedding with box size 256 in 48 minutes,
6 _×_ faster than cryoDRGN, see table A.2 for details.
3We compute the real-space variance map from the low-rank form of ˆΣcol = _U_ Γ _U_ _∗_ in the Fourier domain by var _i_ = _|_ ( _F −_ 1 _U_ Γ1 _/_ 2): _,i|_ 2, that is,
th d f th f _F_ <sup>_−_</sup> <sup>1</sup> _U_ Γ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> h _F_ <sup>_−_</sup> <sup>1</sup> i th 3D i di t F i t f t i
Figure 1: Illustration of the regularized covariance pipeline for heterogeneity analysis in cryo-EM. (a) The mean and covariance of the distribution of states are estimated and regularized using the FSC of two reconstructions from halfsets. The
principal components are then computed. (b) Each image is assigned a probabilistic estimate, and the densities are averaged
across the dataset to compute the latent density. (c) States are sampled and reconstructed. (d) Motions are generated by
computing optimal continuous high-density trajectories between an initial and final state in latent space (indicated by a star
and a square). Intermediate reconstructed volumes at uniform distances along the path, indicated by circles in latent space,
are displayed.
Figure 2: Illustration of recovered volumes and trajectories from dataset described in section 1.5 (a) . Visualization of the true
trajectory (black dashed) and recovered trajectory (blue dashed) plotted over the estimated latent density. The trajectories
and latent densities are four-dimensional, and each plot is a projection onto a pair of dimensions. (b) Visualization of the
true volumes and reconstructed volumes along the estimated trajectory by reweighting and reprojection at the end states
(star and square) and intermediate states sampled at uniform intervals along the trajectory (circles). (c) Scatter plot of
log-likelihoods ( _z_ _−_ _µzi_ ) <sup>_∗_</sup> Σ <sup>_−_</sup> _zi_ <sup>1(</sup> <sup>_z_</sup> <sup>_−_</sup> <sup>_µz_</sup> _i_ <sup>)</sup> <sup>at</sup> <sup>the</sup> <sup>decoded</sup> <sup>_z_</sup> <sup>’s</sup> <sup>along</sup> <sup>the</sup> <sup>recovered</sup> <sup>trajectory.</sup> <sup>Each</sup> <sup>of</sup> <sup>the</sup> <sup>50,000</sup> <sup>particles</sup> <sup>is</sup>
log-likelihoods ( _z_ _−_ _µzi_ ) <sup>_∗_</sup> Σ <sup>_−_</sup> _zi_ <sup>1(</sup> <sup>_z_</sup> <sup>_−_</sup> <sup>_µz_</sup> _i_ <sup>)</sup> <sup>at</sup> <sup>the</sup> <sup>decoded</sup> <sup>_z_</sup> <sup>’s</sup> <sup>along</sup> <sup>the</sup> <sup>recovered</sup> <sup>trajectory.</sup> <sup>Each</sup> <sup>of</sup> <sup>the</sup> <sup>50,000</sup> <sup>particles</sup> <sup>is</sup>
represented at its MAP-estimate _µzi_ . The threshold used for reweighting is _χ_ <sup>2</sup> 4 <sup>(0</sup> <sup>_._</sup> <sup>95)</sup> <sup>_≈_</sup> <sup>101.</sup>
<sup>2</sup> 4 <sup>(0</sup> <sup>_._</sup> <sup>95)</sup> <sup>_≈_</sup> <sup>101.</sup>
Figure 3: Pipeline applied to a realistic synthetic dataset. (a) Simulated dataset of the precatalytic spliceosome with three
bodies moving independently. A landscape of motions consisting of 80% of images where the orange and pink bodies move
independently in top-down motions, including a high-density trajectory where both bodies first move down together, and
the orange body then locks back into place. A second motion, consisting of 20% of images, shows the two bodies’ left-right
motion. (b) Depiction of the first five estimated principal components displaying a decaying SNR, as expected in PCA. (c)
Scatter plot of each image’s inferred versus ground truth amplitude contrast. (d-e) The two ground truth and two recovered
trajectories in volume and latent space. The star and the square represent the endpoints, and the circles are intermediary
states at equidistant points along the trajectory. The bottom row shows the recovered trajectory over pairs of dimensions
overlayed on the latent density integrated over the remaining dimensions.
Figure 4: Pipeline applied to the precatalytic spliceosome dataset (EMPIAR-10180). (a) Computed mean, with focusing
mask overlayed and first six principal components computed. (b) Six conformational states which were obtained by clustering
the distribution of _{µzi}i_ . (c) A top-down (blue-dotted) and left-right (black-dotted) trajectories were reconstructed by using
identified k-means centers as endpoints and solving eq. (8). The two trajectories are also plotted in latent space over pairs
dimensions. All reconstructions are displayed with a B-factor correction of 170 <sup>˚</sup> _A_ <sup>2</sup> .
Figure 5: Pipeline applied to a ribosome dataset (EMPIAR-10076). (a) Initial run using a spherical mask. We use the
computed mean and real-space variance map to identify a region of high variability to form a mask. (b) Estimated principal
components with a box size of 256 and the generated mask. (c) UMAP visualization of the 20-dimensional embedding
color-coded with published labels. Circles denote the median embedding of images with each published label, and the states
reconstructed at those positions with _q_ in eq. (7) chosen corresponding to a 8 standard deviation in one dimension, selected
so that _>_ 90% of images are in at least one of the sets _I_ ( _z_ ). All states are displayed with a B-factor correction of 170 <sup>˚</sup> _A_ <sup>2</sup> .
## 2 Discussion
2.1 Related work
We introduced a heterogeneity analysis pipeline based on PCA with a novel automatic regularization technique and improved
efficiency, enabling the fast and stable computation of large numbers of principal components at high resolution. Additionally,
we designed customized volume generation and motion recovery schemes that leverage the favorable properties of linear
subspace methods.
Several linear subspace methods have been proposed for cryo-EM heterogeneity, including bootstrapping from 3D reconstructions [26], covariance estimation methods [15, 1], probabilistic PCA (PPCA) methods [42, 29], and methods employing
molecular dynamics [44]. Our approach shares similarities with the PPCA method 3DVA [29] implemented in the popular
software suite cryoSPARC, but there are key differences. Our method requires a small number of passes through the data
to estimate the principal components, while 3DVA relies on an iterative expectation-maximization procedure. Moreover,
our method allows for automatic regularization so that we can stably compute hundreds of principal components with no
parameter tuning. In contrast, 3DVA requires the user to pick at least two coupled parameters to compute the principal
components: a number of principal components, and the resolution of a low-pass filter applied to images before computation.
Under poor choice of either parameter, 3DVA is unstable, leading to poor results or program errors. While our method also
requires choosing a number of principal components to embed images, it does not require an a priori choice to compute the
principal components. This foregoes an expensive parameter tuning step to identify the correct number of principal components. Furthermore, embedding images is much cheaper than computing the principal components, e.g., 30 times faster
in table 1, allowing the evaluation of different embedding sizes with little additional cost.
PPCA methods, such as 3DVA, have their advantages. Fixing the number of components a priori can be an effective
regularizer for the reconstructed principal components. Indeed, in fig. A.8, we show that 3DVA outperforms our method at
estimating accurately some of the principal components for some parameter choices, likely due to this rank constraint. Furthermore, the flexible iterative framework of PPCA methods offers the potential for future incorporation of more sophisticated
priors, imposing sparsity or non-uniform resolution, as demonstrated in [32] for homogeneous reconstruction.
A further critical distinction between 3DVA and our method is in interpreting latent space. 3DVA traverses individual
principal components to generate motion and uses a reweighting scheme considering a single principal component at a time.
We showed that this interpretation is often erroneous, particularly for large motions.
Another popular class of method for heterogeneity analysis is deep-learning methods, which have received a lot of research
interest following the success of cryoDRGN [48] (see [10] for a recent review). Deep learning methods seem to have a high
expressive power and often achieve higher visual resolution than other methods. However, quantifying this improvement can
be challenging due to the misleading nature of the typical FSC metric in heterogeneous reconstruction (see fig. A.7). The
superior resolution of deep-learning methods is likely due to the sophisticated implicit priors learned by the neural networks.
However, an even better resolution may be achievable by incorporating explicit deformation modeling, as demonstrated in
3DFlex [30].
The drawback of deep-learning methods for heterogeneity analysis is their black-box nature, making interpretation,
validation, and hyperparameter tuning (network structure, number of epochs, weight decay, mini-batch size, etc.) particularly
difficult. While some default hyperparameters perform well on many datasets, the same hyperparameters applied to other
datasets can result in overfitting artifacts in the reconstructed volumes [16]. Furthermore, the lack of explicit regularization
and metrics for heterogeneity can make identifying suitable parameters difficult, and the user must resort to repeated,
expensive computations and subjective visual inspection. Finally, deep-learning methods lack key properties: they do not
preserve distances or distributions, uncertainty estimates are unavailable, and embeddings exhibit unexpected behavior [11].
As a result, interpreting their latent space is particularly difficult, and there is no principled way to estimate motion.
This, coupled with the lack of explainability, may lead to false conclusions about the heterogeneity in cryo-EM datasets as
demonstrated in fig. A.10.
2.2 Validation of heterogeneity analysis methods
Emerging methods for heterogeneity analysis in cryo-EM encompass a wide range of techniques, from deep learning, manifold
learning, and PCA to deformation fields and molecular dynamics. Each approach has its strengths, but a notable challenge
arises when validating and comparing the outcomes of these diverse techniques. While all heterogeneity methods yield
probability distributions of conformational states as output, the challenge stems from their differing representations and
coordinate systems. These differences make direct comparisons a complex task.
Even comparing individual reconstructions is not straightforward when generated by heterogeneous algorithms. As
highlighted in appendix A.7, the omnipresent FSC score, typically employed to evaluate homogeneous reconstructions, is
misleading when applied to volumes obtained by heterogeneity analysis. One reason is that different states within a heterogeneous dataset are often highly correlated. Thus, using a correlation-based score to evaluate the reconstruction of a specific
state can inadvertently reflect the homogeneous component of the reconstruction.
Covariance estimation and linear subspace methods offer promising avenues to address the challenge of quantifying the
consistency of heterogeneous reconstructions across different techniques First sampling from each method’s distributions
makes it possible to estimate the covariance of each method’s output and compare it with the covariance computed directly
from minimally processed images as in appendix A.1. Furthermore, the covariance estimates can be compared using the
covariance FSC proposed in appendix A.3. Second, the mapping from volume space to latent space _x →_ _U_ <sup>_∗_</sup> ( _x −_ _µ_ ) provided
by linear subspace methods can embed volumes obtained by different algorithms into the same coordinate system. This
mapping could allow for comparisons and alignment of different distributions of volumes obtained through other heterogeneity
methods.
2.3 Limitations and opportunities
One current limitation of linear subspace methods is their relatively simple priors compared to intricate implicit priors learned
by deep neural networks. This distinction suggests that achieving higher volume resolution could be possible by incorporating
more sophisticated priors. One potential avenue for achieving enhanced resolution involves improving either the resolution
or the number of computed principal components. One route for such advancement may include using sparse-PCA [50] in a
wavelet basis or utilizing non-uniform priors, similar to [32].
Another strategy is to introduce priors on the mapping from the latent space to the volume space. For example, the method
in [24] utilizes manifold learning techniques built on the PCA embedding. Another possibility for continuous heterogeneity
could be fitting nonlinear mappings, such as deformation fields [30] or polynomial maps [13] from PCA embedding to volume
space. This fusion could retain the desirable properties of linear subspace embedding while harnessing the data efficiency
offered by these methods.
A shortcoming of the method presented here is the lack of an automatic choice of the optimal number of principal
components for downstream tasks. While our approach can compute hundreds of principal components stably and efficiently,
typically, only up to a few dozen exhibit sufficient SNR, and picking the number can substantially impact the quality of the
result. We recommend heuristic choices based on the decay of eigenvalues (e.g., the Scree test [14]) and visualizing principal
components and their embeddings. Fortunately, our method computes embeddings of different sizes at virtually no extra
time, and thus, we calculate the embeddings with _d_ = 4 _,_ 10 _,_ 20 in our implementation by default. Furthermore, our method
demonstrates resilience against overestimation due to the regularization steps as shown in fig. A.9, and thus, we suggest
slightly overestimating the number of principal components. We note that related theory predicts the optimal choice based
on observation count and noise levels [8] but does not cover prediction for the method presented here. This area presents an
opportunity for future theoretical exploration.
The introduction of the Bayesian framework was central to the resolution revolution in cryo-EM [17] and has dramatically
contributed to its democratization thanks to its robust parameter estimation framework that requires relatively little user
input. In contrast, the current state of heterogeneity analysis typically involves ad-hoc filtering and hand-tuning of various
parameters. The framework presented here generalizes the Bayesian framework used for homogeneous reconstruction and thus
offers similar potential in robustly and confidently reconstructing wide ranges of heterogeneous distributions from cryo-EM
datasets with little need for tuning.
The Bayesian framework was particularly critical in developing robust homogeneous methods that infer poses and volumes. These algorithms typically alternate between predicting poses and predicting volumes. However, poor alignment of
poses produces inaccurate volumes, and inaccurate volumes, particularly from overfitting, also cause poor alignment. The
significant advance of the FSC regularization introduced in [35] was to resolve this issue: thanks to the adaptive regularization
recomputed at each step, resolution and alignment can progress slowly together. Our regularization strategy generalizes this
scheme, and our method’s high efficiency allows it to be run repeatedly within an alternating framework. Therefore, it is a
promising method to address the problem of jointly inferring conformations and poses. This framework may result in more
accurate pose estimation for highly heterogeneous datasets, thereby improving the input to all heterogeneity reconstruction
algorithms.
## A Methods
A.1 Solutions to least-squares problems
The solution to the mean estimation problem in eq. (2) is obtained through the following matrix equation:
��
_i_
_i_ <sup>_∗_</sup> <sup>Λ</sup> <sup>_−_</sup> _i_ <sup>1</sup>
_Pi_ <sup>_∗_</sup>
<sup>_−_</sup> _i_ <sup>1</sup> <sup>_Pi_</sup> <sup>+ diag(</sup> <sup>_w_</sup> <sup>)</sup>
<sup>_−_</sup> _i_ <sup>1</sup> <sup>_yi_</sup> <sup>_._</sup>
_µ_ ˆ =
_i_
_Pi_ <sup>_∗_</sup>
_i_ <sup>_∗_</sup> <sup>Λ</sup> <sup>_−_</sup> _i_ <sup>1</sup>
Here, diag( _w_ ) denotes a diagonal matrix with entries from vector _w_ . When the projection operator is discretized using
nearest-neighbors and noise covariance is modeled as diagonal, as is often the case in cryo-EM, the matrices _Pi_ <sup>_∗_</sup> <sup>Λ</sup> <sup>_iPi_</sup> <sup>become</sup>
diagonal in the Fourier domain. This matrix equation can then be efficiently solved in _O_ ( _N_ <sup>3</sup> + _nN_ <sup>2</sup> ) operations, analogous
to the E-step of the E-M algorithm used in iterative refinement, as seen in works like [34].
The solution to the covariance estimator in eq. (3) can be expressed similarly:
_L_ (Σ) = <sup>ˆ</sup> _B,_ where: (9)
_L_ (Σ) := <sup>ˆ</sup>
_B_ :=
_n_
_i_ =1
_n_
_i_ =1
_Pi_ <sup>_∗_</sup>
_i_ <sup>_∗Pi_</sup> <sup>ˆΣ</sup> <sup>_P_</sup> _i_ <sup>_∗_</sup>
_i_ <sup>_∗_</sup> <sup>(</sup> <sup>_yi_</sup> <sup>_−_</sup> <sup>_Piµ_</sup> <sup>ˆ) (</sup> <sup>_yi_</sup> <sup>_−_</sup> <sup>_Piµ_</sup> <sup>ˆ)</sup> <sup>_∗_</sup> <sup>_Pi_</sup> <sup>_−_</sup> <sup>_P_</sup> _i_ <sup>_∗_</sup>
_Pi_ <sup>_∗_</sup>
_i_ <sup>_∗Pi_</sup> <sup>+ Σ</sup> <sup>_· R_</sup> <sup>_,_</sup> (10)
_i_ <sup>_∗_</sup> <sup>Λ</sup> <sup>_iPi_</sup> <sup>_,_</sup> (11)
where _·_ denotes the Hadamard (pointwise) matrix product. Solving matrix equations of this form is computationally intensive,
with a complexity of _O_ ( _N_ <sup>18</sup> ) for a general system. The technique presented in [1] addresses this by utilizing the convolution
structure to achieve a solution in _O_ ( _nN_ <sup>4</sup> + <sup>_√_</sup> _<u>κN</u>_ <sup>6</sup> log( _N_ )) operations where _κ ≈_ 200. Nevertheless, storage and computational
requirements remain excessive for moderate volume sizes ( _N_ _>_ 32).
Taking advantage of the diagonal structure of _Pi_ <sup>_∗Pi_</sup> <sup>= diag(</sup> <sup>_di_</sup> <sup>) in eq. (10), obtained through a nearest-neighbor discretiza-</sup>
tion, we rewrite the system of equations in eq. (9) as a Hadamard system:
( _H_ + _R_ ) _·_ Σ = <sup>ˆ</sup> _B,_ (12)
where _H_ =
_i_
_did_ <sup>_∗_</sup> _i_ <sup>_._</sup> (13)
Remarkably, this formulation allows for efficient and independent computation of entries in Σ <sup>ˆ</sup> by constructing entries of
matrices _H_, _R_, and _B_, followed by pointwise division. In this way, _k_ columns of Σ <sup>ˆ</sup> may be computed in _O_ ( _k_ ( _N_ <sup>3</sup> + _nN_ <sup>2</sup> ))
in a single pass through the data. This computational technique heavily relies on the diagonal structure of _Pi_ <sup>_∗Pi_</sup> <sup>in</sup> <sup>eq.</sup> <sup>(10),</sup>
which stems from a nearest-neighbor discretization of the projection operator. In contrast, the projection of the mean
in eq. (11) does not necessitate a nearest-neighbor discretization, so we utilize linear interpolation. Although discretization
errors are typically not the dominant source of error, numerical experiments have shown that this choice can significantly
reduce discretization errors with minimal additional computational cost.
Additionally, experimental images often contain multiple particles within each image. To mitigate this, we use a real
space mask to filter out these unwanted particles while enhancing the dataset’s SNR. To generate per-image masks, we
dilate a three-dimensional loose mask and project it using inferred poses for each image. We then threshold and smooth
by a cosine-softening kernel to generate mask _Mi_, which we then apply to the mean-subtracted images. Specifically, the
right-hand side _B_ is computed as follows:
_i_ <sup>linear</sup> _µ_ ˆ)
- _∗_ _Pi −_ _P ∗i_ <sup>Λ</sup> <sup>_iPi_</sup> <sup>_,_</sup> (14)
�� _Mi_ ( _yi −_ _Pi_ <sup>linear</sup>
_i_ <sup>linear</sup> _µ_ ˆ)
_B_ =
_n_
_i_ =1
_Pi_ <sup>_∗_</sup>
- _Mi_ ( _yi −_ _Pi_ <sup>linear</sup>
where _Pi_ <sup>linear</sup> is used to emphasize projection operators computed using linear interpolation. While this scheme enhances the
efficiency of evaluating individual covariance matrix elements, computing all of them still demands _O_ ( _N_ <sup>6</sup> ) operations and
memory, which is impractical. We next describe numerical algebra techniques to approximate leading eigenvectors of Σ using <sup>ˆ</sup>
a subset of entries to address this issue.
A.2 Approximate SVD from subsets of columns
We estimate the principal components from a subset of the entries of Σ through an approach inspired by the randomized SVD <sup>ˆ</sup>
algorithm [22]. To motivate the approach, suppose we observe the volumes directly; in that case, we could approximate the
principal components by performing a randomized SVD on the mean-subtracted volume matrix [ _D_ ] _i_ := _xi −_ _µ_, as presented
in algorithm 1 (replicated from [22]).
Algorithm 1 Randomized SVD of the matrix _D_ [22]
1: compute _Q_ using randomized range-finder of _D_
2: _Z_ = _Q_ <sup>_∗_</sup> _D_
3: _U, S, V_ <sup>ˆ</sup> = svd( _Z_ )
4: _U_ = _QU_ <sup>ˆ</sup>
5: return singular vectors _U_, singular values _S_
Line 1 of algorithm 1 is the rangefinder step, typically implemented as the subspace spanned by the product _DG ∈C_ <sup>_N_</sup> <sup>3</sup> <sup>_×k_</sup>
for a small random matrix _G_ _∈_ R <sup>_n×k_</sup>, and it aims to find a subspace containing the top singular vectors. Line 2 computes
the coordinate of each column in that subspace. However, we cannot perform lines 1 and 2 directly since we do not directly
observe volumes but rather images Instead we use the subspace spanned by a subset of the columns of Σ <sup>ˆ</sup> and estimate
<u>Algorithm</u> <u>2</u> <u>Proposed</u> <u>approximate</u> <u>SVD</u>
1: compute _Q_ using the column space of Σ <sup>ˆ</sup> col
2: estimate _µzi_ using eq. (5) and store into column _i_ of _Z_
3: _U, S, V_ <sup>ˆ</sup> = svd( _Z_ )
4: _U_ = _QU_ <sup>ˆ</sup>
5: return singular vectors _U_, singular values _S_
the coordinates of the volumes through their MAP estimate in eq. (5). Steps 3-5 of algorithm 1 remain unchanged. We
summarize the proposed method in algorithm 2.
The strategy of approximating a matrix from a subset of its columns is a celebrated trick in numerical linear algebra and
the basis for schemes such as the Nystr¨om extension [46] and the CUR decomposition [21]. The approximation accuracy
depends on the matrix’s properties and the chosen columns. While near-optimal choices exist in theory (see, e.g. [18, 4]), our
case differs due to our goal of computing eigenvectors of the true covariance Σ using noisy estimates through the estimation
problem. Unfortunately, this case has limited existing theory, so we rely on heuristic parameter choices.
Our approach prioritizes selecting columns of Σ <sup>ˆ</sup> with a high SNR. In this context, we choose columns corresponding to
lower frequencies, motivated by the fact that low-frequency entries of the covariance matrix are sampled more frequently.
For example, the sampling of the frequency pair ( _i, j_ ) is inversely proportional to their cross product _|ξi × ξj|_ in an idealized
case [15]. We compute columns associated with frequencies that satisfy _∥kj∥≤_ _rδk_ and [ _kj_ ]1 _≥_ 0, where _δk_ is the Fourier
space grid spacing and _r_ is a specified radius. We set _r_ = 4 in all experiments, resulting in 298 computed columns. We
also take advantage of the Hermitian symmetry property of the covariance matrix, allowing us to generate all columns
satisfying _|kj| ≤_ _rδk,_ [ _kj_ ]1 _<_ 0 without significant computational overhead. We denote the block of columns of Σ <sup>ˆ</sup> _∈_ C <sup>_N_</sup> <sup>3</sup> <sup>_×N_</sup> <sup>3</sup>
as Σ <sup>ˆ</sup> col = Σ <sup>ˆ</sup> _S_ _∈_ C <sup>_N_</sup> <sup>3</sup> <sup>_×k_</sup>, where _S_ _∈_ R <sup>_N_</sup> <sup>3</sup> <sup>_×k_</sup> is a matrix that subsamples these _k_ columns.
In the noiseless case, and under the assumption that _Q_ exactly spans the columns of _D_ and the matrices _PiQ_ are full
rank, we recover the true _Z_ . It follows that the estimated SVD of _D_ computed from algorithm 2 is exact. <sup>4</sup> In other cases,
we only recover an approximate SVD of _D_, and the noise and possible ill-conditioning of _PiQ_ necessitates a regularization
in solving eq. (5). This regularization is set using eigenvalues estimates of Σ <sup>ˆ</sup> in the MAP framework, see appendix A.5. The
eigenvalues of Σ <sup>ˆ</sup> are the square of the singular values of _~~√~~_ <u>1</u> _<u>n</u>_ _D_, but initializing them is necessary to compute eq. (5) in line 2
of algorithm 2.
We initialize them to _λ_ <sup>init</sup> _k_ = _σk_ <sup>2(ˆΣcol)</sup> <sup>_/σk_</sup> <sup>(</sup> <sup>_ST_</sup> <sup>ˆΣcol),</sup> <sup>where</sup> <sup>_σk_</sup> <sup>(</sup> <sup>_·_</sup> <sup>)</sup> <sup>denotes</sup> <sup>the</sup> <sup>_k_</sup> <sup>-th</sup> <sup>singular</sup> <sup>value.</sup> <sup>This</sup> <sup>estimate</sup> <sup>is</sup> <sup>chosen</sup>
so that it is exact when Σ <sup>ˆ</sup> is rank-one. That is, if Σ <sup>ˆ</sup> = _σuu_ <sup>_∗_</sup> for some _∥u∥_ = 1 and _Su̸_ = 0, then _σ_ 1(Σ <sup>ˆ</sup> col) = _∥Su∥σ_ and
_σ_ 1( _S_ <sup>_T_</sup> <sup>ˆ</sup> Σcol) = _∥Su∥_ <sup>2</sup> _σ_ so that _λ_ <sup>init</sup> 1 = ( _∥Su∥σ_ ) <sup>2</sup> _/_ ( _∥Su∥_ <sup>2</sup> _σ_ ) = _σ_ .
We initialize them to _λ_ <sup>init</sup> _k_
<sup>init</sup> _k_ = _σk_ <sup>2</sup>
_̸_
_σ_ 1( _S_ <sup>_T_</sup> <sup>ˆ</sup> Σcol) = _∥Su∥_ <sup>2</sup> _σ_ so that _λ_ <sup>init</sup> 1 = ( _∥Su∥σ_ ) <sup>2</sup> _/_ ( _∥Su∥_ <sup>2</sup> _σ_ ) = _σ_ .
We compute the initial singular value decomposition in the spatial domain by applying standard a randomized SVD to
_MFN_ <sup>_−_</sup> <sup>1ˆΣcol</sup> <sup>_F_</sup> <sup>2</sup> <sup>_r_</sup> <sup>where</sup> <sup>_Fl_</sup> <sup>is</sup> <sup>the</sup> <sup>3D</sup> <sup>Fourier</sup> <sup>transform</sup> <sup>matrix</sup> <sup>of</sup> <sup>size</sup> <sup>_l_</sup> <sup>and</sup> <sup>_M_</sup> <sup>applies</sup> <sup>the</sup> <sup>3D</sup> <sup>softened</sup> <sup>mask.</sup>
_N_ <sup>_−_</sup> <sup>1ˆΣcol</sup> <sup>_F_</sup> <sup>2</sup> <sup>_r_</sup> <sup>where</sup> <sup>_Fl_</sup> <sup>is</sup> <sup>the</sup> <sup>3D</sup> <sup>Fourier</sup> <sup>transform</sup> <sup>matrix</sup> <sup>of</sup> <sup>size</sup> <sup>_l_</sup> <sup>and</sup> <sup>_M_</sup> <sup>applies</sup> <sup>the</sup> <sup>3D</sup> <sup>softened</sup> <sup>mask.</sup>
A.3 A generalized FSC regularization scheme
We introduce a scheme that generalizes the Fourier Shell Correlation (FSC) regularization initially proposed in [34] for
homogeneous reconstruction. The foundation of this regularization scheme is rooted in the simplifying assumption that both
the signal and the noise are independently and identically distributed within one frequency shell, though they follow different
distributions in different shells. This simplification allows us to decouple computations over these shells.
Thus, we consider the signal and noise in a specific frequency shell where the signal _x_ follows a Gaussian distribution with
zero mean and variance _κ_ <sup>2</sup>, while the noise _ϵ_ follows a Gaussian distribution with zero mean and variance _σ_ <sup>2</sup> . This leads to
the simple scalar-valued forward model:
_yi,j_ = _di,jxj_ + _ϵi,j_ _,_
where _xj_ _∼N_ (0 _, κ_ <sup>2</sup> ) represents frequency _j_ within the shell, and _yi,j_ is the _i−_ th observation of frequency _j_ corrupted by
noise _ϵi,j_ _∼N_ (0 _, σ_ <sup>2</sup> ). We then estimate the underlying signal _x_ by solving the following least-squares problem:
_j_
_i_
_|yi,j_ _−_ _di,jxj|_ <sup>2</sup> + _τ_
_|xj|_ <sup>2</sup> _._ (15)
_x_ ˆ( _τ_ ) = arg min
_x_
_j_
Here, _τ_ serves as a regularization weight. The solution to eq. (15) is:
_x_ ˆ _j_ ( _τ_ ) =
<u>�</u> _<u>i</u>_ <sup>_<u>di,jyi,j</u>_</sup>
_hj_ + _τ_
_<u>hj</u>_
= _hj_ + _τ_ <sup>_xj_</sup> <sup>+</sup>
<u>�</u> _<u>i</u>_ <sup>_<u>di,jϵi,j</u>_</sup>
_,_
_hj_ + _τ_
4Under these assumptions, the Nystr¨om extension would also be exact. However, we have observed empirically that it performs much worse in
th f i
Figure A.6: Estimation of principal components and eigenvalues. (a) Sine of principal angles between the subspaces spanned
by the estimated and exact top _k_ eigenvectors for different estimators. The approximate SVD improves on the accuracy
across all principal components compared to the inital one. (b) Eigenvalue estimates for the initial and approximate SVD
estimator. The first estimator is on the correct order of magnitude but underestimates eigenvalues. A lower eigenvalue
estimate is expected due to regularization. The second estimator is more accurate, especially for eigenvalues corresponding
to well-estimated eigenvectors. (c) Visualization of the first six exact and estimated eigenvectors, showing increasing frequency
and noise. Note that eigenvectors are unique up to sign, which accounts for the sign flip between exact and estimated.
_i_ <sup>_d_</sup> <sup>2</sup>
where _hj_ = <sup>�</sup>
_i,j_ <sup>2</sup> <sup>.</sup> <sup>The</sup> <sup>optimal</sup> <sup>value</sup> <sup>of</sup> <sup>_τ_</sup> <sup>,</sup> <sup>which</sup> <sup>minimizes</sup> <sup>the</sup> <sup>mean-squared</sup> <sup>error</sup> <sup>(MMSE)</sup> <sup>is</sup> <sup>known</sup> <sup>to</sup> <sup>be</sup> <sup>_τ ∗_</sup> <sup>=</sup> _σ_ <sup>_<u>κ</u>_</sup> <sup>22</sup>
where _hj_ = <sup>�</sup> _i_ <sup>_d_</sup> _i,j_ <sup>2</sup> <sup>.</sup> <sup>The</sup> <sup>optimal</sup> <sup>value</sup> <sup>of</sup> <sup>_τ_</sup> <sup>,</sup> <sup>which</sup> <sup>minimizes</sup> <sup>the</sup> <sup>mean-squared</sup> <sup>error</sup> <sup>(MMSE)</sup> <sup>is</sup> <sup>known</sup> <sup>to</sup> <sup>be</sup> <sup>_τ ∗_</sup> <sup>=</sup> _σ_ <sup>_<u>κ</u>_</sup> <sup>22</sup> <sup>.</sup>
However, estimating _τ_ <sup>_∗_</sup> is our goal. To do this, we begin with an initial value _τ_ 0 and calculate two estimates _x_ ˆ <sup>1</sup> ( _τ_ 0) and
_x_ ˆ <sup>2</sup> ( _τ_ 0) by randomly splitting the dataset into two halves. We then estimate their correlation using the concept from [33]:
E[� _x_ ˆ <sup>1</sup> ( _τ_ 0) _,_ ˆ _x_ <sup>2</sup> ( _τ_ 0)�]
~~<u>�</u>~~ E[ _∥x_ ˆ <sup>1</sup> ( _τ_ 0) _∥_ <sup>2</sup> ] E[ _∥x_ ˆ <sup>2</sup> ( _τ_ 0) _∥_ <sup>2</sup> ]
- _x_ ˆ <sup>1</sup> ( _τ_ 0) _,_ ˆ _x_ <sup>2</sup> ( _τ_ 0)
=
E[
EFSC :=
_j_
_κ_ <sup>2 �</sup> _j_ <sup>(</sup> <sup>_hj_</sup> <sup>+</sup> <sup>_τ_</sup> <sup>0)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_h_</sup> _j_ <sup>2</sup> <sup>+</sup> <sup>_σ_</sup> <sup>2 �</sup> _j_ <sup>(</sup> <sup>_h_</sup>
_j_ <sup>(</sup> <sup>_hj_</sup> <sup>+</sup> <sup>_τ_</sup> <sup>0)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_h_</sup> _j_ <sup>2</sup>
_κ_ <sup>2</sup> <sup>�</sup>
_<u>j</u>_ <sup>(</sup> <sup>_hj_</sup> <sup>+</sup> <sup>_τ_</sup> <sup>0)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_h_</sup> _j_ <sup>2</sup>
_j_ <sup>2</sup> <sup>+</sup> <sup>_σ_</sup> <sup>2 �</sup>
_j_ <sup>(</sup> <sup>_hj_</sup> <sup>+</sup> <sup>_τ_</sup> <sup>0)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_hj_</sup>
_._
Solving for _τ_ <sup>_∗_</sup> = _σ_ <sup>_<u>κ</u>_</sup> <sup>22</sup> <sup>,</sup> <sup>we</sup> <sup>obtain</sup> <sup>the</sup> <sup>estimate:</sup>
_τ_ <sup>_∗_</sup> =
- <u>EFSC</u>
1 _−_ EFSC
_._ (16)
- <sup>�</sup>
<sup>�</sup>
_<u>j</u>_ <sup>(</sup> <sup>_hj_</sup> <sup>+</sup> <sup>_τ_</sup> <sup>0)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_hj_</sup>
<u>�</u>
_j_ <sup>(</sup> <sup>_hj_</sup> <sup>+</sup> <sup>_τ_</sup> <sup>0)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_h_</sup> _j_ <sup>2</sup>
_j_
For comparison, under our assumptions and notation, the estimate proposed in [35] is equivalent to:
_τ_ <sup>relion</sup> =
- <u>EFSC</u>
1 _−_ EFSC
- <u>1</u>
<u>1</u> <u>�</u> _<u>n</u>_
_n_ _j_ =1 <sup>_hj_</sup>
- <u>1</u>
<u>1</u> <u>�</u> _<u>n</u>_
_n_ _j_
_._ (17)
Notably, if the pose distribution is uniform (more precisely if _hj_ are constant within a frequency shell), then the two estimates
in eq. (16) and eq. (17) agree, but eq. (16) also accounts for the non-uniform case. This new estimator can be applied to
homogeneous reconstruction and we expect it to perform better for datasets with highly non uniform pose distributions
However, the effect is most pronounced for covariance estimation since sampling of the entries of the covariance matrix in a
given column and frequency shell is highly non-uniform even when the pose distribution is uniform.
We use this regularization scheme to set entries of the regularization matrix _R_ in eq. (3) by applying it independently in
each column. We replace the EFSC with the empirical FSC computed between halfsets, initializing _R_ from a multiple of the
regularization weights of the mean in eq. (2) and iterating this process three times, which has been observed to converge in
practice. <sup>5</sup> That is, we compute the entries of the weight matrix _R_ as follows:
<u>�</u> _−_ 2 _H_ ˆ _i,j_ 2
- _H_ ˆ _i,j_ + _Rr,j_ <sup>it</sup> <sup>_−_</sup> <sup>1</sup>
<u>�</u> _H_ ˆ _i,j_ + _Rr,j_ <sup>it</sup> <sup>_−_</sup> <sup>1</sup>
<sup>�</sup> _i∈Sr_ _H_ ˆ _i,j_ + _Rr,j_ <sup>it</sup> <sup>_−_</sup> <sup>1</sup> - _−_ 2 _H_ ˆ _i,j_
<u>�</u>
<u>�</u>
_i∈Sr_ _H_ ˆ _i,j_ + _Rr,j_ <sup>it</sup> <sup>_−_</sup> <sup>1</sup> <u>�</u> _−_ 2 _H_ ˆ _i,j_ 2
- _R_ <sup>it�</sup> _r,j_ <sup>=</sup>
- <u>FSC</u> _<u>j</u>_ <u>(</u> _<u>r</u>_ <u>)</u>
1 _−_ FSC _j_ ( _r_ )
- <sup>�</sup> _i∈Sr_
_r,j_
_._ (18)
_r,j_
Here, _Sr_ = _{i_ _|_ _δkr_ _≤∥ki∥_ _<_ _δk_ ( _r_ + 1) _}_ is the frequency shell of radius _r_, FSC _j_ ( _r_ ) is the FSC between column _j_ of the
two covariance matrices Σ <sup>ˆ</sup> <sup>(1)</sup> col <sup>and</sup> <sup>ˆΣ(2)</sup> col <sup>computed</sup> <sup>from</sup> <sup>the</sup> <sup>two</sup> <sup>half-datasets,</sup> <sup>and</sup> <sup>_H_</sup> <sup>ˆ</sup> <sup>is</sup> <sup>the</sup> <sup>average</sup> <sup>of</sup> <sup>the</sup> <sup>two</sup> <sup>values</sup> <sup>of</sup> <sup>_H_</sup>
<sup>(1)</sup> col <sup>and</sup> <sup>ˆΣ(2)</sup> col
two covariance matrices Σ <sup>ˆ</sup> <sup>(1)</sup> col <sup>and</sup> <sup>ˆΣ(2)</sup> col <sup>computed</sup> <sup>from</sup> <sup>the</sup> <sup>two</sup> <sup>half-datasets,</sup> <sup>and</sup> <sup>_H_</sup> <sup>ˆ</sup> <sup>is</sup> <sup>the</sup> <sup>average</sup> <sup>of</sup> <sup>the</sup> <sup>two</sup> <sup>values</sup> <sup>of</sup> <sup>_H_</sup>
calculated from eq. (13). We perform these computations only for the columns chosen in appendix A.2, indicated by the
subscript col. Additionally, we enforce symmetry on matrix _R_ to ensure the symmetry of matrix Σ. <sup>ˆ</sup> The outlined algorithmic
steps are summarized in algorithm 3.
<u>Algorithm</u> <u>3</u> <u>Computation</u> <u>of</u> <u>the</u> <u>regularization</u> <u>parameters</u>
Randomly split dataset into set halfsets _s_ = 1 and _s_ = 2
Compute _H_ col <sup>(</sup> <sup>_s_</sup> <sup>),</sup> <sup>_B_</sup> col <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>for</sup> <sup>_s_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2</sup> <sup>using</sup> <sup>eqs.</sup> <sup>(13)</sup> <sup>and</sup> <sup>(14).</sup>
col <sup>(</sup> <sup>_s_</sup> <sup>),</sup> <sup>_B_</sup> col <sup>(</sup> <sup>_s_</sup> <sup>)</sup>
Compute _H_ col <sup>(</sup> <sup>_s_</sup> <sup>),</sup> <sup>_B_</sup> col <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>for</sup> <sup>_s_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2</sup> <sup>using</sup> <sup>eqs.</sup> <sup>(13)</sup> <sup>and</sup> <sup>(14).</sup>
Initialize _R_ col <sup>0</sup> <sup>=</sup> <sup>_v_</sup> <sup>(</sup> <sup>_Sv_</sup> <sup>)</sup> <sup>_T_</sup> <sup>,</sup> <sup>where</sup> <sup>_v_</sup> <sup>=</sup> <sup>10</sup> <sup>_−_</sup> <sup>2</sup> <sup>_w/σ_</sup> <sup>2</sup> <sup>where</sup> <sup>_w_</sup>
Initialize _R_ col <sup>0</sup> <sup>=</sup> <sup>_v_</sup> <sup>(</sup> <sup>_Sv_</sup> <sup>)</sup> <sup>_T_</sup> <sup>,</sup> <sup>where</sup> <sup>_v_</sup> <sup>=</sup> <sup>10</sup> <sup>_−_</sup> <sup>2</sup> <sup>_w/σ_</sup> <sup>2</sup> <sup>where</sup> <sup>_w_</sup> <sup>is</sup> <sup>the</sup> <sup>regularization</sup> <sup>weight</sup> <sup>of</sup> <sup>the</sup> <sup>mean</sup> <sup>in</sup> <sup>eq.</sup> <sup>(2),</sup> <sup>and</sup> <sup>_σ_</sup> <sup>2</sup> <sup>is</sup> <sup>the</sup>
estimated noise variance in images (fixed along frequency shells).
for it = 1 _,_ 2 _,_ 3 do
Compute Σ <sup>ˆ</sup> <sup>(</sup> col <sup>_s_</sup> <sup>)</sup>
<sup>(</sup> col <sup>_s_</sup> <sup>)</sup> <sup>=</sup> <sup>_B_</sup> col <sup>(</sup> <sup>_s_</sup> <sup>)</sup>
col <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_⊘_</sup> <sup>(</sup> <sup>_H_</sup> col <sup>(</sup> <sup>_s_</sup> <sup>)</sup>
col <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>+</sup> <sup>_R_</sup> col <sup>it</sup> <sup>_−_</sup> <sup>1</sup>
<sup>(1)</sup> col <sup>and</sup> <sup>ˆΣ</sup> col <sup>(2)</sup>
Compute Σ <sup>ˆ</sup> <sup>(</sup> col <sup>_s_</sup> <sup>)</sup> <sup>=</sup> <sup>_B_</sup> col <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_⊘_</sup> <sup>(</sup> <sup>_H_</sup> col <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>+</sup> <sup>_R_</sup> col <sup>it</sup> <sup>_−_</sup> <sup>1)</sup> <sup>for</sup> <sup>_s_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2</sup>
Compute columnwise FSCs between Σ <sup>ˆ</sup> <sup>(1)</sup> col <sup>and</sup> <sup>ˆΣ</sup> col <sup>(2)</sup>
Re-estimate regularization parameters _R_ col <sup>it</sup> <sup>using</sup>
Re-estimate regularization parameters _R_ col <sup>it</sup> <sup>using</sup> <sup>eq.</sup> <sup>(18)</sup>
end for
_R_ col = Symmetrize( _R_ col <sup>3</sup> <sup>)</sup>
_R_ col = Symmetrize( _R_ col <sup>3</sup> <sup>)</sup>
Return _R_ col
A.4 Contrast correction in covariance estimation
Cryo-EM images sometimes display variations in contrast. This effect is captured in the image formation model through an
additional scaling factor _ai_ _∈_ R <sup>+</sup> :
_yi_ = _Pi_ ( _aixi_ ) + _ϵ_
If not accounted for, this contrast variation can manifest as a spurious source of heterogeneity, often displayed in recovered
trajectories with appearing or disappearing parts of the volume. While some algorithms for consensus reconstruction attempt
to infer the scale parameters _ai_ as part of the algorithm [36], the estimation is poor when significant heterogeneity is present,
so they should be estimated as part of a heterogeneous reconstruction. As the contrast is not factored into the covariance
estimation in eq. (3), our covariance estimate reflects the covariance of the contrasted distribution of states, which we denote
by Σ _ax_ . Assuming that contrast factors _ai_ and states _xi_ are independent, Σ _ax_ can be related to the unconstrained covariance
of the distribution Σ _x_ as follows [39]:
Σ _ax_ = E[ _a_ <sup>2</sup> ]Σ _x_ + var( _a_ ) _µµ_ <sup>_∗_</sup>
That is, the contrasted covariance differs by an unknown scaling factor close to 1 (e.g., E[ _a_ <sup>2</sup> ] _≈_ 1 _._ 16 in fig. 4) and is corrupted
by a rank-one component var( _a_ ) _µµ_ <sup>_∗_</sup> . We assume that Σ _x_ = _U_ Γ _U_ <sup>_∗_</sup> is low-rank and _U_ <sup>_∗_</sup> _µ_ = 0, and we recover the original
subspace by projecting out the mean component:
( _I_ _−_ _qq_ <sup>_∗_</sup> )Σ _ax_ ( _I_ _−_ _qq_ <sup>_∗_</sup> ) = E[ _a_ <sup>2</sup> ]Σ _x_ _≈_ Σ _x_
where _q_ = _∥µµ∥_ <sup>.</sup> <sup>Furthermore,</sup> <sup>the</sup> <sup>low-rank</sup> <sup>decomposition</sup> <sup>of</sup> <sup>Σ</sup> <sup>_x_</sup> <sup>=</sup> <sup>_U_</sup> <sup>Γ</sup> <sup>_U ∗_</sup> <sup>can</sup> <sup>be</sup> <sup>efficiently</sup> <sup>computed</sup> <sup>from</sup> <sup>the</sup> <sup>low-rank</sup>
decomposition of Σ _ax_ = _U_ <sup>˜</sup> Γ <sup>˜</sup> _U_ <sup>˜</sup> <sup>_∗_</sup> as showed in algorithm 4:
A.5 Estimation of per-image latent distribution and contrast
We estimate the mean of the conformation distribution _µzi_ and the contrast parameter _a_ ˆ _i_ associated with the image _yi_ using
a maximum a posteriori estimate. Assuming _zi_ follows a Gaussian distribution _N_ (0 _,_ Γ) and using a flat prior on _a_ ˆ _i_, the MAP
5N t bl thi it ti d t it t it ti th h th d t
<u>Algorithm</u> <u>4</u> <u>Update</u> <u>of</u> <u>low-rank</u> <u>decomposition</u> <u>by</u> <u>projecting</u> <u>out</u> <u>mean</u> <u>component</u>
Input: low-rank decomposition of Σ _ax_ = _U_ <sup>˜</sup> Γ <sup>˜</sup> _U_ <sup>˜</sup> <sup>_∗_</sup>, mean _µ_ ˆ
_C_ = ( _I_ _−_ _∥µ_ ˆ1 _∥_ <sup>2</sup> <sup>_µ_</sup> <sup>ˆ</sup> <sup>_µ_</sup> <sup>ˆ</sup> <sup>_∗_</sup> <sup>) ˜</sup> <sup>_U_</sup> <sup>˜Γ1</sup> <sup>_/_</sup> <sup>2</sup>
_U,_ ˆ _S,_ ˆ _V_ ˆ = svd( _C_ )
_U_ = _U,_ <sup>ˆ</sup> Γ = _S_ <sup>ˆ2</sup>
Return _U_, Γ
estimate is written as the solution of the following optimization problem:
_a_ ˆ _i,_ _z_ ˆ _i_ = arg min Λ
_ai∈_ R <sup>+</sup> _,zi∈_ R <sup>_d ∥aiPi_</sup> <sup>(</sup> <sup>_Uzi_</sup> <sup>+</sup> <sup>_µ_</sup> <sup>ˆ)</sup> <sup>_−_</sup> <sup>_yi∥_</sup> <sup>2</sup>
<sup>_−_</sup> _i_ <sup>1</sup> + _∥zi∥_ <sup>2</sup> Γ
Λ <sup>_−_</sup> _i_ <sup>1</sup>
<sup>2</sup> Γ <sup>_−_</sup> <sup>1</sup> (19)
To solve this minimization, we perform a grid search over the contrast variable _ai_ _∈_ [0 _,_ 2] and explicitly minimize over the
latent variables _zi_ _∈_ R <sup>_d_</sup> . Solving eq. (19) for a fixed contrast _ai_ involves the normal equations:
- _a_ <sup>2</sup> _i_ <sup>(</sup> <sup>_PiU_</sup> <sup>)</sup> <sup>_∗_</sup> <sup>Λ</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_PiU_</sup> <sup>) + Γ</sup> <sup>_−_</sup> <sup>1�</sup>
_z_ = _ai_ ( _PiU_ ) <sup>_∗_</sup> Λ <sup>_−_</sup> <sup>1</sup> _yi −_ _a_ <sup>2</sup> _i_ <sup>(</sup> <sup>_PiU_</sup> <sup>)</sup> <sup>_∗_</sup> <sup>Λ</sup> <sup>_−_</sup> <sup>1</sup> <sup>_Piµ_</sup> <sup>ˆ</sup> <sup>_._</sup> (20)
The computational complexity of constructing and solving eq. (20) is _O_ ( _N_ <sup>2</sup> _d_ <sup>2</sup> + _d_ <sup>3</sup> ). Therefore, the na¨ıve computational
complexity of solving this problem for all _na_ contrast values of _ai_ is _O_ ( _naN_ <sup>2</sup> _d_ <sup>2</sup> + _nad_ <sup>3</sup> ) operations. However, if the matrix
( _PiU_ ) <sup>_∗_</sup> Λ <sup>_−_</sup> <sup>1</sup> ( _PiU_ ), and vectors ( _PiU_ ) <sup>_∗_</sup> Λ <sup>_−_</sup> <sup>1</sup> _yi_, ( _PiU_ ) <sup>_∗_</sup> Λ <sup>_−_</sup> <sup>1</sup> _Piµ_ are precomputed and stored, the complexity drops to _O_ ( _N_ <sup>2</sup> _d_ <sup>2</sup> +
_nad_ <sup>3</sup> ). In our experiments, we set _na_ = 50, and the additional cost of optimizing over contrast is small compared to the cost
of optimizing over _zi_ alone since the _O_ ( _N_ <sup>2</sup> _d_ <sup>2</sup> ) term dominates.
The covariance of the state, denoted as Σ _zi_, is directly computed from eq. (4) as: Σ _zi_ = - _a_ ˆ <sup>2</sup> _i_ <sup>_UPi_</sup> <sup>Λ</sup> <sup>_−_</sup> <sup>1</sup> <sup>_P_</sup> _i_ <sup>_∗U ∗_</sup> <sup>+ Γ</sup> <sup>_−_</sup> <sup>1�</sup> <sup>_−_</sup> <sup>1</sup> <sup>in</sup>
_O_ ( _N_ <sup>2</sup> _d_ <sup>2</sup> + _d_ <sup>3</sup> ) operations per image.
The covariance of the state, denoted as Σ _zi_, is directly computed from eq. (4) as: Σ _zi_ =
- _a_ ˆ <sup>2</sup> _i_
<sup>2</sup> _i_ <sup>_UPi_</sup> <sup>Λ</sup> <sup>_−_</sup> <sup>1</sup> <sup>_P_</sup> _i_ <sup>_∗_</sup>
A.6 Traversing latent space
We generate a motion between two latent space coordinates _z_ st and _z_ end by solving the minimization problem described
in eq. (8). This problem can be approached using dynamic programming by first computing the _value_ _function_ _v_ ( _z_ ), defined
as:
- _t_ = _Ta_
_D_ ˆ ( _Z_ ( _t_ )) <sup>_−_</sup> <sup>1</sup> _dt_ _,_
_v_ ( _z_ ) := inf
_Z_ ( _t_ )
_t_ =0
where _Z_ ( _t_ ) : R <sup>+</sup> _→_ R <sup>_d_</sup> is a continuous trajectory satisfying _Z_ (0) = _z, Z_ ( _Ta_ ) = _z_ end with _Ta_ = min _{t ≥_ 0 _| Z_ ( _t_ ) = _z_ end _}_ . This
value function _v_ ( _z_ ) is the viscosity solution of the Eikonal equation [2]:
_D_ ˆ ( _z_ ) _|∇v_ ( _z_ ) _|_ = 1 _,_ _∀z_ _∈_ _B \ {z_ end _}_ ; _v_ ( _z_ end) = 0 (21)
where _B_ is the domain of interest. Thus, _v_ ( _z_ ) can be computed by solving this partial differential equation. Once eq. (21)
is solved, the optimal trajectory can be obtained by finding the path orthogonal to the level curves of _v_ ( _z_ ), which can be
computed numerically using the steepest descent method on _v_ ( _z_ ) starting from _z_ st.
The Eikonal equation can be discretized and solved using variants of Dijkstra’s algorithm for finding shortest paths on
graphs [38] <sup>6</sup> . We choose the domain _B_ to be a _d−_ dimensional rectangle with lower and upper bounds in dimension _j_ equal to
the 1st and 99th percentile of the distribution of _{_ [ _µzi_ ] _j}i_ <sup>_n_</sup> =1 <sup>.</sup> <sup>We</sup> <sup>then</sup> <sup>discretize</sup> <sup>the</sup> <sup>problem</sup> <sup>by</sup> <sup>evaluating</sup> <sup>_D_</sup> <sup>ˆ</sup> <sup>(</sup> <sup>_z_</sup> <sup>) =</sup> <sup>_D_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_ϵ_</sup>
on a _d−_ dimensional uniform grid. Adding a small constant _ϵ_ ensures the existence of a solution and the stability of the
numerical method. We set _ϵ_ = 10 <sup>_−_</sup> <sup>6</sup> max _z D_ ( _z_ ).
The computation of the trajectory is dominated by the evaluation of _D_ <sup>ˆ</sup> ( _z_ ) on the grid, resulting in a computational cost
of _O_ ( _g_ <sup>_d_</sup> _d_ <sup>2</sup> _n_ ), where _g_ is the number of grid points in one dimension which we set to _g_ = 50 in all experiments. This limits the
applicability of this method to low values of _d_, and therefore, we use this method only in dimensions up to 4. To compute
a higher dimensional trajectory, we iteratively increase the dimension of the trajectory by one while keeping the previous
dimensions fixed, starting from the 4-dimensional trajectory. This heuristic is not guaranteed to solve the high-dimensional
minimization problem, but it performs well in practice.
A.7 FSC scores for heterogeneity
We illustrate the deceptive nature of FSC scores in determining the resolution of volumes generated by heterogeneous
algorithms in fig. A.7. The intriguing observation is that while the reprojected state appears visually as low resolution,
the conventional interpretation of the FSC score would lead us to conclude that it is a Nyquist resolution estimate of the
true state. On the contrary, despite being visually a much better estimate, the FSC score indicates that the reweighted
6Our implementation uses scikit fmm see `https://github` `com/scikit` `fmm`
reconstruction’s resolution is around half the reprojected resolution. This puzzling phenomenon can be explained by how the
reprojected state is computed: _xi_ = _µ_ ˆ + _Uzi_ . That is, it is a linear combination of the mean and the principal components.
The principal components _U_ are estimated at a lower resolution than the mean _µ_ ˆ and are regularized adequately so they do
not contribute much noise. Consequently, the state essentially equals the mean in high-frequency shells. Furthermore, the
mean is highly correlated to the true state (as the blue curve depicts). Thus, the reprojected state appears highly correlated
to the ground truth. While the impact is not as pronounced in the reweighted reconstruction, a similar phenomenon occurs
on a more localized scale since any reweighted reconstruction necessarily incurs some averaging over different states.
Other methods for heterogeneity reconstruction might not offer the same level of interpretability as the reprojection
scheme. However, we anticipate that they would exhibit similar behavior since the static parts of the molecule are more
easily resolved to a higher resolution. Adjustments to the FSC calculation, such as the mean-subtracted FSC proposed in [24],
or using a local FSC, might provide some relief but will likewise be misleading.
Figure A.7: Illustration of the deceptive nature of FSC scores in heterogeneity analysis. Top: the true state, the estimated
mean conformation, and reconstructed states using reprojection and reweighting from the dataset detailed in fig. 2. Bottom:
Fourier Shell Correlation curves, computed with a loose mask, between the true state and the reprojected reconstruction
(orange), the reweighted reconstruction (green), and the estimated mean conformational state (blue).
Dataset name dataset size _n_ box size _N_ our method cryoDRGN
EMPIAR-10180 327490 256 1h14m 20h22m
EMPIAR-10076 87327 128 7m1s 1h21m
EMPIAR-10076 87327 256 48m38s 4h49m
Table A.2: Embedding time across datasets and box size. All timings were performed on an NVIDIA A100 80GB GPU using
version 2.3 of cryoDRGN and default parameters.
A.8 Illustration of favorable latent space properties
We illustrate the importance of preserving distances and density between latent and volume space by comparing our method
to cryoDRGN on a synthetic dataset from the introduced in the original cryoDRGN paper [48]. This synthetic dataset uses
the same trajectory as in section 1.5, but the distribution of states among images is different. Instead, some states are more
likely than others, and a few states along the trajectory are not observed in the data entirely. We note that cryoDRGN and
our method recover the correct motion in the uniform dataset.
Our method uses the same parameter as in section 1.5 ( _d_ = 4), and we train a cryoDRGN network with default parameters
(version 2 3 _|z|_ 8 25 epochs)
Figure A.8: Result of 3DVA on a synthetic dataset with large motion with the same mask as used in section 1.5. (a) Accuracy
of the computed principal components for different choices of dimension (3DVA-4,8,12,16,20) and the method presented here
(covariance). At 20 dimensions, the lack of regularization of 3DVA causes instability in the algorithm, and the program
returns an error (depicted as 100% error). (b) The estimated latent coordinates using dimension 4 are very similar across
methods (see fig. 2 for comparison). (c) True trajectory and reconstruction along the first principal component using a
reweighting strategy (option “intermediate” in cryoSPARC) and reprojected (option “linear” in cryoSPARC). (d) Latent
depiction of the recovered motions: in blue are the particles used in the reweighting scheme, and in red is the latent coordinate
used to reproject the first principal component. In either case, large artifacts are present due to the averaging of particles
from distinct states in the case of reweighting and the early truncation of the principal component in the reprojection case.
We first wish to visualize how each method embeds the trajectory in latent space (see fig. A.10(a)). Our method uses
the map _x →_ _U_ ( _x −_ _µ_ ˆ) to embed the trajectory. CryoDRGN does not provide a straightforward way to embed volumes into
latent space, as only images used to train the network can be embedded. We follow the suggestion in the original paper
to embed volumes given ground truth labels: we average the latent coordinates of the collection of images for a particular
state, and then assign the volume to the nearest latent vector. We embed the ground truth trajectory using this method (for
cryoDRGN, we skip over states with less than 5 images).
We observe that the ground-truth trajectory displays large discontinuities across the unobserved states. This observation
is expected as the VAE does not conserve distances between latent and volume space. We next recover a trajectory using
cryoDRGN’s graph algorithm, which seeks the shortest path on a pruned nearest-neighbor graph in latent space. No path
is found with the default parameter, so we increase neighborhood size (average and maximum) in increments of 5, starting
from 5 until we find a path. In this case, we found a trajectory for a neighborhood size of 20.
The results in fig. A.10(a) show that the graph algorithm fails to recover the correct trajectory; an expected outcome as
nearby states are embedded at opposite ends of the latent space by cryoDRGN. In contrast, our method recovers the correct
trajectory thanks to the conservation of distance and density between latent and volume space.
In fig. A.10(b), we show ten volumes reconstructed at approximately equidistant points, as measured by latent distances,
along the recovered trajectories for each method. We overlay the ground truth trajectory in transparent yellow. Our method
recovers the correct motion with a highly variable resolution. It recovers high-resolution volumes for states with many
observed images in the dataset (volumes 2 and 10), a lower resolution volume for states with fewer images (volumes 3 and
8); and the FSC regularization forces the volume to be small (dropping below the visual threshold) for states with no images
at all (volumes 4 and 6).
In contrast, all volumes produced by cryoDRGN display high-resolution features, but even as the trajectory moves in
latent space, no motion is observed in the volumes (volumes 1 to 4 and 8 to 10). In parts of the trajectory that are sparsely
populated (states 5 and 7), the network seems to hallucinate states by interpolating two states.
This difference illustrates the importance of uncertainty preservation in heterogeneity analysis. Our method returns lowresolution volumes or even 0 when there is too little information to form high-resolution reconstructions. In contrast, when
the network has no information; it hallucinates a volume with high-resolution features. While this phenomenon is easy to
spot in this simple, high SNR dataset, it may not be as evident in real datasets with high noise levels and outliers.
Figure A.9: (a) UMAP visualization of latent space under different principal component dimensions (d=4,12,20,50). Also
shown is the embedding computed by the deep-learning method cryoDRGN [48]. Each dot corresponds to an image in both
cases, and its color reflects its label published in the original analysis [6]. (b) Comparison of reconstructions by reweighting
and reprojection. Some parts of the reprojected scheme appear in higher resolution, but they also show artifacts for some
minor states; see also appendix A.7.
Figure A.10: Comparison of embeddings and trajectories between cryoDRGN and our method on a dataset with noncontiguous states. (a) Embeddings for both methods overlayed with embedded ground truth and recovered trajectory. For the
cryoDRGN plot, we show scatter plots of the embedded dataset over pairs of PCs of the latent space (see appendix A.8
for details). For our method, we show the estimated latent density over pairs of axes, where the density was integrated
among the remaining axes. (b) Reconstructed volumes with the two methods at approximately equidistant points along the
trajectory, overlayed in transparent yellow by the ground truth trajectory. The star and square are the two chosen endpoints
and intermediary states, denoted in latent space with triangles for cryoDRGN and circles for our method. All volumes are
visualized at the isosurface level 0.025 (ground truth outline 0.02).
## Code availability
The software is available at `[https://github.com/ma-gilles/recovar](https://github.com/ma-gilles/recovar)`, and will be incorporated in the ASPIRE software
system [47].
## Data availability
Data for synthetic experiments in section 1.5 and appendix A.8 are deposited in `[https://zenodo.org/records/4355284](https://zenodo.org/records/4355284)` .
Data for synthetic experiment in section 1.6 are deposted in `[https://zenodo.org/records/10030109](https://zenodo.org/records/10030109)` . Experimental
datasets are deposited in EMPIAR with entry ID 10076 and 10180.
## Acknowledgments
The authors thank Eric Verbeke, Joakim Anden, Roy Lederman, Edgar Dobriban, William Leeb, Bogdan Toader, and Willem
Diepeveen for helpful discussions. The authors thank Ellen Zhong and other developers of cryoDRGN for making the software
and code accessible, which our implementation relied on. The authors also thank the developers of RELION, cryoSPARC,
EMDA, and ChimeraX for making their software freely available, all of which were used to generate the results presented
here.
The authors are supported in part by AFOSR under Grant FA9550-20-1-0266, in part by Simons Foundation Math+X
Investigator Award, in part by NSF under Grant DMS-2009753, and in part by NIH/NIGMS under Grant R01GM136780-01.
Part of this research was performed while the first author was visiting the Institute for Pure and Applied Mathematics
(IPAM), which is supported by the National Science Foundation (Grant No. DMS- 1925919).
## Competing interests
The authors declare no competing interests.
## References
[1] Joakim And´en and Amit Singer. Structural variability from noisy tomographic projections. _SIAM_ _Journal_ _on_ _Imaging_
_Sciences_, 11(2):1441–1492, 2018.
[2] Martino Bardi, Italo Capuzzo Dolcetta, et al. _Optimal_ _control_ _and_ _viscosity_ _solutions_ _of_ _Hamilton-Jacobi-Bellman_
_equations_, volume 12. Springer, 1997.
[3] Muyuan Chen and Steven J Ludtke. Deep learning-based mixed-dimensional Gaussian mixture model for characterizing
variability in cryo-EM. _Nature_ _methods_, 18(8):930–936, 2021.
[4] Yifan Chen, Ethan N Epperly, Joel A Tropp, and Robert J Webber. Randomly pivoted Cholesky: Practical approxima
tion of a kernel matrix with few entry evaluations. _arXiv_ _preprint_ _arXiv:2207.06503_, 2022.
[5] Ali Dashti, Ghoncheh Mashayekhi, Mrinal Shekhar, Danya Ben Hail, Salah Salah, Peter Schwander, Amedee des Georges,
Abhishek Singharoy, Joachim Frank, and Abbas Ourmazd. Retrieving functional pathways of biomolecules from singleparticle snapshots. _Nature_ _communications_, 11(1):4734, 2020.
[6] Joseph H Davis, Yong Zi Tan, Bridget Carragher, Clinton S Potter, Dmitry Lyumkis, and James R Williamson. Modular
assembly of the bacterial large ribosomal subunit. _Cell_, 167(6):1610–1622, 2016.
[7] Lieven De Lathauwer, Bart De Moor, and Joos Vandewalle. A multilinear singular value decomposition. _SIAM_ _journal_
_on_ _Matrix_ _Analysis_ _and_ _Applications_, 21(4):1253–1278, 2000.
[8] Edgar Dobriban, William Leeb, and Amit Singer. Optimal prediction in the linearly transformed spiked model. _The_
_Annals_ _of_ _Statistics_, 48(1):491 - 513, 2020.
[9] Allison Doerr. A dynamic direction for cryo-EM. _Nature_ _Methods_, 19(1):29–29, 2022.
[10] Claire Donnat, Axel Levy, Frederic Poitevin, Ellen D Zhong, and Nina Miolane. Deep generative modeling for volume
reconstruction in cryo-electron microscopy. _Journal_ _of_ _Structural_ _Biology_, page 107920, 2022.
[11] Daniel G Edelberg and Roy R Lederman. Using VAEs to learn latent variables: Observations on applications in cryo-EM.
_arXiv_ _preprint_ _arXiv:2303.07487_, 2023.
[12] Joachim Frank and Abbas Ourmazd. Continuous changes in structure mapped by manifold embedding of single-particle
data in cryo-EM. _Methods_, 100:61–67, 2016.
[13] David Herreros, Roy R Lederman, James M Krieger, Amaya Jim´enez-Moreno, Marta Mart´ınez, David Myˇska, D Strelak,
J Filipovic, Carlos OS Sorzano, and Jos´e M Carazo. Estimating conformational landscapes from cryo-EM particles by
3d Zernike polynomials. _Nature_ _Communications_, 14(1):154, 2023.
[14] Ian T Jolliffe. Choosing a subset of principal components or variables. _Principal_ _component_ _analysis_, pages 111–149,
2002.
[15] Eugene Katsevich, Alexander Katsevich, and Amit Singer. Covariance matrix estimation for the cryo-EM heterogeneity
problem. _SIAM_ _journal_ _on_ _imaging_ _sciences_, 8(1):126–185, 2015.
[16] Laurel F Kinman, Barrett M Powell, Ellen D Zhong, Bonnie Berger, and Joseph H Davis. Uncovering structural
ensembles from single-particle cryo-EM data using cryoDRGN. _Nature_ _Protocols_, 18(2):319–339, 2023.
[17] Werner K¨uhlbrandt. The resolution revolution. _Science_, 343(6178):1443–1444, 2014.
[18] Sanjiv Kumar, Mehryar Mohri, and Ameet Talwalkar. Sampling methods for the Nystr¨om method. _The_ _Journal_ _of_
_Machine_ _Learning_ _Research_, 13(1):981–1006, 2012.
[19] Roy R Lederman and Bogdan Toader. On manifold learning in Plato’s cave: Remarks on manifold learning and physical
phenomena. _arXiv_ _preprint_ _arXiv:2304.14248_, 2023.
[20] Axel Levy, Gordon Wetzstein, Julien NP Martel, Frederic Poitevin, and Ellen Zhong. Amortized inference for heteroge
neous reconstruction in cryo-em. _Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_, 35:13038–13049, 2022.
[21] Michael W Mahoney and Petros Drineas. Cur matrix decompositions for improved data analysis. _Proceedings_ _of_ _the_
_National_ _Academy_ _of_ _Sciences_, 106(3):697–702, 2009.
[22] Per-Gunnar Martinsson and Joel A Tropp. Randomized numerical linear algebra: Foundations and algorithms. _Acta_
_Numerica_, 29:403–572, 2020.
[23] Leland McInnes, John Healy, and James Melville. UMAP: Uniform manifold approximation and projection for dimension
reduction. _arXiv_ _preprint_ _arXiv:1802.03426_, 2018.
[24] Amit Moscovich, Amit Halevi, Joakim And´en, and Amit Singer. Cryo-EM reconstruction of continuous heterogeneity
by Laplacian spectral volumes. _Inverse_ _Problems_, 36(2):024003, 2020.
[25] Takanori Nakane, Dari Kimanius, Erik Lindahl, and Sjors HW Scheres. Characterisation of molecular motions in cryo-EM
single-particle data by multi-body refinement in RELION. _elife_, 7:e36861, 2018.
[26] Pawel A Penczek, Marek Kimmel, and Christian MT Spahn. Identifying conformational states of macromolecules by
eigen-analysis of resampled cryo-EM images. _Structure_, 19(11):1582–1590, 2011.
[27] Clemens Plaschka, Pei-Chun Lin, and Kiyoshi Nagai. Structure of a pre-catalytic spliceosome. _Nature_, 546(7660):617–
621, 2017.
[28] Ali Punjani, Marcus A Brubaker, and David J Fleet. Building proteins in a day: Efficient 3D molecular structure
estimation with electron cryomicroscopy. _IEEE_ _Transactions_ _on_ _Pattern_ _Analysis_ _and_ _Machine_ _Intelligence_, 39(4):706–
718, 2016.
[29] Ali Punjani and David J Fleet. 3D variability analysis: Resolving continuous flexibility and discrete heterogeneity from
single particle cryo-EM. _Journal_ _of_ _structural_ _biology_, 213(2):107702, 2021.
[30] Ali Punjani and David J Fleet. 3DFlex: determining structure and motion of flexible proteins from cryo-EM. _Nature_
_Methods_, pages 1–11, 2023.
[31] Ali Punjani, John L Rubinstein, David J Fleet, and Marcus A Brubaker. cryoSPARC: algorithms for rapid unsupervised
cryo-EM structure determination. _Nature_ _methods_, 14(3):290–296, 2017.
[32] Ali Punjani, Haowei Zhang, and David J Fleet. Non-uniform refinement: adaptive regularization improves single-particle
cryo-EM reconstruction. _Nature_ _methods_, 17(12):1214–1221, 2020.
[33] Peter B Rosenthal and Richard Henderson. Optimal determination of particle orientation, absolute hand, and contrast
loss in single-particle electron cryomicroscopy. _Journal_ _of_ _molecular_ _biology_, 333(4):721–745, 2003.
[34] Sjors HW Scheres. A Bayesian view on cryo-EM structure determination. _Journal_ _of_ _molecular_ _biology_, 415(2):406–418,
2012.
[35] Sjors HW Scheres. RELION: implementation of a Bayesian approach to cryo-EM structure determination. _Journal_ _of_
_structural_ _biology_, 180(3):519–530, 2012.
[36] Sjors HW Scheres, Mikel Valle, Patricia Grob, Eva Nogales, and Jos´e-Mar´ıa Carazo. Maximum likelihood refinement of
electron microscopy data with normalization errors. _Journal_ _of_ _structural_ _biology_, 166(2):234–240, 2009.
[37] Evan Seitz, Francisco Acosta-Reyes, Suvrajit Maji, Peter Schwander, and Joachim Frank. Geometric machine learning
informed by ground truth: Recovery of conformational continuum from single-particle cryo-EM data of biomolecules.
_BioRxiv_, pages 2021–06, 2021.
[38] James A Sethian et al. _Level_ _set_ _methods_ _and_ _fast_ _marching_ _methods_, volume 98. Cambridge Cambridge UP, 1999.
[39] Yunpeng Shi and Amit Singer. Ab-initio contrast estimation and denoising of cryo-EM images. _Computer_ _Methods_ _and_
_Programs_ _in_ _Biomedicine_, 224:107018, 2022.
[40] C. O. S. Sorzano, A. Jim´enez, J. Mota, J. L. Vilas, D. Maluenda, M. Mart´ınez, E. Ram´ırez-Aportela, T. Majtner,
J. Segura, R. S´anchez-Garc´ıa, Y. Rancel, L. del Ca˜no, P. Conesa, R. Melero, S. Jonic, J. Vargas, F. Cazals, Z. Freyberg,
J. Krieger, I. Bahar, R. Marabini, and J. M. Carazo. Survey of the analysis of continuous conformational variability of
biological macromolecules by electron microscopy. _Acta_ _Crystallographica_ _Section_ _F_, 75(1):19–32, Jan 2019.
[41] Carlos Oscar S Sorzano and Jose Maria Carazo. Principal component analysis is limited to low-resolution analysis in
cryoEM. _Acta_ _Crystallographica_ _Section_ _D:_ _Structural_ _Biology_, 77(6):835–839, 2021.
[42] Hemant D Tagare, Alp Kucukelbir, Fred J Sigworth, Hongwei Wang, and Murali Rao. Directly reconstructing principal
components of heterogeneous particles from cryo-EM images. _Journal_ _of_ _structural_ _biology_, 191(2):245–262, 2015.
[43] Bogdan Toader, Fred J Sigworth, and Roy R Lederman. Methods for cryo-EM single particle reconstruction of macro
molecules having continuous heterogeneity. _Journal_ _of_ _Molecular_ _Biology_, 435(9):168020, 2023.
[44] R´emi Vuillemot, Osamu Miyashita, Florence Tama, Isabelle Rouiller, and Slavica Jonic. NMMD: Efficient cryo-EM
flexible fitting based on simultaneous normal mode and molecular dynamics atomic displacements. _Journal_ _of_ _Molecular_
_Biology_, 434(7):167483, 2022.
[45] Rangana Warshamanage, Keitaro Yamashita, and Garib N Murshudov. EMDA: A Python package for electron mi
croscopy data analysis. _Journal_ _of_ _Structural_ _Biology_, page 107826, 2021.
[46] Christopher Williams and Matthias Seeger. Using the Nystr¨om method to speed up kernel machines. _Advances_ _in_ _neural_
_information_ _processing_ _systems_, 13, 2000.
[47] Garrett Wright, Joakim And´en, Vineet Bansal, Junchao Xia, Chris Langfield, Josh Carmichael, Kris Sowattanangkul,
Robbie Brook, Yunpeng Shi, Ayelet Heimowitz, Gabi Pragier, Itay Sason, Amit Moscovich, Yoel Shkolnisky, and Amit
Singer. Computationalcryoem/aspire-python: v0.12.0 https://doi.org/10.5281/zenodo.5657281, September 2023.
[48] Ellen D Zhong, Tristan Bepler, Bonnie Berger, and Joseph H Davis. CryoDRGN: reconstruction of heterogeneous
cryo-EM structures using neural networks. _Nature_ _methods_, 18(2):176–185, 2021.
[49] Ellen D Zhong, Adam Lerer, Joseph H Davis, and Bonnie Berger. CryoDRGN2: Ab initio neural reconstruction of 3d
protein structures from real cryo-EM images. In _Proceedings_ _of_ _the_ _IEEE/CVF_ _International_ _Conference_ _on_ _Computer_
_Vision_, pages 4066–4075, 2021.
[50] Hui Zou, Trevor Hastie, and Robert Tibshirani. Sparse principal component analysis. _Journal_ _of_ _computational_ _and_
_graphical_ _statistics_, 15(2):265–286, 2006.