NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Pingchuan Ma, Zongjie Li, Ao Sun, Shuai WangarXiv 2023 · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities, but they remain prone to generating unethical content. While existing safety filters effectively mitigate overtly toxic outputs—such as hate speech or incitement to violence—they often fail to detect "subtly unethical" suggestions. These are outputs that appear helpful or empathetic on the surface but violate social norms, fairness, or professional ethics in specific contexts. This research introduces a novel framework, the Suggest-Critique-Reflect (SCR) process, designed to identify and repair these ethical "bugs" by leveraging the model's own capacity for behavioral consistency.

Methodology: The SCR Framework

The proposed system operates through a three-stage pipeline: Test Case Enhancement, the SCR Oracle, and On-the-Fly (OTF) Repairing.

The three-stage pipeline for testing and repairing unethical suggestions, including enhancement, the SCR oracle, and automated repair.

1. Test Case Enhancement

To evaluate models effectively, the researchers developed ETHICSSUITE, a benchmark of approximately 20,000 contextualized moral scenarios. Using ChatGPT as an "enhancer," simple ethical queries were transformed into complex, realistic narratives covering 15 topics, including accountability, pedagogy, and personal expression.

2. The Suggest-Critique-Reflect (SCR) Oracle

The core of the framework is the SCR process. Rather than relying on an external "ground truth" or human judge, the system tests for internal consistency. A "critic" model evaluates the "suggester" model's initial response. If the suggester, upon reflecting on this critique, accepts that its original advice was flawed, the suggestion is flagged as unethical. This behavioral inconsistency serves as a proxy for identifying ethical failures.

Algorithm 1: The technical pseudocode for the Suggest-Critique-Reflect (SCR) process.

3. On-the-Fly (OTF) Repairing

When a suggestion is flagged, the system utilizes the generated critique as a prompt to guide the suggester in real-time. This allows the model to refine its output, producing a revised response that aligns better with ethical standards.

Key Results and Insights

The researchers tested seven prominent LLMs, including ChatGPT and GPT-4. The SCR process demonstrated significant efficacy:

  • Detection Performance: The SCR oracle achieved an average F1 score of 0.81, outperforming specialized tools like Delphi and the OpenAI Moderation API.
  • Repair Success: The OTF repair mechanism successfully improved the ethicality of suggestions in 81.8% of cases for Llama-13B and 95.1% for ChatGPT.
  • Prevalence of Issues: The study uncovered 109,824 unethical suggestions across the test suite, highlighting that even advanced models like GPT-4 are susceptible to subtle ethical slips regarding fairness and empathy.

A key insight from the study is that cross-model critiquing (e.g., using Vicuna to critique ChatGPT) is often more effective than self-critiquing, as different models possess distinct "blind spots" based on their training data.

Discussion and Future Work

While the SCR process is highly effective, it is not without limitations. The system's accuracy depends on the "critic" model's ethical alignment; if both models share the same systemic bias, unethical suggestions may go undetected. Additionally, the multi-step process introduces computational overhead, though the reflection phase is relatively fast.

Future research aims to move beyond real-time repairs toward using SCR-generated data to fine-tune models. By incorporating these ethical reflections directly into model weights, researchers hope to develop LLMs with inherently more robust ethical reasoning capabilities.

Summary updated

BibTeX
@misc{ma2023oops,
  author = {Pingchuan Ma and Zongjie Li and Ao Sun and Shuai Wang},
  title = {{"Oops, Did I Just Say That?" Testing and Repairing Unethical Suggestions of Large Language Models with Suggest-Critique-Reflect Process}},
  year = {2023},
  eprint = {2305.02626},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.02626},
}
Figure