From Retrieval to Reasoning: Agentic Mechanism Prediction from Cell Painting Profiles

Jiayuan Chen, Botao Yu, Tianyu Liu, Thai-Hoang Pham, Meng Wu, Ping ZhangNeurIPS 2026

TL;DR

Predicting how a drug works inside a cell just by looking at microscope images is usually treated like facial recognition: find a known drug that makes cells look similar, and copy its label. Because biological data is famously noisy, this paper flips the script, treating those visual matches not as final answers, but as unreliable witnesses in a courtroom. By deploying a team of specialized AI agents to cross-examine visual, chemical, and historical reliability clues, their system (PhenoAIR) dramatically outperforms existing methods—and even knows when to say, "Wait, this drug is doing something completely new."

What Problem Does This Paper Address?

In modern drug discovery, Cell Painting is a workhorse assay. You dose cells with a mystery chemical, stain their internal structures with fluorescent dyes, and snap microscope images. The goal is often to predict the compound's Mechanism of Action (MOA)—the specific biological target or pathway it disrupts.

Standard computational pipelines encode these images into feature vectors and run a $k$-Nearest Neighbors ($k$NN) search. If your mystery drug makes cells shrivel up just like Known Drug X, you guess it works like Drug X.

The catch? Morphological similarity is an indirect, noisy signal. Cells might look similar because of lab-specific batch effects, generic cell death (toxicity), or different biological pathways converging on the same visual stress response. Furthermore, standard retrieval pipelines force a guess from known labels, failing completely in "open-world" discovery when a compound acts via a genuinely novel mechanism.

Methods

Instead of representation matching, the authors formulate MOA prediction as calibrated evidence reasoning via a multi-agent LLM framework called PhenoAIR (using GPT-5.1 or Claude 4 Sonnet backbones). Unlike chatty "debate-style" multi-agent setups, PhenoAIR agents don't argue in free-form text; they read and write to a structured, shared Candidate Memory—essentially a detective's caseboard tracking which hypotheses are supported, contradicted, or suppressed.

Figure 1: Architecture of PhenoAIR. The system consists of three stages: Externalized reliability calibration (left) precomputes a reliability-annotated phenotype neighborhood and a mechanistic family ontology from the multi-source reference database. Candidate-centric evidence reasoning (center) maintains a shared candidate memory updated by Phenotype Agent (calibrated retrieval) and a Mechanism Agent (structural and pharmacological verdicts). Controller-guided refinement (right) iteratively coordinates the two agents through a rule-based controller, terminating with an Arbiter that produces a canonical or novel MOA. Self-evolving extensions (in blue) handle open-set inference.

PhenoAIR operates in three stages:

  1. Externalized Reliability Calibration (Offline): Before seeing any test queries, an LLM-assisted code pipeline audits the reference database. It measures how consistent compounds look across different labs, flags generic/toxic morphologies, and maps out which MOA pairs are routinely confused.
  2. Candidate-Centric Evidence Reasoning: Two role-separated agents update the caseboard. The Phenotype Agent looks only at calibrated Cell Painting neighbors and their trustworthiness metadata. The Mechanism Agent looks only at the query's chemical structure (SMILES), pharmacophores, and predicted targets.
  3. Controller-Guided Refinement & Arbitration: A deterministic, rule-based Controller inspects the caseboard and decides what to do next—expand the search, validate a broader biological family, or stop. Once stopped, an LLM Arbiter makes a final call, checked by strict deterministic eligibility gates. For open-world tasks, an offline "self-evolving" loop refines the controller's rules using past reasoning traces on a development set.

Datasets

The authors built a new three-part benchmark by combining image profiles from the public JUMP Cell Painting Consortium (cpg0016-jump across five lab sources, including varying drug dosages) with ground-truth annotations from the Broad Institute Drug Repurposing Hub:

  • MoA-Verified (200 test, 26 classes): High-confidence, clean profiles measured across multiple labs.
  • MoA-Extended (600 test, 137 classes): Noisy, realistic deployment data including single-lab profiles prone to batch effects.
  • MoA-Novel (100 test, 26 known classes): Open-world setting where 50% of test drugs have mechanisms absent from the reference set, requiring the system to output novel.

Key Insights and Ideas

  • Uncalibrated data can make LLMs worse: In noisy settings (MoA-Extended), a fixed LLM workflow combining Cell Painting retrieval with chemical structure scored lower than an LLM looking at chemical structure alone (31.7% vs. 39.8% on GPT-5.1). Feeding raw, noisy neighbors into an LLM actively misleads it; explicit calibration and rejection mechanisms are essential.
  • Calibration is about context, not re-ranking: Offline calibration barely nudges raw retrieval Recall@10 (e.g., from 0.575 to 0.605 on CellCLIP embeddings), yet powers massive end-to-end accuracy leaps. The magic isn't in shuffling the neighbor list, but in handing downstream agents a "trust dossier" on why a neighbor might be a trap.
  • Visuals and chemistry are truly complementary: When the authors deliberately shuffled the Cell Painting data across queries while keeping chemical inputs intact, accuracy plunged by 26.4 percentage points—proving the agents genuinely rely on cellular morphology rather than coasting on memorized chemistry.

Key Results

Across both GPT-5.1 and Claude 4 Sonnet, PhenoAIR beats traditional $k$NN retrieval (using CellProfiler, CellCLIP, or ECFP chemical fingerprints) and LLM agent baselines across the board.

Table 2: Main results on three datasets. We report accuracy (Acc. %), hit rate (Any-match), and F1 measured against ground-truth MOA labels. All LLM-based methods operate on the same CellCLIP features. Best results are in bold; second-best are underlined. Our method is highlighted in blue.
  • Controlled (MoA-Verified): PhenoAIR hits 62.6% Top-1 accuracy (74.6% multi-label Any-match) with GPT-5.1, crushing CellCLIP $k$NN (14.0%), chemical $k$NN (23.0%), and a tool-using Single Agent (39.1%).
  • Noisy (MoA-Extended): Reaches 45.8% accuracy (59.9% Any-match) with Claude 4, outperforming structure-only LLMs (40.8%) and fixed workflows (37.7%).
  • Open-World Discovery (MoA-Novel): Achieves 79.4% overall accuracy and a 74.7 F1 score on novel mechanism detection (GPT-5.1), where standard nearest-neighbor retrieval cannot function at all.

Limitations and Future Work

PhenoAIR cannot reason its way out of missing biology. Error analysis on MoA-Extended shows 63.1% of failures stem from fundamental data limits: pathway convergence, non-specific toxicity, or total retrieval misses where no informative neighbor exists. The remaining 36.9% are reasoning-stage errors (e.g., misinterpreting chemical mechanisms or flawed arbitration). Additionally, the offline "self-evolving" rule tuning overfits on broad, noisy closed-set tasks, restricting its usefulness to open-set novelty detection. Future work points toward stronger mechanistic grounding and sharper arbitration when visual and chemical clues collide.

Summary updated

Abstract

Cell Painting is a high-content morphological profiling assay widely used for phenotype-based biological inference, with mechanism of action (MOA) prediction as a central application. Existing approaches largely formulate Cell Painting-based inference as representation matching, assigning predictions from nearby reference perturbations in morphological feature space. However, retrieved neighbors are often noisy and partially misleading evidence due to batch effects, non-specific cytotoxicity, phenotypic convergence, and source-dependent variability. We reformulate Cell Painting-based MOA prediction as a calibrated evidence reasoning problem, where retrieved neighbors are treated as uncertain observations that must be evaluated, compared, and sometimes rejected before supporting a mechanistic conclusion. We propose PhenoAIR, a reliability-aware multi-agent framework that maintains a candidate-centric evidence memory and performs controller-guided refinement over phenotype- and mechanism-side evidence. PhenoAIR uses offline reference-set calibration to weight evidence by source reliability, phenotype stability, and mechanism-level confusion. We evaluate PhenoAIR on a benchmark constructed from JUMP Cell Painting profiles and annotations, covering controlled, realistic, and discovery-oriented open-world MOA prediction settings. PhenoAIR outperforms representation-matching and LLM-based baselines across all settings.
BibTeX
@inproceedings{chen2026from,
  author = {Jiayuan Chen and Botao Yu and Tianyu Liu and Thai-Hoang Pham and Meng Wu and Ping Zhang},
  title = {{From Retrieval to Reasoning: Agentic Mechanism Prediction from Cell Painting Profiles}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=40FqRHHc3L},
}
Figure