Source-linked AI summary

Pyrite: Building and Benchmarking Protein-Ligand Pose Ranking Agents

Megha Srivastava, Michael H. Lim, Allison M. Keys, Pranav Murugan, Nate Gruver

arXiv:2611.14511v1cs.LGq-bio.QM

TL;DR

Cofolding models generate diverse plausible ligand poses, but reliably identifying the best remains difficult. Pyrite pairs a benchmark and structured pose representation with two LLM agents; PyriteFeaturizer reaches the benchmark’s highest performance at up to 74% accuracy.

  • Problem

    Cofolding models can generate many plausible binding modes, but reliably identifying the most plausible pose remains challenging.

    Source: §1 · p. 1
  • Method

    The authors introduce the Pyrite pairwise pose-ranking benchmark and PyriteRep, then develop agents for direct text-based pose comparison and LLM-guided feature discovery.

    Source: §1 · p. 2
  • Results

    Both agents outperform near-chance expert chemists; PyriteFeaturizer reaches up to 74% pose-ranking accuracy, the benchmark’s highest performance.

    Source: §1 · p. 2
  • Takeaways & Limitations

    Pyrite makes reasoning over and trusting computational-chemistry outputs a concrete challenge for scientific-discovery agents.

    Source: §8 · p. 14

    Training data were limited, and a significant accuracy gap remains before benchmark saturation.

    Source: §8 · p. 14

Abstract

from arXiv · show

Predicting how a ligand binds to its target is central to small-molecule drug discovery. Modern cofolding models can generate diverse candidate poses, but reliably ranking these candidates remains challenging. We introduce Pyrite, a pairwise pose-ranking benchmark comprising 1,500 pose pairs across diverse protein-ligand complexes. Expert chemists equipped with 3D visualization tools and physics-based scores perform near chance, highlighting the difficulty of interpreting available chemical signals. To investigate automated ranking, we introduce PyriteRep, a structured representation of molecular geometry, protein-ligand interactions, and physicochemical scores, and develop two LLM-based agents: PyriteReasoner, which directly compares poses through text-based reasoning, and PyriteFeaturizer, which generates executable code to construct features for logistic regression, optionally incorporating features derived from LLM subcalls. These agents achieve up to 67% and 74% accuracy, respectively, exceeding observed expert performance. LLM-guided feature discovery generally outperforms direct reasoning, while Group Relative Policy Optimization (GRPO) improves open-weight models, enabling them to match or surpass closed-source frontier models in our evaluations. These results establish Pyrite as a challenging test of pose-ranking ability and highlight LLM-guided feature discovery as a promising approach to interpret and combine the outputs of computational chemistry tools.

1 Introduction

Modern cofolding models generate diverse plausible binding poses, but selecting the most plausible pose remains difficult when the true binding mode is unknown. The paper introduces Pyrite and LLM-based ranking agents to study this challenge and reports that LLM-guided feature discovery achieves the strongest benchmark performance.

1 Introduction

  • Pyrite is a challenging benchmark of 1,500 pose pairs spanning 285 structures and 1,799 unique poses, built from diverse cofolded poses.The authors argue that limited pose diversity in many public cofolding models yields less challenging decoys for benchmarking.Source: §1 · p. 2
  • Expert chemists perform near or below random chance despite substantial interannotator agreement, and conventional physics-based scores can be anti-correlated with correctness.The benchmark presents conflicting signals, including scores and torsional strain that only loosely correlate with distance to the native pose.Source: §1 · p. 2
  • PyriteRep represents pose geometry, protein–ligand interactions, and physicochemical features, improving LLM-agent accuracy over raw 3D coordinates alone.The paper frames LLM-guided feature discovery as a way to incorporate chemical and biological knowledge beyond direct reasoning.Source: §1 · p. 2
  • PyriteReasoner directly compares poses through text-based chemical reasoning and reaches up to 67% accuracy; reinforcement learning improves open-weight models.RL enables open-weight models to match or exceed closed-source frontier models in the reported evaluations.Source: §1 · p. 2
  • Up to 74% pose-ranking accuracy is achieved by PyriteFeaturizer, the paper’s highest-performing benchmark approach.The agent discovers and implements structural features for logistic regression, optionally combining them with features from LLM subcalls.Source: §1 · p. 2
  • The expert annotation interface combines 2D contact maps, interactive 3D and overlay views, MM-GBSA scores, and Mogul unusual-torsion counts.Annotators also record factors favoring each pose and explain how they weigh them.Source: Figure 1 · p. 3

2 Problem Setup: Pose Ranking

Pose ranking asks which of two predicted poses is closer to the unknown crystallographic binding mode. PyriteRep presents pose information in a structured format for AI agents, combining pose-dependent and pose-invariant features.

2 Problem Setup: Pose Ranking

  • At test time, a pose ranker must select which of two predicted poses is closer to the unknown crystallographic structure.The section’s example identifies Pose A as the correct choice, while noting that pairwise ranking is distinct from overall ranking.Source: §2 · p. 3

2.1 Representing poses for AI agents with PyriteRep

  • PyriteRep contains 29 features, including pose-invariant and pose-dependent information produced by computational chemistry tools such as RDKit and OpenMM.The representation is introduced for text-based reasoning over poses, with the stated aim of improving performance over raw coordinates alone.Source: §2.1 · p. 4
  • Pose-invariant PyriteRep fields include target context, atom and bond lists, formal charges, SMILES, and IUPAC names.The listed fields describe the target and ligand rather than a particular pose.Source: §2.1 · p. 4
  • The listed pose-dependent fields include 3D coordinates and interactions annotated by residue, backbone or side-chain origin, and interaction type.Examples of interaction types include hydrogen-bond donor or acceptor, salt bridge, and π-stacking.Source: §2.1 · p. 4

2. Asphericity: b = λ3 −1

The supplied passage associates asphericity with eigenvalues and states that b is zero for a sphere.

2. Asphericity: b = λ3 −1

  • The passage states that b = 0 for a sphere and references eigenvalues λ1 ≤ λ2 ≤ λ3 of S.It also includes the expression 2(λ1 + λ2), without enough context here to safely characterize its role.Source: §2 · p. 4

3. Radius of Gyration: Rg =

The listed PyriteRep features describe protein–ligand interactions, residue contacts, strain, validity, and ligand geometry deviations.

3. Radius of Gyration: Rg =

  • The interaction list records residue, backbone or side-chain origin, and interaction type, while contact counts include distinct contacted residues and side-chain residues.The passage lists examples such as hydrogen bonds, salt bridges, and π-stacking.Source: §3 · p. 4
  • Protein torsional strain is reported for backbone, side chain, and total, both as absolute values and divided by residue count.The listed strain values are in kcal/mol.Source: §3 · p. 4
  • Other listed features include PoseBusters validity and Mogul measures of unusual torsions and rings, torsion penalty, and total torsions analyzed.The Mogul measures refer to deviations from Cambridge Structural Database geometries or distributions.Source: §3 · p. 4

17. Inter-pose ligand RMSD: p 1

Figure 2 compares top-k pose enrichment and pose diversity across cofolding models.

17. Inter-pose ligand RMSD: p 1

  • MM-GBSA Score is a binding-energy score estimated from the first step of the docking pipeline.Source: §17 · p. 4
  • The figure measures pose diversity using per-pair RMSD and Interaction IoU distributions.Its top row shows top-k enrichment, with EF@k defined relative to hits expected at random.Source: Figure 2 · p. 5

3 Pyrite Benchmark Creation

Pyrite is built from diverse, high-quality cofolded poses and filtered into a pairwise ranking benchmark. In this regime, common physics scores provide weak or misleading ranking signals.

3.1 Generating Diverse Poses

  • The benchmark samples up to 120 poses per query from more than 50,000 structures, then retains the top 25 by MM-GBSA.The authors’ cofolding system produces more diverse poses than three public models; only their system receives real MM-GBSA enrichment, still below the oracle ceiling.Source: §3.1 · p. 5

3.2 Filtering Pose Pairs for Comparison

  • Pose pairs are filtered using crystal-reference RMSD, lDDT-PLI, and interaction recall, retaining pairs with at least one high-quality pose.The final benchmark has 1,500 pairs from 285 structures; the curated expert-annotated subset contains 750 pairs.Source: §3.2 · pp. 5–6

3.3 Physics scores are anti-correlated for strong pose decoys

  • Lower-MM-GBSA pose selection is anti-correlated with correctness in this high-quality regime, and no Table 1 method is significantly above chance.Other individual scores also rank poorly; sign inversion is not established as generalizable, while trained methods outperform the inverted score with low agreement.Source: §3.3 · pp. 6–7, Table 1 · p. 7

4 Human expert performance: oracle or baseline?

Five experienced chemists annotated pose pairs using structural visualizations and provided scores. Their accuracy was below chance, despite substantial agreement between annotators.

4.1 Human expert annotation overview

  • Five chemists with over 10 years’ average CADD, docking, and virtual-screening experience selected the pose closer to the crystal structure.They received 3D and 2D visualizations, MM-GBSA and Mogul scores, protein-family information, and downloadable structures; 1,500 annotations were collected.Source: §4.1 · p. 7

4.2 Human experts perform below chance at pairwise ranking of cofolded poses

  • Experts performed below chance on pre- and post-AF3 structures; removing “about the same” choices raised accuracy but did not remove the low-performance pattern.Annotator agreement was 77%, higher than accuracy; expert accuracy also differed significantly between Easy and Hard pairs.Source: §4.2 · pp. 7–8
  • Experts often relied on MM-GBSA, while accuracy was higher when reasoning mentioned interactions or torsion geometry.The authors suggest cofolded pose differences may be subtle and unintuitive, consistent with the observed Easy–Hard accuracy gap.Source: §4.2 · p. 8

5 Methods: Building pose ranking agents

The paper develops complementary LLM agents to compare poses directly or discover quantitative features for a classifier. It also investigates GRPO training for both approaches.

5 Methods: Building pose ranking agents

  • The two-agent design contrasts interpretable language-based chemical reasoning with quantitative analysis, while recognizing that LLM reasoning may inherit expert heuristics.PyriteReasoner compares poses directly; PyriteFeaturizer discovers features for logistic regression.Source: §5 · pp. 8–9

5.1 Text-based reasoning with PyriteReasoner

  • PyriteReasoner uses explicit text-based chemical reasoning to compare candidate poses across four LLMs and five structural-input ablations.The inputs range from raw coordinates to PyriteRep representations and in-context examples; Table 2 covers base models, ablations, and GRPO-finetuned Qwen.Source: §5.1 · p. 9

5.2 Discovering predictive features with PyriteFeaturizer

  • PyriteFeaturizer generates Python scripts to compute PyriteRep features, then trains a logistic-regression classifier on pre-AF3 structures.Its ablations add protein-level and pose-specific LLM subcalls; the authors compare them with logistic regression trained on all quantitative PyriteRep features.Source: §5.2 · p. 9

5.3 Improving pose ranking accuracy with GRPO

  • GRPO is evaluated for both agents using the pre-AF3 training data and Qwen3.8-27B, with rewards tied to output quality or predictive accuracy.Reasoner rewards parseable selections and correctness; Featurizer rewards executable, nonconstant scripts by cross-validated classifier accuracy, while batch variation is a challenge for Reasoner.Source: §5.3 · p. 10

6 Experiment Results

Across the post-AF3 evaluation, structured pose representations and LLM-guided feature discovery improve pose ranking, while GRPO strengthens open-weight agents. PyriteFeaturizer with Pose LLM Subcall reaches the benchmark’s highest reported accuracy.

6 Experiment Results

  • Experiments train with pre-AF3 data and evaluate on post-AF3 splits, reporting all and curated subsets separately for comparison with expert annotations.In-context examples provide no consistent benefit, possibly because retrieved examples are not sufficiently informative.Source: §6 · p. 10, §6.1 · p. 11

6.1 PyriteReasoner: Using PyriteRep improves zero-shot LLM performance

  • PyriteReasoner performs near or below chance with raw coordinates alone; explicit interaction information improves performance, and the full PyriteRep representation yields further gains.Omitting raw 3D coordinates from PyriteRep does not hurt performance.Source: §6.1 · pp. 10–11, Table 3 · p. 11

6.2 Classical machine learning is competitive with text-based reasoning

  • Vanilla logistic regression performs comparably to PyriteReasoner and reaches 64% mean per-pose accuracy on the post-AF3 curated subset, outperforming Sonnet 5 and GPT-5.6-sol.No statistically significant differences were observed between logistic regression and the tree-based methods on post-AF3 pose pairs.Source: §6.2 · p. 11

6.3 PyriteFeaturizer: LLM subcalls improve predictive feature discovery

  • PyriteFeaturizer generally outperforms PyriteReasoner except for Qwen3.8-27B, and LLM-derived subcall features further improve performance in most settings.Subcalls that evaluate individual poses are particularly helpful; generated-feature logistic regression also generally outperforms the vanilla baseline.Source: §6.3 · pp. 11–12

6.4 GRPO narrows the gap between open-weight and frontier models

  • GRPO improves both agents on post-AF3 structures; PyriteReasoner learns to rely less on MM-GBSA, while PyriteFeaturizer programs increasingly use pose-specific LLM subcalls and generate more features.Generated strategies include bounding MM-GBSA with tanh and combining contextual information with quantitative descriptors.Source: §6.4 · pp. 12–13, Figure 5 · p. 13
  • 74% pose-ranking accuracy is reached by PyriteFeaturizer’s Pose LLM Subcall configuration after GRPO, the highest performance observed on the benchmark.GRPO also improves PyriteReasoner, including on cases where MM-GBSA favors the incorrect pose.Source: §6.4 · p. 12

7 Related Work

Related work spans docking and cofolding benchmarks, LLM scientific reasoning, LLM-generated features, and studies of expert judgment. Pyrite applies these threads to pairwise ranking of diverse protein–ligand poses.

Docking and cofolding methods

  • Classical docking ranks fixed candidate sets, while cofolding jointly predicts protein and ligand structures; recent benchmarks identify limits in confidence scores for ranking diverse ligand poses.The cited docking-power benchmark is CASF-2016 [Su et al., 2019].Source: §7 · pp. 13–14

LLMs for scientific reasoning

  • LLMs and tool-using agents have been studied across scientific tasks, but few evaluations target reasoning over 3D molecular geometry; pose ranking provides a verifiable instance.The passage cites examples across writing, mathematics, coding, scientific discovery, and chemistry [Cobbe et al., 2021].Source: §7 · p. 14

LLM-based feature engineering and program search

  • Prior feature-engineering systems use LLM-generated transformations or programs with downstream predictors, and PyriteFeaturizer adapts this approach to pose ranking using GRPO and cross-validation accuracy as reward.Examples include CAAFE [Hollmann et al., 2023], FeatLLM [Han et al., 2024], and FeRG-LLM [Ko et al., 2025].Source: §7 · p. 14

Expert judgment in molecular discovery

  • Prior molecular-prioritization studies report medicinal-chemist decision biases, while virtual-screening reviews document methodological pitfalls that motivate empirical evaluation of expert pose-ranking judgments.The passage cites Kutchukian et al. (2012) and Scior et al. (2012).Source: §7 · p. 14

8 Future Work & Conclusion

The paper concludes that pose ranking remains below benchmark saturation and identifies data scale and distribution shift as learning challenges. The appendix filters pose pairs using ligand, density, pose-similarity, ion, and protein-alignment criteria.

8 Future Work & Conclusion

  • Pose ranking remains below benchmark saturation; larger training sets, possible pre-/post-AF3 distribution shifts, other generative models, and downstream pipeline transfer remain future tests.Training was limited to pre-AF3 structures, and the authors note distribution shifts might hinder learning methods.Source: §8 · p. 14

A Pose Pair Filtering Conditions for Pyrite

  • Pairs are filtered when ground-truth or GOOD-pose density support is weak or the two poses have too little density-score separation.The listed thresholds are ground-truth RSCC < 0.75, GOOD-pose density support < 0.50, or support difference < 0.10.Source: A Pose Pair Filtering Conditions for… · p. 20
  • Other filters exclude near-identical poses, insufficiently displaced ligand atoms, missing coordinating ions, large protein misalignment, and ligands failing drug-likeness criteria.The listed cutoffs include ligand-pose RMSD < 1.0 Å, fewer than six atoms displaced by at least 2 Å, and protein Cα RMSD > 10 Å.Source: A Pose Pair Filtering Conditions for… · p. 20

B Classical Methods

This section describes classical and LLM-assisted feature-based approaches for comparing poses, including code-generated signed features, protein-level priors, and pose-level assessments. It also examines tree-based models on existing PyriteRep features relative to logistic regression.

B Classical Methods

  • All four classical models achieve comparable pose-ranking accuracy, with no statistically significant differences on post-AF3 evaluation splits.Models were trained on quantitative PyriteRep features using pre-AF3 structures; the result suggests limited benefit from nonlinear models without additional feature engineering.Source: B Classical Methods · p. 20, Table 4 · p. 20

C Example Prompt for PyriteReasoner

  • The example PyriteReasoner prompt asks for the pose closer to the crystallographic mode, using coordinates, interactions, energetic and strain metrics, validity, shape descriptors, and structural features.It allows a five-level preference scale and advises considering possible water-mediated interactions.Source: C Example Prompt for PyriteReasoner · pp. 21, 23

D Precomputed Feature Block for PyriteReasoner

  • The precomputed feature block includes functional-group identities, pose-to-pose group displacements and spacing changes, resolved and shared or unique interactions, interaction counts, and ligand descriptors.The listed ligand descriptors include ring counts and sizes and hydrogen-bond donor and acceptor counts; a metric summary indicates which pose each feature favors.Source: D Precomputed Feature Block for… · p. 24, §2 · p. 24

2. Functional Group Displacement List: List of ∥cB g −cA

  • The functional-group displacement list specifies centroid displacement for each group and flags group pairs whose separation changes by more than 1 Å.The accompanying feature list also distinguishes interactions unique to either pose and reports total ring count, ring sizes, donor and acceptor counts, and pose-favoring metrics.Source: §2 · p. 24

E GRPO Hyperparameters

  • GRPO training uses LoRA on the Qwen3.8-27B language decoder, with importance-sampling corrections and off-policy sequence masking for PyriteReasoner generation.PyriteFeaturizer is rewarded by five-fold leavestructure-out cross-validation accuracy of logistic regression on generated features; failed, slow, or constant-feature outputs receive zero reward.Source: E GRPO Hyperparameters · p. 24

F.1 Code Only

  • The code-only featurizer constructs pose-difference features for strain, MM energy, MOGUL validity, and interaction quality, with additional strain-per-rotatable-bond and kinase-conditioned terms.Its interaction-quality score weights H-bonds more strongly than long or weak contacts and distal contacts.Source: §F.1 · pp. 25–27
  • The code-only featurizer includes salt-bridge/cation–π count differences and an infinity-flag feature, then replaces non-finite outputs with zero.The infinity flag is signed so that an infinity indication in Pose B favors Pose A.Source: §F.1 · p. 27

F.2 w/ Protein LLM Subcall

  • The protein-assisted featurizer signs lower-is-better metric differences as B minus A to favor A when its value is lower, and uses B minus A for MM binding energy.Its stated orientation is that larger feature values provide stronger evidence for Pose A.Source: §F.2 · pp. 27–29
  • Protein-level LLM labels weight strain, Mogul torsion-penalty, and close-contact differences according to kinase, metal/charged-site, and GPCR/cavity context.The code queries those protein-level properties once and uses them to adjust the corresponding pose-difference features.Source: §F.2 · pp. 28, 30

F.3 w/ Pose LLM Subcall

  • Pose-level LLM prompts assess H-bond network geometry and satisfaction, ligand polar-group satisfaction, strained or clashing contacts, and packing/steric complementarity; interaction scoring includes HBD, HBA, SALT, CATIONPI, PI_STACK, and T_STACK features.The shown weights are SALT 2.0, HBD 1.2, HBA 1.0, and CATIONPI 0.8.Source: §F.3 · p. 31

G Comparison with Sign-Flipped MM-GBSA

Sign-flipped MM-GBSA performs above chance on Pyrite, but its advantage is regime-dependent and does not emerge as the dominant signal in learning-based methods. GRPO-trained PyriteReasoner surpasses the heuristic while agreeing with it on only about half of pairs.

G Comparison with Sign-Flipped MM-GBSA

  • Inverting MM-GBSA yields above-chance accuracy on Pyrite, but the inversion appears only in the tight top-k regime from which Pyrite pairs are drawn.Choosing the inverted sign a priori requires knowing how aggressively candidates have already been filtered.Source: G Comparison with Sign-Flipped MM-GBSA · p. 32
  • Vanilla Logistic Regression and PyriteFeaturizer take MM-GBSA as an unconstrained-sign feature, yet their learned combinations do not make the inverted heuristic dominant.PyriteFeaturizer also learns transformations that bound MM-GBSA’s influence.Source: G Comparison with Sign-Flipped MM-GBSA · p. 32
  • PyriteReasoner surpasses the sign-flipped MM-GBSA rule while agreeing with it on only about half of pairs.The authors interpret this decoupling as evidence that the model learns a different decision rule.Source: G Comparison with Sign-Flipped MM-GBSA · p. 32, Table 6 · p. 32
Loading 2611.14511v1…