mlsanityData to 7 Oct 2026

"Oops, Did I Just Say That?" Testing and Repairing Unethical Suggestions of Large Language Models with Suggest-Critique-Reflect Process

arXiv 2305.02626 ↗First posted 4 May 2023cs.SE cs.AI cs.HCcited by 9

Not on the map. Why?

Abstract (arXiv)

As the popularity of large language models (LLMs) soars across various applications, ensuring their alignment with human values has become a paramount concern. In particular, given that LLMs have great potential to serve as general-purpose AI assistants in daily life, their subtly unethical suggestions become a serious and real concern. Tackling the challenge of automatically testing and repairing unethical suggestions is thus demanding. This paper introduces the first framework for testing and repairing unethical suggestions made by LLMs. We first propose ETHICSSUITE, a test suite that presents complex, contextualized, and realistic moral scenarios to test LLMs. We then propose a novel suggest-critic-reflect (SCR) process, serving as an automated test oracle to detect unethical suggestions. We recast deciding if LLMs yield unethical suggestions (a hard problem; often requiring human expertise and costly to decide) into a PCR task that can be automatically checked for violation. Moreover, we propose a novel on-the-fly (OTF) repairing scheme that repairs unethical suggestions made by LLMs in real-time. The OTF scheme is applicable to LLMs in a black-box API setting with moderate cost. With ETHICSSUITE, our study on seven popular LLMs (e.g., ChatGPT, GPT-4) uncovers in total 109,824 unethical suggestions. We apply our OTF scheme on two LLMs (Llama-13B and ChatGPT), which generates valid repair to a considerable amount of unethical ones, paving the way for more ethically conscious LLMs.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 36 of its 65 references that are in the map. First posted on arXiv 4 May 2023.

Builds on

36 of 65 references.

References · 36

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2022Training language models to follow instructions with human feedbackcited by 15,712
  6. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  7. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  8. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  10. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  11. 2023A Survey of Large Language Modelscited by 2,537
  12. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
24 more
  1. 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
  2. 2022Survey of Hallucination in Natural Language Generationcited by 2,056
  3. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  4. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
  5. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
  6. 2021Ethical and social risks of harm from Language Modelscited by 957
  7. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
  8. 2020Aligning AI With Shared Human Valuescited by 706
  9. 2023Instruction Tuning with GPT-4cited by 676
  10. 2023AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotatorscited by 171
  11. 2021Can Machines Learn Morality? The Delphi Experimentcited by 140
  12. 2022ProsocialDialog: A Prosocial Backbone for Conversational Agentscited by 109
  13. 2022When to Make Exceptions: Exploring Language Models as Accounts of Human Moral Judgmentcited by 93
  14. 2022The Moral Integrity Corpus: A Benchmark for Ethical Dialogue Systemscited by 92
  15. 2022Fairness Testing: A Comprehensive Survey and Analysis of Trendscited by 61
  16. 2022Towards Identifying Social Bias in Dialog Systems: Frame, Datasets, and Benchmarkscited by 36
  17. 2023Phoenix: Democratizing ChatGPT across Languagescited by 32
  18. 2018Identifying Implementation Bugs in Machine Learning based Image Classifiers using Metamorphic Testingcited by 30
  19. 2021BiasFinder: Metamorphic Test Generation to Uncover Bias for Sentiment Analysis Systemscited by 20
  20. 2023MTTM: Metamorphic Testing for Textual Content Moderation Softwarecited by 20
  21. 2023Towards Safer Generative Language Models: A Survey on Safety Risks, Evaluations, and Improvementscited by 14
  22. 2022Automated Testing of Image Captioning Systemscited by 12
  23. 2020Astraea: Grammar-based Fairness Testingcited by 11
  24. 2021Using Metamorphic Relations to Verify and Enhance Artcode Classificationcited by 5

Built on by

Cited by year

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

9 papers.