Representational alignment yields generalizable safety in language models
cs.CL, cs.AI
Submitted: 2026-09-03
Updated: 2026-09-03
Code: https://github.com/LingyuLi-Cogs/ReSO
License: http://creativecommons.org/licenses/by/4.0/
The gist: Aligning large language models (LLMs) is essential for their safe deployment.
Terminology
Abstract
Aligning large language models (LLMs) is essential for their safe deployment. Current alignment methods mainly optimize observable responses, yet models remain vulnerable when the same harmful intent is recast in unfamiliar or adversarial forms that humans can easily recognize. Prototype theory offers an account of this adaptability. Human concepts are represented around central cases, and new instances are categorized according to their graded typicality relative to these prototypes. Here we show that such categorization of moral concepts is weakly preserved in current LLMs. Across 23 LLMs, models often failed to distinguish opposed moral categories or preserve fine-grained typicality within each category. These deficits persist across parameter sizes and alignment stages. We developed representational similarity optimization, which directly aligns the latent representations in LLMs with the categorization expressed in human moral judgements, without supervising generated responses. In matched experiments using the same 251,334 moral annotations, standard behavioral alignment learned the intended moral judgements at the response level while leaving the categorization structure largely unchanged and increasing vulnerability across adversarial evaluations. Reorganizing moral categorization produced more modest gains in explicit judgements but consistently improved adversarial robustness across model scales on diverse benchmarks and attack strategies. Our findings provide functional support for the view that prototype-based categorization contributes to behavioral adaptability. They also show that transferring this representational principle to LLMs yields generalizable safety under adversarial conditions.
Sources
- Constitutional AI: Harmlessness from AI Feedback
- OpenRT: An Open-Source Red Teaming Framework for Multimodal LLMs
- MoReBench: Evaluating Procedural and Pluralistic Moral Reasoning in Language Models, More than Outcomes
- Efficient Estimation of Word Representations in Vector Space
- Qwen3 Technical Report
- Qwen3Guard Technical Report
- The Llama 3 Herd of Models
- gpt-oss-120b & gpt-oss-20b Model Card
- Universal and Transferable Adversarial Attacks on Aligned Language Models
- CompassJudger-2: Towards Generalist Judge Model via Verifiable Rewards
- Qwen2.5 Technical Report
- Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models
- GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts
- AutoDAN-Reasoning: Enhancing Strategies Exploration based Jailbreak Attacks with Test-Time Scaling
- Prefill-level Jailbreak: A Black-Box Risk Analysis of Large Language Models
- RED QUEEN: Safeguarding Large Language Models against Concealed Multi-Turn Jailbreaking
- Chain of Attack: a Semantic-Driven Contextual Multi-Turn attacker for LLM
- X-Teaming: Multi-Turn Jailbreaks and Defenses with Adaptive Multi-Agents
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering