Manuscript Offprint

arXiv:2609.31062

CG-Probes: Recovering Guardrail Directions from Patient Query Embeddings

Marko Řeháček, Vítězslav Dušek, Martin Rusinko, Vít Nováček

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Marko Reháček ∗^{*}

rehacek@mail.muni.cz

Faculty of Informatics

Masaryk University

Brno, Czech Republic

Vitějslav Dušek ∗^{*} †‡^{\dagger\ddagger}

Dept. of Pediatric Oncology

University Hospital Brno

Brno, Czech Republic

Martin Rusinko ∗^{*}

Masaryk Memorial Cancer

Institute

Brno, Czech Republic

Vít Nováček ‡^{\ddagger}

Faculty of Informatics

Masaryk University

Brno, Czech Republic

Abstract

Patient-facing AI assistants promise valuable support to patients, but incoming queries can pose medical risks. To create guardrails, we work with oncologists to define three ordinal risk axes: Medical Urgency, Psychological Urgency, and Topic Sensitivity. We propose Clinical Guardrail Probes (CG-Probes) to measure the risks from query embeddings. We probe for each axis in the normalized embedding space of frozen embedders via the difference-in-means method, treating each axis as a potential linear direction. To train the probes, we cluster 79,658 Czech oncology search queries with BERTopic and use these clusters to generate pairs of queries with contrastive risk levels via few-shot prompting. We evaluate the approach on 200 queries (90 real, 110 synthetic), each graded by two oncologists, against two open-weight LLMs and a frontier LLM. We find that urgency-based axes are recoverable as linear directions, and the probes are competitive with open-weight LLMs (no significant differences in quadratic-weighted κ\kappa) at a fraction of the latency. Each axis yields a scalar score that clinicians can inspect and use to set escalation thresholds. The pipeline requires only search logs, axis definitions, and black-box access to the embedding model, suggesting transferability across healthcare domains. Robust validation on new queries and axes remains future work.

CCS Concepts

• Information systems → Clustering and classification; • Applied computing → Consumer health; • Computing methodologies → Natural language processing; Learning latent representations.

References (25)