Adaptive Adversarial Evaluation: A Search--Freeze--Replay Tutorial

Rahul Gupta, Swastik Roy, Anjali Narayan-Chen, Akash Bhatia, Rosa Català, Michael O'Herlihy, Venkatesh SaligramaNeurIPS 2026 Education Track 2026

TL;DR

Finding a clever prompt that breaks an AI model is one thing; proving that the trick actually generalizes to new, unseen cases is another. This tutorial introduces Search–Freeze–Replay, a hands-on teaching protocol that brings classic experimental discipline to adaptive adversarial evaluation—helping learners test chatbots, tool-using agents, and self-evolving policies without fooling themselves with reused test data.

What Problem Does This Paper Address?

Imagine you’re trying to red-team an AI model. You tweak a prompt a few times on three test questions until you find a phrasing that makes the model fail. You’ve proven that the model can fail on those specific inputs—but does that attack actually transfer to new questions?

This is the core tension of adaptive adversarial evaluation: actively searching for prompt variations or interactions that expose failures, rather than just running a static checklist. When people blur the line between discovering a failure and confirming it, they accidentally overfit their attacks (or their fixes) to the examples they already saw. The authors—researchers from Amazon and Reddit—designed this tutorial for advanced undergraduates, early-graduate students, and applied-ML practitioners to teach how to separate discovery from confirmation, without requiring a security background, GPUs, or paid APIs.

Methods

The centerpiece of the paper is the Search–Freeze–Replay protocol, which structures evaluation into three strict phases:

  1. Search: Declare your candidate attacks (or policy updates), your scoring rule, and your budget. Search only on Development ($D$) cases.
  2. Freeze: Lock in the winning rule or update, along with the target model version, evaluator, baseline, and configuration.
  3. Replay: Test the frozen setup on Held-out ($H$) cases—untouched examples compared against a same-case baseline—and separately check Canaries ($C$), which are behaviors that must still work (like outputting valid JSON).
Table defining the three data collections: Development D, Held-out H, and Canaries C

To make this concrete, the tutorial pairs a 26-slide editable PowerPoint lesson (including a real-world case study on Reddit moderation) with an executed Jupyter notebook. The notebook walks learners through three modules:

  • Chat models: Inspecting chatbot responses using a simple, explicit toy scoring rule.
  • Tool-using agents: Replaying identical frozen requests through permissive and enforcing routers, teaching learners to read action logs by separating attempted, authorized, blocked, and executed actions rather than just looking at the final answer.
  • Self-evolving agents: Comparing an old policy against a selected patch on untouched tasks, while treating a frozen safety canary as a separate release gate rather than part of a single net score.

Learners also practice writing Evidence Cards—short records documenting the system, claim, search budget, frozen procedure, baseline, results, and remaining limits—and finish with a capstone designing an evaluation for a sandboxed software-engineering agent.

Datasets

The tutorial’s companion notebook runs a small open model locally using mock tools, meaning no external datasets, API keys, or real tool side effects are required. Instead, it relies on small, synthetic examples designed to teach how to interpret evidence. The slide deck also includes a real-world case study drawn from Reddit moderation.

Key Insights and Ideas

  • Never reuse discovery data as held-out evidence ($D \cap H = \emptyset$): If you see your replay results and decide to tweak your attack or update, those held-out cases are now contaminated—they’ve become development data, and you need fresh evidence for a new confirmatory claim.
  • Canaries aren’t a general safety score: Passing a canary check (like valid JSON formatting or a specific safety constraint) only proves that specific regression didn't happen; it doesn't establish general utility or safety.
  • Logs tell the real story for agents: For tool-using agents, a final answer isn't enough. Blocking every unauthorized tool request proves your permission check worked on those requests—it does not prove the model stopped trying to make unauthorized requests.
  • Separate discovery from confirmation: While automated red-teaming and agent evaluation are emerging fields, the underlying fix is classic experimental hygiene: lock your hypothesis before you test it.

Key Results

Because this is an Education Track tutorial rather than an empirical benchmark paper, it does not report model accuracy or attack success rates on external benchmarks. Instead, its deliverables are a complete, self-contained teaching package:

  • A 26-slide lesson with teaching notes and interactive checkpoints.
  • An executed Jupyter notebook featuring 3 hands-on modules, 3 Evidence Cards, an executable release gate with sanity checks, and a capstone project graded on a 12-point rubric.

Limitations and Future Work

The authors are upfront about the boundaries of their tutorial:

  • Synthetic scope: The notebook’s small synthetic results are meant to teach how to interpret evidence; they are not estimates of real-world vulnerability prevalence.
  • Simplified proxies: The chat-model module uses an explicit toy scoring rule rather than a full-scale evaluator like StrongREJECT, and the third module selects among prompt-policy candidates rather than implementing full recursive self-improvement (like Reflexion).
  • Protocol naming: Search–Freeze–Replay is a teaching protocol, not a claim that every linked paper in the literature uses that exact terminology.

Summary updated

BibTeX
@inproceedings{gupta2026adaptive,
  author = {Rahul Gupta and Swastik Roy and Anjali Narayan-Chen and Akash Bhatia and Rosa Català and Michael O'Herlihy and Venkatesh Saligrama},
  title = {{Adaptive Adversarial Evaluation: A Search--Freeze--Replay Tutorial}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zQmnT013br},
}
Figure