AIResearch AIResearch
Back to articles
Security

AI Safety Method Cuts Harmful Outputs Sharply

As artificial intelligence systems become integral to daily life, from customer service to content creation, their potential to generate harmful or undesirable outputs poses significant risks. A recen…

AI Research
November 14, 2025
3 min read
AI Safety Method Cuts Harmful Outputs Sharply

As artificial intelligence systems become integral to daily life, from customer service to content creation, their potential to generate harmful or undesirable outputs poses significant risks. A recent study introduces a novel technique that substantially reduces the probability of such outputs in language models, addressing a critical need for safer AI deployment.

The researchers developed a method called RePULSe (Reducing the Probability of Undesirable Low-reward Sequences), which enhances standard reinforcement learning approaches. Unlike traditional methods that primarily optimize for high-reward outputs, RePULSe explicitly targets and reduces the likelihood of low-reward sequences—those deemed harmful or undesirable. This is achieved by augmenting the training loss with a probabilistic inference component that guides the model to sample and then suppress these problematic outputs.

Methodologically, RePULSe employs a learned proposal distribution to draw samples from regions of the model's output space that are likely to be undesirable. This involves using techniques like self-normalized importance sampling to approximate a target distribution that emphasizes low-reward sequences. During training, the model receives updates that decrease the probability of these sampled outputs, while maintaining overall performance through a combination of reinforcement learning and gradient-based adjustments. The approach dynamically adapts as the model learns, continuously prioritizing the reduction of undesirable behaviors.

Experimental results demonstrate RePULSe's effectiveness. In a toy experiment using DistilGPT2 and a toxicity classifier, RePULSe reduced the total probability of bad outputs—defined by a list of offensive tokens—to near zero, outperforming baselines like REINFORCE and PPO without sacrificing average reward. More realistic tests with models such as SmolLM-135M-Instruct and Llama-3.2-1B-Instruct showed that RePULSe improves the trade-off between maintaining high average performance and minimizing undesirable outputs. For instance, in one setting, it achieved lower probabilities of outputs with rewards below a threshold (e.g., -5 or -7) while keeping returns competitive. Additionally, RePULSe exhibited increased robustness against adversarial attacks, such as those using Greedy Coordinate Gradient, reducing success rates in eliciting harmful responses.

The implications of this research are profound for real-world AI applications. By reducing the frequency of harmful outputs, RePULSe could enhance the safety of chatbots, content generators, and other AI systems, mitigating risks like misinformation or offensive language. This is particularly crucial as AI models handle billions of queries, where even rare failures can have severe consequences, as highlighted by incidents like the chatbot-related suicide case mentioned in the paper. The method's focus on probabilistic inference offers a scalable way to address tail risks in AI behavior, potentially informing future safety standards.

However, the study acknowledges limitations. RePULSe's performance depends on the model nearing convergence during training, and its efficiency may vary with scale. The reliance on a learned proposal distribution requires careful exploration to cover diverse undesirable outputs, which could be challenging in larger models. Future work should explore these aspects and test the method on more complex tasks and datasets to validate its broader applicability.

About the Author

Guilherme A.

Guilherme A.

Former dentist (MD) from Brazil, 41 years old, husband, and AI enthusiast. In 2020, he transitioned from a decade-long career in dentistry to pursue his passion for technology, entrepreneurship, and helping others grow.

Connect on LinkedIn