Worst-Group Solubility Prediction: Auditing Expressibility Models on Reduced-Alphabet Proteins

Machines that make proteins — microbial cells told to express a foreign gene — often fail: the nascent chain folds wrongly and clumps into inactive aggregates called inclusion bodies. Because trial-and-error expression is slow, labs increasingly use machine-learning predictors trained on protein language models to guess in advance whether a protein will come out soluble. These predictors are scored with a single aggregate number, like the area under the ROC curve. A parallel literature in algorithmic fairness has documented, again and again, that aggregate scores can hide catastrophic failure on small overlapping subgroups — a model can look balanced across each attribute separately while dumping its errors on, say, one intersecting cohort. Nothing in the protein-production literature checks for this.

This proposal brings the machinery of intersectional fairness to recombinant protein expression, and uses the most extreme out-of-distribution case in all of protein science as its stress test: proteins built from reduced, prebiotic amino-acid alphabets. Researchers studying the origin of life face a puzzle known as the catalytic gap: modern cells need protein enzymes to make proteins and DNA, but those enzymes are themselves products of the translation machinery, so early life must have run on RNA catalysts (ribozymes) plus very simple peptides. One way to test what those early peptides could do is to rebuild modern enzymes using only amino acids plausibly available on the early Earth — and then express them recombinantly. That is exactly where modern predictors, pre-trained on modern proteomes, should break. The proposal audits that break, repairs it with distribution-alignment techniques from the fairness literature, and validates the repair with a wet-lab library of reduced-alphabet enzymes.

Core Claim

Solubility and expressibility predictors that look acceptable in aggregate — NetSolP, PROTSOLM, the Bacillus subtilis expression model — conceal large worst-group failures on intersecting biophysical subgroups (fold class × disulfide content × amino-acid composition × length), and these failures are worst precisely on reduced-alphabet proteins of prebiotic interest. Aligning the model's internal representations conditionally across those intersections — adapting a technique built for deepfake detection — will close the worst-group gap and, as a side effect, improve prediction on composition-shifted proteins. The claim is falsifiable: if existing models show small worst-group gaps on curated benchmarks, the fairness lens adds nothing and we will say so.

One caveat up front. The "protected attributes" here are properties of proteins, not people; the stakes are wasted constructs and slowed science rather than discrimination. We borrow intersectional fairness as a methodological lens because the mathematical problem — an aggregate metric hiding failures on $2^d$ sparse, correlated subgroups — is the same one.

Research Program

The program has three parts: an audit, a mitigation, and a wet-lab validation.

The audit defines biophysical "attributes" for every protein in the major expression benchmarks: fold class, disulfide-bond count, late-amino-acid fraction (the fraction of C, F, M, T, W, Y — the residues Lu et al. replaced when they rebuilt a flavodoxin from the early amino acids Ala, Leu, Val), length, and predicted aggregation-prone segment density. We then stratify the test sets of PSI: Biology, Price, PDBSOL, and the Novozymes B. subtilis dataset by intersections of these attributes and measure worst-group performance. Because $d$ attributes yield $2^d$ cohorts and real datasets thin out fast, we estimate intersectional error under data sparsity using the total-correlation bounds and greedy attribute-partitioning heuristic of Molina and Loiseau, which control how much intersectional unfairness can hide behind marginal statistics when attributes are correlated. The headline audit metric is the worst-group gap

$$\Delta_{\text{worst}} = \max_{G}\,|\mathrm{AUC}_G - \mathrm{AUC}_{\text{all}}|,$$

where $G$ ranges over all subgroup intersections with at least a minimum sample size, $\mathrm{AUC}_G$ is the model's AUC inside group $G$, and $\mathrm{AUC}_{\text{all}}$ is the aggregate AUC.

The mitigation adapts FairAlign, which Das et al. built to stop deepfake detectors from exploiting demographic shortcuts: a Conditional Kernel Bures alignment loss that matches the model's embedding distributions conditionally across groups in a high-dimensional kernel space. We apply this alignment across the biophysical intersections defined above during fine-tuning of ESM/ProtT5-based solubility models, replacing demographic groups with biophysical blocks (merged by the greedy partitioner where data is thin). For the host-transfer axis — the known failure of E. coli-trained models on B. subtilis — we additionally test a FairLoRA-style parameterization in which a fine-tuned adapter's weight update $\Delta W = U S_g V^T$ shares its singular vectors across hosts while the singular values $S_g$ are host-specific, mirroring how Li et al. shared representations across hospitals while adapting to demographic groups.

The wet-lab validation builds a graded reduced-alphabet library: starting from the flavodoxin oxidoreductase backbone that Lu et al. reconstructed (whose primitive variant retained electron transfer but showed weakened cofactor binding, with hydroquinone dissociation constant $\text{Kd}_{\text{hq}} = 43.604$ mM), we generate a ladder of variants with progressively stronger alphabet restriction and two additional folds. Each variant is expressed in E. coli with and without the artificial solubility tag XXA; constructs that still fail go to Drosophila S2 secretion. Measured soluble yields then serve as ground truth for whether audited-and-aligned predictors rank reduced-alphabet proteins better than aggregate-trained ones.

Proposed Experiments

Experiment 1 runs the audit on existing models. We evaluate NetSolP on its curated PSI: Biology split (reported: AUC 0.73, MCC 0.29) and Price set (reported: AUC 0.76), and PROTSOLM on PDBSOL-test (reported: accuracy 0.794), each stratified by our biophysical intersections. The question is how big $\Delta_{\text{worst}}$ is; our working hypothesis, by analogy with the 18.37% baseline skin-tone gap Das et al. found where the ethnicity gap was only 8.11%, is that composition-related attributes will show the largest gaps. We also test point-mutation sensitivity on the CamSol mutational dataset, where NetSolP's own authors report limited sensitivity; no reported result found on Lacuna for CamSol performance numbers, so we treat this as a measurement we must produce ourselves.

Experiment 2 trains the aligned model. Using the identical PSI: Biology training data, sequence-identity partitioning, architecture, and tuning budget as NetSolP, we add conditional kernel alignment across the merged biophysical blocks. Success is: aggregate AUC within ~0.01–0.02 of the NetSolP baseline's 0.73, with a large reduction in $\Delta_{\text{worst}}$, plus improved AUC on the Price external set (baseline 0.76). The critical ablation trains the same model with marginal (single-attribute) alignment only: if the fairness-gerrymandering story transfers, marginal alignment will shrink per-attribute gaps while leaving a residual worst-intersection gap that the intersectional version closes.

Experiment 3 is the wet-lab panel: roughly 30–60 reduced-alphabet constructs across the three folds, spanning the alphabet-restriction ladder. We compare baseline versus aligned predictors on ranking correlation with measured soluble yield, and on their ability to triage — predicting which constructs need the XXA tag (which gave TMPRSS2 a 16-fold activity boost and raised its melting temperature from 67.7 °C to 73.8 °C) versus which must go straight to S2 secretion. The B. subtilis model of Deep protein representations enable recombinant protein expression prediction (AUC 0.64, with actual precision above 80% for predictions made at ≥80% confidence) sets the achievable precision bar for a hard host-shifted problem, which is what reduced-alphabet proteins effectively are.

Baselines

The naive reference point is doing nothing: apply the released aggregate-trained NetSolP unchanged, taking its global AUC of 0.73 on PSI: Biology (0.76 on Price) as the number any mitigation must not meaningfully degrade, and treat its unstratified predictions on the reduced-alphabet panel as the status quo a prebiotic lab would actually face today. The strongest existing competitor is PROTSOLM, which fuses ESM2 sequence embeddings with graph neural networks over 3D structures and reaches 0.794 accuracy on PDBSOL; because it uses structure and physicochemical descriptors, it is the model most plausibly sensitive to composition-driven failure modes, so we audit and compare against it on PDBSOL-test under identical stratification and the same confidence-threshold protocol. For fairness of comparison, every model — baseline, PROTSOLM, ours — is evaluated on the same held-out splits with the same sequence-identity cutoffs, given the same training data and the same hyperparameter search budget (measured in tuning trials, so alignment hyperparameters count against our budget, not beside it), and scored with the same code. The key ablation is our own model with marginal-only alignment instead of intersectional alignment: same architecture, same data, same budget, only the grouping changed. Beating the baselines means, concretely: aggregate AUC within 0.02 of the strongest baseline on its home benchmark, worst-intersection gap reduced by at least half, and a materially higher rank correlation with measured soluble yield on the reduced-alphabet panel. A simple physicochemical rule (hydrophobicity and charge sums, the SWI-style baseline NetSolP already outperformed) is included as a floor.

Why not just…?

Why not just screen everything in the wet lab? Because the arithmetic does not work at the scale this question needs. The FAS2FURIOUS pipeline screens up to 46 constructs in 2 weeks with >90% assembly efficiency and rescued 15 of 18 difficult targets, but stable lines take a further 4 weeks of selection and the authors themselves note reagent costs forced them to halve reaction volumes. A graded reduced-alphabet library across three folds with tag and host arms runs into the hundreds of constructs; the B. subtilis study needed 4,487 genes to train a model at all. Screening answers "did this construct work" but never builds the transferable knowledge of which biophysical intersections fail, which is the scientific output here. That said, this alternative is a real threat to the mitigation half of the proposal: if the audit shows worst-group gaps are small, model-based triage is not worth its complexity and pure screening wins. Experiment 1 is designed to settle that cheaply, before any wet-lab money is spent.

Why not just fuse a universal solubility tag onto everything? Because the tags demonstrably do not work universally: Ye et al. found that SUMO, MBP, and GST all completely failed to solubilize TMPRSS2 in E. coli, and even the successful artificial XXA tag requires a separate protease cleavage step whose scalability across architectures its own authors flag as unproven. The deeper point is that tags are a rescue, not a prediction — a lab still needs to know which constructs to tag, which to send to secretion hosts, and which to abandon. Our proposal explicitly uses XXA as one arm of the validation panel, so the experiment directly measures the limit of "tag everything": if XXA rescues nearly all reduced-alphabet constructs regardless of intersection, the predictor's triage value shrinks and we will report that honestly.

Why not just resample or add a single-attribute fairness penalty? The fairness literature itself says this fails in exactly the way we care about. Du et al. show that satisfying marginal parity lets an optimizer shift errors onto intersecting minorities — fairness gerrymandering — and on Adult Census the standard Prejudice Remover intervention cost accuracy (83.6% down to 81.7%) for a marginal parity gain that says nothing about intersections. Molina and Loiseau prove that when attributes are correlated, marginal fairness does not bound the intersectional gap, which scales with the attributes' total correlation. Biophysical attributes are strongly correlated (disulfide-rich proteins are enriched in certain folds; reduced-alphabet proteins are depleted of aromatics), so this is the adversarial regime for marginal methods. The marginal-alignment ablation in Experiment 2 is the direct test: if it matches the intersectional version, the simpler method wins and we adopt it.

Why not just use physicochemical rules instead of language models? Because the comparisons already ran. In the B. subtilis study, simple amino-acid-frequency baselines performed clearly worse than the UniRep deep representations; in NetSolP, the transformer beat traditional solubility tools and the SWI baseline across sequence lengths, precisely because solubility depends on sequence context and N-terminal translation dynamics rather than residue sums. Composition-only rules also cannot represent fold class or disulfide topology, which are two of our intersecting attributes. We still include a physicochemical baseline as a floor, but the interesting race is between deep predictors, not against heuristics.

Decisive Checks

Two results would kill the proposal cleanly. First, if the audit of Experiment 1 finds worst-intersection gaps under a few AUC points across all four benchmarks for both NetSolP and PROTSOLM, then aggregate evaluation is adequate for protein expression and the fairness import is unjustified; we would publish the audit as a negative result and stop. Second, if intersectional alignment closes the benchmark gaps but does not improve ranking on the reduced-alphabet panel — that is, if the prebiotic regime is too far out of distribution for alignment to help — then the mitigation is a benchmark curiosity. The converse outcomes are the payoff: a demonstrated, measurable blind spot in tools that labs use daily, a fix that costs almost nothing in aggregate accuracy, and — for the origin-of-life community — a reliable computational screen for which reduced-alphabet enzyme designs are even expressible, converting what Lu et al. could only do by trial and error in E. coli into a planned experiment. The prebiotic chemistry that motivates these proteins, from thioester-mediated RNA aminoacylation yielding 93–98% peptidyl-RNA coupling to the unproven existence of any ribozyme that reduces ribonucleotides, will be settled in test tubes; our contribution is making sure the proteins meant to test it can actually be made.