Steering Frozen LLMs: Adaptive Social Alignment via Online Prompt Routing
Zeyu Zhang, Xiangxiang Dai, Ziyi Han, Xutong Liu, John C. S. Lui
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: AI Safety, Security & Alignment › LLM Safety Alignment Methods · Type: new method · Keywords: LLM safety, inference-time alignment, prompt routing, consensus clustering, bandit algorithms
Areas: Safety & Security › Safe Alignment › Safety Alignment Methods
Summary
CCLUB is a framework that adaptively aligns frozen LLMs by routing prompts to safe consensus clusters, improving safety-utility trade-offs and cumulative reward.
Explained to a 5-year-old
Big computer programs called language models are taught to be nice. But they can't change after they're finished learning. This makes them vulnerable to tricks and can't keep up with new rules. We created a system that watches how people use the program and groups similar situations together. Then it picks the best instructions to steer the program safely, helping it stay safe while still being useful.
Explained to a 5-year-old, longer
Large computer programs that understand language are usually taught to be safe and helpful. After they are taught, they stay the same, which can be a problem because new tricks appear. People also change what they think is safe, so the old rules might not fit anymore. To solve this, researchers built a system that watches how the program is used in real time. It looks at many examples and groups similar situations together based on what is useful and what is safe. Only the situations that are both useful and safe are kept together, avoiding mixing risky and good uses. The system then chooses the best set of instructions, called prompts, to give to the program. These prompts steer the program toward safe answers while still letting it be helpful. Because the system works at the moment of use, the program does not need to be retrained or changed. This makes it possible to adapt quickly to new threats or new ideas about safety. The approach also gives a way to measure how well it works, using a mathematical guarantee. Overall, the method helps keep language models safe and useful as the world changes.
For a technical reader
The work addresses the static nature of post-training alignment by introducing an inference-time governance layer that dynamically routes prompts to appropriate system instructions. It constructs two similarity graphs-one for utility and one for safety-and intersects them to form consensus clusters that prevent unsafe generalization. An online bandit algorithm selects clusters and corresponding prompts to maximize cumulative reward while respecting safety constraints. Theoretical analysis provides a regret bound that separates exploration and exploitation costs, and experiments show measurable improvements in safety-utility trade-offs and deployment consistency.
Problem
Large language models are aligned once during training, resulting in static behavior that cannot adapt to evolving safety threats and diverse user norms. This leaves deployed models vulnerable to new jailbreak attacks and unable to meet changing safety expectations.
Method
The approach builds a consensus clustering mechanism that groups contexts based on both utility and safety similarity, then uses an online bandit routing strategy to select system prompts that steer the model toward safe outputs while preserving utility. Data is pooled only within the intersection of the two similarity graphs to avoid unsafe generalization. The routing is performed at inference time, allowing dynamic adaptation without modifying model weights.
Results
The approach improves the safety-utility trade-off and reduces the offline deployment gap, achieving a 10.98% increase in cumulative reward compared to the strongest baseline.
Contributions
It proposes an inference-time governance framework that adaptively routes prompts to safe consensus clusters, provides a theoretical regret bound separating identification and exploitation costs, and demonstrates empirical gains on safety-utility metrics.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction