REAL: Reading Out Transformer Activations for Precise Localization in Language Model Steering
Zhan, Li-Ming, Liu, Bo, Xie, Chengqiang, Cao, Jiannong, Wu, Xiao-Ming
–arXiv.org Artificial Intelligence
Inference-time steering aims to alter a large language model's (LLM's) responses without changing its parameters, but a central challenge is identifying the internal modules that most strongly govern the target behavior. Existing approaches often rely on simplistic cues or ad hoc heuristics, leading to suboptimal or unintended effects. We introduce REAL, a framework for identifying behavior-relevant modules (attention heads or layers) in Transformer models. For each module, REAL trains a vector-quantized autoencoder (VQ-AE) on its hidden activations and uses a shared, learnable codebook to partition the latent space into behavior-relevant and behavior-irrelevant subspaces. REAL quantifies a module's behavioral relevance by how well its VQ-AE encodings discriminate behavior-aligned from behavior-violating responses via a binary classification metric; this score guides both module selection and steering strength. We evaluate REAL across eight LLMs from the Llama and Qwen families and nine datasets spanning truthfulness enhancement, open-domain QA under knowledge conflicts, and general alignment tasks. REAL enables more effective inference-time interventions, achieving an average relative improvement of 20% (up to 81.5%) over the ITI method on truthfulness steering. In addition, the modules selected by REAL exhibit strong zero-shot generalization in cross-domain truthfulness-steering scenarios.
arXiv.org Artificial Intelligence
Oct-2-2025
- Country:
- Africa
- Eritrea (0.04)
- Middle East
- Nigeria (0.04)
- North Africa (0.04)
- South Africa > Western Cape
- Cape Town (0.04)
- Sudan (0.04)
- North America
- Bermuda (0.04)
- Canada
- British Columbia > Vancouver (0.04)
- Ontario > Toronto (0.04)
- Quebec
- Capitale-Nationale Region
- Quebec City (0.04)
- Québec (0.04)
- Montreal (0.04)
- Capitale-Nationale Region
- Dominica (0.04)
- Dominican Republic (0.04)
- Jamaica (0.04)
- Mexico
- Mexico City > Mexico City (0.04)
- Puebla (0.04)
- United States
- California
- Alameda County > Berkeley (0.04)
- Los Angeles County
- Glendale (0.04)
- Los Angeles (0.28)
- San Diego County > San Diego (0.04)
- San Francisco County > San Francisco (0.14)
- Washington > King County
- Seattle (0.04)
- Virginia (0.04)
- New Mexico > Bernalillo County
- Albuquerque (0.04)
- New Hampshire (0.04)
- Michigan (0.04)
- Illinois > Cook County
- Chicago (0.04)
- Hawaii (0.04)
- Kansas (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- New York (0.04)
- Massachusetts > Suffolk County
- Boston (0.04)
- Texas (0.04)
- Arizona > Maricopa County
- Phoenix (0.04)
- Nevada (0.04)
- Indiana > Marion County
- Indianapolis (0.04)
- Kentucky > Warren County
- Bowling Green (0.04)
- Alaska (0.04)
- West Virginia (0.04)
- California
- Asia
- Pakistan (0.04)
- Japan > Honshū
- Kantō > Tokyo Metropolis Prefecture > Tokyo (0.14)
- Cambodia (0.04)
- Indonesia > Bali (0.04)
- Middle East
- Israel (0.04)
- Jordan (0.04)
- Republic of Türkiye > Istanbul Province
- Istanbul (0.04)
- Saudi Arabia (0.04)
- UAE (0.04)
- Yemen (0.04)
- Russia (0.14)
- South Korea (0.14)
- Thailand > Bangkok
- Bangkok (0.04)
- Singapore (0.04)
- India (0.04)
- China > Hong Kong (0.04)
- Atlantic Ocean (0.04)
- South America
- Argentina (0.04)
- Brazil > Rio de Janeiro
- Rio de Janeiro (0.04)
- Chile (0.04)
- Falkland Islands (0.04)
- Uruguay (0.04)
- Oceania
- Australia > Northern Territory (0.04)
- Nauru (0.04)
- New Zealand > North Island
- Auckland Region > Auckland (0.04)
- Samoa (0.04)
- Tonga (0.04)
- Europe
- Belarus (0.04)
- Portugal (0.04)
- Northern Europe (0.04)
- United Kingdom
- England
- Cambridgeshire > Cambridge (0.04)
- Greater London > London (0.13)
- Oxfordshire > Oxford (0.14)
- Northern Ireland
- County Antrim > Belfast (0.04)
- County Down > Belfast (0.04)
- Scotland (0.04)
- Wales (0.04)
- England
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- France > Île-de-France
- Middle East > Republic of Türkiye
- Istanbul Province > Istanbul (0.04)
- Sweden (0.04)
- Belgium (0.04)
- Estonia (0.04)
- Greece (0.04)
- Russia (0.14)
- Italy (0.04)
- Norway (0.04)
- Monaco (0.04)
- Finland (0.04)
- Denmark (0.04)
- Spain
- Catalonia > Barcelona Province
- Barcelona (0.04)
- Galicia > Madrid (0.04)
- Catalonia > Barcelona Province
- Germany (0.14)
- Bulgaria (0.04)
- Netherlands > North Holland
- Amsterdam (0.04)
- Austria > Vienna (0.14)
- Switzerland > Zürich
- Zürich (0.04)
- Antarctica (0.04)
- Indian Ocean > Red Sea (0.04)
- Africa
- Genre:
- Personal > Honors (1.00)
- Research Report > New Finding (1.00)
- Industry:
- Media
- Banking & Finance > Trading (1.00)
- Education
- Educational Setting (1.00)
- Health & Safety > School Nutrition (1.00)
- Government
- Military (1.00)
- Regional Government
- Europe Government (0.92)
- North America Government > United States Government (1.00)
- Space Agency (0.67)
- Voting & Elections (0.67)
- Transportation > Air (0.92)
- Health & Medicine
- Consumer Health (1.00)
- Pharmaceuticals & Biotechnology (1.00)
- Public Health (0.92)
- Therapeutic Area
- Cardiology/Vascular Diseases (1.00)
- Endocrinology (0.92)
- Environmental Medicine (0.92)
- Immunology (0.92)
- Infections and Infectious Diseases (0.92)
- Obstetrics/Gynecology (0.92)
- Oncology (1.00)
- Psychiatry/Psychology (1.00)
- Law
- Criminal Law (1.00)
- Family Law (0.67)
- Statutes (1.00)
- Information Technology (1.00)
- Consumer Products & Services > Travel (0.67)
- Energy > Power Industry (0.67)
- Leisure & Entertainment
- Law Enforcement & Public Safety > Crime Prevention & Enforcement (1.00)
- Technology: