# Safety-Aware Latent Space Reasoning in Large Language Models

*Yi Wang, Wenjie Wang, Hongye Qiu, Yu Pan*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148785) · [OpenReview](https://openreview.net/forum?id=v5ExASonPK) · [Open on the map](../papers.html#p148785)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [LLM Safety Alignment](../pgroup/208.md) · Type: new method · Keywords: latent space reasoning, LLM safety, jailbreak attacks, safety supervision, hidden state distillation

Areas: [LLM Reasoning](../areas/reasoning.md) › Reasoning Mechanisms › Reasoning Safety; [Safety & Security](../areas/safety.md) › Safe Alignment › Refusal and Activation Steering

## Summary
SaLR introduces a safety-aware latent space reasoning framework that injects safety supervision via a compact four-block safe-chain and hidden state distillation, reducing jailbreak success while preserving reasoning accuracy and token efficiency.

## Explained to a 5-year-old
Some computers called LLMs think by writing words one after another, but they can also think in secret hidden spaces that are faster. We looked at these hidden thoughts and found they can be tricked more easily by bad people. To help them stay safe, we made a new way to teach them good behavior without slowing them down too much. This new way works like a tiny secret guide that tells the computer to stay safe while still thinking quickly. Now the computers are safer and can still think fast, which helps keep us all protected.

## Explained to a 5-year-old, longer
Large computers that can talk, called language models, sometimes think by writing down each step of their thinking. They can also think in a special hidden space that is like a secret notebook, which makes them faster. Researchers wanted to see if this secret notebook thinking was safe, like the normal way of thinking. They tried to trick the models using bad questions, and found the secret notebook made them easier to trick. This was a problem because we want the models to be safe when they help us. So the researchers created a new method to add safety rules into the secret notebook. They turned safety advice into a short four-step plan that fits inside the hidden space. This plan is shared with the model using a teacher-student trick that copies good behavior. For questions that need safety, the model is guided early to give a safe answer. For normal questions, the model keeps its original secret notebook thinking. The new method reduced the success of tricks while still keeping the models fast and accurate. This helps make sure that when we use these smart computers, they are both safe and efficient.

## For a technical reader
The paper studies how language models can think in hidden spaces to be faster, but finds these hidden thoughts are more easily tricked by malicious prompts. It then describes a new safety framework that adds protective guidance directly into those hidden spaces, using a compact safety plan and a teacher-student copying technique. This framework keeps the models safe from attacks while still allowing them to think quickly and accurately. The result is a more secure way to use efficient reasoning in real applications.

## Problem
Latent space reasoning improves inference efficiency but its safety alignment is poorly understood, and existing latent reasoning methods are more vulnerable to jailbreak attacks than base models or token-space CoT reasoning.

## Method
The approach injects safety supervision into latent space reasoning by converting safety reasoning into a compact four-block safe-chain and transferring this signal through teacher-student hidden state distillation; it aligns an early safe response prefix for safety instances while preserving reasoning ability for normal instances via single-position distillation.

## Results
The approach substantially reduces jailbreak attack success while preserving reasoning accuracy and token efficiency.

## Contributions
It provides the first systematic safety study of latent space reasoning under jailbreak attacks, reveals heightened vulnerability of latent reasoning methods, and introduces a safety-aware framework that aligns safety supervision in latent space while maintaining reasoning performance.

## Practical relevance
It enables safer deployment of efficient latent space reasoning in real-world LLM applications by mitigating jailbreak attacks.

## Research questions this paper is counted under

- [How can safety be aligned in reasoning models while preserving their native reasoning capabilities?](../q/658.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148785)
