TL;DR
FIRM (Fine-grained Intra-token Representation of Masks) addresses a critical bottleneck in Multimodal Large Language Models (MLLMs) for remote sensing: the loss of spatial detail caused by token compression. By predicting an $r \times r$ binary sub-cell pattern for each visual token instead of a single foreground/background label, FIRM preserves local structures without requiring heavy external decoders. Combined with a lightweight continuous renderer, it achieves state-of-the-art results across five prominent remote sensing reasoning and referring segmentation benchmarks.
What Problem Does This Paper Address?
Reasoning segmentation requires an MLLM to interpret implicit natural language instructions (e.g., "segment the facility designed for a bat-and-ball team game") and produce precise pixel-level masks. However, MLLMs process images by compressing patches into discrete "visual tokens."
In remote sensing imagery (satellite and UAV overhead views), targets are frequently tiny, densely packed, or structurally intricate. Consequently, multiple distinct objects or fine boundaries often get squeezed into the same visual token. Traditional MLLM segmentation paradigms either route token embeddings to a heavy, separate specialist decoder (like SAM) or predict a single binary label per token. The former moves mask generation outside the MLLM's unified interface, while the latter discards internal spatial structures, causing adjacent objects to merge and boundaries to become blocky and coarse.
Methods
FIRM bridges this representational gap directly within the MLLM's output interface through two key innovations:
- Fine-Grained Intra-Token Mask Representation: Instead of assigning one binary label per visual token, FIRM divides each token's corresponding region into an $r \times r$ grid of sub-cells. It introduces a set of $2^{r^2}$ discrete mask codes into the language model's vocabulary, where each code represents a unique binary sub-cell pattern. Given a target, the MLLM predicts a grid of these codes in a single parallel mask pass using target-conditioned
[MASK]queries. - Posterior-Anchored Continuous Rendering (PACR): To smooth out the discrete sub-cell boundaries, the probabilities of the predicted mask codes are marginalized to form a soft structural field. This field is passed to PACR, a lightweight continuous renderer. PACR fuses the structural field with high-resolution, pre-merge visual features and raw image details to compute a continuous residual correction, yielding sharp, pixel-perfect boundaries.
Datasets
The authors evaluated FIRM across five challenging remote sensing datasets:
- LaSeRS: A reasoning segmentation benchmark spanning various granularities, target multiplicities, and expression lengths.
- EarthReason: A comprehensive dataset for implicit geospatial reasoning segmentation.
- DRSeg: A UAV-based reasoning segmentation dataset categorized by attribute, scene, and spatial instructions.
- RRSIS-D & RISBench: Standard benchmarks for explicit remote sensing referring expression segmentation.
- LHRS-Bench: Used to evaluate how well the model retains general remote sensing visual understanding after being fine-tuned for segmentation.
Key Insights and Ideas
- Rethinking the Token Interface: The core "aha!" moment is that token compression isn't inherently fatal for fine-grained vision tasks; we simply need a richer, structurally aware output representation within the token space itself.
- Preserving Visual Understanding: By keeping mask generation inside the native language-model output interface (via mask codes), FIRM retains significantly more of its base model's general visual reasoning capabilities. When tested on LHRS-Bench, FIRM showed a minimal accuracy drop (only 6.3 points) compared to autoregressive text-masking methods which degraded by up to 30.4 points.
- Complementary Granularity: The discrete sub-cell representation and the continuous renderer work hand-in-hand. Even when the sub-cell grid is coarse ($r=1$), the continuous renderer provides a massive performance boost, and increasing the granularity to $r=2$ or $r=3$ yields consistent, compounding improvements.
Key Results
FIRM-4B (built on a Qwen3-VL-4B backbone) achieved outstanding quantitative performance:
- LaSeRS: Achieved 70.5% gIoU / 80.5% cIoU, ranking first on 16 out of 18 subset metrics and substantially outperforming models with much larger backbones.
- EarthReason: Reached an average of 76.5% gIoU/cIoU, outperforming the previous state-of-the-art (SegEarth-R2-3B) by 3.0 points.
- DRSeg: Exceeded the previous SOTA by more than 11 points across every single subset and metric.
- Efficiency: Despite the finer mask outputs, FIRM remains highly efficient. At its default $r=2$ setting, it operates faster and consumes less peak VRAM than competing mask-token prediction methods like SELF1E-8B and STAMP-7B.
Limitations and Future Work
The primary limitation of FIRM is the exponential scaling of the discrete mask code vocabulary. Because an $r \times r$ sub-cell grid requires $2^{r^2}$ unique codes, scaling beyond $r=3$ (which requires 512 codes) becomes impractical for a standard language model vocabulary.
Future work will likely explore alternative ways to scale spatial expressiveness within MLLM output interfaces without causing a vocabulary explosion, such as factorized codebooks or dynamic multi-scale token structures.
Summary updated