- The paper introduces SinAE, a unified Transformer-based autoencoder that uses iterative flow matching for cross-domain reconstruction of molecules, crystals, and proteins.
- It achieves near-lossless reconstruction with sub-milliรฅngstrรถm RMSD and superior generative validity, recording a PB Valid of 0.97 on molecular benchmarks.
- The efficient ODE-based decoder and joint latent space enable rapid inference and effective transfer of geometric regularities across diverse atomic systems.
SinAE: A Unified Flow-Matching Autoencoder for Cross-Domain Atomic Systems
Motivation and Context
Existing generative pipelines for molecules, crystals, and proteins have developed along distinct lines, largely due to domain-specific structural conventions and physical priors. Despite sharing an atomic-level representation, previous approaches have relied on specialized architecturesโgraph and equivariant networks for molecules, lattice-aware operators for crystals, and residue-level frames for proteins. This fragmentation exacerbates per-domain data scarcity and complicates the development of universal generators. The introduction of SinAE ("A Single-Architecture Flow-Matching Autoencoder for Cross-Domain Atomic Systems" (2607.12380)) addresses this by proposing a domain-general, vanilla-Transformer autoencoder combined with flow-matching for both reconstruction and generation, requiring no specialized geometric or equivariant modules.
Figure 1: SinAE overview: A flow-matching autoencoder architecture for molecules, crystals, and proteins, leveraging a shared per-token latent representation.
Methodology
SinAE comprises two core components: a vanilla Transformer encoder mapping input atomic structures (X,A) to a compact, per-token latent (z), and a Transformer decoder implementing iterative flow matching. The encoder is stochastic, aligning its output distribution with a Gaussian via light KL regularization. The decoder reconstructs atomic coordinates and types by minimizing a unified flow-matching objective, dispensing with domain-specific loss terms and architectural modules. For crystals, periodicity is encoded via virtual lattice tokens processed as "atoms," ensuring architectural uniformity across all domains.
During training, random SO(3) rotation augmentations maintain orientation-invariant representations without equivariant layers. The decoder refines its output using an ODE trajectory, progressively improving atomic placement and resolving fine geometric details.
A latent DiT prior (Diffusion Transformer) is trained over the encoder outputs, enabling de novo generation by sampling a latent sequence and decoding via the flow-matching decoder.
Figure 2: SinAE architecture and training procedures: (aโd) show shared embedding, encoding, decoding, and prior learning; (eโg) outline reconstruction, prior training, and generation.
Empirical Evaluation
Reconstruction Fidelity
SinAE achieves sub-milli-ร
RMSD across all domains, with structure match rates of 100% on QM9 (small molecules) and MP-20 (crystals), demonstrating near-lossless recovery compared to baselines, which exhibit substantially higher RMSD and lower match rates. For proteins, backbone CA-RMSDs of โผ0.01โ$0.02$ ร
represent an order-of-magnitude improvement over prior latent autoencoders (e.g., ProteinAE, DPLM-2).
Figure 3: Reconstruction RMSD across domains summarized on log scale; SinAE achieves $20$โ100ร tighter RMSD than prior baselines in crystals and proteins.
Strong cross-domain transfer is evidenced by joint training: pooling QM9 and MP-20 reduces RMSD further, from $0.0007$ to $0.0002$ ร
(QM9) and $0.0041$ to z0 ร
(MP-20), strictly improving both domains. The decoder converges to optimal fidelity after only six function evaluations, confirming computational efficiency.
SinAE attains competitive or superior PoseBusters validity (PB Valid), which enforces stringent checks on geometric and chemical plausibility. On QM9, the joint model yields PB Valid z1, surpassing state-of-the-art equivariant models (EQGAT-diff z2, FlowMol z3). On GEOM-Drugs, it achieves z4 PB Valid, markedly higher than ADiT (z5) and SemlaFlow (z6).
Figure 4: Generated samples from SinAE's latent DiT prior decoded across domains; small molecules, crystals, and protein backbones illustrated.
On MP-20, SinAE sets new benchmarks in S.U.N. (Stable, Unique, Novel) and M.S.U.N. (Metastable S.U.N.) metrics, reaching z7 and z8 respectively, outperforming FlowLLM (z9) and FlowMM (100%0). Structure and composition validity approach 100%1, though SinAE's main improvement lies in thermodynamic stability, as evaluated by DFT-relaxed energies.
Figure 5: Unconditional crystal samples from SinAE's joint molecule-crystal prior, decoded with lattice vectors to produce inorganic crystal structures.
Using the same architecture as the molecule-crystal model, the protein variant achieves backbone reconstruction RMSDs of 100%2โ100%3 ร
on CASP14/15. Unconditional generation yields designability 100%4 and diversity 100%5 clusters at temperature 100%6, outperforming ProteinAE and matching RFdiffusion.
Co-design tasks (sequence+structure generation) show competitive self-consistency scores: scRMSD 100%7 ร
, scTM 100%8 (length 100), matching MultiFlow and ProteinGenerator, and below APM (a protein-specific model) in scTM.
Figure 6: Unconditional protein backbone samples generated from the protein-only SinAE prior, visualized as C100%9 cartoon traces.
Latent Space Analysis and Cross-Domain Transfer
t-SNE projections of joint latent spaces reveal domain separation and clustering without explicit conditioning, with shared low-density boundary regions suggestive of transferable geometric regularities. Interpolations between latents decode into valid intermediate structures across molecules, crystals, and proteins, evidencing a smooth and continuous latent manifold.
Figure 7: t-SNE of SinAE latents shows distinct yet internally coherent regions for molecules and crystals, colored by domain-specific clusters.

Figure 8: Latent-space interpolations between pairs of SinAE latents decode into valid, continuous intermediate structures across all domains.
Decoder Trajectory Insights
Analysis of decoder ODE trajectories (generation from DiT-sampled latents) shows rapid RMSD convergence (โผ0.010) followed by continued energy minimization, indicating early geometric placement and late-stage local refinementโbond planarity, dihedral angles, sterics. This applies even to prior-sampled latents unseen by the encoder, confirming the physical relevance and robustness of the flow-matching decoder.

Figure 9: Decoder ODE trajectory during generation: (a) physical energy declines logarithmically; (b) RMSD quickly plateaus, with late steps refining energetics.
Generalization and Efficiency
Protein length generalization (tested up to 260 residues) exhibits sub-linear scaling of CA-RMSD with chain length. Generation NFE ablation demonstrates rapid convergence of reconstruction RMSD, saturating by โผ0.011. In wall-clock terms, SinAE's decoder achieves fast inference, requiring only โผ0.012 ms per molecule, confirming practical deployability.
Figure 10: Reconstruction RMSD versus decoder NFE; curves plateau rapidly, evidencing efficient convergence.
Figure 11: SinAE protein model generalizes reconstruction fidelity across full length range; generative scRMSD is stable across sampled lengths.
Implications and Future Directions
SinAE's architecture shifts the reconstruction burden entirely onto an iterative, flow-matching decoder, enabling domain-general latent spaces without equivariance or domain-specific modules. This level of generality and fidelity facilitates cross-domain transfer, robust generation, and scale-up across small molecules, materials, and proteins. It opens avenues for length-conditioned generative modeling, all-atom protein design, and single-checkpoint cross-domain training.
Potential advances include integrating all-atom protein modeling, conditional generation (property, composition, or length), and hybrid training across more extensive domain pools, with attendant benefits for generative discovery pipelines in biochemistry and materials science. Limitations are noted in protein evaluation granularity and checkpoint scalability.
Conclusion
SinAE demonstrates that flow-matching autoencoders with vanilla Transformer backbones can achieve near-lossless reconstruction and competitive generative performance across diverse atomic domains, with joint training enabling strict improvements via cross-domain transfer. The iterative decoder, unified objective, and latent-space diffusion prior offer a scalable, architecture-neutral foundation for cross-domain atomic structure modeling. SinAE advances the possibilities for atomic-scale generative AI, bridging molecular, material, and protein design.