AgentPLM: Agentic Protein Language Models with Reasoning-Augmented Decoding for Protein Sequence Design

Sahil Rahman, Maxx Richard Rahman

TL;DR

AgentPLM transforms protein language models (PLMs) from passive sequence generators into "agentic" designers that can consult biophysical tools mid-generation. By interleaving autoregressive decoding with external tool calls and training on a novel trajectory-level contrastive objective, AgentPLM achieves state-of-the-art results in antibody optimization and enzyme design, effectively "checking its work" to ensure structural and functional viability.

What Problem Does This Paper Address?

Standard Protein Language Models (like ESM-2) are essentially "passive oracles." They are trained on massive databases of evolutionary sequences to predict the next amino acid, but they have no inherent understanding of physics or thermodynamics. When they generate a new protein sequence, they do so in a single forward pass without any way to verify if the resulting structure will actually fold or function.

This leads to two major issues:

  1. Structural Blindness: The model might commit to a sequence that is thermodynamically unstable because it can't "see" the 3D consequences of its choices until the sequence is finished.
  2. Epistatic Blindness: It struggles with long-range interactions where the fitness of one residue depends non-additively on another far away in the sequence.

In the real world, protein engineers don't work this way; they iterate between computational predictions, lab assays, and literature. AgentPLM aims to bridge this gap by giving models the ability to "think" and "act" during the design process.

Methods

The authors introduce a framework that treats protein design as a Partially Observable Markov Decision Process (POMDP). The two core innovations are:

  • Reasoning-Augmented Decoding (RAD): This is the inference-time "loop." As the model generates a sequence, it can choose to pause and call an external "oracle" (like ESMFold for structure, FoldX for stability, or AutoDock Vina for binding affinity). The results of these calls are fed back into the model’s memory, allowing it to redirect its generation if it detects a constraint violation.
  • Contrastive Agent Policy Optimisation (CAPO): Training an agent to use tools is hard. CAPO is a trajectory-level extension of Direct Preference Optimisation (DPO). It trains the model by comparing "winner" trajectories (high-fitness sequences where tools were used effectively) against "loser" trajectories. This teaches the model when a tool call is informative versus when it is redundant.

The architecture also includes a Tool Context Encoder (TCE) to handle diverse data types (like 3D coordinates or scalar energy values) and a Trajectory Memory Buffer (TMB) to keep a compressed history of all tool interactions without blowing up the computational cost.

Datasets

The model was evaluated across five diverse benchmarks:

  1. ThermoStab-75: Improving protein melting temperatures (derived from ProThermDB, Ssym, and FireProtDB).
  2. AntibodyOpt-VH: Optimizing antibody binding affinity (using SAbDab and OAS data).
  3. EnzymeDesign-EC3: Enhancing catalytic efficiency in hydrolases (from BRENDA and SABIO-RK).
  4. PPI-Interface: Designing protein-protein interaction interfaces (using PDBbind and SKEMPI 2.0).
  5. ZeroShot-Fitness: Evaluating general fitness prediction on 41 ProteinGym datasets.

Key Insights and Ideas

  • Temporal Division of Labor: One of the most fascinating findings was that the model learned a logical sequence of tool use without explicit supervision. It typically calls ESMFold early (to check the global fold), FoldX in the middle (to stabilize structural junctions), and AutoDock Vina late (to fine-tune the binding interface).
  • Active Uncertainty Resolution: The model uses a "Structural Self-Consistency" (SSC) score. If its internal representation of the protein's structure disagrees with the oracle's prediction, it triggers a mandatory tool call—essentially a "safety net" for when the model is confused.
  • End-to-End Training is Crucial: Unlike previous attempts that used frozen LLMs (like GPT-4) to orchestrate tools, AgentPLM is trained end-to-end. This allows the biophysical feedback to directly influence the "residue-level" decisions, leading to much higher precision.

Key Results

AgentPLM achieved state-of-the-art (SOTA) performance across all benchmarks:

  • Antibody Optimization: Achieved a 52.41% hit rate (top-10% fitness), nearly double the performance of the next best agentic baseline (ProtAgent at 27.38%) and over 4x better than standard ESM-2 (12.37%).
  • Enzyme Design: Showed a +34% improvement in normalized catalytic efficiency ($k_{cat}/K_m$) over the strongest baseline.
  • Thermostability: Improved protein melting temperatures by an average of 7.64°C, compared to 5.19°C for the best previous method.
  • Mechanistic Evidence: Using integrated gradient analysis, the authors proved that the model actually shifts its attention to "fix" problematic regions of a protein immediately after receiving negative feedback from a tool.

Limitations and Future Work

  • Inference Latency: Calling complex oracles like AutoDock Vina is computationally expensive (~2.4 seconds per call). While the authors used a Redis cache to speed up evaluations, real-world de novo design with uncached tools remains slow.
  • Oracle Dependency: The agent is only as good as its tools. If the underlying oracles (like FoldX) have systematic biases, the agent will likely learn to exploit them.
  • Fixed Toolset: The current version uses a predefined set of three tools. Future work could involve "open-world" tool discovery where the model learns to search for and use new biophysical APIs as needed.

Summary updated

BibTeX
@inproceedings{rahman2026agentplm,
  author = {Sahil Rahman and Maxx Richard Rahman},
  title = {{AgentPLM: Agentic Protein Language Models with Reasoning-Augmented Decoding for Protein Sequence Design}},
  booktitle = {GenBio @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=1vFADfQk8n},
}
Figure