"Oops, Did I Just Say That?" Testing and Repairing Unethical Suggestions of Large Language Models with Suggest-Critique-Reflect Process
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023A Survey of Large Language Modelscited by 2,537
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
24 more
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
- 2022Survey of Hallucination in Natural Language Generationcited by 2,056
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2021Ethical and social risks of harm from Language Modelscited by 957
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2020Aligning AI With Shared Human Valuescited by 706
- 2023Instruction Tuning with GPT-4cited by 676
- 2023AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotatorscited by 171
- 2021Can Machines Learn Morality? The Delphi Experimentcited by 140
- 2022ProsocialDialog: A Prosocial Backbone for Conversational Agentscited by 109
- 2022When to Make Exceptions: Exploring Language Models as Accounts of Human Moral Judgmentcited by 93
- 2022The Moral Integrity Corpus: A Benchmark for Ethical Dialogue Systemscited by 92
- 2022Fairness Testing: A Comprehensive Survey and Analysis of Trendscited by 61
- 2022Towards Identifying Social Bias in Dialog Systems: Frame, Datasets, and Benchmarkscited by 36
- 2023Phoenix: Democratizing ChatGPT across Languagescited by 32
- 2018Identifying Implementation Bugs in Machine Learning based Image Classifiers using Metamorphic Testingcited by 30
- 2021BiasFinder: Metamorphic Test Generation to Uncover Bias for Sentiment Analysis Systemscited by 20
- 2023MTTM: Metamorphic Testing for Textual Content Moderation Softwarecited by 20
- 2023Towards Safer Generative Language Models: A Survey on Safety Risks, Evaluations, and Improvementscited by 14
- 2022Automated Testing of Image Captioning Systemscited by 12
- 2020Astraea: Grammar-based Fairness Testingcited by 11
- 2021Using Metamorphic Relations to Verify and Enhance Artcode Classificationcited by 5
Built on by
Citing papers per year: 2023: 5; 2024: 2; 2025: 2.
9 papers.
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2023Can ChatGPT Defend its Belief in Truth? Evaluating LLM Reasoning via Debatecited by 92
- 2024Spontaneous Reward Hacking in Iterative Self-Refinementcited by 24
- 2024An Empirical Categorization of Prompting Techniques for Large Language Models: A Practitioner's Guidecited by 7
- 2023Causality-Aided Trade-off Analysis for Machine Learning Fairnesscited by 6
- 2025Moral Reasoning Across Languages: The Critical Role of Low-Resource Languages in LLMscited by 3
- 2025How Toxic Can You Get? Search-based Toxicity Testing for Large Language Modelscited by 2
- 2023Enhancing Illicit Activity Detection using XAI: A Multimodal Graph-LLM Frameworkcited by 1
- 2023Applying Standards to Advance Upstream & Downstream Ethics in Large Language Modelscited by 0
- 2025Moral Reasoning Across Languages: The Critical Role of Low-Resource Languages in LLMs28 Apr 2025
- 2025How Toxic Can You Get? Search-based Toxicity Testing for Large Language Models3 Jan 2025
- 2024Spontaneous Reward Hacking in Iterative Self-Refinement5 Jul 2024
- 2024An Empirical Categorization of Prompting Techniques for Large Language Models: A Practitioner's Guide18 Feb 2024
- 2023Enhancing Illicit Activity Detection using XAI: A Multimodal Graph-LLM Framework20 Oct 2023
- 2023Challenges and Applications of Large Language Models19 Jul 2023
- 2023Applying Standards to Advance Upstream & Downstream Ethics in Large Language Models6 Jun 2023
- 2023Can ChatGPT Defend its Belief in Truth? Evaluating LLM Reasoning via Debate22 May 2023
- 2023Causality-Aided Trade-off Analysis for Machine Learning Fairness22 May 2023