Attacking the Disease State: Gradient Inversion for Drug-Target Deconvolution

Phenotypic drug discovery has a stubborn asymmetry: we can find molecules that fix a diseased cell long before we know which proteins they actually bind. That missing mechanism of action (MoA) blocks medicinal chemistry, because without the target you cannot optimize potency or predict toxicity. Meanwhile, in an entirely separate literature, researchers have shown that when you have full white-box access to a neural network — its weights and internal activations — you can compute exact gradients and find astonishingly small input perturbations that flip the model's output: continuous "soft prompt" attacks on open language models reach a 100% cumulative attack success rate in an average of 9 iterations (Soft Prompt Threats), and steering a sparse 5% slice of a representation direction fully controls safety behavior at zero added cost (Jailbreak Antidote).

The core claim of this proposal is that these are the same problem wearing different clothes. A deep model of cellular state — one that embeds single-cell transcriptomes into a latent space and scores whether a cell looks healthy or diseased — is a classifier like any other. The question "which minimal perturbation flips this diseased cell to a healthy one?" is, mathematically, a white-box adversarial attack on the disease state. And once we can synthesize that minimal perturbation by backpropagation rather than look it up in a database, the perturbation itself becomes a fingerprint we can trace back through gene decoders and protein-interaction networks to rank the direct binding targets — a de novo, gradient-driven route to target deconvolution.

Core Claim

Existing work that comes closest joins only two of the three directions. UNAGI (A deep generative model for deciphering cellular dynamics and in silico drug discovery in complex diseases) builds a generative latent model of disease progression and scores drugs by looking up their perturbation signatures in the Connectivity Map (CMAP) and shifting cell embeddings accordingly — but it never computes a gradient through the model, so it cannot solve the inverse problem (what perturbation would reverse the state?) and is restricted to compounds already cataloged in a few immortalized cell lines. The knowledge-graph deconvolution pipeline of A novel approach for target deconvolution from phenotype-based screening using knowledge graph ranks candidate targets for a phenotypic hit by stacking centrality filters, text similarity, and 2-hop traversal on a protein-protein interaction graph, compressing 1,088 p53-pathway proteins to 35 candidates and experimentally confirming USP7 with a dissociation constant of $1.92 \times 10^{-8}$ M — but every filtering layer is non-differentiable, so no signal from the observed phenotype can flow back to the target ranking. Neither work uses white-box optimization at all; the adversarial literature cited above has never been applied outside language, vision, and driving models.

We propose to close that loop. Concretely: train a differentiable cell-state encoder and health score $s(z)$ on single-cell transcriptomic data (following UNAGI's architecture family, but keeping the score differentiable end-to-end); then solve

$$\delta^\* = \arg\min_{\delta}\ \|\delta\|_0 \quad \text{subject to} \quad s(z_{\text{disease}} + \delta) \ge \tau,$$

where $z_{\text{disease}}$ is the latent embedding of a diseased cell, $\tau$ is the healthy-state threshold, and $\delta$ is a latent perturbation. We approximate this combinatorial problem with signed gradient descent in the embedding space — exactly the optimizer Dobre et al. use against safety alignment (Soft Prompt Threats) — combined with a top-$k$ magnitude mask on the gradient, the device Shen et al. show concentrates almost all of the decision-relevant signal into 5% of dimensions (Jailbreak Antidote). Sparsity here is not a computational convenience: a sparse $\delta^\*$ should decode into a small set of genes, which is precisely what a druggable MoA looks like. The perturbed genes are then projected onto a human protein-interaction interactome (STRING/BioGRID), and direct targets are ranked by combining the decoded gene attribution with network proximity, the same projection step standard network pharmacology uses (Identification of Druggable Host Targets Needed for SARS-CoV-2 Infection). White-box adversarial optimization is the core mechanism; network pharmacology supplies the target-ranking layer; MoA elucidation is the application and the evaluation regime.

Research Program

Three components must be built. First, the differentiable state model: a graph-variational encoder over single-cell profiles with a health score trained on staged disease data (healthy versus mild versus severe), deliberately architected so that gradients flow from the scalar score back to the latent embedding and forward through a gene decoder. Second, the inversion module: projected signed-gradient descent with a sparsity dial, plus attribution scores for each gene computed from the decoder's sensitivity to $\delta^\*$. Third, the deconvolution head: the gene attribution vector is spread over the interactome by $k$-hop proximity, targets are ranked, and the top candidates (we plan to keep the PPIKG paper's budget of 35) go to AutoDock Vina docking against the phenotypic hit's structure, mirroring the validated endpoint of the knowledge-graph deconvolution study.

Two scientific questions ride on top of the engineering. The first is sparsity–druggability scaling: we will sweep the mask fraction $k$ and measure how the number of genes needed to flip the phenotype grows, testing whether the extreme concentration Shen et al. observe in language models (5% of dimensions) has a biological analog — our hypothesis is that phenotype-relevant directions in a well-trained cell model are similarly concentrated, which would explain why workable drugs can have a handful of targets rather than hundreds. The second is universality: Dobre et al. report that a single continuous perturbation optimized on a small batch transfers with over 90% success to diverse unseen inputs (Soft Prompt Threats), and Yan and Tian show universal perturbations can be found from intrinsic model geometry without any data (Data-Free Universal Attack by Exploiting the Intrinsic Vulnerability of Deep Models). The therapeutic analog is patient heterogeneity: if one $\delta$ optimized across a sample of patients transfers to held-out patients, we get a single predicted target set that is robust across the population rather than personalized noise.

Proposed Experiments

The primary testbed is idiopathic pulmonary fibrosis, the setting UNAGI validated: staged single-nucleus transcriptomes with an existing positive control (UNAGI predicted and ex vivo validated nifedipine, a calcium-channel blocker, as antifibrotic). Our first check is whether gradient inversion, given only the fibrotic-state model and no drug information, independently ranks calcium-channel or Netrin-1-pathway components among its top targets. A second benchmark assembles held-out MoA ground truths documented in the network-pharmacology literature: maackiain and oxyberberine binding CHRM3 in colorectal adenoma (Prediction of herbal compatibility for colorectal adenoma treatment based on graph neural networks), honokiol/magnolol inhibiting the JAK2/STAT3/IL17 axis in colitis (Honokiol and Magnolol Exert an Anti-Inflammatory Effect by Inhibiting JAK2/STAT3/IL17 Signalling in a Rat Model of Ulcer Colitis), and resveratrol's multi-target modulation of homologous-recombination repair in premature ovarian insufficiency (Multi-target modulation of the homologous recombination pathway by resveratrol promotes DNA damage repair in POI). Metrics are recall of the validated target at rank cutoffs (recall@10, @35), the median rank of the true target, the size of the sparsity-induced target set, and cross-patient transfer rate of a universal $\delta$. For the strongest novel prediction we will run the PPIKG-style decisive endpoint: docking followed by surface plasmon resonance, the same assay chain that confirmed USP7 binding at $K_D = 1.92 \times 10^{-8}$ M (knowledge-graph deconvolution).

A final experiment addresses the proposal's most serious internal risk: a gradient-found $\delta$ may be an artifact of the model rather than real biology — the direct analog of the "post-affirmative hallucination" failure Dobre et al. observe, where an attack forces the desired prefix but the subsequent generation decays into nonsense (Soft Prompt Threats). Our guard is a causal-grounding check: the expression shift induced by $\delta^\*$ in gene space must show high cosine similarity to an independently measured perturbation signature for the predicted target, and perturbations failing this check are discarded as model exploits rather than candidate mechanisms.

Baselines

The naive reference point is the standard network-pharmacology pipeline with no learned model: rank genes by differential expression between diseased and healthy cells, project onto the interactome, and rank targets by degree and closeness centrality — the heuristic stack used throughout the TCMSP-based literature (Bioinformatics-based study of the ceRNA network and the sub-network of the Ziyin Buyang Formula) and essentially the filtering core of the PPIKG pipeline (knowledge-graph deconvolution). It is the strongest competitor precisely because it requires nothing new and already delivered a wet-lab-confirmed target; we will run it on the identical single-cell data, identical interactome snapshot, and identical docking budget of 35 candidates, and we count ourselves as beating it only if recall@35 of validated targets is strictly higher across the benchmark set with the same false-positive cost.

The strongest existing method is UNAGI's CMAP-lookup perturbation scoring (UNAGI): we will reimplement its scoring on our IPF and COVID data, give it the same encoder capacity and tuning budget, and evaluate on the same recall metrics. No reported result found on Lacuna for UNAGI's target-recovery accuracy on a ranked benchmark — its evidence is the ex vivo nifedipine validation, not a ranked-retrieval number — which is itself a gap this proposal's evaluation fills. For comparison of the downstream graph layer, Gu et al.'s GraphSAGE compatibility model reports a fit of $R^2 = 0.91$ at epoch 60 on herbal combination prediction (Prediction of herbal compatibility); that number is on a different task (predicting combination scores from known labels, not deconvoluting an unknown mechanism), so it calibrates what supervised graph models achieve when labels exist rather than providing a head-to-head figure.

The key ablation isolates the gradient inversion itself: replace $\delta^\*$ with random latent perturbations matched in norm and sparsity, passed through the identical decoder, attribution, and interactome projection. If random directions rank true targets nearly as well, the signal lives in the projection layer, not the inversion, and the proposal's core claim fails. A second ablation removes the sparsity mask (dense $\delta$) to test whether the top-$k$ constraint is what converts the perturbation into a compact, druggable target set.

Why not just…?

Why not just look up perturbation signatures in CMAP, like UNAGI? Because the lookup is bounded by the catalog: as the file's own analysis of UNAGI notes, CMAP/LINCS covers limited chemical libraries in a few immortalized cancer cell lines, and cannot speak to specialized primary cells or uncharacterized natural products. Every ground-truth case in our second benchmark (maackiain, morusin, resveratrol in ovarian tissue contexts) is either absent from or poorly represented in such databases, so the comparison is decisive by construction: on targets with no cataloged signature, lookup methods have no signal source, while inversion only needs the disease-state model.

Why not just rank targets by differential expression plus centrality? This is the real threat, and we treat it as the primary baseline rather than arguing around it. The known weaknesses are documented: differential expression conflates downstream distress markers (reactive oxygen species, histone changes) with causative binding events — the Layer-1 confounding problem in MoA elucidation — and curated interactomes inflate heavily studied hubs like TP53 and AKT1 through literature bias. But gradient inversion inherits its own bias: it is only as causal as the encoder it attacks. The honest resolution is empirical: matched-data, matched-budget recall@35 across the held-out MoA benchmark, plus the causal-grounding check, which differential-expression rankings cannot pass because they carry no induced expression signature to verify. If the naive pipeline matches our recall, the inversion machinery is not earning its cost and we will say so.

Why not just train a supervised drug–target graph neural network? Gu et al.'s heterogeneous GraphSAGE model (Prediction of herbal compatibility) shows supervised graph models perform well when labeled drug–target–disease triples exist, reaching $R^2 = 0.91$ on combination prediction. But the MoA problem is defined by the absence of labels — a phenotypic hit whose target is unknown — and the file's analysis notes these models cannot distinguish synergistic from antagonistic multi-target action. A supervised predictor cannot rank targets for a molecule outside its training distribution, whereas inversion is target-label-free: it needs only a disease-state model and the interactome. The two are also complementary rather than exclusive, and we will report the supervised model as an upper reference where labels leak into its training set.

Decisive Checks

The proposal stands or falls on three outcomes. First, on the held-out MoA benchmark, gradient-inverted target rankings must beat both the differential-expression pipeline and random matched perturbations at recall@35 under identical budgets. Second, the sparsity sweep must show a strongly concave trade-off — phenotype flips achieved with small gene sets — since a flat curve means the latent space carries no compact mechanistic structure to exploit. Third, at least one top-ranked novel target must survive the full causal chain: docking, induced-signature similarity to an independent perturbation profile, and binding confirmation by surface plasmon resonance, matching the evidentiary standard set by the USP7 deconvolution (knowledge-graph deconvolution). If all three hold, white-box adversarial optimization becomes a standard instrument for target deconvolution; if the first fails, the result is still informative — it would mean learned cell-state models, however accurate, do not expose their mechanisms to gradient interrogation, a finding that would itself sharpen what "mechanism" means in generative biology models.