기본 정보
- 저자
- DOI
- 10.1103/txrb-fw3z
- 저널
- PRX Life
- 발행년도
- 2025
- 발행기관
- American Physical Society
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1103/txrb-fw3z
- 토픽
- Electron and X-Ray Spectroscopy Techniques
- OpenAlex ID
- W6903372990
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (16) CPI(투명 폴리이미드)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Simulation-based inference provides a powerful framework for cryoelectron microscopy, employing neural networks in methods like CryoSBI to infer biomolecular conformations via learned latent representations. This latent space represents a rich opportunity, encoding valuable information about the physical system and the inference process. Harnessing this potential hinges on understanding the underlying geometric structure of these representations. We investigate this structure by applying manifold learning techniques to CryoSBI representations of a simulated benchmark dataset and both simulated and experimental images of hemagglutinin. We reveal that these high-dimensional data inherently populate low-dimensional, smooth manifolds, with simulated data effectively covering the experimental counterpart. By characterizing the manifold's geometry using Diffusion Maps and identifying its principal axes of variation via coordinate interpretation methods, we establish a direct link between the latent structure and key physical parameters. Discovering this intrinsic low-dimensionality and interpretable geometric organization not only validates the CryoSBI approach but also enables us to learn more from the data structure and provides opportunities for improving future inference strategies by exploiting this revealed manifold geometry.
본문 84,819자
본문 펼치기
Cryo-EM images are intrinsically low dimensional
Luke Evans, <sup>1,</sup> <sup>_∗_</sup> Octavian-Vlad Murad, <sup>2,</sup> <sup>_∗_</sup> Lars Dingeldein, <sup>3</sup> Pilar Cossio, <sup>1, 4</sup> Roberto Covino, <sup>5, 3</sup> and Marina Meila <sup>2</sup>
1 _Center_ _for_ _Computational_ _Mathematics,_ _Flatiron_ _Institute,_ _New_ _York,_ _NY,_ _USA_
2 _Department_ _of_ _Statistics,_ _University_ _of_ _Washington,_ _Seattle,_ _Washington,_ _USA_
3 _Frankfurt_ _Institute_ _For_ _Advanced_ _Study,_ _Frankfurt,_ _Hesse,_ _Germany_
4 _Center_ _for_ _Computational_ _Biology,_ _Flatiron_ _Institute,_ _New_ _York,_ _NY,_ _USA_
5 _Institute_ _of_ _Computer_ _Science,_ _Goethe_ _University_ _Frankfurt,_ _Frankfurt,_ _Hesse,_ _Germany_
(Dated: September 5, 2025)
Simulation-based inference provides a powerful framework for cryo-electron microscopy, employing
neural networks in methods like CryoSBI to infer biomolecular conformations via learned latent
representations. This latent space represents a rich opportunity, encoding valuable information about
the physical system and the inference process. Harnessing this potential hinges on understanding the
underlying geometric structure of these representations. We investigate this structure by applying
manifold learning techniques to CryoSBI representations of a simulated benchmark dataset, and
both simulated and experimental images of hemagglutinin. We reveal that these high-dimensional
data inherently populate low-dimensional, smooth manifolds, with simulated data effectively covering
the experimental counterpart. By characterizing the manifold’s geometry using Diffusion Maps
and identifying its principal axes of variation via coordinate interpretation methods, we establish
a direct link between the latent structure and key physical parameters. Discovering this intrinsic
low-dimensionality and interpretable geometric organization not only validates the CryoSBI approach
but enables us to learn more from the data structure and provides opportunities for improving future
inference strategies by exploiting this revealed manifold geometry.
I. INTRODUCTION
Cryogenic electron-microscopy (cryo-EM) is a
structural biology technique for imaging individual
biomolecules at atomic resolution. In a cryo-EM
experiment, a biomolecular sample is imaged with a
transmission electron microscope, and the resulting data
is processed to yield a large dataset of unlabeled 2D
images with one molecule per image (particles). Reconstruction algorithms [1] can estimate the 3D structure of
the biomolecule from the 2D particles. In many cases,
biomolecules coexist in different conformational states in
the sample.
Machine learning methods, including diffusion maps [2]
and deep-generative models [3–5], have become central in
cryo-EM for reconstructing heterogeneous conformations
of biomolecules [6, 7]. These methods project the highdimensional conformational space on to a low-dimensional
latent representation, but these latent spaces lack interpretability [8]. Some of these challenges can be addressed
by incorporating physical interpretability during training
[9] or by using physics-based priors in the model [10]. Additionally, analyses based solely on simulated data have
also provided valuable insights [11]. However, extracting
physical and geometrical information from the featurized images remains challenging due to non-linear feature
mapping, low signal-to-noise ratio (SNR) and uncertainty
in pose assignment, which can be confused with conformational changes.
Recent simulation-based techniques from integrative
structural biology [12] and probabilistic machine learn
_∗_ Equal Contribution
ing [13] hold great promise for analyzing cryo-EM data.
CryoSBI [14] is an emerging paradigm using simulationbased inference [15, 16] (SBI) to infer conformations and
uncertainties from cryo-EM particles by training neural
networks producing a latent representation and a density
estimator with simulated cryo-EM experiments (Figure 1).
The trained networks can be quickly evaluated on large
experimental particle datasets. Because the training is
only done with simulated data, a key feature of cryoSBI
is that it enables linking of physical properties of the
molecules and the experiment to experimental data.
Supported by preliminary evidence [14], we hypothesize
that the representations learned by the neural network
are near low dimensional manifolds inside the latent space.
The objective of this work is to study the geometry of the
data using manifold learning techniques [17–20]. First, we
will seek to ascertain whether the learned representations
correspond to well-behaved low-dimensional manifolds,
and second, whether these are parameterized by generative variables important in predicting the posterior over
the conformation. Our analysis quantitatively validates
the latent space of cryoSBI and leads to a general computational workflow both for interpreting latent spaces of cryoEM heterogeneity analysis methods and more broadly for
learned summary statistics in simulation-based inference.
II. CRYOSBI AND LATENT SPACES
CryoSBI [14] is a new method to quantify the probability that a given image _I_ depicts a molecular conformation
_θ_ . We assume to have a set of structures, e.g. from molecular simulations or AI-methods [21], which we expect to
find in the sample. For simplicity, we also assume that
Approximate Posterior
ϴ
Prior Simulator
θ
ϴ
Latent representation
Latent
Flow
mapping
FIG. 1: Schematic workflow for learning the surrogate posterior with cryoSBI. Parameter samples are drawn from the
prior to simulate synthetic cryo-EM images. These images are then used to approximate the posterior by jointly
training a summary network and a normalizing flow.
_θ_ is a one-dimensional parameter, and we aim to infer
the conformation _θ_ of the molecule observed in the image,
i.e., compute the Bayesian posterior _p_ ( _θ|I_ ). The posterior
quantifies how compatible _θ_ is with the observed image _I_ .
To model the image formation process, one must consider experimental details such as microscope aberration,
noise, and random orientation of the molecule. To simulate a cryo-EM image, one samples conformations from the
prior _θi_ _∼_ _p_ ( _θ_ ), and imaging parameters from _ϕi_ _∼_ _p_ ( _ϕ_ )
and then generates a synthetic image _Ii_ _∼_ _p_ ( _I|θi, ϕi_ ) using a forward model of the imaging process (Appendix A),
accumulating a data set of simulated images and ground
truth parameters _D_ = _{θi, ϕi, Ii}_ <sup>_N_</sup> _i_ =1 <sup>.</sup> <sup>The</sup> <sup>nuisance</sup> <sup>pa-</sup>
rameter vector _ϕi_ includes random orientations, a wide
range of defocus values, center translations, and SNRs.
A. Feature Latent Representation and Neural
Posterior Estimation.
CryoSBI builds on the Neural Posterior Estimation
framework [22, 23], jointly training a latent representation network _Sψ_ ( _·_ ) to extract summary statistics and a
normalizing flow _qφ_ ( _·_ ) as surrogate model of the posterior
_qφ_ ( _θ|Sψ_ ( _I_ )) _≈_ _p_ ( _θ|I_ ). This is done by maximizing the average log-likelihood _L_ ( _φ, ψ_ ) = _N_ <u>1</u> - _Ni_ =1 <sup>log</sup> <sup>_qφ_</sup> <sup>(</sup> <sup>_θi|Sψ_</sup> <sup>(</sup> <sup>_Ii_</sup> <sup>))</sup>
of the posterior probability under the training samples
_D_ (Appendix B). In principle, after training, _Sψ_ should
_i_ ) compress images to predict the relevant features and
_ii_ ) enable efficient comparison of simulated images to
‘nearby’ experimental images. For example, the latent
representation should distinguish images due to conformation, SNR and projection direction, as these are the
primary experimental factors determining how precisely
we can estimate a molecular configuration from a single image. Distinguishing these factors is another step
towards indicating physical properties of the molecule,
such as symmetries affecting the pose or conformation
estimates. In practice, while the feature representation for
cryoSBI [14] - and more generally for Neural Posterior
Estimation - offers powerful inference capabilities, it is
not immediately interpretable, making it challenging to
check for model misspecification [24].
III. MANIFOLD ANALYSIS PIPELINE
To study the representations learned by the feature
mapping _Sψ,_ we apply a framework of manifold learning
B. Datasets.
We consider latent representations from two different
biomolecular systems: the human immunoglobulin G antibody (IgG) and influenza hemagglutinin. The IgG dataset
was recently utilized as an example of large conformational changes (the “IgG-1D” dataset) in the cryo-EM
heterogeneity benchmark CryoBench [11]. We applied
cryoSBI to this benchmark system and analyzed the latent
representations of simulated images derived from the IgG
atomic models. CryoSBI training was performed as in [14]
using cryo-EM simulations by sampling the priors with
ranges specified in (Appendix C). After training, we created a simulated dataset _Ds_ consisting of _Ns_ = 100 _,_ 000
feature vectors with _i_ -th datapoint _xi_ = _Sψ_ ( _Ii_ ) _⊆_ R <sup>256</sup> _,_
nuisance parameters _ϕi,_ ground-truth conformation parameter _θi_, posterior mean _θ_ <sup>ˆ</sup> _i_ and width _σi_ of the posterior
_qφ_ ( _·|xi_ ), so that _Ds_ = _{xi,_ _θ_ <sup>ˆ</sup> _i, σi, θi, ϕi}_ <sup>_N_</sup> _i_ =1 <sup>_s_</sup> <sup>_._</sup> <sup>We denote the</sup>
_qφ_ ( _·|xi_ ), so that _Ds_ = _{xi,_ _θ_ <sup>ˆ</sup> _i, σi, θi, ϕi}_ <sup>_N_</sup> _i_ =1 <sup>_s_</sup> <sup>_._</sup> <sup>We denote the</sup>
representations learned by _Sψ_, _Xs_ = _{xi}_ <sup>_N_</sup> _i_ =1 <sup>_s_</sup> <sup>_._</sup>
representations learned by _Sψ_, _Xs_ = _{xi}_ <sup>_N_</sup> _i_ =1 <sup>_s_</sup> <sup>_._</sup>
The hemaglutinin data corresponds to the hemagglutinin dataset considered in ref. [14]; it consists of the
CryoSBI latent representations of the simulated and experimental images. CryoSBI training was performed as in
[14] by sampling the priors (Appendix C) and simulating
from them. Likewise, we created a simulated dataset
_Ds_ consisting of _Ns_ = 100 _,_ 000 feature vectors with _i_ th datapoint _xi_ = _Sψ_ ( _Ii_ ) _⊆_ R <sup>256</sup> _,_ nuisance parameters
_ϕi,_ ground-truth conformation parameter _θi_, posterior
mean _θ_ <sup>ˆ</sup> _i_ and width _σi_ of the posterior _qφ_ ( _·|xi_ ), so that
_Ds_ = _{xi,_ _θ_ <sup>ˆ</sup> _i, σi, θi, ϕi}_ <sup>_N_</sup> _i_ =1 <sup>_s_</sup> <sup>_._</sup> <sup>The</sup> <sup>experimental</sup> <sup>dataset</sup> <sup>_De_</sup>
_Ds_ = _{xi,_ _θ_ <sup>ˆ</sup> _i, σi, θi, ϕi}_ <sup>_N_</sup> _i_ =1 <sup>_s_</sup> <sup>_._</sup> <sup>The</sup> <sup>experimental</sup> <sup>dataset</sup> <sup>_De_</sup>
consists of _Ne_ = 271558 tuples _De_ = _{x_ ˜ _i,_ _θ_ <sup>ˆ</sup> _i, σi}_ <sup>_N_</sup> _i_ =1 <sup>_e_</sup> <sup>with</sup>
consists of _Ne_ = 271558 tuples _De_ = _{x_ ˜ _i,_ _θ_ <sup>ˆ</sup> _i, σi}_ <sup>_N_</sup> _i_ =1 <sup>_e_</sup> <sup>with</sup>
_x_ ˜ _i_ = _Sψ_ ( _I_ <sup>˜</sup> _i_ ), for whitened single particle-images _{I_ <sup>˜</sup> _i}_ <sup>_N_</sup> _i_ =1 <sup>_e_</sup>
from EMPIAR 10532 [25], where _θ_ <sup>ˆ</sup> _i, σi_ are the inferred
posterior parameters (note that the experimental images
have no ground truth _θ_ or _ϕ_ ). We denote the representations learned by _Sψ_, _Xs_ = _{xi}_ <sup>_N_</sup> _i_ =1 <sup>_s_</sup> <sup>and</sup> <sup>_Xe_</sup> <sup>=</sup> <sup>_{x_</sup> <sup>˜</sup> <sup>_i}_</sup> _i_ <sup>_N_</sup> =1 <sup>_e_</sup> <sup>.</sup>
<sup>_N_</sup> _i_ =1 <sup>_s_</sup> <sup>and</sup> <sup>_Xe_</sup> <sup>=</sup> <sup>_{x_</sup> <sup>˜</sup> <sup>_i}_</sup> _i_ <sup>_N_</sup> =1 <sup>_e_</sup>
_i_ <sup>_N_</sup> =1 <sup>_e_</sup> <sup>.</sup>
techniques to the datasets _Xs_ and _Xe_ (Appendix D). We
proceed by a pipeline of: pre-processing the data, estimating the intrinsic dimensionality, and then embedding
to a lower dimensional manifold.
A. Data pre-processing.
The data pre-processing consists of subsampling, removing outliers, and resampling the data to avoid large
variation in density. The data subsampling and outlier
removal ensure both computational scalability and statistical robustness in our methods, and the re-sampling
encourages a more uniform distribution of data, which
is known to help de-bias both dimension estimation and
manifold learning techniques [20]. Our full process is
described in detail in Appendix E.
B. Dimensionality estimation.
Intrinsic dimension estimation is challenging when the
data contains noise in the high dimensional ambient space.
To ensure robustness of our findings, we employ four
different estimators. The first returns a global dimension
estimate _d,_ <sup>ˆ</sup> and the latter three return a local dimension
estimate _d_ <sup>ˆ</sup> ( _x_ ) for any given data point _x_ ; in this second
case, the estimate _d_ <sup>ˆ</sup> is the mode of the _d_ <sup>ˆ</sup> ( _x_ ) distribution.
The four algorithms we use are:
- _Correlation_ _Dimension_ [26]: The number of neighbors within a radius _r_ of a datapoint _x_ satisfies
_nr_ ( _x_ ) _∝_ _r_ <sup>_d_</sup>, implying log _nr_ ( _x_ ) _∝_ _d ·_ log _r_ . For a
range of radii _R_ = _{r_ 1 _, r_ 2 _, . . . rm}_, we compute the
average number of neighbors _<u>nr</u>_ and fit a linear
model to _{_ (log _r,_ log _<u>nr</u>_ <u>)</u> _}r∈R_ . The slope yields a
single global estimate _d_ <sup>ˆ</sup> (Figure 2a).
- _Eigengap_ _Method_ [27]: For each _x_, we compute
a weighted local covariance matrix and obtain its
truncated spectrum _λ_ 1 _≥· · ·_ _≥_ _λD_ for some conservatively large _D_ _> d_ . Then _d_ <sup>ˆ</sup> ( _x_ ) is given by the
largest gap between consecutive eigenvalues. This
method is the only one of the four designed to take
into account the presence of noise. (Figure 2b).
- _Doubling_ _Dimension_ [28]: By the same scaling principle as Correlation Dimension, we can instead compute the local statistic _d_ <sup>ˆ</sup> _r_ ( _x_ ) = log2 - _n_ 2 _r_ ( _x_ ) _/nr_ ( _x_ )�
- _n_ 2 _r_ ( _x_ ) _/nr_ ( _x_ )
In Appendix F and Appendix G we provide details about
the algorithms, their implementation in this work, and
practical guidelines for their use.
C. Manifold embedding.
For embedding the high-dimensional datasets to lower
dimensions, we apply Diffusion Maps [17] to our preprocessed data. To refine our initial embedding, we remove redundant embedding directions by applying Independent Eigencoordinate Selection (IES) [18]. We
then correct the distortion introduced by the embedding algorithm to the original distances within the manifold, through the procedure known as Riemannian Relaxation [30]. Appendix H details our embedding pipeline.
IV. GEOMETRIC ANALYSIS OF THE CRYOSBI
LATENT SPACE
Now, we proceed to study the shape of the data cloud
_Xe_, determine the intrinsic dimensionality of the datasets,
assess how well the simulated data covers the experimental
space, and uncover the physical interpretation of the latent
representations.
A. Are the data low dimensional?
We first estimate the intrinsic dimension for the synthetic IgG dataset and the experimental and synthetic
hemagglutinin datasets. Figure 2 summarizes our main
result: all four methods indicate that the learned
cryo-EM embeddings have _low_ _intrinsic_ _dimension._
Specifically, we find that 6 _≤_ _ds_ _≤_ 10 for the synthetic
IgG dataset and 2 _≤_ _ds_ _≤_ _de_ _≤_ 6 for the hemagglutinin
datasets. The higher dimensionality for simulated IgG
data than the simulated hemagglutinin is likely due to the
larger conformational change in the IgG pdbs. The slight
difference between _ds_ and _de_ for hemagglutinin likely
reflects experimental noise and other imaging factors not
captured by the simulated model. Taken together, these
results strongly support the conclusion that the manifold
assumption holds for our datasets.
B. Does the simulated hemagglutinin data cover the
experimental data well ?
For the amortized simulation-based-inference in
CryoSBI, the simulator must be able to generate many
relevant experimental realizations, so that a particular
experiment can be accurately analyzed without retraining. Our dimensionality results above indicate that the
simulated and experimental hemagglutinin data lie on
low dimensional manifolds, but do not inform whether
the manifolds are close to each other or if the simulated
for some fixed _r_ _∈_ R <sup>+</sup> (Appendix Figure 1). These
local estimates can be averaged over a range of
radii _R_ to yield more robust point-wise predictions
(Figure 2c).
- _Levina–Bickel_ _MLE_ [29]: This method infers _d_ from
the top _k_ -nearest neighbor distances as _d_ <sup>ˆ</sup> _k_ ( _x_ ) =
- <u>1</u> - _k−_ 1
_k−_ 1 _j_ =1 <sup>log(dist</sup> <sup>_k_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_/_</sup> <sup>dist</sup> <sup>_j_</sup> <sup>(</sup> <sup>_x_</sup> <sup>))</sup> - _−_ 1 for some fixed
- <u>1</u> - _k−_ 1
_k−_ 1 _j_ =1 <sup>log(dist</sup> <sup>_k_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_/_</sup> <sup>dist</sup> <sup>_j_</sup> <sup>(</sup> <sup>_x_</sup> <sup>))</sup> - _−_ 1 for some fixed
integer _k_ (Appendix Figure 2). These local estimates can be averaged over a range of numbers of
neighbors _K_ to yield more robust point-wise predictions (Figure 2d).
- _k−_ 1
_j_ =1 <sup>log(dist</sup> <sup>_k_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_/_</sup> <sup>dist</sup> <sup>_j_</sup> <sup>(</sup> <sup>_x_</sup> <sup>))</sup>
FIG. 2: Intrinsic dimensionality estimation results for the experimental (red) and synthetic (blue) hemagglutinin
datasets, and the synthetic IgG dataset (green).
( a ) _Correlation_ _Dimension_ : The slope of the fitted line yields a single global prediction _d_ <sup>ˆ</sup> for each dataset.
( b ) _Doubling_ _Dimension_ : distribution of the point-wise estimates _d_ <sup>ˆ</sup> ( _x_ ) averaged over a range of radii _R._
( c ) _Eigengap_ : distribution of the point-wise intrinsic dimension estimates _d_ <sup>ˆ</sup> ( _x_ ).
( d ) _Levina–Bickel_ : distribution of the point-wise estimates _d_ <sup>ˆ</sup> ( _x_ ) averaged over a range of nearest neighbors _K_ .
data covers the experimental. In other words, if the experimental hemagglutinin data are in the distribution of
simulated ones.
We investigate the covering by density estimation of
both hemagglutinin datasets. For this, we first estimate
the data densities _pe_ and _ps_ in R <sup>256</sup> by kernel density
estimators (KDE) [31] _p_ ˆ _e_ and _p_ ˆ _s_ .
The bandwidths _he_ = 0 _._ 31 and _hs_ = 0 _._ 48 are obtained
by cross-validation, as detailed in Appendix G. While
it is known that KDE is poor in high dimensions, the
method is _adaptive_, meaning that it will work when the
intrinsic dimension is low, as in this case. We use samples
of size 17000 for fitting _p_ ˆ _e_ and _p_ ˆ _s_ . We do not expect _pe_ to
equal _ps_, but we would like to confirm that _ps_ is predictive
of the experimental data. Thus, on two held out datasets
_Xe_ <sup>_test_</sup> and _Xs_ <sup>_test_</sup>, with _|Xs_ <sup>_test_</sup> _|_ = _|Xe_ <sup>_test_</sup> _|_ = _n_ <sup>_test_</sup> = 3000, we
hypothesis that we can infer what generative parameters
best describe the experimental data, is so far supported
since we can, for most experimental _x_ ˜ _∈Xe_, find enough
near-by synthetic _x ∈Xs_ to perform this prediction in a
robust manner.
C. Modeling the low dimensional cryo-EM images
manifold.
We use a suite of manifold learning techniques [17, 18,
30, 32] to map the neural representations _Xe_ _⊆_ R <sup>256</sup> of the
experimental hemagglutinin data down to a much lower
dimensional embedding Φ _e_, which we here interpret geo
_Xe_ <sup>_test_</sup> and _Xs_ <sup>_test_</sup>, with _|Xs_ <sup>_test_</sup> _|_ = _|Xe_ <sup>_test_</sup> _|_ = _n_ <sup>_test_</sup> = 3000, we
calculate the negative log-likelihoods (i.e., cross-entropies)
_−_ _n_ <sup>_test_</sup> <u>1</u> <sup>log ˆ</sup> <sup>_pm_</sup> <sup>(</sup> <sup>_X test_</sup> _m_ ) for _m ∈{e, s}_ (in Table I) and the es
_<u>e</u>_ _<u>s</u>_
_p_ ˆ _e_ 86.6 2604.3
_<u>p</u>_ <u>ˆ</u> _<u>s</u>_ <u>175.6</u> <u>186.4</u>
_<u>e</u>_ <sup>_test_</sup> _<u>Xs</u>_ <sup>_test_</sup>
_e_ <sup>_test_</sup> and _Xs_ <sup>_test_</sup>
_s_ <sup>_test_</sup>, with _|Xs_ <sup>_test_</sup>
_s_ <sup>_test_</sup> _|_ = _|Xe_ <sup>_test_</sup>
<sup><u>log ˆ</u></sup> <sup>_<u>pm</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X test</u>_</sup> _<u>m</u>_ <u>)</u>
_<u>Xe</u>_ <sup>_test_</sup> _<u>Xs</u>_ <sup>_test_</sup>
_−_ _n_ <sup>_test_</sup> <u>1</u> <sup>log ˆ</sup> <sup>_pm_</sup> <sup>(</sup> <sup>_X test_</sup> _m_ ) for _m ∈{e, s}_ (in Table I) and the es
timated Kullback-Leibler divergences _DKL_ ( _p_ ˆ _e||p_ ˆ _s_ ) = 89 _._ 0,
_DKL_ ( _p_ ˆ _s||p_ ˆ _e_ ) = 2417 _._ 9. These show that the simulated
data can predict the experimental data well; meanwhile,
the experimental data does not completely cover the simulated data. For further analysis, we retain in _Xs_ only
the samples that are near the experimental data. The
_<u>−</u>_ _<u>n</u>_ <sup><u>1</u></sup>
_<u>n</u>_ <sup><u>1</u></sup> <sup><u>log ˆ</u></sup> <sup>_<u>pm</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X test</u>_</sup> _<u>m</u>_
TABLE I: Test data negative log-likelihoods under _p_ ˆ _e_
and _p_ ˆ _s_ .
(a) Φ _e_ colored by _θ_ <sup>˜</sup> (left) and _θ_ <sup>ˆ</sup> (right). (b) Φ _s_ colored by _θ_ (left) and _θ_ <sup>ˆ</sup> (right).
(c) Φ _e_ colored by SNR <sup>�</sup> (left) and posterior width _σ_
(right), with example particles corresponding to
indicated regions.
(d) Φ _s_ colored by SNR (left) and posterior width _σ_ (right).
FIG. 3: Diffusion Maps embedding Φ _e_ learned from the experimental hemagglutinin dataset (a), (c)) and Φ _s_ learned
from the simulated IgG dataset ((b), (d)) . We display the lowest frequency _d_ = 3 coordinates selected by IES and
rotate the plots to best display the embedding. Importantly, the neural network predicted conformation _θ_ <sup>ˆ</sup> and
uncertainty _σ_ vary smoothly over the manifolds and agree with the true generative conformation _θ_ and SNR over the
embedded points. In the absence of the true generative conformation _θ_ and SNR for the experimental data, we use _θ_ <sup>�</sup>
and SNR <sup>�</sup> to color Φ _e_, values which we infer via kernel interpolation (see Appendix I) from the simulated
hemagglutinin dataset. Plots (c) and (d) have opposing color scales to emphasize regions where (high/low)SNR
correspond to (low/high) posterior width.
metrically and in the following section from the physical
point of view, in relation to the simulated hemagglutinin
data _Xs_ .
We use Diffusion Maps [17] with a kernel width parameter _ϵ_ selected by the method of ref. [32] to compute the
low-dimensional embedding Φ _e_ _∈_ R <sup>_d_</sup> of _Xe_ ( Figure 3);
similarly we compute Φ _s_ for the filtered _Xs_ data, for both
the simulated IgG data and simulated hemagglutinin (Figure 3, Appendix Figure 3 respectively). The embeddings
indicate that conformation and SNR are primary factors
influencing the structure of the data manifolds, and they
vary in regions that closely align with the posterior mean
and posterior width, respectively. See Appendix H for
further practical details on the pre-embedding filtering
and parameter selection, and Appendix Figures 4,5 for
further embeddings.
The Diffusion Maps embedding is based on the eigendecomposition of the Laplacian matrix L [17], and in a first
stage we compute it up to the _m_ ’th non-zero eigenvalue,
for _m_ = 20, and denote these coordinates with Φ1: _m_ _∈_ R <sup>_n_</sup>,
with _n_ = _|Xe|_ . The analysis of the principal eigenvalues of
L, which are slowly growing and well above 0 (Appendix
Figure 6), indicates that the manifold _Me_ is connected,
and likewise for the IgG manifold (Appendix Figure 7).
That is, there are no isolated clusters and no outliers for
the postprocessed data. However, this analysis does not
rule out the presence of clusters as high-density regions,
which could occur from data that is not pre-processed.
As a visual example of the effect of pre-processing (Appendix E), Appendix Figure 8 maps a sample from the
original probability density _pe_ into _Me_ .
Next, we perform IES [18] to select _d_ = 3 independent
and low-frequency coordinates from Φ1:20. We use these
coordinates, denoted Φ _e_, to visualize and interpret the
experimental data (see Appendix H for more details). As
shown previously, _d_ = 3 is likely close to the true intrinsic
dimension of _Ms_ and _Me_, meaning we can expect to
capture most of the relevant structure of the experimental data by analysing these Φ _e_ coordinates. We apply
Riemannian Relaxation [30] to Φ _e_ to make it closer to
being isometric to _Xe_ for hemagglutinin. The resulting
embedding is shown in Figure 5. We perform similar steps
with the simulated data _Xs_ for hemagglutinin (Appendix
H).
D. Physical interpretation of the experimental data
manifold
In the absence of ground truth generative parameters
for the experimental hemagglutinin data, we have to find
alternative ways to determine whether _Sψ_ is a good predictor for the true conformational parameter _θ_, and the
noise level, an important nuisance parameter. While this
can be done with a manually labeled test set, we focus on
indirect geometric methods that don’t require scientific
labeling. We first use a statistical method, TSLasso [19]
to interpret the embedding Φ _e_ . Afterwards, we support
its results and expand the analysis with visualizations.
TSLasso searches for the optimal interpretation of an
embedding in a _dictionary_ _F_ = _{fk_ : _Me_ _→_ R _, k_ = 1 : _p}_
of (smooth) potential coordinate functions on _Me_ . Here,
each _fk_ _∈F_ represents one of the simulation parameters
(the conformation _θ_ or one of the nuisance parameters in
_ϕ_ ), hence _|F|_ = 10 = _p_ . TSLasso recovers a subset _fS_ of
_F_ which parametrizes _Me_, by selecting _d_ functions whose
gradients "most economically" span the tangent spaces of
the manifold at a sample of the data. Since the functions
_fk_ are unknown on the experimental data, we infer them
by interpolation (Appendix I), obtaining _θ_ <sup>˜</sup> and _ϕ_ <sup>˜</sup> for the
experimental data. We also estimate the gradients _∇fk_
( Appendix J). TSLasso is run 20 times using random
subsets of 500 data points. We find that _fS_ almost always
consists of conformation _θ_, SNR, and one of the rotation
coordinates in _ϕ/ϕ_ <sup>˜</sup> (albeit not always the same one). The
full results are presented in Appendix K. For completeness, we apply the same algorithm to the simulated data
of both hemagglutinin and IgG. Our results show that
this combination of functions parametrizes both _Ms_ and
_Me_ . We have confirmed statistically, without any visualization, that the two parameters _θ_ and SNR inferred
from nearby simulated data, vary smoothly along the
experimental data manifold _Me_ (as well as along _Ms_ ),
therefore, supporting the neural network predictions for
_Xe_ . The visualizations are shown in Figure 3 (a) and (b).
V. DISCUSSION
In summary, our study of the latent embedding representations of IgG and hemagglutinin cryo-EM data from
cryoSBI, has revealed that these live near a well-behaved
low dimensional manifold in R <sup>256</sup> space. The difference
in intrinsic dimensionality of the simulated data manifolds, from hemagglutinin to the more heterogeneous IgG,
indicate that conformational variability affects dimensinality of the manifold. For the hemagglutinin data, the
simulated hemagglutinin images cover (almost entirely)
the experimental ones. Therefore, we can use the simulated data (on which we have full control) to interpret
the experimental data in the latent space. Furthermore,
we have identified the physical and geometrical features
that explain the different directions in the latent space.
We presented visualizations (e.g., by post-processed
Diffusion Maps embedding) that accurately display the
data shape by being almost isometric. We are also excited
by the possibilities of replacing visual analysis with quantitative measures, and principled algorithms in creating
and validating low dimensional models of cryo-EM data.
Examples of such tasks include detecting the intrinsic
dimensionality, interpreting the manifold by physical coordinates, measuring the smoothness of functions over the
data manifold (not included here, but straightforward via
the Laplacian operator), detecting if clusters exist, and
measuring local distortion [33].
From the methodological point of view, we present
a pipeline for analyzing, exploring and visualizing high
dimensional data presumably living near a smooth manifold. The pipeline components integrate state of the art
geometric algorithms and theoretical results. However,
we note that we do not propose to replace the trained
neural network predictor with (a variant of) the methods
presented here. Typically, dimension reduction methods
do not outperform a neural network trained in supervised
mode. What our method offers is interpretability of the latent representations and a connection of the experimental
data to the physical simulator.
At the same time, we acknowledge that the data might
not align perfectly with the manifold hypothesis. Our
current understanding does not yet enable us to predict,
comprehend, or control how finer-scale data structures—
e.g., what we consider "noise"—affect geometric algorithms, which should be a matter of further investigation.
We note that our work here investigates only one experimental dataset, and only a synthetic example of a
large conformational change. We showed that large conformational change appears to increase the intrinsic dimensionality, but other factors such as non-white noise
and background effects could play a role. We anticipate
that our protocols will be robust when applied to data
with non-uniform pose distributions or non-uniform conformational distributions.
In future work, one may investigate if the settings of
cryoSBI, such as the chosen dimension of the latent space,
choice of priors on imaging parameters, and size of the
training set affect the geometry, topology, and intrinsic
dimension of the embedding.
DATA AVAILABILITY
The code for the geometry analysis is available
on GitHub at `[https://github.com/ovmurad/cryosbi_](https://github.com/ovmurad/cryosbi_manifolds)`
`[manifolds](https://github.com/ovmurad/cryosbi_manifolds)` . The data are available on the Zenodo repository `[https://zenodo.org/records/15733579](https://zenodo.org/records/15733579)` [34].
ACKNOWLEDGMENTS
The Flatiron Institute is a division of the Simons Foundation. L.D. and R.C. acknowledge the support of Goethe
University Frankfurt, the Frankfurt Institute of Advanced
Studies, the LOEWE Center for Multiscale Modelling
in Life Sciences of the state of Hesse, the CRC 1507:
Membrane-associated Protein Assemblies, Machineries,
and Supercomplexes (P09), and the International Max
Planck Research School on Cellular Biophysics. L.D., and
R.C. thank the Flatiron Institute, and M.M. gratefully
acknowledges the DataShape Group at INRIA Saclay for
[1] Eva Nogales and Sjors HW Scheres. Cryo-em: a unique
tool for the visualization of macromolecular complexity.
_Molecular_ _cell_, 58(4):677–689, 2015.
[2] Ali Dashti, Peter Schwander, Robert Langlois, Russell
Fung, Wen Li, Ahmad Hosseinizadeh, Hstau Y. Liao, Jesper Pallesen, Gyanesh Sharma, Vera A. Stupina, Anne E.
Simon, Jonathan D. Dinman, Joachim Frank, and Abbas
Ourmazd. Trajectories of the ribosome as a Brownian
nanomachine. _Proc._ _Natl._ _Acad._ _Sci._ _U._ _S._ _A._, 111:17492–
17497, 2014.
[3] 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.
[4] 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.
[5] Ali Punjani and David J Fleet. 3dflex: determining
structure and motion of flexible proteins from cryo-em.
_Nature_ _Methods_, 20(6):860–870, 2023.
[6] 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_, 214(4):107920, 2022.
[7] Wai Shing Tang, Ellen D Zhong, Sonya M Hanson, Erik H
Thiede, and Pilar Cossio. Conformational heterogeneity
and probability distributions from single-particle cryoelectron microscopy. _Current_ _Opinion_ _in_ _Structural_ _Biol-_
_ogy_, 81:102626, 2023.
[8] Roy R Lederman and Bogdan Toader. On manifold learn
ing in plato’s cave: Remarks on manifold learning and
physical phenomena. In _2023_ _International_ _Conference_
_on_ _Sampling_ _Theory_ _and_ _Applications_ _(SampTA)_, pages
1–7. IEEE, 2023.
[9] David A Klindt, Aapo Hyvärinen, Axel Levy, Nina Mi
olane, and Frédéric Poitevin. Towards interpretable cryoem: disentangling latent spaces of molecular conformations. _Frontiers_ _in_ _Molecular_ _Biosciences_, 11:1393564,
2024.
[10] Bin Shi, Kevin Zhang, David J Fleet, Robert A McLeod,
RJ Dwayne Miller, and Jane Y Howe. Deep generative
priors for biomolecular 3d heterogeneous reconstruction
from cryo-em projections. _Journal_ _of_ _Structural_ _Biology_,
216(2):108073, 2024.
[11] Minkyu Jeon, Rishwanth Raghu, Miro Astore, Geoffrey
Woollard, J Feathers, Alkin Kaz, Sonya Hanson, Pilar
Cossio, and Ellen Zhong. Cryobench: Diverse and challenging datasets for the heterogeneity problem in cryoem. _Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_,
37:89468–89512, 2024.
hospitality while a portion this research was carried out.
This project was initiated out of discussions at the "Data
Driven Materials Informatics" long program at the Institute for Mathematical and Statistical Innovation (IMSI),
and was further motivated by the NeurIPS workshop
"Machine Learning and Structural Biology". The authors
would like to thank the organizers and IMSI for fostering
this collaboration.
[12] Michael P Rout and Andrej Sali. Principles for integrative
structural biology studies. _Cell_, 177(6):1384–1403, 2019.
[13] Kevin P Murphy. _Probabilistic_ _machine_ _learning:_ _an_
_introduction_ . MIT press, 2022.
[14] Lars Dingeldein, David Silva-Sánchez, Luke Evans,
Edoardo D’Imprima, Nikolaus Grigorieff, Roberto Covino,
and Pilar Cossio. Amortized template matching of molecular conformations from cryoelectron microscopy images
using simulation-based inference. _Proceedings_ _of_ _the_ _Na-_
_tional_ _Academy_ _of_ _Sciences_, 122(23):e2420158122, 2025.
[15] Kyle Cranmer, Johann Brehmer, and Gilles Louppe. The
frontier of simulation-based inference. _Proceedings_ _of_
_the_ _National_ _Academy_ _of_ _Sciences_, 117(48):30055–30062,
2020.
[16] George Papamakarios and Iain Murray. Fast _ε_ -free in
ference of simulation models with bayesian conditional
density estimation. _Advances_ _in_ _neural_ _information_ _pro-_
_cessing_ _systems_, 29, 2016.
[17] Ronald R Coifman, Stephane Lafon, Ann B Lee, Mauro
Maggioni, Boaz Nadler, Frederick Warner, and Steven W
Zucker. Geometric diffusions as a tool for harmonic analysis and structure definition of data: Diffusion maps. _Pro-_
_ceedings of the national academy of sciences_, 102(21):7426–
7431, 2005.
[18] Yu-Chia Chen and Marina Meila. Selecting the indepen
dent coordinates of manifolds with large aspect ratios.
_Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_, 32,
2019.
[19] Samson J. Koelle, Hanyu Zhang, Octavian-Vlad Murad,
and Marina Meila. Consistency of dictionary-based manifold learning. In Sanjoy Dasgupta, Stephan Mandt, and
Yingzhen Li, editors, _Proceedings_ _of_ _The_ _27th_ _Interna-_
_tional_ _Conference_ _on_ _Artificial_ _Intelligence_ _and_ _Statistics_,
volume 238 of _Proceedings_ _of_ _Machine_ _Learning_ _Research_,
pages 4348–4356. PMLR, 02–04 May 2024.
[20] Marina Meilă and Hanyu Zhang. Manifold learning: What,
how, and why. _Annual_ _Review_ _of_ _Statistics_ _and_ _Its_ _Appli-_
_cation_, 11, 2024.
[21] Gabriel Monteiro da Silva, Jennifer Y Cui, David C Dal
garno, George P Lisi, and Brenda M Rubenstein. Highthroughput prediction of protein conformational distributions with subsampled alphafold2. _nature communications_,
15(1):2464, 2024.
[22] Jan-Matthis Lueckmann, Jan Boelts, David Greenberg,
Pedro Goncalves, and Jakob Macke. Benchmarking
simulation-based inference. In _International_ _conference_ _on_
_artificial_ _intelligence_ _and_ _statistics_, pages 343–351. PMLR,
2021.
[23] Andrew Zammit-Mangion, Matthew Sainsbury-Dale, and
Raphaël Huser. Neural methods for amortised parameter
inference. _arXiv_ _preprint_ _arXiv:2404.12484_, 2024.
[24] Marvin Schmitt, Paul-Christian Bürkner, Ullrich Köthe,
and Stefan T Radev. Detecting model misspecification in
amortized bayesian inference with neural networks: An
extended investigation. _arXiv_ _preprint_ _arXiv:2406.03154_,
2024.
[25] Yong Zi Tan and John L Rubinstein. Through-grid
wicking enables high-speed cryoem specimen preparation. _Acta_ _Crystallographica_ _Section_ _D:_ _Structural_ _Biology_,
76(11):1092–1103, 2020.
[26] Peter Grassberger and Itamar Procaccia. Measuring the
strangeness of strange attractors. _Physica_ _D:_ _Nonlinear_
_Phenomena_, 9(1):189–208, 1983.
[27] Guangliang Chen, Anna V. Little, and Mauro Maggioni.
_Multi-Resolution_ _Geometric_ _Analysis_ _for_ _Data_ _in_ _High_
_Dimensions_, pages 259–285. Birkhäuser Boston, Boston,
2013.
[28] Patrice Assouad. Plongements lipschitziens dans ∖ <sup>_n_</sup> . _Bul-_
_letin_ _de_ _la_ _Société_ _Mathématique_ _de_ _France_, 111:429–448,
1983.
[29] Elizaveta Levina and Peter Bickel. Maximum likelihood
estimation of intrinsic dimension. In L. Saul, Y. Weiss,
and L. Bottou, editors, _Advances_ _in_ _Neural_ _Information_
_Processing_ _Systems_, volume 17. MIT Press, 2004.
[30] James McQueen, Marina Meila, and Dominique Joncas.
Nearly isometric embedding by relaxation. In D. Lee,
M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, _Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_,
volume 29. Curran Associates, Inc., 2016.
[31] Bernard W Silverman. _Density_ _estimation_ _for_ _statistics_
_and_ _data_ _analysis_ . Routledge, 2018.
[32] Dominique Joncas, Marina Meila, and James McQueen.
Improved graph laplacian via geometric self-consistency.
In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach,
R. Fergus, S. Vishwanathan, and R. Garnett, editors,
_Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_, vol
ume 30. Curran Associates, Inc., 2017.
[33] Dominique Perraul-Joncas and Marina Meila. Non-linear
dimensionality reduction: Riemannian metric estimation
and the problem of geometric discovery. _arXiv_ _preprint_
_arXiv:1305.7255_, 2013.
[34] Luke Evans. Cryo-em images are intrinsically low dimensional: Latent data from sbi. Zenodo, 2025. `[https:](https://zenodo.org/records/15733579)`
`[//zenodo.org/records/15733579](https://zenodo.org/records/15733579)` .
[35] Evan Seitz, Francisco Acosta-Reyes, Peter Schwander,
and Joachim Frank. Simulation of cryo-em ensembles
from atomic models of molecules exhibiting continuous
conformations. _BioRxiv_, page 864116, 2019.
[36] Julian Giraldo-Barreto, Sebastian Ortiz, Erik H. Thiede,
Karen Palacio-Rodriguez, Bob Carpenter, Alex H. Barnett, and Pilar Cossio. A Bayesian approach to extracting
free-energy profiles from cryo-electron microscopy experiments. _Sci._ _Rep._, 11(1):13657, December 2021.
[37] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian
Sun. Deep residual learning for image recognition. In
_Proceedings_ _of_ _the_ _IEEE_ _conference_ _on_ _computer_ _vision_
_and_ _pattern_ _recognition_, pages 770–778, 2016.
[38] Conor Durkan, Artur Bekasov, Iain Murray, and George
Papamakarios. Neural spline flows. _Advances_ _in_ _neural_
_information_ _processing_ _systems_, 32, 2019.
[39] Garrett Wright, Joakim Andén, Vineet Bansal, Jun
chao 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. Zenodo, September 2023. `[https:](https://doi.org/10.5281/zenodo.8321443)`
`[//doi.org/10.5281/zenodo.8321443](https://doi.org/10.5281/zenodo.8321443)` .
[40] Andrew J. Hanson. _Visualizing_ _Quaternions_ . Morgan
Kaufmann Publishers Inc., San Francisco, CA, USA, 2006.
[41] Sean Talts, Michael Betancourt, Daniel Simpson, Aki
Vehtari, and Andrew Gelman. Validating bayesian inference algorithms with simulation-based calibration. _arXiv_
_preprint_ _arXiv:1804.06788_, 2020.
[42] Daolang Huang, Ayush Bharti, Amauri Souza, Luigi
Acerbi, and Samuel Kaski. Learning robust statistics
for simulation-based inference under model misspecification. _arXiv_ _preprint_ _arXiv:2305.15871_, 2023.
[43] Bernhard Schölkopf, John C. Platt, John Shawe-Taylor,
Alex J. Smola, and Robert C. Williamson. Estimating
the support of a high-dimensional distribution. _Neural_
_Computation_, 13(7):1443–1471, 2001.
[44] Fei Tony Liu, Kai Ming Ting, and Zhi-Hua Zhou. Isolation
forest. In _2008_ _Eighth_ _IEEE_ _International_ _Conference_ _on_
_Data_ _Mining_, pages 413–422, 2008.
[45] Christopher I. Lang, Fan-Keng Sun, Bruce Lawler, Jack
Dillon, Ash Al Dujaili, John Ruth, Peter Cardillo, Perry
Alfred, Alan Bowers, Adrian Mckiernan, and Duane S.
Boning. One class process anomaly detection using kernel density estimation methods. _IEEE_ _Transactions_ _on_
_Semiconductor_ _Manufacturing_, 35(3):457–469, 2022.
[46] Clayton D. Scott and Robert D. Nowak. Learning mini
mum volume sets. _Journal_ _of_ _Machine_ _Learning_ _Research_,
7(24):665–704, 2006.
[47] Manqi Zhao and Venkatesh Saligrama. Anomaly detection
with score functions based on nearest neighbor graphs.
In Y. Bengio, D. Schuurmans, J. Lafferty, C. Williams,
and A. Culotta, editors, _Advances_ _in_ _Neural_ _Information_
_Processing_ _Systems_, volume 22. Curran Associates, Inc.,
2009.
[48] Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps
and spectral techniques for embedding and clustering. In
T. Dietterich, S. Becker, and Z. Ghahramani, editors,
_Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_, vol
ume 14. MIT Press, 2001.
[49] D. O. Loftsgaarden and C. P. Quesenberry. A Nonparamet
ric Estimate of a Multivariate Density Function. _The_ _An-_
_nals_ _of_ _Mathematical_ _Statistics_, 36(3):1049 - 1051, 1965.
[50] Graciela Boente and Ricardo Fraiman. Consistency of a
nonparametric estimate of a density function for dependent variables. _Journal_ _of_ _Multivariate_ _Analysis_, 25(1):90–
99, 1988.
[51] Francesco Camastra and Antonino Staiano. Intrinsic
dimension estimation: Advances and open problems. _In-_
_formation_ _Sciences_, 328:26–41, 2016.
Appendix A: Cryo-EM image formation forward
model
We simulate cryo-EM particles from 3D molecular structures with the forward model of [35, 36]. The electron
density _ρ_ ( _X_ ) of a given structure _X_ is approximated as a
Gaussian mixture model with centers on the positions of
the _Cα_ atoms, and standard deviations _γ._ Then, we apply
a rotation _Rq_ with quaternion _q_ and projection _Pz_ onto
the _z−_ axis to _ρ_ ( _X_ ) _,_ then convolve with a point-spread
function (PSF), which incorporates the microscope defo
cus and aberration. The PSF is more straightforward to
apply in Fourier space, where the convolution becomes a
point-wise multiplication with the Fourier transform of
the point-spread function, known as the Contrast Transfer
Function (CTF). The CTF is defined as CTF _A,b,_ ∆ _z_ ( _s_ ) =
_√_
_e_ <sup>_−bs_</sup> <sup>2</sup> <sup>_/_</sup> <sup>2 �</sup> _A_ cos( _π_ ∆ _zλes_ <sup>2</sup> ) _−_ 1 _−_ _A_ <sup>2</sup> sin( _π_ ∆ _zλes_ <sup>2</sup> )� _,_ with
_e_ <sup>_−bs_</sup> <sup>2</sup> <sup>_/_</sup> <sup>2 �</sup> _A_ cos( _π_ ∆ _zλes_ <sup>2</sup> ) _−_ 1 _−_ _A_ <sup>2</sup> sin( _π_ ∆ _zλes_ <sup>2</sup> )� _,_ with
reciprocal radius component _s_ = 2 _π/_ ~~�~~ _x_ <sup>2</sup> + _y_ <sup>2</sup> _,_ ampli
_A_ cos( _π_ ∆ _zλes_ <sup>2</sup> ) _−_
_√_
reciprocal radius component _s_ = 2 _π/_ ~~�~~ _x_ <sup>2</sup> + _y_ <sup>2</sup> _,_ ampli
tude _A,_ b-factor _b,_ defocus ∆ _z_ and electron wavelength
_λe._ After applying the point-spread function, we translate
the image by _τ_ and add Gaussian noise with variance
_σ_ noise <sup>2</sup> <sup>=</sup> <sup>_σ_</sup> signal <sup>2</sup> <sup>_/_</sup> <sup>SNR</sup> <sup>_,_</sup> <sup>where</sup> <sup>_σ_</sup> signal <sup>2</sup> <sup>is</sup> <sup>the</sup> <sup>variance</sup> <sup>of</sup> <sup>the</sup>
signal and SNR is the signal-to-noise ratio. The variance
of the signal _σ_ signal <sup>2</sup> <sup>is</sup> <sup>computed</sup> <sup>by</sup> <sup>applying</sup> <sup>a</sup> <sup>circular</sup>
mask with a predefined radius on the noiseless image and
then calculating the mean squared intensity. The image
formation forward model is then
noise <sup>2</sup> <sup>=</sup> <sup>_σ_</sup> <sup>2</sup>
signal <sup>2</sup> <sup>_/_</sup> <sup>SNR</sup> <sup>_,_</sup> <sup>where</sup> <sup>_σ_</sup> <sup>2</sup>
_I_ ( _x, y|ϕ, ρ_ ) = PSF _A,b,_ ∆ _z∗_ ( _PzRqρ_ ( _X_ ) + _τ_ ) + _ϵ,_ (A1)
_ϵ ∼N_ (0 _, σ_ noise <sup>2</sup> <sup>)</sup> <sup>_,_</sup>
where _∗_ denotes convolution. The imaging parameters
utilized for simulating cryo-EM images in CryoSBI are
the Gaussian mixture width _γ,_ quaternion _q,_ translation
_τ,_ noise level _σ_ noise _,_ and PSF parameters _A, b,_ ∆ _z,_ with
_ϕ_ = _{γ, q, τ, A, b,_ ∆ _z, σnoise}._
Appendix B: CryoSBI feature latent network and
conditional density estimation
The latent network _S_ Ψ follows a ResNet-18 architecture [37] as implemented in ref. [14], with modifications
for grayscale image input and 256-dimensional feature vector output. For the density estimator _qφ_, we implement a
Neural Spline Flow (NSF) [38] with the same architecture
and training as utilized in ref. [14], and likewise generating
each batch of synthetic images on demand in training.
Appendix C: CryoSBI priors
All data processing and cryoSBI procedures for the IgG
data were carried out as in ref. [14]. The 100 atomic
models were generated from an initial structure (PDB
id:1HZH) by rotation of a dihedral connecting the fragment antibody (Fab) domain to the rest of the structure
(Appendix Figure 9), as outlined in ref [11]. The con
formations are indexed by the dihedral angle _θi,_ with
displacement _θi_ +1 _−_ _θi_ = 3 _._ 6 <sup>_◦_</sup> _._
All processing and SBI for hemagglutinin data were
carried out as in ref. [14], with experimental hemagglutinin images obtained from EMPIAR 10532 [25], and
whitened using ASPIRE [39] (Appendix Figure 10a). The
conformations from hemagglutinin were obtained from a
normal mode analysis on atomic structure built from a
3Å reconstruction (PDB id: 6wxb), resulting in 20 conformations indexed by RMSD displacement _θi, i_ = 1 _, . . .,_ 20 _._
(Appendix Figure 10b)
For both datasets, the conformation prior _p_ ( _θ_ ) was
taken as a uniform distribution over the possible conformational displacements _{θi},_ and the logarithm of the
SNR was sampled from a uniform distribution values between log 10 <sup>_−_</sup> <sup>1</sup> and log 10 <sup>_−_</sup> <sup>3</sup> _._ Likewise, for both datasets
the prior on the quaternions _q_ was chosen so that rotations _Rq_ were sampled uniformly in SO(3) [40]. The
other imaging parameters were sampled from uniform
distributions in each parameter within bounds chosen
in ref. [14]. All nuisance parameters comprising _ϕ_ were
assumed independent and sampled independently from
their respective priors.
Appendix D: Manifold Analysis Framework
Our manifold analysis as outlined in II B follows a
general framework that validates whether _Sψ_ has learned
a representation which exhibits the following desirable
properties:
- Low intrinsic dimensionality : The encoder
should compress images into a low-dimensional manifold with intrinsic dimension _d ≪_ 256.
- Sufficiency for posterior prediction : The embedding _x_ = _Sψ_ ( _I_ ) should retain all relevant information needed by the posterior network _qφ_ to
produce accurate estimates of the posterior mean
and uncertainty.
- Invariance to nuisance variation : The latent
representation should be invariant to uninformative
generative factors which do not significantly affect
the posterior over _θ_ .
- Disentanglement of relevant factors : The embedding should organize generative factors such as
conformation or SNR into independent directions
in the latent space.
- Coverage of and fidelity to the experimental
data : The simulator should be able to generate
realistic synthetic data that spans the variability observed in experimental images, allowing the neural
network ensemble to generalize to new experimental
inputs without requiring retraining.
Our analysis focuses on the statistical and geometric
properties of the embedding produced by _Sψ_, offering
a complementary validation procedure to works such as
[41] which focus on the calibration of the estimated posterior distribution. Our framework could be viewed as a
model misspecification detection protocol, and in future
work could be synergized with other analysis of latent
embeddings in neural posterior estimation [24, 42].
An overview of our pipeline can be found in Appendix
Figure 11. If a step in our framework is applicable to
both synthetic and experimental data, we suppress _s_ or _e_
from the subscript(e.g. we write _M_ instead of _Me_ ).
Appendix E: Data Pre-processing
Our data pre-processing consists of three steps: subsampling, outlier removal and resampling the data. Here we
provide information on each step, with general guidelines
and implementation details for the datasets in this work.
1. Data Sub-sampling
Most stages of our framework require computations
that scale as _O_ ( _N_ <sup>2</sup> ), primarily due to pairwise distance
or neighbor graph construction which can be prohibitive
for large _N_ . Thus, if needed, we can randomly sub-sample
the data down to a more manageable size. However, the
sub-sample must be large enough to capture the underlying geometric structure, maintain statistical robustness,
and ensure that we can uniformly subsample the data
later in the pipeline, but small enough to remain tractable
given available computational resources. In practice, we
find that selecting approximately three times the number
of points that will be used in the final manifold learning
step is a reasonable balance. The manifold embedding
itself should be performed with as many points as the
practitioner’s computational budget allows, since more
points typically yield a better approximation of the underlying geometry. In our experiments, we use 20 _,_ 000
points for computing the Diffusion Maps embedding, so
we subsample all datasets down to 60 _,_ 000 points.
2. Outlier Removal
Outlier detection serves a critical function in our validation framework as it removes pathological or noisy
points that can distort downstream geometric analysis(e.g. spectral embedding, intrinsic dimension estimation). Thus, for each dataset _X_, we train an outlier
detector _y_ ˆ : R <sup>256</sup> _→{_ 0 _,_ 1 _}_, which classifies input neural embeddings as either in the distribution _p_ or out of
the distribution _p_ . While various methods exist - including One-Class SVMs [43], Isolation Forests [44], or
KDE-based detectors [45] - we favor _Minimum_ _Volume_
_Sets_ _(MVS)_ [46, 47] for their conceptual simplicity, strong
theoretical guarantees, and alignment with the local neighborhood statistics used throughout our pipeline.
An _α_ -MVS is the smallest measurable set _Uα_ containing
at least a fraction _α_ of the probability mass of _p_ . Points
lying outside of _Uα_ are flagged as outliers, with the magnitude of 1 _−_ _α_ determining the stringency of the anomaly
filtering. As shown in [47], one can use an empirical sample _X_ _∼_ _p_ to construct a simple membership test that, in
the limit, consistently approximates _Uα_ . Specifically, we
approximate the local density at each point using either
the inverse _k_ -nearest neighbor distance, 1 _/_ dist _k_ ( _x_ ), or the
neighbor count _nr_ ( _x_ ) within radius _r_ of _x_, both of which
are proportional to the true local density. Then, given
a fixed number of neighbors _k_, the classifier(i.e. the _Uα_
membership test) is defined as:
which averages the score _sk_ ( _x_ <sup>_′_</sup> ) over multiple values of
_k_ _∈_ _K_ (and similarly for _nr_ by averaging over multiple
radii _r_ _∈_ _R_ ). We obtain the ‘clean’ dataset _X_ <sup>_clean_</sup> :=
_{x ∈X_ _|_ _y_ ˆ( _x_ ) = 1 _}_ of size _N_ <sup>_clean_</sup> = round( _N_ _· α_ ).
In our experiments, we apply the robust MVS outlier
filter defined above to all three of our datasets. For the
IgG dataset, we use _α_ = 0 _._ 2. For the hemagglutinin
datasets, we use _α_ = 0 _._ 3. For all datasets we average the
scores for _K_ _∈{_ 10 _,_ 20 _, . . .,_ 120 _}_ . In Appendix Figure 12
we provide practical guidance on selecting _α_ .
3. Uniform Resampling
Many manifold learning methods, including our intrinsic dimensionality estimators(Section IV A) and Diffusion
Maps(Section IV C), either explicitly assume or empirically perform better when the distribution over the underlying manifold is uniform. For example, a non-uniform
distribution _p_ over _M_ introduces bias in the estimation of
the Laplace–Beltrami operator ∆ _M_ via Laplacian Eigenmaps [48]. While the normalization scheme used by Diffusion Maps [17] theoretically corrects this bias, the result
is asymptotic and relies on mild density variations, which
rarely hold in practice.
To address this, we perform inverse density-weighted
resampling to produce a subsample that approximates
uniform coverage of the manifold. Empirically, we observe
a significant improvement in performance after implementing this technique. Additionally, a uniform distribution
reduces the need for adaptive bandwidths in local neighborhood computations and enables reliable use of a single
global kernel width _ϵ_ .
For fixed _k_ _∈_ N, we estimate the local density at each
_x ∈X_ <sup>_clean_</sup> using the nonparametric estimator in [49]:
_<u>k</u>_
_p_ ˆ _k_ ( _x_ ) =
_N_ <sup>_clean_</sup> _· Vd_ (dist _k_ ( _x_ ))
which is consistent under mild conditions [50]. Here
dist _k_ ( _x_ ) is the distance to the _k_ -th nearest neighbor, _d_ is
the intrinsic dimension of _M_, and _Vd_ ( _r_ ) is the volume of a
_y_ ˆ _k_ ( _x_ <sup>_′_</sup> ) :=
1 _,_ if 1 _−_ _α ≤_ _sk_ ( _x_ <sup>_′_</sup> )
0 _,_ otherwise
for _sk_ ( _x_ <sup>_′_</sup> ) := _N_ <u>1</u>
for _sk_ ( _x_ <sup>_′_</sup> ) := _N_ <u>1</u> - _x∈X_ <sup>I[dist</sup> <sup>_k_</sup> <sup>(</sup> <sup>_x′_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>dist</sup> <sup>_k_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)](or</sup> <sup>an</sup> <sup>anal-</sup>
ogous formula if using _nr_ with fixed radius _r_ and with
reversed inequality signs). Intuitively, this means that
a point is deemed in-distribution if its estimated local
density exceeds that of at least a fraction 1 _−_ _α_ of the
training points. For robustness, we can instead use the
classifier:
_y_ ˆ( _x_ <sup>_′_</sup> ) :=
�1 _,_ if 1 _−_ _α ≤_ _|K_ <u>1</u> _|_
0 _,_ otherwise
- _k∈K_ <sup>_sk_</sup> <sup>(</sup> <sup>_x′_</sup> <sup>)</sup>
_d_ -dimensional ball of radius _r_ . We obtain local estimates
of _d_ by the _doubling_ _dimension_ method [28] described in
Section IV A. For robustness, we compute density estimates for a range of _k_ _∈_ _K_ values and average the results
obtaining the density estimate:
weighted local covariance at a point _xi_ _∈X_ <sup>_unif_</sup> is computed as:
_<u>wij</u>_
_wi_
_Cxi_ =
_xj_ _∈Nr_ ( _xi_ )
( _xj_ _−_ _xi_ ) <sup>_⊤_</sup> ( _xj_ _−_ _xi_ )
<u>1</u>
_p_ ˆ( _x_ ) =
_|K|_
_k∈K_
_wij_ = exp
_p_ ˆ _k_ ( _x_ )
- <u>2</u>
_−_ <sup>_<u>∥xi−</u>_</sup> _ϵ_ <sup>2</sup> <sup>_<u>xj</u>_</sup> <sup>_<u>∥</u>_</sup> <sup>2</sup>
<u>2</u>
<sup>_<u>−</u>_</sup> _ϵ_ <sup>2</sup> <sup>_<u>xj</u>_</sup> <sup>_<u>∥</u>_</sup> <sup>2</sup>
, and _wi_ = <sup>�</sup>
In our experiments we use _K_ _∈{_ 10 _,_ 20 _, . . .,_ 120 _}_ . Practitioners are free to choose any local density estimator
they prefer; our choice is motivated by conceptual simplicity, effectiveness, and by the fact that we end up using
the same local statistics through out our pre-processing
routine.
After estimating local densities, we assign sampling
weights proportional to the inverse density. Normalizing these weights yields a probability distribution over
_X_ <sup>_clean_</sup> from which we draw, without replacement, a new
subset _X_ <sup>_unif_</sup> of size _N_ <sup>_unif_</sup> . This resampled dataset approximates a uniform sample on the manifold, effectively
disentangling geometry from the sampling distribution.
For all our experiments we use _N_ <sup>_unif_</sup> = 20 _,_ 000. It is
very important that _N_ <sup>_clean_</sup> is large enough relative to
_N_ <sup>_unif_</sup> in order to allow the sub-sampled distribution to
shift towards a uniform one. As an extreme example, if
_N_ <sup>_clean_</sup> = _N_ <sup>_unif_</sup>, then the sub-sample will have exactly
the same distribution _p_ as _X_ <sup>_clean_</sup> as we are sampling
without replacement.
Appendix F: Additional Details for Intrinsic
Dimension Estimation
This section provides more detail about the four intrinsic dimensionality algorithms employed in our study.
We will focus more on practical implementation specifics,
including hyperparameter selection and diagnostic procedures used in our experiments, and recommend the review
by [51] for broader theoretical context.
Correlation Dimension [26]: This method relies on
the observation that the number of neighbors within a
radius _r_ scales proportionally to _r_ <sup>_d_</sup>, where _d_ is the intrinsic
dimension. As such, log _nr_ ( _x_ ) = _d_ _·_ log _r_ + const. So, if we
compute _<u>nr</u>_ = _N_ <sup>_unif_</sup> <u>1</u> - _x∈X_ <sup>_unif_</sup> <sup>_nr_</sup> <sup>(</sup> <sup>_x_</sup> <sup>), the average number</sup>
of neighbors over the whole dataset for _r_ in a range of
radii _R_, we can globally estimate _d_ <sup>ˆ</sup> as the slope of the
line fitted to log _<u>nr</u>_ versus log _r_ .
In our experiments, we use _R_ = _{_ 8 _._ 0 _,_ 8 _._ 5 _,_ 9 _._ 0 _, . . .,_ 18 _._ 0 _}_ .
The log-log plot should appear linear as in (Figure 2a).
Downward curvature at the ends indicates _R_ is too wide,
and extreme values should be removed from the range _R_ .
Otherwise, the predicted _d_ <sup>ˆ</sup> will likely be biased too low.
Eigengap Method [27]: This approach exploits the
idea that the eigenvalues _{λk}_ <sup>256</sup> _k_ =1 <sup>of</sup> <sup>the</sup> <sup>local</sup> <sup>covari-</sup>
ance matrix are computed from data sampled from a _d_ dimensional manifold embedded in R <sup>256</sup> _,_ and thus should
exhibit a significant gap between _λd_ and _λd_ +1. The
where _Nr_ ( _xi_ ) denotes neighbors within a radius _r_ of _xi_,
- <u>2</u>
_wij_ = exp _−_ <sup>_<u>∥xi−</u>_</sup> _ϵ_ <sup>2</sup> <sup>_<u>xj</u>_</sup> <sup>_<u>∥</u>_</sup> <sup>2</sup>, and _wi_ = <sup>�</sup> _xj_ _∈Nr_ ( _xi_ ) <sup>_wij_</sup> <sup>.</sup> <sup>We</sup>
perform the truncated SVD of _Cxi_ for a conservatively
high upper bound _D_ _> d_ in order to obtain the eigenvalues. In our experiments we use _D_ = 20. Parameters _ϵ_
and _r_ are selected via the distortion-minimization procedure of [32] which in our experiments we run over values
_r_ _∈{_ 8 _._ 0 _,_ 9 _._ 0 _, . . .,_ 22 _._ 0 _}_ with _ϵ_ = _r/_ 3, a typical default
bandwidth. For computational efficiency, we compute the
local dimension at a subsampled set of 5000 data points
for each dataset. The local dimension is estimated using
either the maximum gap or the softmax gap:
_d_ ˆ( _xi_ ) = arg max _gk_ or _d_ ˆ( _xi_ ) =
_k_
<u>�</u> _Dk_ <u>=1</u> _−_ 1 <sup>_<u>k · egk</u>_</sup>
<u>�</u> _Dk_ =1 _−_ 1 <sup>_egk_</sup>
for _gk_ = _λk_ _−_ _λk_ +1. We prefer the softmax-weighted
version as it smooths out the prediction, making it more
robust to noise. A global prediction _d_ <sup>ˆ</sup> is obtained by
averaging local estimates _d_ <sup>ˆ</sup> = _N_ <sup>_unif_</sup> <u>1</u> - _x∈X_ <sup>_unif_</sup> <sup>_d_</sup> <sup>ˆ(</sup> <sup>_x_</sup> <sup>).</sup>
averaging local estimates _d_ <sup>ˆ</sup> = _N_ <sup>_unif_</sup> <u>1</u> - _x∈X_ <sup>_unif_</sup> <sup>_d_</sup> <sup>ˆ(</sup> <sup>_x_</sup> <sup>).</sup>
Doubling Dimension [28]: Similar to correlation dimension, this method examines how point counts scale
with radius, but focuses specifically on the correlation
when doubling the radius. The local estimate for a fixed
radius _r_ _∈_ R <sup>+</sup> is:
_d_ ˆ _r_ ( _x_ ) = log2
- _<u>n</u>_ <u>2</u> _<u>r</u>_ <u>(</u> _<u>x</u>_ <u>)</u>
_nr_ ( _x_ )
which we can average over a range of radii _R_ as _d_ <sup>ˆ</sup> ( _x_ ) =
<u>1</u>
_|R|_
- _r∈R_ <sup>_d_</sup> <sup>ˆ</sup> <sup>_r_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>in</sup> <sup>order</sup> <sup>to</sup> <sup>improve</sup> <sup>robustness.</sup> <sup>A</sup> <sup>global</sup>
prediction _d_ <sup>ˆ</sup> is obtained by averaging local estimates _d_ <sup>ˆ</sup> =
_N_ <sup>_unif_</sup> <u>1</u> - _x∈X_ <sup>_unif_</sup> <sup>_d_</sup> <sup>ˆ(</sup> <sup>_x_</sup> <sup>).</sup>
In our experiments we use _R_ = _{_ 8 _._ 5 _,_ 9 _._ 0 _, . . .,_ 11 _._ 0 _}_ . An
important practical aspect is that the estimates should
be stable across the chosen range _R_ as seen in Appendix
Figure 1). If there is significant variation, then the range
_R_ should be tightened.
<u>1</u>
_N_ <sup>_unif_</sup>
Levina–Bickel MLE [29]: This estimator uses the
scaling of distances to nearest neighbors. For a fixed
_k_ _∈_ N we have the local estimates:
_k−_ 1
_j_ =1
log <sup><u>dist</u></sup> <sup>_<u>k</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>)</u></sup>
dist _j_ ( _x_ )
_−_ 1
_d_ ˆ _k_ ( _x_ ) =
<u>1</u>
_k −_ 1
where dist _j_ ( _x_ ) is the distance to the _j_ -th nearest neighbor.
We replace the _k −_ 1 denominator with _k −_ 2 in order
to obtain an unbiased estimator as shown in the original
paper. Similar to previous methods, we can obtain a
robust estimator _d_ <sup>ˆ</sup> ( _x_ ) by averaging _d_ <sup>ˆ</sup> _k_ ( _x_ ) over multiple
values of _k_ in a range _K_ and a global estimate _d_ <sup>ˆ</sup> by
averaging these values in turn.
We use _K_ = _{_ 10 _,_ 20 _, . . .,_ 120 _}_ . As with the doubling dimension, in practice the estimates should be stable across
_K_ as in Appendix Figure 2, and if one sees significant
variation, the range of _K_ should be smaller.
Appendix G: Additional Details on KDE
For kernel density estimation (KDE), we sample disjoint
training, validation, and testing data sets from _Xe_ <sup>_clean_</sup> and
_Xs_ <sup>_clean_</sup> as obtained by outlier removal in Appendix E 1.
Note that we are not using the uniformly resampled
_Xe_ <sup>_unif_</sup> _, Xs_ <sup>_unif_</sup> for this purpose as they are not samples
from the data distributions _pe_ and _ps_ . The training and
validation sets will be used to fit the KDE models and
to select appropriate kernel bandwidths, while the test
subset will be used in the Monte-Carlo estimation of the
divergence. In order to train the KDEs and evaluate the
Monte Carlo estimated KL divergences, we sample the
following sample subsets from _Xs_ <sup>_clean_</sup> and _Xe_ <sup>_clean_</sup> :
- Training set: used to fit each KDE. Size 17,000 in
our experiments.
- Validation set: used for bandwidth selection. Size
3,000 points in our experiments. We select the
kernel bandwidths _hs_ and _he_ that maximize the
log-likelihood of the validation set. We use a single
validation run on the whole validation set to minimize. We initially search over a wide exponential
grid to find a coarse range, then tighten the search
interval. The final bandwidths used are: _hs_ = 0 _._ 48
and _he_ = 0 _._ 31.
- Test set: an independent subset for Monte Carlo
estimation of the divergences. Size 3,000 points in
our experiments.
Appendix H: Manifold Learning Details
Our manifold learning step first requires construction
of an affinity matrix. We follow the method of [32] to
estimate the kernel bandwidth _ϵ_ and cutoff radius _r_ that
best preserve the geometry of the manifold when constructing the Gaussian affinity matrix. We perform the
search over radii _r_ _∈{_ 8 _._ 0 _,_ 9 _._ 0 _, . . ._ 22 _._ 0 _}_ and set _ϵ_ = _r/_ 3 _,_ a
typical default value. For the hemagglutinin dataset we
find _re_ = 14 _._ 0 for the experimental data and _rs_ = 13 _._ 0
for the simulated data. For the IgG dataset, we obtain
_rs_ = 15 _._ 0. After the initial estimation, we remove all
latent data vectors whose degrees in the affinity matrix
fall in the bottom 5%. The outlier removal step improves
the stability of the eigen-decomposition in the Diffusion
Maps algorithm, and is generally a useful step for whatever embedding algorithm is used. Alternatively, the user
could check a histogram of the degrees in the affinity
matrix and select a threshold that removes a long tail of
nodes with very small degrees.
Given the filtered affinity matrix, we compute the
Diffusion Maps embedding [17] by performing an eigendecomposition of the geometric Laplacian L, which, in
the limit, estimates the Laplace-Beltrami operator ∆ _M_ .
In our experiments we retain the top _m_ = 20 non-trivial
eigenvectors to form the initial embedding matrix Φ. The
value of _m_ should be comfortably larger than what we
expect the real _d_ to be, but not excessively so. The
eigenvalue spectra, shown in Appendix Figures 6 and 7,
confirm that only the first eigenvalue is zero and that
the spectra grow slowly, indicating that the manifolds are
smooth, connected, and free of isolated clusters.
To ensure that the final coordinates used for visualization and interpretation are truly informative and nonredundant, we apply Independent Eigencoordinate Selection (IES) [18] on the initial spectral embedding. The
key problem IES addresses is that Diffusion Maps (or
any spectral embedding) may yield embedding coordinate functions that are dependent. For example, a pair
like ( _x,_ sin( _x_ )) varies in two directions but really contains
only one independent degree of freedom. Visualizing both
would be misleading or wasteful if the goal is to reveal
distinct generative factors. To solve the problem, IES
searches for a subset _S_ of the initial embedding coordinates Φ that maintains full local rank _d_ everywhere on
the manifold, thus avoiding singularities. In our usage,
we set the subset size _|S|_ equal to our estimated intrinsic dimension _d_ <sup>ˆ</sup>, but choose the target rank _d_ to match
the number of known, highly relevant generative factors
we expect the manifold to express( _θ_ and SNR for our
datasets). For computational efficiency we subsample all
input datasets to a set of 500 points for computing IES.
Our final selected subsets of embedding coordinates are
_Ss_ = _{_ 0 _,_ 2 _,_ 3 _}_ for the experimental hemagglutinin data
and _Se_ = _{_ 0 _,_ 1 _,_ 2 _,_ 3 _,_ 4 _}_ for the simulated version, while
for the IgG dataset we obtain _Ss_ = _{_ 0 _,_ 1 _,_ 2 _,_ 5 _,_ 6 _,_ 14 _}_ . We
then display the first three coordinates which for DM
embeddings are the lowest frequency ones.
As an optional refinement, we apply Riemannian Relaxation [30] to push the embeddings closer to being isometric
to their respective neural representations. To do this, Riemannian Relaxation starts from the initial embeddings
Φ <sup>_indep_</sup> and iteratively modifies them via gradient descent
with respect to a loss function which penalizes local distortions. For this work, we only applied Riemannian
Relaxation to the hemagglutinin datasets. In Appendix
Figure 13, we display "relaxed" versus "unrelaxed" versions of Φ _e_ and Φ _s_ for the hemagglutinin data. For the
hemagglutinin datasets, we use _d_ = 3 and _ϵorth_ = 0 _._ 5,
and run Riemannian Relaxation until convergence.
_e_ <sup>_unif_</sup> _, Xs_ <sup>_unif_</sup>
_s_ <sup>_clean_</sup> and _Xe_ <sup>_clean_</sup>
_e_ <sup>_clean_</sup> :
Appendix I: Estimating the parameters of the
experimental data by interpolation
In this section, we explain how we infer the generative parameters _θ_ <sup>˜</sup> and _ϕ_ <sup>˜</sup> for the experimental data and
how we embed a new sample from _Xe_ into the embedding space Φ _e_ as in Appendix Figure 8. This is done via
Nadaraya-Watson Kernel Regression [13] in the neural
embedding space. More specifically, for every _x_ ˜ _i_ _∈Xe_,
we estimate the conformation _θ_ <sup>˜</sup> _i_ =
_xj_ _∈Xs_ <sup>_K_</sup> <sup>(˜</sup> <sup>_xi,xj_</sup> <sup>)</sup> <sup>_θj_</sup>
<u>�</u>
_xj ∈Xs_ <sup>_K_</sup> <sup>(˜</sup> <sup>_xi,xj_</sup> <sup>)</sup>
_xj ∈Xs_ <sup>_K_</sup> <sup>(˜</sup> <sup>_xi,xj_</sup> <sup>)</sup> <sup>.</sup>
a subset of _F_ whose gradients _{∇fk}_ <sup>_p_</sup> _k_ =1 <sup>best</sup> <sup>span</sup> <sup>the</sup>
tangent bundle of the manifold _M_ .
First, TSLasso estimates local tangent spaces from the
data using local PCA. Then, it projects the gradients
_∇fk_ onto these tangent spaces, and finally reconstructs
local bases as sparse linear combinations of the projected
gradients. The magnitudes of the linear coefficients _Bk_
are regularized with a Group Lasso penalty to encourage
sparsity across all samples. We sweep the regularization
parameter _λ_ to find a value for which exactly _d_ dictionary
elements have corresponding non-zero coefficients _Bk_ . The
average magnitudes of _Bk_ as _λ_ varies indicate how strongly
each function contributes to spanning the local geometry.
In our experiments, each _fk_ corresponds to one of the
known generative parameters (the conformation _θ_ or one
of the nuisance factors in _ϕ_ ), giving _|F|_ = 10 for all
datasets. For the hemagglutinin dataset we use _|S|_ = 4;
for IgG we use _|S|_ = 5, values which are slightly lower
than the estimated _d_ <sup>ˆ</sup> ’s for the experimental hemagglutinin dataset and the synthetic IgG datasets, but within
a reasonable range. The true generative factors are unknown for experimental data, so we infer them by kernel
interpolation from nearby simulated data, yielding _θ_ <sup>˜</sup> and
_ϕ_ ˜ (Appendix I).
We run TSLasso 20 times using random subsets of 500
points drawn from the _X_ <sup>_unif_</sup> sample. To test robustness
to noise, each run samples points whose SNR (inferred
for experimental data) values are within the top _q_ -th
percentile of all points, with _q_ _∈{_ 0 _,_ 5 _, . . .,_ 95 _}_ . The
results are summarized in Appendix Figure 14. We find
that TSLasso almost always selects conformation _θ_ (or _θ_ <sup>˜</sup>
for experimental data) and SNR(SNR <sup>�</sup> for experimental
data) as the dominant factors parametrizing the embedded
manifold.
Appendix L: Runtime Considerations
All operations in our framework that involve pairs of
neighbors( neighbor counts, distances to the _k_ -th nearest
neighbor, KDE distances, etc.), as well as the spectral
decomposition of the Laplacian matrix L required to compute the embeddings, scale as _O_ ( _N_ <sup>2</sup> ) for _N_ the number of
points used for that computation. Our experiments start
at _N_ = 60000 and after uniform sub-sampling reduces
to _N_ = 20000. We implement these operations using
sparse linear algebra NumPy routines, which greatly reduces both time and space complexity. The experiments
involving the computation of neighbor counts, neighbor
distances and KDE distances as described in Appendix E,
were all performed in under 10 minutes on a personal
laptop.
The remaining operations of gradient estimation, Eigengap dimensionality estimation, IES, and TSLasso, require
point-wise estimations of tangent spaces which are obtained by spectral decompositions of local covariance
matrices. Thus, these operations scale as _O_ ( _N_ <sup>3</sup> ). However, we need not compute these local decompositions
Similarly, we obtain estimated nuisance parameters _ϕ_ <sup>˜</sup> _i_ .
To embed a new point _x_ ˆ _i_ _∈Xe_ in the embedding
space Φ _e_, we compute the _c_ -th coordinate of Φ _e_ ( _x_ ˆ _i_ ) as
_x_ ˜ _<u>j</u>_ _∈Xe_ <sup>_K_</sup> <sup>(ˆ</sup> <sup>_xi,x_</sup> <sup>˜</sup> <sup>_j_</sup> <sup>)Φ</sup> _e_ <sup>_c_</sup>
_<u>j</u>_ _∈Xe_ <sup>_K_</sup> <sup>(ˆ</sup> <sup>_xi,x_</sup> <sup>˜</sup> <sup>_j_</sup> <sup>)Φ</sup> _e_ <sup>_c_</sup> <sup>(˜</sup> <sup>_xj_</sup> <sup>)</sup>
<u>�</u>
Φ <sup>_c_</sup> _e_ <sup>(ˆ</sup> <sup>_xi_</sup> <sup>) =</sup>
.
_xj_ ˜ _∈Xe_ <sup>_K_</sup> <sup>(ˆ</sup> <sup>_xi,x_</sup> <sup>˜</sup> <sup>_j_</sup> <sup>)</sup>
Appendix J: Gradient estimation
Since the gradients _∇fk_ are not analytically known, we
estimate them using a local finite-difference procedure.
For each point _x ∈X_ <sup>_unif_</sup>, we compute a weighted local
neighborhood based on the same kernel matrix used for
Diffusion Maps. We perform local weighted PCA to
obtain a local basis _U_ ( _x_ ) _∈_ R <sup>256</sup> <sup>_×d′_</sup>, where we use _d_ <sup>_′_</sup> = 10
principal directions. We then construct local differences
of coordinates and function values for neighbors _x_ <sup>_′_</sup> of _x_
respectively as:
∆ _x_ ( _x_ <sup>_′_</sup> ) = _w_ ( _x_ <sup>_′_</sup> )( _x_ <sup>_′_</sup> _−_ _x_ ) _∈_ R <sup>256</sup>
∆ _fk_ ( _x_ <sup>_′_</sup> ) = _w_ ( _x_ <sup>_′_</sup> )( _fk_ ( _x_ <sup>_′_</sup> ) _−_ _fk_ ( _x_ )) _∈_ R
where _w_ ( _x_ <sup>_′_</sup> ) is the kernel weight for neighbor _x_ <sup>_′_</sup> . Next, we
project the coordinate differences unto the span of _U_ ( _x_ )
as ∆ <sup>�</sup> _x_ ( _x_ <sup>_′_</sup> ) = [ _U_ ( _x_ )] <sup>_⊤_</sup> ∆ _x_ ( _x_ <sup>_′_</sup> ) _∈_ R <sup>_d′_</sup> . From all neighbors of
_x_ <sup>_′_</sup> of _x_, we gather all ∆ <sup>�</sup> _x_ ( _x_ <sup>_′_</sup> ) into a design matrix and
all ∆ _fk_ ( _x_ <sup>_′_</sup> ) into the target vector and solve the resulting
weighted least-squares problem for _g_ _∈_ R <sup>_d′_</sup> . This is an
estimate of the gradient represented in _U_ ( _x_ ) coordinates
which we transform into an estimate in the original space
by _∇fk_ ( _x_ ) = _U_ ( _x_ ) _g_ .
The resulting gradients are then used as input to
TSLasso. We note that the projection step is optional, but
we found it useful both in terms of robustness and computational efficiency as it reduces the dimensionality of
the least squares problem from 256 features to _d_ <sup>_′_</sup> _≪_ 256.
Appendix K: TSLasso Details
We use TSLasso [19] to validate whether the embeddings learned by _Sψ_ are predictive for inferring the conformation posterior while remaining robust to nuisance variation. TSLasso performs feature selection on manifolds:
given a dictionary _F_ = _{fk_ : _M_ _→_ R _}_ <sup>_p_</sup> _k_ =1 <sup>of</sup> <sup>candidate</sup>
functions—here, the simulated generative parameters such
as conformation _θ_ and nuisance factors _ϕ_ —it searches for
on the whole data set, but only on a representative subsample. For the Eigengap dimension estimate and IES,
we used 5000 points, while for IES and TSLasso we used
500 points. Using personal laptops, these operations
amounted to under 20 minutes.
Finally, Riemannian Relaxation involves a heavy iterative optimization procedure and is by some margin the
most expensive operation in our framework taking up to
3 hours. Fortunately, this procedure is an optional step
for the pipeline, and future work can investigate the use
of early stopping to reduce the computational load.
Appendix Figure 1: Point-wise estimates of the intrinsic dimension _d_ using the Doubling Dimension method for
different radii _r_ for the experimental (red) and synthetic (blue) hemagglutinin data manifolds, and for the synthetic
IgG data manifold (green).
Appendix Figure 2: Point-wise estimates of the intrinsic dimension _d_ using the Levina-Bickel MLE for different _k_ -th
nearest neighbor distances for the experimental (red) and synthetic (blue) hemagglutinin data manifolds, and for the
synthetic IgG data manifold (green).
(a) Φ _s_ colored by _θ_ . (b) Φ _s_ colored by _θ_ <sup>ˆ</sup> .
(c) Φ _s_ colored by SNR. (d) Φ _s_ colored by _σ_ .
(e) Φ _s_ colored by _ds_ estimated by the Eigengap
method.
Appendix Figure 3: Diffusion Maps embeddings of the simulated hemagglutinin data Φ _s_ in _d_ = 3 dimensions. The
plots are rotated to best display the embedding. The three coordinates we display are selected by IES. In (a) and (b),
for data points with high SNR (on the left-hand side of the point cloud in both figures), the conformation and
posterior mean agree and vary smoothly across the y-axis. In (c) and (d), the SNR and posterior width agree over the
embedded points and vary smoothly across the x-axis, plotted with opposing color scales to emphasize regions where
SNR and posterior width agree. In (e), the intrinsic dimension is highest in regions with medium SNR. For data with
high SNR (the left most points), the intrinsic dimension _ds_ drops due to the lack of noise; for the noisiest data (lower
right of embedding), _ds_ drops again, as noisy images become more similar to each other.
(a) Φ _s_ colored by _θ_ . (b) Φ _s_ colored by _θ_ <sup>ˆ</sup> .
(c) Φ _s_ colored by SNR. (d) Φ _s_ colored by _σ_ .
(e) Φ _s_ colored by _ds_ estimated by the Doubling Dimension
method.
Appendix Figure 4: Diffusion Maps embeddings Φ _s_ in _d_ = 3 dimensions for the IgG dataset. The plots are rotated to
best display the embedding. The three coordinates we display are selected by IES. In (a) and (b), for data points
with high SNR (on the “ring” of the point cloud in both figures), the conformation and posterior mean agree and vary
smoothly, except for a boundary artifact due to periodicity of _θ_ . In (c) and (d), the SNR and posterior width agree
over the embedded points and vary smoothly from the “tail” of the point cloud (low SNR) to the “ring” (high SNR),
plotted with opposing color scales to emphasize regions where SNR and posterior width agree. In (e), the intrinsic
dimension is lowest in regions with high SNR, and higher towards the “tail” region of low SNR.
(a) Φ _e_ colored by _θ_ . (b) Φ _e_ colored by _θ_ <sup>ˆ</sup> .
(c) Φ _e_ colored by SNR. (d) Φ _e_ colored by _σ_ .
(e) Φ _e_ colored by _ds_ estimated by the Eigengap
method.
Appendix Figure 5: Diffusion Maps embeddings Φ _e_ in _d_ = 3 dimensions for the experimental hemagglutinin dataset.
The plots are rotated to best display the embedding. The three coordinates we display are selected by IES. In (a) and
(b), Φ _e_ is colored by the predicted conformation from manifold interpolation _θ_ <sup>˜</sup> and the conformation estimated
posterior mean _θ_ <sup>ˆ</sup> respectively. In plots (c) and (d) Φ _e_ is colored by the interpolated SNR and posterior width _σ_
respectively, with opposing color scales to emphasize that high SNR regions are often similar to low posterior width
regions and likewise for low SNR and high posterior widths. In (e) Φ _e_ colored by local _de_ . The highest intrinsic
dimension is in regions with medium SNR, while high SNR regions have _de_ _∈_ [3 _,_ 4].
Appendix Figure 6: The spectrums of the eigen-decompositions of the Diffusion Maps Laplacian matrices L computed
for the hemagglutinin experimental (red) and simulated (blue) datasets. The smoothness of the spectrum and having
only one 0 eigenvalue(not displayed) indicates that both _Ms_ and _Me_ are smooth connected manifolds.
Appendix Figure 7: The spectrum of the eigen-decomposition of the Diffusion Maps Laplacian matrix L computed for
the simulated IgG dataset. The smoothness of the spectrum and having only one 0 eigenvalue(not displayed) indicates
that _Ms_ is a smooth connected manifolds.
(a) The Φ _e_ embedding of the experimental
hemgagglutinin data.
(b) A random sample from _pe_ embedded into the Φ _e_
space using kernel interpolation.
(c) The Φ _e_ embedding(orange) and a random sample
from _pe_ (blue) embedded into the Φ _e_ space using kernel
interpolation.
Appendix Figure 8: All of the three-dimensional the plots above are rotated to best display the embedding, with views
consistent with Appendix Figure 5. In (b), we display a random sample from _pe_, the density on _Me_, which we embed
into the Φ _e_ space (a) using the kernel interpolation method presented in Appendix I. We observe that this sample has
no gaps and no clusters. In (c), we display the difference in density between the sample from _pe_ (blue) and the sample
used to compute Φ _e_ (orange). This is due to the resampling method described in Appendix E 3 that aims to mimic a
uniform distribution over _Me_ . We note that _pe_ is much denser in the low SNR regions (see Figure 5). By sampling
less from this noisy and uninformative region, we encourage Φ _e_ (orange) to better capture the geometry of _Me_ .
Appendix Figure 9: Figure from [11]. Visualization of the conformational heterogeneity of the IgG complex by
rotation of a dihedral angle.
(a) Representative structures from normal mode analysis on hemagglutinin structure (PDB id: 6wxb)
(b) colorred Representative non-whitened images from EMPIAR 10532, with whitened images
Appendix Figure 10: Visualization of structures and images used for the hemagglutinin examples, following analysis
from [14]. In a), the structures are obtained from concatenating two normal modes, as detailed in [14]. The magnitude
_|θ|_ denotes the RMSD from the ground truth structure, with _θ_ _<_ 0 for the first normal mode chosen, and _θ_ _>_ 0 for the
second chosen normal mode. In b), on the top row we show representative images from EMPIAR 10532 [25], and on
the bottom row show the images after whitening.
Appendix Figure 11: Proposed pipeline for validating the embedding space learned by the encoder _Sψ_ .
Appendix Figure 12: Illustration of the MVS threshold selection heuristic. We show empirical histograms of the
distribution of _k_ -nearest neighbor distances for two values _k_ = 50 and _k_ = 80 for _Xs_ _∼_ _ps_ collected from the IgG
dataset. Vertical dashed lines indicate deciles. Each histogram typically has a long right tail corresponding to sparse,
low-density outliers. A good choice of _α_ removes this tail, producing a roughly unimodal, bell-shaped distribution; In
our IgG dataset, this occurs around _α ≈_ 0 _._ 2.
(a) Φ _e_ before(left) and after(right) Riemannian Relaxation.
(b) Φ _s_ before(left) and after(right) Riemannian Relaxation.
Appendix Figure 13: Three-dimensional diffusion maps embeddings Φ _e_ (a) and Φ _s_ (b) of the hemagglutinin data
before and after Riemannian Relaxation. The embeddings have been slightly rotated to emphasize the effect of the
relaxation. Riemannian Relaxation tends to produce smoother embeddings with less curvature and more uniformly
distributed points.
(a) TSLasso results for the hemagglutinin experimental data.
(b) TSLasso results for the hemagglutinin simulated data.
(c) TSLasso results for the IgG simulated data.
Appendix Figure 14: The regularization paths of each _fk_ _∈F_ obtained over 20 runs of TSLasso for the experimental
(a) and simulated (b) hemagglutinin data, as well as for the simulated IgG data (c) . Each subplot corresponds to one
function _fk_ _∈F_, with the name and the selection rate in _fS_, the solution dictionary identified by TSLasso being
indicated in the sub-title. These selection rates should be compared with the chance of picking _d_ functions out of _s_
available ones at random which is 40%( _d_ = 4) for the hemagglutinin dataset and 50%( _d_ = 5) for the IgG dataset, in
both cases the dictionary comprising of _s_ = 10 candidates. The x-axis represents the value of _λ_, the strength of the
sparsity regularization, while the y-axis represents the average magnitude of _Bk_, the linear coefficients. Each run
consists only of points in the top _q_ -th percentile over all points in terms of SNR. We perform the experiment for
_q_ _∈{_ 0 _,_ 5 _, . . .,_ 90 _}_ with the lines going from blue to red as _q_ increases. A continuous (dotted) line indicates that _fk_ was
selected (not selected) in that run. We find that _fS_ almost always consists of conformation _θ_ (inferred _θ_ <sup>�</sup> for the
experimental data), SNR(or inferred SNR <sup>�</sup> for the experimental data).
섹션 본문
섹션 본문이 없습니다.
참고문헌 25건
- Trajectories of the ribosome as a Brownian nanomachine Proceedings of the National Academy of Sciences · National Academy of Sciences · 2014 10.1073/pnas.1419276111
- CryoDRGN: reconstruction of heterogeneous cryo-EM structures using neural networks Nature Methods · Nature Portfolio · 2021 10.1038/s41592-020-01049-4
- Deep learning-based mixed-dimensional Gaussian mixture model for characterizing variability in cryo-EM Nature Methods · Nature Portfolio · 2021 101038s41592021012205
- 3DFlex: determining structure and motion of flexible proteins from cryo-EM Nature Methods · Nature Portfolio · 2023 10.1038/s41592-023-01853-8
- Deep generative modeling for volume reconstruction in cryo-electron microscopy Journal of Structural Biology · Elsevier BV · 2022 10.1016/j.jsb.2022.107920
- Conformational heterogeneity and probability distributions from single-particle cryo-electron microscopy Current Opinion in Structural Biology · Elsevier BV · 2023 10.1016/j.sbi.2023.102626
- Towards interpretable Cryo-EM: disentangling latent spaces of molecular conformations Frontiers in Molecular Biosciences · Frontiers Media · 2024 10.3389/fmolb.2024.1393564
- Deep generative priors for biomolecular 3D heterogeneous reconstruction from cryo-EM projections Journal of Structural Biology · Elsevier BV · 2024 10.1016/j.jsb.2024.108073
- Principles for Integrative Structural Biology Studies Cell · Cell Press · 2019 10.1016/j.cell.2019.05.016
- Amortized template matching of molecular conformations from cryoelectron microscopy images using simulation-based inference Proceedings of the National Academy of Sciences · National Academy of Sciences · 2025 10.1073/pnas.2420158122
- The frontier of simulation-based inference Proceedings of the National Academy of Sciences · National Academy of Sciences · 2020 10.1073/pnas.1912789117
- Geometric diffusions as a tool for harmonic analysis and structure definition of data: Diffusion maps Proceedings of the National Academy of Sciences · National Academy of Sciences · 2005 10.1073/pnas.0500334102
- Manifold Learning: What, How, and Why Annual Review of Statistics and Its Application · Annual Reviews · 2023 10.1146/annurev-statistics-040522-115238
- High-throughput prediction of protein conformational distributions with subsampled AlphaFold2 Nature Communications · Nature Portfolio · 2024 10.1038/s41467-024-46715-9
- Through-grid wicking enables high-speed cryoEM specimen preparation Acta Crystallographica Section D Structural Biology · 2020 10.1107/s2059798320012474
- Measuring the strangeness of strange attractors Physica D Nonlinear Phenomena · Elsevier BV · 1983 10.1016/0167-2789(83)90298-1
- Plongements lipschitziens dans ${\bbfR}\sp n$ Bulletin de la Société mathématique de France · Société Mathématique de France · 1983 10.24033/bsmf.1997
- Density Estimation for Statistics and Data Analysis 2018 10.1201/9781315140919
- Simulation of cryo-EM ensembles from atomic models of molecules exhibiting continuous conformations bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2019 10.1101/864116
- A Bayesian approach to extracting free-energy profiles from cryo-electron microscopy experiments Scientific Reports · Nature Portfolio · 2021 10.1038/s41598-021-92621-1
- Estimating the Support of a High-Dimensional Distribution Neural Computation · The MIT Press · 2001 10.1162/089976601750264965
- One Class Process Anomaly Detection Using Kernel Density Estimation Methods IEEE Transactions on Semiconductor Manufacturing · IEEE Computer Society · 2022 10.1109/tsm.2022.3181468
- A Nonparametric Estimate of a Multivariate Density Function The Annals of Mathematical Statistics · Institute of Mathematical Statistics · 1965 10.1214/aoms/1177700079
- Consistency of a nonparametric estimate of a density function for dependent variables Journal of Multivariate Analysis · Elsevier BV · 1988 10.1016/0047-259x(88)90154-6
- Intrinsic dimension estimation: Advances and open problems Information Sciences · Elsevier BV · 2015 10.1016/j.ins.2015.08.029