cs.LGMar 4, 2026

Inference-Time Toxicity Mitigation in Protein Language Models

Authors: Manuel Fernández Burda, Santiago Aranguri, Iván Arcuschin Moreno, Enzo Ferrante

Organizations: Laboratory of Applied Artificial Intelligence (LIAA), Institute of Computer Sciences (ICC), CONICET - Universidad de Buenos · AI Safety Argentina (AISAR) · Goodfire · APOLO Biotech

Abstract

Protein language models (PLMs) are becoming practical tools for de novo protein design, yet their dual-use potential raises safety concerns. We show that domain adaptation to specific taxonomic groups can elicit toxic protein generation, even when toxicity is not the training objective. To address this, we adapt Logit Diff Amplification (LDA) as an inference-time control mechanism for PLMs. LDA modifies token probabilities by amplifying the logit difference between a baseline model and a toxicity-finetuned model, requiring no retraining. Across four taxonomic groups, LDA consistently reduces predicted toxicity rate (measured via ToxDL2) below the taxon-finetuned baseline while preserving biological plausibility. We evaluate quality using Fréchet ESM Distance and predicted foldability (pLDDT), finding that LDA maintains distributional similarity to natural proteins and structural viability (unlike activation-based steering methods that tend to degrade sequence properties). Our results demonstrate that LDA provides a practical safety knob for protein generators that mitigates elicited toxicity while retaining generative quality.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Protein Language Models Diverge from Natural Language: Comparative Analysis and Improved Inference

    Feb 24, 2026Anna Hart, Chi Han, Jeonghwan Kim +2Protein Language ModelsProtein Representation Learning

  2. AgentPLM: Agentic Protein Language Models with Reasoning-Augmented Decoding for Protein Sequence Design

    Jun 1, 2026Sahil Rahman, Maxx Richard RahmanRL for Language ModelsDirect Preference Optimization

  3. PFArena: Benchmarking Language Models for Protein Modification

    Sep 24, 2026Yawen Ouyang, Xinbo Zhang, Ziyuan Ma +15Protein Fitness PredictionProtein Language Models