cs.LGOct 31, 2026

HamFormer: A Hamiltonian Flow-based SE(3)-Transformer for Conformation Optimization

Authors: Minjie Cheng, Zhenghao Liu, Yitian Wang, Fanmeng Wang, Anqi Dong, Hongteng Xu

Organizations: Gaoling School of Artificial Intelligence, Renmin University of China · Laboratory for Human-Oriented Mobility Eco-system, École Polytechnique Fédérale de Lausanne · Beijing Key Laboratory of Research on Large Models and Intelligent Governance · Engineering Research Center of Next-Generation Intelligent Search and Recommendation, MOE

Abstract

The Transformer architecture plays a central role in modern deep learning, and its SE(3)-equivariant variants have been widely applied to molecular conformation modeling and optimization. Given its importance, many methods attempt to interpret and improve the Transformer through the lens of dynamics. However, they mainly focus on a single attention head rather than the full Transformer architecture and seldom consider SE(3)-equivariance in their proposed models. In this study, we propose an improved SE(3)-Transformer architecture, called HamFormer, which revisits the design of SE(3)-Transformer through the lens of Hamiltonian flow. In particular, we define a parametrized Hamiltonian flow in the phase space of position and velocity, corresponding to optimizing an energy functional that combines an optimal transport-based potential with a damped momentum. The Lie-Trotter splitting framework of the Hamiltonian flow leads to the proposed HamFormer architecture, whose feedforward computation achieves the optimization step of the proposed energy functional. Furthermore, we combine HamFormer with Equivariant Graph Neural Network (EGNN), build a new model for molecular conformation optimization. Extensive experiments on molecular ground-state conformation prediction show that HamFormer provides a strong and physically interpretable surrogate for classic SE(3)-Transformer and generally outperforms state-of-the-art competitors.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. EquiformerV3: Scaling Efficient, Expressive, and General SE(3)-Equivariant Graph Attention Transformers

    Apr 10, 2026Yi-Lun Liao, Alexander J. Hoffman, Sabrina C. Shen +3Equivariant GNNsGraph Transformer

  2. Geometric Flow Matching for Molecular Conformation Generation via Manifold Decomposition

    May 25, 2026Yunqing Liu, Yi Zhou, Wenqi FanFlow MatchingGenerative Modeling

  3. VEDA: Generation of 3D Molecules via Variance-Exploding Diffusion with Annealing

    Nov 11, 2025Peining Zhang, Jinbo Bi, Minghu Song3D Molecular GenerationDiffusion Models