Abstract
We demonstrate that a protocol combining single-turn breadth, multi-turn depth, and layered mitigations materially improves chatbot safety and offers a practical template for patient-facing chatbots. Future work should expand on this protocol with chatbots in more diverse clinical domains, and with a larger panel of evaluators.
Introduction: The Challenge of Behavioral Safety
As Large Language Models (LLMs) are increasingly deployed in clinical and social care settings, the stakes for "hallucinations" rise. While the industry has leaned heavily on Retrieval-Augmented Generation (RAG) to ground models in vetted facts, factual correctness is only half the battle.
The core challenge identified in this work is Behavioral Adherence (BA): ensuring a chatbot stays within its prescribed scope (e.g., refusing to give medical advice) and maintains safety boundaries (e.g., handling user distress appropriately). Current evaluation methods often rely on single-turn "jailbreaks," which fail to capture how a model’s defenses might crumble over a sustained conversation. This paper provides a systematic way to uncover these latent vulnerabilities and test targeted mitigations.
Methodology: A Robust Red-Teaming Protocol
The authors developed a task-informed red-teaming protocol centered on a case study of a social care chatbot for Health-Related Social Needs (HRSN). The protocol involves three main components: error stratification, dual-phase attacks, and layered mitigations.
Error Stratification
A critical contribution of this work is the distinction between two types of errors:
- Knowledge Adherence (KA): Staying faithful to retrieved documents and correcting user mistakes regarding the resource.
- Behavioral Adherence (BA): Following instructions regarding tone, scope, and safety, such as directing users to professional resources for unknown questions.
Dual-Phase Attacks and Datasets
The study utilized a manually curated evaluation corpus consisting of:
- Single-turn breadth: 140 probes across seven attack vectors (e.g., prompt injection, user distress, advice-seeking).
- Multi-turn depth: A "stress test" where a human evaluator persistently steers the conversation back to a dangerous request for up to five turns, using an "any-turn failure" metric.
Key Insights and Results
The evaluation revealed a "false sense of security" in single-turn tests. While the chatbot often appeared safe initially, its adherence degraded significantly under persistent pressure. For example, the error rate for user_distress jumped from 0% in single-turn to 40% in multi-turn.
RAG Solves Facts, Not Behavior
The baseline model (Claude 3.5 Sonnet) committed zero factual errors (KA) but struggled with behavioral rules (BA). This suggests that for high-stakes bots, developers should prioritize model "overstepping" over factual "lying." In one alarming multi-turn domestic violence scenario, the unmitigated model defaulted to "victim-blaming" advice rather than sticking to its refusal scripts.
Mitigation Efficacy
The researchers tested two primary mitigation strategies:
- Prompt Augmentation (PA): Appending explicit negative constraints to the system prompt, which reduced total errors by 60%.
- Document Augmentation (DA): Adding a localized FAQ to the RAG corpus, which eliminated all single-turn
user_distresserrors.
When both PA and DA were combined, high-severity errors were eliminated entirely, even in multi-turn stress tests. This "safe failure" loop—where the model repeatedly refuses dangerous requests and redirects to professionals—is a technical success in safety-critical contexts.
Conclusion and Future Directions
While the protocol proved effective, the authors note limitations regarding model specificity and the modest sample size of the evaluation corpus. Future work should expand this protocol to more diverse clinical domains, such as oncology, where complex jargon might increase risk, and involve a larger panel of clinical evaluators to refine risk-severity scoring.
Summary updated