DIESEL: A Lightweight Inference-Time Safety Enhancement for Language Models

Large language models (LLMs) have demonstrated impressive performance across a wide range of tasks, including open-ended dialogue, driving advancements in virtual assistants and other interactive systems.However, these models often generate outputs misaligned with human values, such as ethical norms and safety constraints, resulting in potentially harmful or inappropriate responses.While several techniques have been proposed to address this problem, they typically involve computationally intensive training procedures or introduce substantial inference-time latency.In this paper, we present DIESEL, a lightweight inferenceguidance technique that can be seamlessly integrated into any autoregressive LLM to semantically filter undesirable content during generation.DIESEL guides generation by reranking token candidates according to their semantic similarity to predefined negative concepts in the latent space.It can serve either as a standalone safeguard or as an auxiliary defense layer, enhancing response safety without requiring model fine-tuning or additional data.We demonstrate DIESEL's effectiveness on state-of-the-art conversational models, including in adversarial jailbreak scenarios.Furthermore, we show that DIESEL generalizes beyond safety applications, enabling flexible and domain-specific response filtering.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.1223
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

DIESEL: A Lightweight Inference-Time Safety Enhancement for Language Models

Asaf Shabtai, Alon Zolfi, Yuval Elovici, Hisashi Kojima et al.
Natural Language Processing Techniques
article

DIESEL: A Lightweight Inference-Time Safety Enhancement for Language Models

Asaf Shabtai, Alon Zolfi, Yuval Elovici, Hisashi Kojima, Omer Hofman, Ben Ganon, Inderjeet Singh
article en

Abstract

Large language models (LLMs) have demonstrated impressive performance across a wide range of tasks, including open-ended dialogue, driving advancements in virtual assistants and other interactive systems.However, these models often generate outputs misaligned with human values, such as ethical norms and safety constraints, resulting in potentially harmful or inappropriate responses.While several techniques have been proposed to address this problem, they typically involve computationally intensive training procedures or introduce substantial inference-time latency.In this paper, we present DIESEL, a lightweight inferenceguidance technique that can be seamlessly integrated into any autoregressive LLM to semantically filter undesirable content during generation.DIESEL guides generation by reranking token candidates according to their semantic similarity to predefined negative concepts in the latent space.It can serve either as a standalone safeguard or as an auxiliary defense layer, enhancing response safety without requiring model fine-tuning or additional data.We demonstrate DIESEL's effectiveness on state-of-the-art conversational models, including in adversarial jailbreak scenarios.Furthermore, we show that DIESEL generalizes beyond safety applications, enabling flexible and domain-specific response filtering.

Openalex Percentile: Top 90%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.