| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Safer Responses Through Multi-Agent Red Teaming Debates (ICML 2026)
"It is better to change an opinion than to persist in a wrong one." — Socrates
RedDebate is a fully automated framework that lets a pool of Large Language Models red-team each other through debate. Rather than treating a model's reply as a final answer, RedDebate frames it as a claim to be tested, challenged, and iteratively refined by other agents. An independent evaluator flags unsafe behaviour, a feedback agent distils the incident into a safety lesson, and long-term memory carries those lessons into every future debate — so the system keeps improving itself without any human in the loop.
RedDebate: multiple agents debate a red-teaming prompt across several rounds, an evaluator flags unsafe patterns, and distilled safety insights are stored in memory to prevent future mistakes.
Existing AI-safety pipelines lean on costly human red-teaming or single-model self-assessment, both of which struggle to scale and miss subtle failure modes. Training-time alignment (RLHF, supervised safety tuning, rule-based guardrails) is also bounded by training-signal coverage and is vulnerable to reward hacking and distribution shift, while many unsafe behaviours only emerge at inference time under novel or adversarial prompts.
RedDebate is an inference-time complement to those methods: by forcing LLMs to defend, challenge and revise one another's reasoning, the framework surfaces hidden assumptions and counterexamples that no single agent (and no static guardrail) would catch on its own.
RedDebate is built around three orthogonal axes that can be combined freely on the command line:
Debate scenarios
Long-term memory modules
Datasets & judges
Safety datasets out of the box: HarmBench, CoSafe, Aegis 2, WildJailbreak, XSTest and TriviaQA. The evaluator can be LlamaGuard, the OpenAI moderation API, or any LLM-as-judge.
The full CLI surface — model strings, dataset strings, every flag for every debate flavour and every memory backend, plus checkpointing, resumption and Weights & Biases logging — is documented in RUN.md.
Quick start (a peer debate between three HuggingFace models on HarmBench, LlamaGuard as judge, GPT-4o-mini as the feedback generator):
python main.py \
--models huggingface:mistralai/Mistral-7B-Instruct-v0.2:true \
huggingface:meta-llama/Llama-3.2-3B-Instruct:true \
huggingface:microsoft/Phi-3.5-mini-instruct:true \
--evaluator huggingface:meta-llama/Llama-Guard-3-8B:false \
--feedback_generator openai:gpt-4o-mini:true \
--datasets harmbench:datasets/harmbench/data/behavior_datasets/harmbench_behaviors_text_all.csv \
--debate_rounds 3 \
--textual_memory_index red-debate-memorySee RUN.md for installation, environment variables, and recipes for every supported debate / memory combination.
main.py # CLI entry point redDebate/ run.py # orchestration, checkpointing, W&B logging agents.py # Debate / DevilAngel / SelfCritic / PEFT agents debate.py # Debate, SocraticDebate, DevilAngelDebate self_critique.py # Constitutional self-critique driver memory.py # ShortTerm / LongTerm / VectorStore memories llm.py # Provider-agnostic LLM wrappers + LlamaGuard dataloader.py # Safety-dataset loaders debate_prompts.py # PromptTemplates for every agent role metrics.py # Error / agreement / confusion / diversity metrics bon.py # Standalone Best-of-N baseline guardrails_memory/ # GLTM (NeMo Guardrails) pipeline + paper-ready flows datasets/ # HarmBench, CoSafe, ... + preprocess scripts RUN.md # Full technical / CLI documentation
If you find this work interesting or use the code in your research, please consider citing our paper — it really helps!
@inproceedings{
asad2026reddebate,
title = {RedDebate: Safer Responses Through Multi-Agent Red Teaming Debates},
author = {Ali Asad and Stephen Obadinma and Radin Shayanfar and Xiaodan Zhu},
booktitle = {Forty-third International Conference on Machine Learning},
year = {2026},
url = {https://openreview.net/forum?id=79fSrxFKKx}
}Questions, ideas, or feedback? Feel free to reach out at ali.asad@queensu.ca — happy to chat. Pull requests are also very welcome!
| Back | FazBrowse Home | New Git URL |