AI
New method generates socially grounded synthetic data to stress-test AI models on sensitive tasks
Researchers introduce NodeSyn, a framework that creates realistic test queries reflecting societal contexts to evaluate how well language models handle medical advice and self-harm risks.
Evaluating how well AI language models handle sensitive domains like medical advice and mental health risks remains a stubborn challenge. Generic synthetic test datasets typically miss the social and contextual nuances that make certain queries genuinely risky, leaving gaps in safety assessment.
Researchers behind NodeSyn propose a different approach: pair a trained taxonomy generator with published credible sources and specific demographic and contextual attributes to craft evaluation queries that reflect real-world societal scenarios and their potential harms.
How the method works#
The framework operates by extracting sensitive attributes and contextual details from reliable sources, then using these to ground synthetic queries in authentic societal contexts. Rather than generating broad test cases, NodeSyn systematically varies dimensions—including affected populations, occupations, geographic contexts, and user personas—to capture the social texture of high-stakes interactions.
Significantly higher failure rates#
When tested across ten open-weight and proprietary LLMs in two domains—Medical Advice and Self-Harm—NodeSyn queries proved far more challenging than baseline alternatives:
- NodeSyn-generated datasets triggered failure rates 3.1 times higher than generic synthetic baselines
- Performance dropped 2.4 times more than structured synthetic benchmarks
- Even 1.6 times higher than authentic human-authored test queries
The framework ranked first on 8 of 10 models in each domain when evaluated against human-validated assessment tools.
Taxonomy depth matters#
Ablation studies showed that the granular structure of the method itself drives these outcomes. The researchers' Level 3 taxonomic expansion—a more detailed categorization scheme—delivered substantially better results than a simpler Level 2 structure, producing a relative lift of +29.2% in Medical Advice contexts and +24.0% in Self-Harm scenarios across nine of ten models.
Beyond topic coverage#
The variance analysis revealed that model failures stem from more than just which topics are queried. The sociotechnical grounding—the specific demographics, occupations, geographies, and personas embedded in prompts—substantially shaped outcomes. This finding underscores that sensitive-domain evaluation requires embedding real-world social context, not merely comprehensive topic coverage.

