Manuscript Offprint

arXiv:2609.09876

From Pixels to Hierarchical Sequences: Quadtree Mask Encoding for Vision-Language Binary Change Detection

Xiao An, Ruikang Zhang, Chen Zhong, Xuli Shen, Jiaxing Sun, Jiang Wu, Wei He

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Dense change detection in remote sensing requires vision-language models (VLMs) to compare bi-temporal images and generate accurate pixel-level masks. Existing VLMs are largely confined to change captioning outputs, and the few that produce pixel-level masks still rely on external decoders or flat text-as-mask serialization, which are less effective for small and fragmented changes. We introduce QUAKE-CD, a framework that recasts dense change prediction as syntax-verified structured generation. QUAKE-CD represents binary change masks as grammar-constrained quadtree token sequences, making the masks compact, syntactically checkable, and deterministically decodable within an autoregressive generation space. We further construct QUAKE-CoT, which pairs these sequences with chain-of-thought traces grounded in visual evidence, and jointly optimizes textual reasoning and spatial dense prediction through a progressive curriculum followed by grammar-gated dual-reward RL. On QUAKE-CoT, QUAKE-CD achieves 78.31% accumulated F1, outperforming decoder-based and flat text-as-mask VLMs while producing more faithful bi-temporal reasoning.

1 Introduction

Large vision-language models (VLMs) demonstrate profound capability in multimodal reasoning (Bai et al. 2025; Team et al. 2026), yet real-world applications increasingly demand spatially grounded outputs that delineate precise footprint boundaries (Xiao et al. 2025; Ding et al. 2025). Remote sensing change detection (Asokan and Anitha 2019; Dong et al. 2024) provides a stringent testbed for this imperative. Given bi-temporal images, models must synthesize cross-temporal visual evidence to render a pixel-level binary change map. Traditional change detection paradigms, including encoder-decoder networks and open-vocabulary formulations, narrowly optimize for discriminative mask prediction (Dong et al. 2024; Korkmaz and Patel 2026; Zhu et al. 2025), structurally divorcing the semantic interpretation of changes from spatial footprints. While recent VLMs support interactive change captioning and localization (Deng, Zhou, and Wu 2025; Li et al. 2026b; Elgendy et al. 2024), natively generating complete, dense spatial masks remains challenging. This limitation exposes a critical dichotomy between

Figure

Figure 1: Illustration of the proposed QUAKE grammar. We take 64×6464 \times 64 change mask and ℓ=4\ell = 4 as an example.

language-centric reasoning and pixel-level decision-making.

Rather than bridging this gap, contemporary VLM architectures often relegate dense prediction to an auxiliary objective, mapping hidden states to spatial masks via task-specific decoders (Lai et al. 2024; Ren et al. 2024; Ma et al. 2025; Li et al. 2026a), which remains fundamentally orthogonal to the core autoregressive mechanism. While effective in isolation, this decoupling necessitates heterogeneous objectives, encumbering end-to-end training and stifling direct token-level optimization. Furthermore, sparse-cue methods that delegate mask generation to external segmenters (e.g., SAM (Kirillov et al. 2023)) via bounding boxes or points (Sun et al. 2026; Yao et al. 2026; Liu et al. 2025) not only lack native support for bi-temporal contexts but also falter on multiple fragmented instances. These coarse prompts inevitably entangle subtle targets with irrelevant background, triggering cascading localization errors that amplify false predictions.

Integrating dense prediction natively into VLMs requires formulating output masks as structured, autoregressive language. The emerging text-as-mask paradigm (Lan et al. 2025, 2026; Liu and Lian 2026) offers a promising trajectory by serializing spatial layouts into textual descriptors. However, existing methods relying on flat patch-grid serialization treat

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

all spatial regions equally, misaligning with sparse change masks where fine-grained boundaries demand high token density. Furthermore, this uniform encoding causes densely distributed targets in remote sensing (RS) imagery to suffer from severe spatial adhesion, erroneously collapsing distinct instances into a single connected component. Consequently, the task necessitates a hierarchical representation capable of efficiently compressing uniform regions while adaptively allocating tokens to areas demanding high spatial acuity.

We introduce QUAKE-CD, a framework that unifies language-centric reasoning with pixel-level prediction by encoding binary masks via Quadtree mask Encoding (QUAKE)—a hierarchical spatial language shown in Figure 1 that supports dense spatial optimization directly within the native autoregressive token space. By recursively refining heterogeneous regions and collapsing uniform areas, QUAKE adaptively allocates tokens to preserve fine-grained boundaries while compressing redundant background. Crucially, its grammar makes structural errors observable, transforming dense prediction into a syntax-verifiable language generation that aligns naturally with explicit reasoning traces.

Trained exclusively on QUAKE, VLMs mechanically memorize the syntax but struggle to grasp the underlying semantics, degenerating into hollow pattern matching. To explicitly guide the model and anchor this grammar in genuine visual understanding, we construct QUAKE-CoT, an instruction dataset that couples QUAKE sequences with chain-of-thought (CoT) rationales detailing the type, location, and extent of changes. To avert optimization conflicts, our progressive curriculum decouples these dual objectives: the model first masters valid sequence generation before integrating the bi-temporal rationales. Exploiting the syntactic verifiability of QUAKE's textual form, we further align the model via grammar-gated dual-reward reinforcement learning (RL). A rule-based Quadtree Reward validates syntax and scores decoded masks against ground truth using a Tversky-style spatial objective, preventing format collapse while optimizing dense prediction quality. In parallel, ThinkAnswer Reward evaluates whether the reasoning trace faithfully reflects the observed changes. Optimizing these rewards with GRPO (Guo et al. 2025) jointly enforces grammaticality, pixel-level accuracy, and visually grounded reasoning.

Experiments show that QUAKE-CD substantially improves pixel-level VLM change detection. It achieves 78.31% accumulated F1 and 73.18% per-image F1, surpassing decoder-based baselines and uniform text-as-mask serializations. The results expose two failure modes of existing designs: decoder-based VLMs produce spatial outputs weakly coupled to cross-temporal evidence, while uniform grid serialization over-covers small, densely distributed changes. Reasoning evaluations further confirm that grounded spatial supervision yields more faithful bi-temporal explanations.

In summary, our main contributions are:

• We introduce QUAKE, a hierarchical text-as-mask language whose context-free grammar admits linear-time syntactic and structural validation, embedding dense spatial prediction into the autoregressive token space.

• We construct QUAKE-CoT, a dataset that explicitly couples hierarchical mask sequences with CoT rationales, and establish a progressive curriculum to anchor spatial grammar in genuine bi-temporal understanding.

• We develop a grammar-gated dual-reward RL paradigm that jointly optimizes format validity, pixel-level mask accuracy, and semantic reasoning fidelity within a unified token-level optimization process.

References (89)

  • Change detection techniques for remote sensing applications: A survey
  • Qwen3-VL Technical Report
  • C.; and Patel, V. M. 2022
  • Remote sensing image change detection with transformers
  • A spatial-temporal attention-based method and a new dataset for remote sensing image change detection
  • Measuring and improving chain-of-thought reasoning in vision-language models
  • Changechat: An interactive model for remote sensing change analysis via multimodal instruction tuning
  • Ding, H.; Tang, S.; He, S.; Liu, C.; Wu, Z.; and Jiang, Y.-G. 2025. Multimodal referring segmentation: A survey. arXiv preprint arXiv:2508.00265. (opens arXiv in a new tab)
  • ChangeCLIP: Remote sensing change detection with multimodal vision-language representation learning
  • Geollava: Efficient fine-tuned vision-language models for temporal change detection in remote sensing (opens arXiv in a new tab)
  • DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning
  • Change captioning: A new paradigm for multitemporal remote sensing image analysis
  • J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W.; et al
  • Teochat: A large vision-language assistant for temporal earth observation data
  • Fully Convolutional Networks for Multisource Building Extraction From an Open Aerial and Satellite Imagery Data Set
  • Segment anything
  • RemoteVAR: Autoregressive Visual Modeling for Remote Sensing Change Detection (opens arXiv in a new tab)
  • Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Lisa: Reasoning segmentation via large language model
  • Text4seg++: Advancing image segmentation via generative language modeling
  • Text4seg: Reimagining image segmentation as text generation
  • Segearth-r1: Geospatial pixel reasoning via large language model (opens arXiv in a new tab)
  • Decoding the Delta: Unifying Remote Sensing Change Detection and Understanding with Multimodal Large Language Models (opens arXiv in a new tab)
  • BTCChat: Advancing remote sensing bi-temporal change captioning with multimodal large language model
  • Remote sensing image change captioning with dual-branch transformers: A new method and a large scale dataset
  • Towards Faithful Reasoning in Remote Sensing: A Perceptually-Grounded GeoSpatial Chain-of-Thought for Vision-Language Models (opens arXiv in a new tab)
  • RSUniVLM: A unified vision-language model for remote sensing via Granularity-oriented MoE
  • ViLaCD-R1: A Vision-Language Framework for Semantic Change Detection in Remote Sensing (opens arXiv in a new tab)
  • A.; Juvekar, A.; Yu, T.; Wahed, M.; and Lourentzou, I. 2025
  • Grammar-aligned decoding
  • Glamm: Pixel grounding large multimodal model
  • Pixellm: Pixel reasoning with large multimodal model
  • A deeply supervised attention metric-based network and an open aerial image dataset for remote sensing change detection
  • Earthdial: Turning multi-sensory earth observations to interactive dialogues
  • A.; Yang, Y.; et al. 2026 (opens arXiv in a new tab)
  • Gemini: A Family of Highly Capable Multimodal Models
  • Kimi K2.5: Visual Agentic Intelligence
  • Features of similarity
  • Towards visual grounding: A survey
  • Mc-bench: A benchmark for multi-context visual grounding in the era of mllms
  • Towards comprehensive interactive change understanding in remote sensing: A large-scale dataset and dual-granularity enhanced VLM. IEEE Transactions on Geoscience and Remote Sensing
  • Remotereasoner: Towards unifying geospatial reasoning workflow
  • SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuning (opens arXiv in a new tab)
  • Semantic-CD: Remote sensing image semantic change detection towards open-vocabulary setting
  • The specification renders $\mathcal{L}_Q$ a syntactically and structurally checkable mask language whose well-formedness is decidable in linear time, independent of the model's semantic predictions
  • top-left, top-right, bottom-left, bottom-right
  • A single foreground pixel within any leaf forces that leaf's occupancy bit to 1, and the decoder renders every active leaf as fully foreground
  • Invalid sequences trigger categorical safety fallbacks:
  • <BG> and <FG> generate $32 \times 32$ zero or one blocks, respectively
  • We build upon established bi-temporal remote sensing benchmarks, augmenting them with hierarchical mask sequences and teacher-distilled reasoning traces
  • SYSU-CD (Shi et al. 2021), LEVIR-CD and LEVIR-CD+ (Chen and Shi 2020)
  • Filtering yields the final samples documented in Table 6
  • All human assessments were conducted by the same four graduate annotators using a common rubric for factual consistency and spatial grounding
  • The rationale-mask agreement rate is defined as
  • Table 6 details the final data splits
  • Reasoning traces total approximately 3.09M Qwen3-VL tokens, averaging 60.4 words (84 tokens) per trace—roughly an order of magnitude longer than the single-sentence captions in LEVIR-CC (Liu et al. 2022) (7.99 words) and DUBAI-CC (Hoxha et al. 2022) (7.35 words)
  • Standard discriminative benchmarks such as LEVIR-CD and SYSU-CD provide only binary masks, leaving language supervision to downstream users
  • Captioning datasets provide language supervision but do not provide dense binary masks for autoregressive mask generation
  • The training set combines policy rollouts scored by IoU, one Gemini-synthesized hard negative per query, and the ground-
  • Each response $y_i$ is parsed to extract its quadtree mask sequence $y_{\text{seg}}^{(i)}$
  • Following the system prompt in Figure 14, the generator is instructed to inject exactly one factual conflict into the rewritten trace, drawn from three categories: fabricating a change that did not occur, displacing the change to an incorrect location, or asserting no-change when change is present
  • We enforce this through a margin check threshold $\tau = 0.1$:
  • These pairs are aggregated to train the Qwen3-VL-8B-Instruct reward model
  • Otherwise:
  • The additive +0.03 rewards strict-decoded predictions whose Tversky score clears the boundary-preservation threshold
  • These ratios quantify the remaining model-generation gap after accounting for representation-specific quantization
  • >Representation</td><td colspan=
  • >Method</td><td colspan=
  • >Dataset</td><td colspan=
  • We therefore evaluate its scalability on the original $1024 \times 1024$ images from LEVIR-CD and LEVIR-CD+, without high-resolution fine-tuning or architectural modification
  • We assess external validity on WHU Building CD (Ji, Wei, and Lu 2019), which is excluded from data construction, supervised fine-tuning, and reinforcement learning
  • The oracle is obtained by encoding and deterministically decoding the WHU ground-truth masks with the QUAKE representation
  • >$(\alpha, \beta)$</td><td colspan=
  • >$\mu$</td><td colspan=
  • >KL Coefficient</td><td colspan=
  • The results establish effective generalization across shifts in spatial resolution, sensor characteristics, and scene appearance
  • The token-conditioned visualization projects the attention associated with each generated QUAKE token onto its designated visual tile
  • Across all cases, both attention views concentrate on regions undergoing meaningful temporal changes, while largely unchanged background areas receive weak responses
  • (3), and the KL coefficient 0.04
  • **Structure mismatch** occurs when the parsed grid does not match the expected $H/32 \times W/32$ dimensions
  • meaning a run-length encoding for consecutive identical
  • (1) Time-1 (earlier), (2) Time-2 (later), (3) a binary change reference (white = changed, black = unchanged)
  • what changed in region X
  • **No** mention of (3), mask, ground truth, labels, reference/binary/auxiliary maps, or any hint that a separate change map exists
  • value, the substring
  • keep a similar length/granularity; avoid verbosity, repetition, and over-short underspecified text
  • avoid verbose, repetitive, or overly short responses that lose meaning
  • Synonyms and paraphrases are acceptable
  • Exact wording need not match; compatible or overlapping locations count