bioRxivBioinformaticsPreprint
ProtNHF: Neural Hamiltonian Flows for Controllable Protein Sequence Generation
Abstract
Controllable protein sequence generation remains a central challenge in computational protein design, as most existing approaches rely on retraining, classifier guidance, or architectural modification to impose conditioning. Here we introduce ProtNHF, a generative model that enables continuous, quantitative control over sequence-level properties through analytical bias functions applied exclusively at inference time. ProtNHF builds on neural Hamiltonian flows, where a lightweight Transformer-based potential energy function, inspired by ESM-2, is combined with an explicit kinetic term to define Hamiltonian dynamics in a continuous relaxation of protein sequence space. The model learns a symplectic transport map from a latent Gaussian distribution to protein sequence embeddings via deterministic leapfrog integration, enabling efficient and expressive sampling. In the unconditional setting, generated sequences achieve competitive quality as measured by ESM-2 pseudo-perplexity and AlphaFold2 pLDDT confidence scores. A key advantage of the Hamiltonian formulation is its additive energy structure, which permits external bias potentials to be incorporated directly into the Hamiltonian at inference time without modifying or retraining the learned model. This casts controllable generation in a classical molecular modeling paradigm, where desired properties are enforced by explicit energy shaping. We demonstrate smooth, predictable, and approximately monotonic control over amino acid composition and global properties such as net charge by introducing simple analytical bias terms, including residue-specific chemical potentials and harmonic constraints. The bias strength modulates the values of these properties in generated sequences continuously while preserving structural plausibility and diversity. ProtNHF thus provides a flexible base distribution that can be steered toward different compositional regimes using transparent, physically interpretable energy terms, establishing a general framework for inference-time programmable protein sequence generation.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Protein Sequence Modelling with Bayesian Flow Networks
Timothy J. Atkinson, Thomas D. Barrett, … Alexandre Laterre·Nature CommunicationsPeer-reviewed·Apr 3, 2025
- PRO-LDM: Protein Sequence Generation with a Conditional Latent Diffusion Model
- ProtFlow: Flow Matching-based Protein Sequence Design with Comprehensive Protein Semantic Distribution Learning and High-quality Generation
Zitai Kong, Yiheng Zhu, … Chang‐Yu Hsieh·bioRxiv·Feb 17, 2026
- ProtGPT3: an Open-source family of Promptable and Aligned Protein Language Models
Michele Garibbo, Gerard Boxo Corominas, … Noelia Ferruz·bioRxiv·Jun 8, 2026
- ProGen: Language Modeling for Protein Generation
Ali Madani, Bryan McCann, … Richard Socher·bioRxiv·Mar 7, 2020
- Illuminating protein space with a programmable generative model
John Ingraham, Max Baranov, … Gevorg Grigoryan·NaturePeer-reviewed·Nov 15, 2023