Analysing Self-Harm Representations in Language Models: a Cross-Architecture Study

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics, Cybersecurity & Data Privacy · Depth: Expert, long

Summary

A cross-architecture study analyzed how Large Language Models (LLMs) internally represent self-harm content, using linear probes and contrastive direction analysis on Qwen3-0.6B, Llama 3.2-1B-Instruct, Llama 3.2-3B-Instruct, and Gemma-3-4B-it. Researchers found that self-harm information consistently crystallizes in the final 3-7% of network layers (93-97% depth) across two datasets, X-Sensitive and SH-Detection. While probe AUC ranged from 0.703 to 0.817 on X-Sensitive and 0.923 to 0.972 on SH-Detection, the most accurate probes were not always the most geometrically separable. Notably, Gemma-3-4B exhibited a more intricate representation, spreading the self-harm signal across its activation space rather than concentrating it in a single direction. The study also revealed that self-harm contrastive directions are dynamically re-represented, rotating substantially between early and late layers, with adjacent-layer directions showing high alignment (0.76-0.92) but early-to-late layer directions being nearly orthogonal (0.14-0.38).

Key takeaway

For AI safety engineers developing content moderation systems, understanding LLM internal representations is crucial. You should focus intervention strategies on the final 3-7% of network layers where self-harm concepts crystallize. Be aware that models like Gemma-3-4B may distribute sensitive signals across activation space, requiring more complex detection methods than simple linear separation. Your efforts should extend beyond prompt engineering to include explicit, testable components for robust and effective safety mechanisms.

Key insights

Self-harm representations in LLMs crystallize late in networks but are geometrically unstable and distributed across activation space.

Principles

Method

Linear probes evaluate layer-wise ROC-AUC. Contrastive directions are computed via mean-difference activations, then assessed for separability (Cohen's d) and stability (cosine similarity).

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Security Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.