acceptodds
Published as a conference paper at NeurIPS 2026

Steering Frozen LLMs: Adaptive Social Alignment via Online Prompt Routing

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

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 gives an expected regret bound , separating the logarithmic cost of identifying safe consensus clusters from the dominant cluster-level exploitation term. Experiments show that CCLUB improves the safety–utility trade-off and offline deployment gap, and improves cumulative reward by 10.98% over the strongest non-prototype baseline.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_ascEOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper introduces a unified framework for adaptive social alignment via system-prompt routing which is called Consensus Clustering LinUCB Bandit (CCLUB). It pools data only within the intersection of utility and safety similarity graphs, effectively preventing unsafe generalization across semantically proximal but risk-divergent contexts The experiments shows that improves the safety–utility trade-off and offline deployment gap and outperform the baseline methods.

Strengths and weaknesses

Strength:

  • The paper tackles a practical and underexplored problem: how to adapt a frozen LLM's behavior at inference time without retraining. The observation that post-training alignment is fundamentally static, and that safety norms vary across deployment contexts and evolve over time, is well-motivated by real-world deployment considerations.
  • The dual-graph intersection mechanism is techinically sound. The monotonic edge-pruning rule ensures that safety boundaries, once established, cannot be violated by subsequent data.
  • The experiments cover multiple frozen backbones, multiple datasets, and both online and offline evaluation metrics.

Weakness:

  • The arm features are constructed by projecting system prompt embeddings onto PCA axes derived from evaluator rationale embeddings(from UltraFeedback and PKUSafeRLHF). However, evaluator rationales and system prompt text inhabit quite different linguistic registers.
  • The regret bound depends critically on the true cluster count MM, yet the paper never reports what value of MM the algorithm converges to in practice.
Questions
  • The PCA axes for arm features are constructed from evaluator rationale embeddings, but the arm features themselves are computed by projecting system prompt embeddings onto these axes. Can the authors provide empirical evidence that system prompt embeddings and evaluator rationale embeddings are sufficiently aligned in the Sentence-BERT space for this projection to be meaningful?
  • Could the authors report the empirical value of MM (i.e., the number of connected components at convergence) across different experimental settings?
Limitations

Yes

Paper formatting concerns

Several figure captions in the paper are insufficiently descriptive and do not comply with the NeurIPS 2026 template guidelines. E.g.

  • Figure 1: "Pareto frontier on Qwen3-0.6B"
  • Figure 3: "Safety features improve AUC"
Final justification

I have carefully considered the authors' rebuttal in light of my original review. The authors provided a direct cross-register similarity analysis showing system-prompt embeddings are substantially closer to evaluator rationale embeddings. And they also reported the empirical number of connected components at convergence across UCB coefficients and backbones (Base vs. Instruct), with a coherent explanation connecting exploration strength and instruction-tuning to cluster fragmentation. The two concerns I raised were substantively addressed with new, well-designed analyses rather than post-hoc arguments. So I would like to raise my confidence score.

Reviewer_i8EZOpenReview ↗
Rating
4
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
2
Read review
Summary

This paper studies the problem of performing inference time alignment on a fixed LLM. The authors treat different potential system prompts as arms in a multi-armed bandit and then learn a policy with linear UCB to select the system prompt which tunes for the moderation/conservatism/safety levels at deployment time. They also separate projections of the utility versus safety part of the prompt since just directly embedding could lead to realistically very different meaning prompts in safety terms being embedded close to each other. The authors validate their framework on standard prompt response safety benchmarks of BeaverTails and PKU-SafeRLHF.

Strengths and weaknesses

The paper provides a principled and rigorous approach to the problem of inference time safety modifications to an otherwise fixed model. These approaches to safety are important in general since in many cases we cannot assume the ability to do any actual retraining or weight updates to a model. They do still rely crucially in their approach on ability to set the system prompt, but this is still essentially working with a black-box underlying model.

The actual algorithmic approach using UCB is carefully constructed and allows the authors to derive theoretical guarantees on the regret of the algorithm. The guarantees are derived in a clear fashion and the proofs in the appendix appear correct.

The experiments are on standard safety benchmarks and use both Qwen and Deepseek models. The authors compare their method to a more standard UCB approach as well as to a periodically retrained router method as baselines. Across all datasets and models, compared to these two chosen baselines, their method performs the best.

While the approach is cleve to use system prompts as arms in a MAB approach to inference-time safety, the key assumptions seem to rest on being able to set a meaningful system prompt and generating enough meaningful diversity in the system prompts, which narrows applicability. This also limits the notion of safety in this setting to be failure modes we can predict in some sense in order to even have arms specified that distinguish them. For example, if this LLM were powering a coding agent that may perform undesired actions, we'd in some sense need to be able to predict what those may seem like in order to cover them with different potential system prompts.

Overall the contribution is solid, in terms of both the deriver theory and the experiments, but I do find the applicability in the larger space of safety, especially considering the work focuses on single turn input-output responses with feedback at every turn, to be more narrow than desirable.

Questions

Would there be any approach to use this method if the potentially safety failure modes were unknown but we still observed the loss? Like what do we do without a prior on which arms make sense to set?

Are there any other potential baselines the authors could easily compare their method to? Just having two, one of which is a non-specialized UCB approach which makes obvious sense to lose to the proposed method, feels a bit low.

Limitations

yes

Paper formatting concerns

none

Final justification

The additional results strengthen the case under a fixed pool of prompts, but my main concern is just whether this fixed pool is the right consideration in the first place. Alternatives could include online prompt generation that learns to create new interventions rather than only select among predefined ones, I can't point to such an exact approach so that is why I would still be overall lean towards positive on this submission since it is not as if it is superseded by the literature, but I find it drags down the case for practical relevance.

Reviewer_ZKygOpenReview ↗
Rating
4
Clarity
3
Confidence
2
Originality
3
Quality
2
Significance
2
Read review
Summary

This paper studies how to adapt the behavior of frozen LLMs without retraining them, especially when user preferences, safety requirements, and social norms change over time. The authors propose CCLUB, an online prompt-routing framework based on contextual bandits, which dynamically selects the most suitable system prompt during inference. Its key idea is to cluster contexts using both utility similarity and safety similarity, so the model can learn from similar cases while avoiding unsafe overgeneralization. Experimental results show that CCLUB outperforms several baselines in cumulative reward and prompt selection quality, suggesting that adaptive prompt routing can be an effective strategy for real-time LLM alignment.

Strengths and weaknesses

Strengths:

  1. Since the system adapts by selecting among system prompts, the behavior control is more transparent than directly modifying model parameters. It is also easier to inspect, replace, or update individual prompts when deployment needs change.
  2. It provides a sublinear regret guarantee, which strengthens the contribution beyond empirical prompt engineering.
  3. The results show improvements over baselines in cumulative reward and suboptimality gap.

Weaknesses:

  1. The method is fundamentally constrained by the quality and coverage of the fixed prompt arm pool. If no candidate prompt is appropriate for a new or rare safety scenario, the router cannot generate a better policy, limiting its adaptability.
  2. The continual adaptation results suggest that the method can improve safety at the cost of utility under distribution shift. More analysis of over-refusal and benign-query degradation is needed to understand this trade-off.
  3. The experimental setup were insufficient regarding the deployment-time preference weight. Since the paper does not clearly explain how is chosen, sampled, or calibrated in the experiments, it is difficult to assess whether the reported adaptation gains reflect realistic deployment conditions.
Questions

Can you provide runtime/memory overheads for CCLUB compared to Prototype LinUCB, it would help assess deployment feasibility?

Limitations

yes

Paper formatting concerns

NA

Final justification

The rebuttal satisfactorily addressed my major concerns through additional experiments, analyses, and clarifications. While the current framework still has some limitations (e.g., reliance on a fixed prompt pool), these are clearly acknowledged and do not diminish the paper’s primary contribution. Overall, the rebuttal increased my confidence in the technical soundness and practical value of the work, and I have increased my score accordingly.

Comments on the paper

1 comment
Meta-review

This paper proposes CCLUB to address the inference-time alignment of frozen LLM's safety behavior without changing its weights. It frames this as a contextual bandit in which each arm is a system prompt and the learner selects one per query. It presents a selective rule for sharing feedback across queries where two query clusters share their data only when they appear similar on both a helpfulness measure and a safety measure, and the moment evidence shows they differ on either, the link between them is cut for good. The authors prove the method's regret grows slowly over time, and test on BeaverTails and PKU-SafeRLHF across Qwen and DeepSeek models, reporting better safety-utility balance and a 10.98% reward gain over the strongest non-prototype baseline.

Merits: The reviewers agree the problem is practical and underexplored (adapting a frozen model without retraining, under evolving safety norms), the bandit formulation is principled with clearly derived theory and proofs that appear correct, the dual-graph mechanism with monotone pruning is technically sound, prompt routing is more transparent and inspectable than weight modification, and the experiments span multiple backbones, datasets, and both online and offline metrics.

(Initial Meta-Review) Concerns: The following concerns are what the authors should prioritize in their response:

  • Show the arm features are valid (Reviewer ascE): The arm features project each system prompt onto PCA axes built from evaluator rationales (Appendix C), but prompts and rationales are written in different styles. Please give evidence that the two sit close enough in the Sentence-BERT space for this projection to be meaningful.

  • Explain what happens when a failure mode has no matching arm (Reviewers i8EZ, ZKyg): The method routes over a fixed pool of pre-written prompts, so it can only handle failure modes that were anticipated when the pool was built, and a new or rare safety case may have no suitable arm. This also limits the method to single-turn use with per-turn feedback. Please address this.

  • Experiments: The baselines are all Greedy or LinUCB variants plus one retrieval method (IPR); please add a baseline from outside this family or explain why none applies (Reviewer i8EZ). Please also report runtime and memory cost versus Prototype LinUCB (Reviewer ZKyg).

  • Clarifications: (a) The regret bound depends on the number of latent clusters M, but the actual number of clusters at the end of a run is never reported; please report it (Reviewer ascE). (b) Please state how the preference weight w is set or sampled, both during online rounds and in the held-out evaluation, so the adaptation gains can be judged against realistic conditions (Reviewer ZKyg).

  • Characterize the safety-utility trade-off under shift (Reviewer ZKyg): Under distribution shift, safety gains come at a utility cost on the stronger backbone (Table 10), which the paper acknowledges. Please add an over-refusal and benign-query-degradation analysis that goes beyond the single-backbone benign-slice averages in Table 13.

  • Explain the Table 16 numbers (AC): In Table 16, CCLUB beats Prototype LinUCB by exactly 0.0300 at every arm-pool size, and the two methods report identical standard errors in every row. Please correct the table or text if there is a processing error as usually independent runs would not produce this.

  • (Minor) Presentation: This initial metareview focuses on the substantive issues rather than presentation. That said, alongside the caption and formatting fixes raised by the reviewers, the authors should also correct Section 5.3, which cites "Figure 4a" and "Figure 4b" for the weight and data-ratio sweeps that actually appear in Figure 5 (AC).


After Rebuttal and Discussion Periods

  • Revisions & concerns: The authors answered every point raised and most concerns are settled. They should add their rebuttal and discussion responses into the revised paper. In particular:

    • Table 16: The corrected results still favour CCLUB and the authors confirmed that no other table used that code path. Please replace the table with the new correct values from the new experiments. Also, document the new protocol, and double-check again the remaining tables and figures against the actual runs.

    • Claims to adjust. A new baseline beats CCLUB at the shorter horizon, so the sample-efficiency claim in the abstract, introduction, and conclusion should become a long-horizon claim, as the authors agreed (i8EZ). Please also state that the paper covers single-turn use, that the prompt pool is fixed, and that the preference weight is supplied rather than learned (ZKyg).

    • Remaining Limitation. A fixed and pre-written prompt pool limits the contribution, since the method can only handle problems anticipated when the pool was built. The new baselines show CCLUB does well among similar bandit methods, but not against other approaches such as generating prompts on the fly. The authors' generation experiment is a promising first step, so please present it as a feasibility check and keep this as a stated limitation.

    • New results to add. The embedding-alignment analysis with the authors' own note on its scope (ascE); the cluster-count results (ascE); the two new baselines (i8EZ); the runtime and memory numbers (ZKyg); and the over-refusal analysis, including the trade-off it reveals across backbones (ZKyg). If any go in the appendix, please point to them from the main text.

    • Presentation. Section 5.3 cites Figures 4a and 4b for results that are in Figure 5. Please fix this and use the revised captions (ascE).

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.