Manuscript Offprint

arXiv:2609.08602

CLAMP: Constrained Decoding for Vision-Language Embodied Planning

Tianyi Ma, Parisa Kordjamshidi

Abstract

Embodied planning increasingly relies on vision-language models (VLMs) to translate instructions and visual observations into executable action sequences. However, fluent plans are not always executable. A VLM may refer to objects that are not visually observed, select actions whose required affordances are unavailable, or violate syntax and action constraints. We introduce CLAMP, a multimodal constraint-grounding framework that turns scene evidence into decoding-time constraints for a frozen VLM planner. CLAMP uses the initial observation to restrict object references to those supported by the scene, while a provided symbolic action model specifies state transitions and goals. During decoding, hard masks eliminate invalid next-token candidates, while a Hidden Markov Model (HMM)-based world-state lookahead module reweights the probabilities of the remaining feasible candidates based on action preconditions and goal reachability. This allows the planner to retain the VLM's language prior while preventing visually unsupported, unsafe, or infeasible candidates from entering the plan. For unseen tasks and environments, CLAMP adapts the HMM at test time using label-free continuations sampled from the frozen VLM. Experiments on VLABench, SafeAgentBench, and TaPA show that scene-grounded constraints improve object grounding and safety, while most remaining failures stem from perception errors or misaligned constraint specifications.

1 Introduction

Embodied planning requires an agent to translate multimodal observations and natural-language instructions into executable action sequences. Vision-language models (VLMs) provide a powerful interface for this task (Wu et al., 2023; Liang et al., 2023; Ahn et al., 2022; Li et al., 2024), but their

generated plans do not necessarily satisfy the constraints required for execution. A useful plan must therefore do more than match the instruction: its actions must be well-formed, grounded in the observed scene, and feasible under the current world state.

Existing approaches often handle execution constraints through post-hoc verification or repair (Li et al., 2024; Zhou et al., 2025; Zhu et al., 2024; Wang et al., 2024; Zhang et al., 2024b), allowing invalid decisions to propagate before they are corrected. Constrained decoding (Zhang et al., 2024a; Kapoor et al., 2025; Geng et al., 2023) instead enforces constraints during generation, but existing methods primarily target language generation or specialized policy outputs. Embodied planning presents a different challenge: constraints must be grounded in multimodal observations and evolve with the world state.

We propose CLAMP, a multimodal constrained decoding framework for embodied planning based on a frozen VLM. CLAMP combines hard constraints that restrict invalid generations with world-state guidance that steers the planner among valid actions. Specifically, CLAMP uses observation-conditioned DFAs to enforce hard constraints during decoding, restricting generation to actions that are syntactically valid and grounded in the current observation. It further employs HMM-based state tracking to capture the evolving world state and provide lookahead guidance for subsequent actions. To handle domain shift, CLAMP adapts the lightweight guidance model at test time while keeping the VLM frozen.

We evaluate CLAMP on multimodal embodied-planning benchmarks covering task execution, visual grounding, and safety. On VLABench (Zhang et al., 2025), observation-conditioned hard constraints improve Qwen3-VL-8B from 28.7 to 34.1, while world-state guidance further increases performance to 37.1 and 38.7 with text- and vision-

Code: https://github.com/HLR/CLAMP conditioned guidance, respectively. On SafeAgent-Bench (Yin et al., 2024), constrained planning reduces symbolic-rule violations from 0.41 to 0.05. These results indicate that enforcing constraints during decoding improves both task-level planning and constraint satisfaction without updating or scaling the underlying VLM. The additional computational overhead remains modest because constraint enforcement and adaptation operate on lightweight components around the frozen planner. Ablations further confirm the complementary roles of hard constraint enforcement and world-state guidance.

Our contributions are threefold:

  • A multimodal constraint-decoding framework. We introduce CLAMP, which integrates observation-conditioned hard constraint enforcement, world-state guidance, and lightweight test-time adaptation for embodied planning.

  • Constraint-preserving test-time adaptation. We introduce lightweight HMM adaptation for CLAMP, using unlabeled frozen-VLM continuations to recalibrate its guidance on new tasks while preserving the constraints.

  • Effective and efficient constraint enforcement. CLAMP improves embodied planning, grounding, and safety with modest additional computation cost.

References (80)