Aligning Transformers with Continuous Feedback via Energy Rank Alignment

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chennakesavalu, Shriram, Hu, Frank, Ibarraran, Sebastian, Rotskoff, Grant M.
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911227096072192
author Chennakesavalu, Shriram
Hu, Frank
Ibarraran, Sebastian
Rotskoff, Grant M.
author_facet Chennakesavalu, Shriram
Hu, Frank
Ibarraran, Sebastian
Rotskoff, Grant M.
contents Searching through chemical space is an exceptionally challenging problem because the number of possible molecules grows combinatorially with the number of atoms. Large, autoregressive models trained on databases of chemical compounds have yielded powerful generators, but we still lack robust strategies for generating molecules with desired properties. This molecular search problem closely resembles the "alignment" problem for large language models, though for many chemical tasks we have a specific and easily evaluable reward function. Here, we introduce an algorithm called energy rank alignment (ERA) that leverages an explicit reward function to produce a gradient-based objective that we use to optimize autoregressive policies. We show theoretically that this algorithm is closely related to proximal policy optimization (PPO) and direct preference optimization (DPO), but has a minimizer that converges to an ideal Gibbs-Boltzmann distribution with the reward playing the role of an energy function. Furthermore, this algorithm is highly scalable, does not require reinforcement learning, and performs well relative to DPO when the number of preference observations per pairing is small. We deploy this approach to align molecular transformers and protein language models to generate molecules and protein sequences, respectively, with externally specified properties and find that it does so robustly, searching through diverse parts of chemical space.
format Preprint
id arxiv_https___arxiv_org_abs_2405_12961
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Aligning Transformers with Continuous Feedback via Energy Rank Alignment
Chennakesavalu, Shriram
Hu, Frank
Ibarraran, Sebastian
Rotskoff, Grant M.
Machine Learning
Artificial Intelligence
Chemical Physics
Quantitative Methods
Searching through chemical space is an exceptionally challenging problem because the number of possible molecules grows combinatorially with the number of atoms. Large, autoregressive models trained on databases of chemical compounds have yielded powerful generators, but we still lack robust strategies for generating molecules with desired properties. This molecular search problem closely resembles the "alignment" problem for large language models, though for many chemical tasks we have a specific and easily evaluable reward function. Here, we introduce an algorithm called energy rank alignment (ERA) that leverages an explicit reward function to produce a gradient-based objective that we use to optimize autoregressive policies. We show theoretically that this algorithm is closely related to proximal policy optimization (PPO) and direct preference optimization (DPO), but has a minimizer that converges to an ideal Gibbs-Boltzmann distribution with the reward playing the role of an energy function. Furthermore, this algorithm is highly scalable, does not require reinforcement learning, and performs well relative to DPO when the number of preference observations per pairing is small. We deploy this approach to align molecular transformers and protein language models to generate molecules and protein sequences, respectively, with externally specified properties and find that it does so robustly, searching through diverse parts of chemical space.
title Aligning Transformers with Continuous Feedback via Energy Rank Alignment
topic Machine Learning
Artificial Intelligence
Chemical Physics
Quantitative Methods
url https://arxiv.org/abs/2405.12961