Deterministic Retrieval-Grounded Language Models for Clinical Counseling: Large-Scale Multilingual Evaluation with Cryptographically Verifiable Pipelines
Preprint
- 17 March 2026
- preprint
- Published by MDPI AG in Preprints.org
Abstract
Large language models (LLMs) show considerable promise for mental health dialogue systems, yet their deployment raises pressing concerns around safety, hallucination, reproducibility, and clinical reliability (Ji et al., 2023; Bommasani et al., 2021). We present a deterministic architecture for AI-assisted counseling that combines retrieval-augmented response generation, structured dialogue management, rule-based risk routing, and a cryptographically verifiable evaluation pipeline. The system was evaluated on two independent datasets spanning 1,895 counseling scenarios in English and Chinese. On 783 English counseling cases, the system achieved mean scores of 4.33/5 for empathy, 3.55/5 for clinical fidelity, and 4.45/5 for safety. On 1,112 Chinese cognitive-behavioral therapy (CBT) scenarios, the corresponding scores were 4.85/5, 4.73/5, and 4.77/5. No system failures or unintended diagnostic outputs were observed across either evaluation. Ablation experiments demonstrate that retrieval grounding and deterministic safety routing each contribute significantly to overall performance, with the former driving clinical fidelity and the latter driving safety. These results suggest that deterministic, retrieval-grounded LLM architectures can serve as a viable foundation for scalable and safe psychological support systems.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Evaluating large language models on medical evidence summarizationnpj Digital Medicine, 2023
- Large language models encode clinical knowledgeNature, 2023
- Survey of Hallucination in Natural Language GenerationACM Computing Surveys, 2023
- What Does it Mean for a Language Model to Preserve Privacy?2022
- AI in health and medicineNature Medicine, 2022
- On the Opportunities and Risks of Foundation ModelsarXiv, 2021
- On the Dangers of Stochastic Parrots2021
- The practical implementation of artificial intelligence technologies in medicineNature Medicine, 2019
- An Empathy-Driven, Conversational Artificial Intelligence Agent (Wysa) for Digital Mental Well-Being: Real-World Data Evaluation Mixed-Methods StudyJMIR mHealth and uHealth, 2018
- Delivering Cognitive Behavior Therapy to Young Adults With Symptoms of Depression and Anxiety Using a Fully Automated Conversational Agent (Woebot): A Randomized Controlled TrialJMIR Mental Health, 2017