Dynamic Steering With Episodic Memory For Large Language Models

Large Language Models (LLMs) exhibit emergent in-context learning (ICL) capabilities, allowing them to adapt to unseen tasks based on example demonstrations.Traditional ICL embeds examples within the prompt, while activation steering, uses a vector derived from examples to guide the latent states of LLMs toward desired behaviors.However, traditional ICL is difficult to control quantitatively and consumes valuable context space.Existing activation steering methods apply a single sentence-level steering vector uniformly across all tokens, ignoring LLMs' token-wise, auto-regressive nature.This coarse control can lead to inconsistencies and suboptimal adjustments during generation.To address this problem, we introduce Dynamic Steering with Episodic Memory (DSEM), a novel training-free framework that aligns LLMs to given demonstrations by steering at the token level conditioned on the input query.DSEM employs a key-value memory to store associations between generated tokens and steering vectors.During inference, it uses a nearest-neighbor mechanism to dynamically compute steering vectors for each token chunk, enabling more precise and adaptive guidance.Our method surpasses strong baselines across diverse alignment tasks -including safety, style transfer, and role-playing -demonstrating improved alignment as demonstration size scales.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.706
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

Dynamic Steering With Episodic Memory For Large Language Models

Svetha Venkatesh, Hung Lê, Quan Hung Tran, Van Dai
Natural Language Processing Techniques
article

Dynamic Steering With Episodic Memory For Large Language Models

Svetha Venkatesh, Hung Lê, Quan Hung Tran, Van Dai
article en

Abstract

Large Language Models (LLMs) exhibit emergent in-context learning (ICL) capabilities, allowing them to adapt to unseen tasks based on example demonstrations.Traditional ICL embeds examples within the prompt, while activation steering, uses a vector derived from examples to guide the latent states of LLMs toward desired behaviors.However, traditional ICL is difficult to control quantitatively and consumes valuable context space.Existing activation steering methods apply a single sentence-level steering vector uniformly across all tokens, ignoring LLMs' token-wise, auto-regressive nature.This coarse control can lead to inconsistencies and suboptimal adjustments during generation.To address this problem, we introduce Dynamic Steering with Episodic Memory (DSEM), a novel training-free framework that aligns LLMs to given demonstrations by steering at the token level conditioned on the input query.DSEM employs a key-value memory to store associations between generated tokens and steering vectors.During inference, it uses a nearest-neighbor mechanism to dynamically compute steering vectors for each token chunk, enabling more precise and adaptive guidance.Our method surpasses strong baselines across diverse alignment tasks -including safety, style transfer, and role-playing -demonstrating improved alignment as demonstration size scales.

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.

Dynamic Steering With Episodic Memory For Large Language Models — Svetha Venkatesh, Hung Lê, et al. · (2025) | TGRS Research Map | TGRS