cs.LGMar 4, 2026

Steering Frozen LLMs: Adaptive Social Alignment via Online Prompt Routing

Authors: Zeyu Zhang, Xiangxiang Dai, Ziyi Han, Xutong Liu, John C. S. Lui

Organizations: The Chinese University of Hong Kong · University of Washington

Abstract

Large language models (LLMs) are typically governed by post-training alignment (e.g., RLHF or DPO), which yields a largely static policy during deployment and inference. However, real-world safety is a full-lifecycle problem: static defenses degrade against evolving jailbreak behaviors, and fixed weights cannot adapt to pluralistic, time-varying safety norms. This motivates inference-time governance that steers behavior without costly retraining. To address this, we introduce the Consensus Clustering LinUCB Bandit (CCLUB), a unified framework for adaptive social alignment via system-prompt routing. CCLUB employs a conservative consensus clustering mechanism: it pools data only within the intersection of utility and safety similarity graphs, effectively preventing unsafe generalization across semantically proximal but risk-divergent contexts. Our theoretical analysis yields a sublinear regret guarantee, demonstrating near-optimal performance of CCLUB. Extensive experiments validate that CCLUB outperforms strong baselines, achieving a 10.98% improvement in cumulative reward and a 14.42% reduction in the average suboptimality gap.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. PolicyAlign: Direct Policy-Based Safety Alignment for Large Language Models

    Jun 24, 2026Chang Wu, Junfeng Fang, Houcheng Jiang +5LLM AlignmentLLM Safety Alignment

  2. CLEAR: Continuous Latent Adapter Routing for Utility-Preserving LLM Safety Alignment

    Aug 21, 2026Chengxiao Wang, Enyi Jiang, Xiaojing Liao +1Safety-Utility Trade-Off in Language ModelsLLM Safety

  3. Towards Context-Invariant Safety Alignment for Large Language Models

    May 20, 2026Yixu Wang, Yang Yao, Xin Wang +4RL for Language ModelsLLM Alignment