cs.LGMar 20, 2026

Conditioning Protein Generation via Hopfield Pattern Multiplicity

Authors: Jeffrey D. Varner

Organizations: Robert Frederick Smith School of Chemical and Biomolecular Engineering Cornell University, Ithaca, NY 14850

Abstract

Small protein-family alignments often contain a subset of interest but not enough labeled data to train a conditional generator. We condition a training-free stochastic-attention sampler by adding one multiplicity ratio to its logits. Increasing this ratio shifts generation from the full family toward the designated subset. For unit-norm memories, the resulting Boltzmann distribution is exactly a Gaussian mixture whose component weights are set by the multiplicities. This result separates exact conditioning in latent space from losses caused by sampling, PCA reconstruction, and sequence decoding. Across five Pfam families, attention followed the analytic target, but recovery of single-residue markers depended on how well PCA separated the designated and background sequences. A matched weighted profile HMM reproduced these markers more directly, while stochastic attention gave lower ESM2 pseudo-perplexity in the Kunitz comparison. Using a curated set of 23 omega-conotoxin sequences as the target subset produced diverse sequences that preserved the cysteine scaffold and Tyr13 and shifted other residues toward the designated set. These sequences are candidates for experimental testing; they do not establish binding.

Figures & tables

Explore similar work

CardsList
  1. Training-Free Generation of Protein Sequences from Small Family Alignments via Stochastic Attention

    Mar 16, 2026Jeffrey D. VarnerHopfield NetworksMolecular Generation

  2. Stochastic Attention via Langevin Dynamics on the Modern Hopfield Energy

    Mar 6, 2026Abdulrahman Alswaidan, Jeffrey D. VarnerHopfield NetworksEnergy-Based Models

  3. Learning Latent Protein Languages for Autoregressive Generation

    Oct 2, 2026Mahdi Pourmirzaei, Farzaneh Esmaili, Amir Ziashahabi +2Protein Language ModelsGenerative Modeling