mlsanityData to 7 Oct 2026

MTTM: Metamorphic Testing for Textual Content Moderation Software

arXiv 2302.05706 ↗First posted 11 Feb 2023cs.CL cs.SEcited by 20

Not on the map. Why?

Abstract (arXiv)

The exponential growth of social media platforms such as Twitter and Facebook has revolutionized textual communication and textual content publication in human society. However, they have been increasingly exploited to propagate toxic content, such as hate speech, malicious advertisement, and pornography, which can lead to highly negative impacts (e.g., harmful effects on teen mental health). Researchers and practitioners have been enthusiastically developing and extensively deploying textual content moderation software to address this problem. However, we find that malicious users can evade moderation by changing only a few words in the toxic content. Moreover, modern content moderation software performance against malicious inputs remains underexplored. To this end, we propose MTTM, a Metamorphic Testing framework for Textual content Moderation software. Specifically, we conduct a pilot study on 2,000 text messages collected from real users and summarize eleven metamorphic relations across three perturbation levels: character, word, and sentence. MTTM employs these metamorphic relations on toxic textual contents to generate test cases, which are still toxic yet likely to evade moderation. In our evaluation, we employ MTTM to test three commercial textual content moderation software and two state-of-the-art moderation algorithms against three kinds of toxic content. The results show that MTTM achieves up to 83.9%, 51%, and 82.5% error finding rates (EFR) when testing commercial moderation software provided by Google, Baidu, and Huawei, respectively, and it obtains up to 91.2% EFR when testing the state-of-the-art algorithms from the academy. In addition, we leverage the test cases generated by MTTM to retrain the model we explored, which largely improves model robustness (0% to 5.9% EFR) while maintaining the accuracy on the original test set.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Builds on 36 of its 87 references that are in the map. First posted on arXiv 11 Feb 2023.

Builds on

36 of 87 references.

References · 36

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  4. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  5. 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
  6. 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 724
  7. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
  8. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
  9. 2017Tacotron: Towards End-to-End Speech Synthesiscited by 487
  10. 2020HateXplain: A Benchmark Dataset for Explainable Hate Speech Detectioncited by 403
  11. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
  12. 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
24 more
  1. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  2. 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 307
  3. 2019Machine Learning Testing: Survey, Landscapes and Horizonscited by 213
  4. 2017Deep Learning for Hate Speech Detection in Tweetscited by 180
  5. 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 99
  6. 2022Improving Adversarial Transferability via Neuron Attribution-Based Attackscited by 92
  7. 2020Reevaluating Adversarial Examples in Natural Languagecited by 83
  8. 2020Metamorphic Testing: A New Approach for Generating Next Test Casescited by 71
  9. 2021Bad Characters: Imperceptible NLP Attackscited by 69
  10. 2021Hatemoji: A Test Suite and Adversarially-Generated Dataset for Benchmarking and Detecting Emoji-based Hatecited by 50
  11. 2021Exploring Adversarial Robustness of Multi-Sensor Perception Systems in Self Drivingcited by 45
  12. 2019Automatic Testing and Improvement of Machine Translationcited by 35
  13. 2019Tackling Online Abuse: A Survey of Automated Abuse Detection Methodscited by 33
  14. 2018Identifying Implementation Bugs in Machine Learning based Image Classifiers using Metamorphic Testingcited by 30
  15. 2019Structure-Invariant Testing for Machine Translationcited by 27
  16. 2021RobOT: Robustness-Oriented Testing for Deep Learning Systemscited by 27
  17. 2020Testing Machine Translation via Referential Transparencycited by 19
  18. 2019Coverage Guided Testing for Recurrent Neural Networkscited by 15
  19. 2022AEON: A Method for Automatic Evaluation of NLP Test Casescited by 15
  20. 2022Understanding and Improving Sequence-to-Sequence Pretraining for Neural Machine Translationcited by 14
  21. 2022Tencent's Multilingual Machine Translation System for WMT22 Large-Scale African Languagescited by 13
  22. 2018Mind Your Language: Abuse and Offense Detection for Code-Switched Languagescited by 11
  23. 2018FPETS : Fully Parallel End-to-End Text-to-Speech Systemcited by 4
  24. 2021Enhancing Model Robustness By Incorporating Adversarial Knowledge Into Semantic Representationcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 7; 2024: 6; 2025: 5; 2026: 2.

20 papers.

Sort:

By area:

  1. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 478
  2. 2023Emotionally Numb or Empathetic? Evaluating How LLMs Feel Using EmotionBenchcited by 54
  3. 2023BiasAsker: Measuring the Bias in Conversational AI Systemcited by 52
  4. 2024Glitch Tokens in Large Language Models: Categorization Taxonomy and Effective Detectioncited by 27
  5. 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualitiescited by 20
  6. 2024New Job, New Gender? Measuring the Social Bias in Image Generation Modelscited by 15
  7. 2025Metamorphic Testing of Large Language Models for Natural Language Processingcited by 12
  8. 2023"Oops, Did I Just Say That?" Testing and Repairing Unethical Suggestions of Large Language Models with Suggest-Critique-Reflect Processcited by 9
  9. 2024MORTAR: Multi-turn Metamorphic Testing for LLM-based Dialogue Systemscited by 7
  10. 2023Validating Multimedia Content Moderation Software via Semantic Fusioncited by 5
  11. 2024MeTMaP: Metamorphic Testing for Detecting False Vector Matching Problems in LLM Augmented Generationcited by 4
  12. 2023An Image is Worth a Thousand Toxic Words: A Metamorphic Testing Framework for Content Moderation Softwarecited by 3
8 more
  1. 2024An Empirical Study on Large Language Models in Accuracy and Robustness under Chinese Industrial Scenarioscited by 3
  2. 2025Are All Prompt Components Value-Neutral? Understanding the Heterogeneous Adversarial Robustness of Dissected Prompt in Large Language Modelscited by 3
  3. 2025Fairness Testing in Retrieval-Augmented Generation: How Small Perturbations Reveal Bias in Small Language Modelscited by 1
  4. 2024VEglue: Testing Visual Entailment Systems via Object-Aligned Joint Erasingcited by 0
  5. 2025Metamorphic Testing for Audio Content Moderation Softwarecited by 0
  6. 2025Chinese Morph Resolution in E-commerce Live Streaming Scenarioscited by 0
  7. 2026Think Before You Code: Dual Reasoning for the NLSafety-Utility Trade-Off in LLM Code Generationcited by 0
  8. 2026The Consistency Dilemma in LLMs: Generator-Evaluator Agreement and Vulnerability to Mistakescited by 0