Original title: Representational alignment yields generalizable safety in language models
Lingyu Li, Yan Teng, Yingchun Wang, Xia Hu · September 2026
Current safety methods train large language models by shaping their outward answers. However, models still fail when harmful prompts are rewritten in unfamiliar or tricky ways that humans easily spot. Humans handle new situations using mental prototypes, which are central examples of a concept that help us classify new cases by how typical they are. Researchers found that models lack this inner structure. They tested twenty-three models and discovered that these models struggled to separate opposing moral concepts or grasp typicality within categories, regardless of model size or training stage. To fix this, the researchers created representational similarity optimization. Instead of policing generated text, this method directly shapes the model's internal representations to match human moral categorization. In tests using 251,334 human annotations, this approach reorganized internal categories and consistently improved defense against diverse attacks across model scales, yielding safety that generalizes far better under adversarial conditions.
Imagine sorting laundry into lights and darks, but someone keeps putting in clothes that are gray or patterned. You know where they belong based on experience, but a beginner might hesitate or mix them up. In this paper, AI models are like the beginner who fails to categorize moral concepts correctly, while humans are like the experienced sorter. The new method teaches the AI to internalize the sorting rules, so it doesn't get fooled by tricky examples.
Language models are used by millions for advice and information, but adversarial attacks can make them give harmful responses. By improving how models categorize moral ideas, they become harder to manipulate, making AI safer for everyone.
The abstract does not address whether this method works for non-moral concepts, how it scales to even larger models, or what the computational cost is. It only tests on specific benchmarks and attack strategies.
Ask anything about this paper. Answers come from its abstract, and say so when the abstract doesn't cover your question.
Representational alignment yields generalizable safety in language models — Lingyu Li, Yan Teng, Yingchun Wang et al.
Abstract licence: CC0
Explanation generated by Synthesis from the abstract — it is not the original paper. This is a preprint, so it hasn't necessarily been peer reviewed.