Multi agent approach improves text detoxification balancing safety and meaning

AMEND: Constraint-Guided Multi-Agent Text Detoxification with Isolated Critics

Computation and Language

Summary

Removing harmful or toxic language from text is tricky because you want to keep the original meaning and make sure the new text still reads well. The authors propose a method called AMEND that breaks down the problem into different roles that suggest fixes, separate judges that evaluate these fixes without bias, and then a strict filtering step to keep meaning and fluency intact. This approach performs better than previous methods that either combine all goals into one score or rely on many rounds of debate which can drift away from the meaning. AMEND Lite speeds things up by doing just one round of fixes when necessary, making the process more efficient while still improving safety.

What this means in practice

  • For content moderation teams: Improve automated filtering of harmful language while preserving original meaning and readability for safer online community interactions.
  • For chatbot developers: Generate safer chatbot responses by removing toxic content effectively without losing conversational relevance or fluency.

Authors

Tianyu Wang

Abstract

Text detoxification requires balancing toxicity removal, semantic preservation, and fluency. Existing methods typically optimize an unconstrained scalar objective---enabling safety scores to mask semantic loss---or rely on open-ended iterative debate prone to semantic drift and high computational cost. We propose AMEND, an inference-time framework that decouples detoxification into role-conditioned proposal generation, isolated multidimensional criticism, and constraint-first selection. AMEND evaluates diverse candidates with role-blind critics and enforces strict semantic and fluency feasibility before ranking by utility. To maximize efficiency, AMEND Lite restricts subsequent search to at most one targeted repair round only when residual toxic spans remain. On ParaDetox, one-round selection over diverse roles improves the joint evaluation metric by $+0.0508$ over the best single role. On a frozen confirmation test set, AMEND Lite achieves a joint score of $0.6597 \pm 0.0062$, outperforming unconstrained multi-round loops by $+0.0489$ ($p < 0.05$) while reducing inference requests by 28.4%.