Interpretations of a single sentence can vary, particularly when its context is lost. This paper aims to simulate how readers perceive content with varying toxicity levels by generating diverse interpretations of out-of-context sentences. By modeling toxicity, we can anticipate misunderstandings and reveal hidden toxic meanings. Our proposed decoding strategy explicitly controls toxicity in the set of generated interpretations by (i) aligning interpretation toxicity with the input, (ii) relaxing toxicity constraints for more toxic input sentences, and (iii) promoting diversity in toxicity levels within the set of generated interpretations. Experimental results show that our method improves alignment with human-written interpretations in both syntax and semantics while reducing model prediction uncertainty.
ToxiTrace: Gradient-Aligned Training for Explainable Chinese Toxicity Detection
School of Data Science and Engineering, East China Normal University(数据科学与工程学院,东华大学);School of International Chinese Studies, East China Normal University(国际中文学院,东华大学)
Do Prompts Guarantee Safety? Mitigating Toxicity from LLM Generations through Subspace Intervention
Department of Computer Science(计算机科学系);School of Computing, National University of Singapore(新加坡国立大学计算机学院);Department of Electronics and Communications Engineering(电子与通信工程系)