TRACE: Temporal Risk Assessment and Concept Editing for Safer Language Generation
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
Large language models (LLMs) can produce harmful content while generating a response. A useful safeguard should not only detect this risk during generation but also intervene while leaving safe responses largely unchanged and provide an auditable record of the internal patterns supporting its decisions. We propose TRACE (Temporal Risk Assessment and Concept Editing), a framework that tracks harmful-response risk during generation, selectively edits token activations, and leaves an auditable trace of its detection and steering decisions. TRACE learns a codebook of recurring activation patterns, with each codebook vector representing a latent concept. At inference time, it assigns each token activation to the nearest codebook vector to obtain the corresponding concept. A gated recurrent unit (GRU) processes the activations and their assigned concept features to predict completed-response harmfulness and a monotone cumulative streaming risk. During steering, activations assigned to harmful concepts are steered along directions defined by nearby benign targets. An external LLM labels the learned concepts post hoc, making detection sequences and harmful-to-benign edit records interpretable. Experiments across three generators and the WildGuard and S-Eval benchmarks show that TRACE improves streaming F1 over Kelp in five of six comparisons while remaining competitive on completed-response detection. TRACE's selective steering reduces Harmbench attack success with little change in refusal on originally safe responses. The post-hoc audit reveals recurring semantic structure in the learned concepts and distinct traces associated with harmful detection, safe generation, and activation edits.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 23 of its 26 references that are in the map. First posted on arXiv 11 Oct 2026.
Builds on
23 of 26 references.
Closest ancestors · 5
Same direction, newest first
- 2025Kelp: A Streaming Safeguard for Large Models via Latent Dynamics-Guided Risk Detection9 Oct
- 2024SCAR: Sparse Conditioned Autoencoders for Concept Detection and Steering in LLMs11 Nov
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs26 Jun
- 2024Refusal in Language Models Is Mediated by a Single Direction17 Jun
- 2024Improving Alignment and Robustness with Circuit Breakers6 Jun
Other references · 18
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2025Qwen3 Technical Reportcited by 8,820
- 2017Neural Discrete Representation Learningcited by 4,712
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
- 2025AxBench: Steering LLMs? Even Simple Baselines Outperform Sparse Autoencoderscited by 218
- 2024Programming Refusal with Conditional Activation Steeringcited by 206
- 2025Auditing language models for hidden objectivescited by 83
- 2023Codebook Features: Sparse and Discrete Interpretability for Neural Networkscited by 48
- 2024S-Eval: Towards Automated and Comprehensive Safety Evaluation for Large Language Modelscited by 33
6 more
- 2023Can LLMs facilitate interpretation of pre-trained language models?cited by 16
- 2025Breaking Bad Tokens: Detoxification of LLMs Using Sparse Autoencoderscited by 9
- 2026NExT-Guard: Training-Free Streaming Safeguard without Token-Level Labelscited by 4
- 2025Cross-Layer Discrete Concept Discovery for Interpreting Language Modelscited by 2
- 2026Vector Quantized Latent Concepts: A Scalable Alternative to Clustering-Based Concept Discoverycited by 1
- 2026Stop Early, Spend Less: Hidden-State Probes as a Practical Recipe for Streaming Moderation of LLM Outputscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026SentGuard: Sentence-Level Streaming Guardrails for Large Language Models
- 2024Safe to Serve: Aligning Instruction-Tuned Models for Safety and Helpfulness
- 2025Preventing Catastrophic Forgetting: Behavior-Aware Sampling for Safer Language Model Fine-Tuning
- 2026Detecting Safety Training Modification in Language Models via Activation Analysis ↗
- 2026HarmProfile: Characterizing Harmful Distributions in Frontier LLMs
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflection
- 2026From Parameter Dynamics to Risk Scoring : Quantifying Sample-Level Safety Degradation in LLM Fine-tuning
- 2025Backtracking for Safety