Skip to Main Content

Victims of Optimization

Built with Claude: Life Sciences

The same search that produces adversarial examples—driving a model’s prediction up by making small changes to its input—can be turned into a tool for designing biological sequences. We train a small model to predict a property (the surrogate) and then run an attack-style search to find sequences the surrogate scores highly. On its own this search cheats: it finds sequences that fool the surrogate into predicting a high score rather than sequences that are genuinely good. We make the search useful by adding two things. First, a simple biological rule that keeps every proposed sequence realistic, using no extra trained model: each change from the starting sequence must be conservative under the BLOSUM62 (BLOcks SUbstitution Matrix) table, and a set of whole-sequence biophysical numbers (hydrophobicity, net charge, aromatic and charged fractions, sequence complexity, and the longest repeated-letter run) must stay within the ranges seen in natural sequences. Second, and most important, we check every design against signals the search never used—so the final claim never rests on the surrogate grading its own work. We demonstrate the system on four tasks across two molecule types: protein thermostability and green fluorescent protein (GFP) fluorescence, a 600-base-pair regulatory-DNA task verified on a true functional model (Borzoi), and a small DNA benchmark with an exact ground-truth answer (TF-Bind- 8) used as a diagnostic. The biological rule keeps 100% of GFP designs realistic versus 5–19% for the baselines (paired Wilcoxon p<10−7); on thermostability it matches a learned second model and beats a hand-tuned penalty (p<0.001); and on regulatory DNA the system raises the true property on all 40 of 40 starting points. Independent checks (a structure predictor, a separate thermostability predictor, kept functional residues, and a true DNA-activity model) agree the designs are real. Which featurization the surrogate uses (a frozen foundation-model embedding or a plain one-hot/k-mer encoding) is a swappable part of the system, reported as an ablation, not the point: the foundation model only helps on long, variable-length protein, and the system works either way.

Team

Placement

Participant

More from Built with Claude: Life Sciences

What I built. Lazarus is an agent that takes a dead research repository that is open, cited, and no longer runnable, and turns it back into a callable…

DoctorDean project preview

Diffuse midline glioma is a paediatric brainstem cancer that is almost uniformly fatal: about ninety percent of children die within two years, and the first…

Faith Ogundimu project preview

Hippocampus AI is the memory and reasoning engine for scientific discovery. Every experiment generates valuable knowledge, but that knowledge becomes…

Disruptors project preview

I used Claude to train a protein language model that can generate an extremophilic version of any enzyme, maintaining its function, while allowing it to…

Jaymin project preview

Many primates are sexually dichromatic — males and females are different colors. I wanted to know how that trait is built genetically, and how it evolved…

www.loom.com/…

About Trialign is a patient-facing clinical trial matcher for oncology. A patient pastes a clinical note, uploads a record, or connects their EHR via SMART on…

Trialign project preview