Manuscript Offprint

arXiv:2610.29135

LaVGuard: Selective Decoding for Contextual Value Drift

Jiale Dai, Liuxian Ma, Hongcan Deng, Xiaoke Niu, Wenjing Zhang, Zhaoxiang Liu, Shiguo Lian, Guojie Song

Jiale Dai1,∗^{1,*}, Liuxian Ma2,∗^{2,*}, Hongcan Deng3^{3}, Xiaoke Niu1^{1}, Wenjing Zhang4^{4}, Zhaoxiang Liu4^{4}, Shiguo Lian4^{4}, Guojie Song1,†^{1,\dagger},

1^{1}State Key Laboratory of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University

2^{2}College of Artificial Intelligence, Tsinghua University

3^{3}University of Chinese Academy of Sciences

4^{4}China United Network Communications Group Co., Ltd.

∗^{*}Strictly equal contribution; either author order is equally valid.

†^{\dagger}Corresponding author.

A content-safe response can still promote priorities that conflict with its task: an assistant may demand compliance when asked to preserve autonomy. We study contextual value drift as a task-relative decoding problem with an explicit allowance for change. LaVGuard separates an authorized ten-dimensional profile from a frozen estimate of the values expressed in the visible prefix. A profile-relative density gate selects when to evaluate candidate continuations; their signed progress determines a logit tilt constrained by both changed-position and cumulative-KL budgets. We establish local surrogate improvement, pathwise budget feasibility, and a bound on response-distribution change. Profile conditioning raises boundary TPR at 5% FPR from .58 to .72. At the same .12 mean intervention ratio, the selection study reports risk-safety scores of .88 for LaVGuard and .72 for position-matched edits. The resulting interface makes task priorities actionable while keeping the extent of intervention explicit and bounded.

Keywords: Contextual value drift, selective decoding, task-conditioned control, KL budgets

Contact: ☑ daijiale26@stu.pku.edu.cn ☑ gjsong@pku.edu.cn

Figure

1 Introduction

An assistant helping a team organize a project is asked to preserve each member's autonomy. "Assign everyone a role and require compliance" contains no prohibited content, yet privileges conformity over the requested freedom of choice. "Offer clear roles and let members choose" respects both coordination and autonomy. What matters is not just which values an answer expresses, but whether their emphasis fits the authorized task. Figure 1 illustrates this distinction.

We call a departure from the task's authorized priorities contextual value drift. Values such as security, achievement, and self-direction can each be appropriate; their intended emphasis depends on the task. Value taxonomies provide a vocabulary for these co-occurring priorities (Schwartz, 1992; Yao et al., 2024; Ren et al., 2024). A task-relative controller therefore needs to distinguish the priorities expressed by a prefix from the priorities the application requests. It must also decide how much of the ongoing generation to change: acting at every position can spend intervention on language that already fits the task.

Existing methods make several parts of this problem tractable. ConVA selectively activates value directions (Jin et al., 2025); Values as Style learns a semantic-value editing interface for low-damage steering (Dai et al., 2026); AIMES adapts value-specific activation strengths from online observations (Bhattacharjee and Tandon, 2026). Controlled Decoding and Anchored Decoding connect generation to KL-regularized objectives and sequence-level divergence budgets, respectively (Mudgal et al., 2024; He et al., 2026). We address the joint

Figure

Figure 1: Task-relative selective decoding. The authorized profile and the frozen probe's visible-prefix state meet in the residual; the two-dimensional region illustrates the fitted geometry. Boundary exceedance and remaining position and KL allowances enable candidate evaluation. The paired continuations express contrasting priorities under a shared content guard. Along the decoding ribbon, cinnabar marks a changed sampling kernel, counted by ItI_t; KtK_t is that step's conditional KL cost. Unchanged kernels consume neither allowance. The task, trajectory, responses, and ribbon are constructed illustrations; profile and state cells indicate dimensions.

decision these tools motivate: when does the current language depart from this task’s priorities, and how should a finite change allowance shape its continuation?

LaVGuard couples a task-relative trigger with two explicit resources: the number of positions changed and the cumulative divergence from the base decoder. An authorized profile is supplied before generation. A frozen, prefix-causal probe estimates ten value intensities from visible language, without reading the numeric profile. Subtracting the profile translates a learned residual geometry into the task's activation region. At an active position, the model evaluates likely one-token continuations, favors progress toward a mixture-derived reference, and chooses a feasible tilt by scalar KL search. The content guard is shared with the base decoder.

Changing the authorized profile while holding the language state fixed can change whether intervention is warranted, without retraining the probe. Appendix J follows this decision through candidate scoring, sampling, and budget exhaustion.

Our evaluation tests profile conditioning, position selection, and budget control. Profile conditioning raises boundary TPR at 5% FPR from .58 to .72 (Table 1). At a shared mean intervention ratio of .12, LaVGuard reaches a risk-safety score of .88 versus .72 for position-matched selection (Table 3). Removing the position budget increases the edit ratio to .34, with risk safety of .89 and benign safety of .73, compared with .88 and .81 for the full controller. These comparisons motivate selecting where to spend the allowance, as well as limiting its total size.

Our contributions are:

  • A task-relative control interface. We separate authorized priorities from observed prefix values, making the same language state evaluable under different task profiles.

  • Selective decoding with two resources. A profile-residual gate, candidate scoring, and a feasible scalar update jointly control changed positions and accumulated conditional KL.

  • An analysis of what this control establishes. We connect the local candidate surrogate to the tilt, prove budget and response-distribution bounds, and evaluate the roles of profile conditioning, position selection, and the two allowances.