1. Introduction
Terrain segmentation is a fundamental capability of robotic environmental perception because it provides dense semantic cues for scene understanding and terrain-aware representation in unstructured outdoor environments [
1,
2,
3,
4]. Its practical importance spans multiple application scenarios, including off-road autonomous driving, legged robot locomotion, planetary rover navigation, and other field robotics tasks, where reliable terrain understanding supports robust perception, environment interpretation, and subsequent high-level system reasoning under complex conditions [
1,
2,
3,
5].
Meanwhile, outdoor terrain perception increasingly relies on heterogeneous sensors because no single sensing technology can remain robust under all environmental and operational conditions. As the most widely deployed visual modality, RGB cameras provide dense appearance and texture cues at low cost, but their performance degrades under illumination variation, shadows, and adverse weather [
1,
4]. When explicit geometric awareness is required, LiDAR directly provides scene structure and range measurements, yet its outputs are typically sparse, relatively expensive, and less informative in fine-grained semantic texture representation [
6,
7]. For low-light or night-time operation, thermal infrared imaging offers more stable radiometric cues than RGB, but it often lacks detailed boundaries and rich appearance patterns [
8]. In highly dynamic scenarios, event cameras respond asynchronously to brightness changes and thus provide high temporal resolution and strong robustness to rapid motion, although they contain limited static appearance information [
9]. Consequently, terrain observation is shifting from single-modality RGB sensing to multi-modality perception with complementary yet dynamically available inputs [
10,
11,
12]. At the same time, practical applications are also rapidly demanding open-vocabulary semantic understanding, where systems are no longer restricted to predefined closed class sets but must recognize and segment unseen concepts [
13,
14].
However, existing methods typically address only one of these requirements. To adapt to variable input modalities, Zhang et al. introduced the direction of arbitrary-modal semantic segmentation (AMSS) [
12]. Many AMSS methods rely on aggressive channel expansion for modality alignment [
15,
16,
17], which can distort modality representations and degrade accuracy. Architecturally, they often introduce complex fusion modules after independent encoding for each modality, leading to substantial increases in parameters and computation while failing to efficiently leverage the priors of pre-trained models. More importantly, although AMSS can handle modality variability, it remains constrained by closed label sets. Open-vocabulary segmentation overcomes this limitation and enables pixel-level semantic prediction from arbitrary text descriptions [
18,
19,
20]. For RGB images, mainstream open-vocabulary segmentation methods commonly adopt a two-stage pipeline that first generates class-agnostic mask proposals and then performs classification using Contrastive Language-Image Pre-training (CLIP) [
21,
22,
23,
24]. This pipeline is prone to cascading errors, where biases from the proposal stage can propagate and amplify, ultimately degrading segmentation performance [
8,
25].
Motivated by these observations, the new task of open-vocabulary segmentation under arbitrary imaging modalities for terrain understanding is explicitly formulated and systematically studied. This task requires stable pixel-level semantic prediction under the dual constraints of variable modality combinations and an open class space. To this end, AIM-SEEM is proposed on the basis of SEEM [
26]. ROA and CMB are introduced to enable stable integration of arbitrary modality combinations while keeping the backbone largely unchanged, thereby maximizing the reuse of its pre-trained visual priors. However, modality extension introduces significant distribution shifts that disrupt the original vision–text alignment in SEEM, causing its open-vocabulary capability to deteriorate noticeably under non-RGB inputs. To address this alignment degradation induced by modality extension, the Visual-Guided Text Tuner (VGTT) is introduced to perform vision-guided adaptive calibration of text representations, thereby restoring robust open-vocabulary segmentation under arbitrary modalities. The main contributions of this work are:
The new task of open-vocabulary terrain segmentation under arbitrary imaging modalities is proposed and systematically studied, which unifies the key challenges introduced by variable modality combinations and an open class space.
AIM-SEEM is presented as a SEEM based framework that supports stable integration of arbitrary modality combinations while maximizing the reuse of pre-trained visual priors. Vision guided adaptive text calibration is further introduced to alleviate vision–text alignment degradation caused by cross modality distribution shifts.
Comprehensive evaluations are conducted on two terrain segmentation benchmarks under three experimental settings, including full-modality, modality-agnostic, and open-vocabulary. The results show consistent gains in accuracy, robustness, and generalization, and AIM-SEEM outperforms prior methods.
The remainder of this paper is organized as follows.
Section 2 reviews related studies on terrain segmentation, arbitrary-modality semantic segmentation, and open-vocabulary segmentation.
Section 3 presents the proposed AIM-SEEM framework, including the overall architecture and the designs of ROA, CMB, and VGTT.
Section 4 describes the datasets, experimental settings, and experimental results under the full-modality, modality-agnostic, and open-vocabulary settings.
Section 5 concludes this paper and discusses future research directions.
3. Materials and Methods
AIM-SEEM is an open-vocabulary terrain segmentation architecture developed by extending SEEM to support arbitrary imaging modalities.
Section 3.1 outlines the overall framework.
Section 3.2,
Section 3.3 and
Section 3.4 then detail its three core components: the RGB-Oriented Aligner (ROA), the Cross-Modal Blender (CMB), and the Visual-Guided Text Tuner (VGTT).
3.1. AIM-SEEM Architecture
Figure 1 illustrates the architecture of AIM-SEEM. The design targets a practical gap when extending RGB-grounded open-vocabulary segmentation to arbitrary imaging modalities: modality shift and modality combinations can degrade the usability of RGB-pretrained priors and weaken vision–text alignment, even if the overall backbone remains unchanged. To address this, three customized modules are introduced around SEEM while keeping its core encoders intact, so that open-vocabulary recognition and segmentation remain stable under non-RGB inputs and heterogeneous modality subsets.
Built upon SEEM’s basic framework, AIM-SEEM retains the original visual encoder (SEEM-V) and text encoder (SEEM-T). In the visual stream, ROA and CMB handle heterogeneous channel dimensions and varying modality combinations by aligning modality-specific inputs into an RGB-compatible representation space and performing controlled cross-modal blending across multiple resolutions. In the text stream, VGTT refines text embeddings using modality-specific visual cues, which improves vision–text alignment under modality shift and is critical for open-vocabulary prediction beyond RGB.
Formally, let denote the modality index set, where is the number of modalities. For each , the input is , where may vary across modalities. ROA aligns each modality to a feature map. CMB then blends these aligned features to produce a unified multi-resolution representation , which is fed into the four hierarchical stages of SEEM-V.
In Stage 1, the blended
feature is processed as follows:
For subsequent stages
with resolutions
, let
. The self-encoded feature
is first computed. This is then fused with the corresponding CMB-blended feature
via a gated convex combination (see
Figure 2):
where ⊙ is element-wise multiplication. The gating map
is computed from both feature branches:
where
is the sigmoid function and
are learnable
convolutional layers. The final multi-scale visual features are
.
These features are upsampled by the pixel decoder to obtain per-pixel embeddings . Concurrently, the Transformer decoder uses Q learnable queries to generate class embeddings and mask embeddings . Binary masks are predicted via the dot product between and .
For class names , descriptive sentences are generated using a predefined template and encoded by SEEM-T, yielding initial text embeddings . VGTT refines these into by incorporating modality-specific visual evidence. Class prediction is performed by matching the refined text embeddings with .
3.2. RGB-Oriented Aligner
The RGB-Oriented Aligner (ROA) mitigates modality misalignment between arbitrary target modalities and the RGB-pretrained backbone by converting heterogeneous inputs into an RGB-friendly token sequence. Different from alignment strategies that rely on heavy modality-specific encoders or channel expansion, ROA performs an input side conversion to an RGB-compatible representation with minimal changes to the RGB-pretrained backbone, thereby maximizing the reuse of pretrained visual priors under non-RGB inputs. As shown in
Figure 3, given an input modality
, ROA produces a unified aligned representation for subsequent cross-modal processing.
ROA first predicts a scalar adaptive weight
via Pyramid Channel Weighting (PCW), whose structure is included in
Figure 3. Formally, PCW is defined as a composition of four operators (UpConv, LayerNorm, ReLU, DownConv) followed by average pooling:
where
denotes LayerNorm, and
denotes the sigmoid function, ensuring
. The resulting
w is used to construct two complementary reweighted inputs:
Here,
is intended to emphasize informative local structures (e.g., boundaries and fine patterns), whereas
is designed to retain stable contextual cues (e.g., large homogeneous regions), yielding complementary modal adaptation without relying on any explicit frequency-domain assumptions.
Next, as depicted in
Figure 3, the detail-enhancement branch expands channels via a
convolution and applies patch embedding with
downsampling to obtain
. In parallel, the context-preservation branch applies channel-wise patch embedding followed by a lightweight fully-connected projection to match the channel dimension, producing
. The two branches are fused by element-wise summation:
Finally, ROA permutes the fused feature map into a token sequence as the aligned output:
where
denotes flattening the spatial grid into tokens.
3.3. Cross-Modal Blender
The Cross-Modal Blender (CMB) extends the segmentation capability of the RGB-pretrained backbone to arbitrary modality combinations by enabling cross-modal interaction and adaptive fusion. The novelty of CMB lies in controlled multi-resolution blending, where complementary cues are integrated only when reliable and modality-specific noise is suppressed via gated fusion, which improves robustness to missing or unreliable sensors and prevents performance collapse under arbitrary modality subsets. As shown in
Figure 4, CMB takes the multi-modal
aligned features produced by ROA as input and generates multi-resolution blended features
.
Cross-modal concatenation. For a given sample, the token sequence
of each modality is reshaped back to a spatial grid
, with
. All modalities are then concatenated along the channel dimension:
Spatial-channel attention blending. CMB applies a spatial-channel attention mechanism to adaptively reweight multimodal features. The spatial attention map
and the channel attention vector
are defined as
where
pool along the channel dimension to produce a spatial map, and
pool over spatial dimensions to produce a channel descriptor. Using element-wise multiplication with broadcasting, the blended 4× feature is computed as
where ⊙ denotes element-wise multiplication with broadcasting. Finally,
is flattened into tokens to match the SEEM-V input format:
Multi-resolution generation. To provide multi-scale cues for segmentation, CMB generates lower-resolution blended features in parallel. For each target resolution
, a patch embedding operator
is applied to each modality, followed by cross-modal aggregation and refinement:
where
, and
denotes a lightweight feature mixing block (e.g., a Transformer/multi-layer perceptron (MLP) block) operating at the corresponding resolution. This parallel design allows the model to exploit multi-resolution information while maintaining consistent fusion behavior across modality combinations.
3.4. Visual-Guided Text Tuner
When the visual stream is extended from RGB to non-RGB modalities, the distribution of pixel-level features may deviate from the alignment space learned by the RGB-grounded vision–language model, which directly harms open-vocabulary recognition even if the segmentation backbone remains strong. VGTT addresses this previously under-discussed failure mode by refining text tokens with modality-specific visual evidence from the pixel decoder, so that the resulting text representations better match the current visual feature distribution.
Let
denote the text embeddings of
N class prompts produced by SEEM-T, where
N is the number of class prompts (i.e., classes) and
D is the embedding dimension. Let
denote the pixel-decoder output. It is reshaped into a token sequence
, with
, and projected to the same embedding dimension via a learnable linear layer
.
In VGTT, the visual tokens serve as a fixed memory for cross-attention, i.e.,
for all layers
l.
VGTT consists of
L stacked cross-attention Transformer layers, with
L set to 2. Each layer adopts a pre-normalization design and contains (i) a multi-head cross-attention (CA) sublayer and (ii) a position-wise feed-forward network (FFN) sublayer, both equipped with residual connections. For the
l-th layer (
), layer normalization is first applied:
The multi-head cross-attention is defined as
where
h is the number of attention heads,
, and
and
are learnable projection matrices. The text tokens are then updated via residual connections:
The feed-forward network
is implemented as a two-layer MLP with a non-linear activation. This design enables each text token to attend to modality-specific pixel evidence through cross-attention, while preserving the original semantics through pre-normalization and residual learning.
After L layers, refined text embeddings are obtained. These refined text representations are then used in the subsequent vision–text matching and mask decoding procedures following SEEM.
Overall, AIM-SEEM is not a simple modality-fusion variant of SEEM. The contribution is to jointly preserve pretrained visual priors and language grounding under modality shift, by aligning heterogeneous inputs, blending modalities in a controlled manner across resolutions, and re-calibrating text embeddings with modality-conditioned visual evidence. These components form a closed loop that maintains open-vocabulary segmentation performance beyond RGB and under arbitrary modality combinations.
5. Conclusions and Future Work
AIM-SEEM is proposed as a unified framework for open-vocabulary terrain segmentation under arbitrary imaging modalities and their combinations. The main contribution lies in formulating and addressing the open-vocabulary arbitrary-modality terrain segmentation problem through a unified pipeline that remains effective when the sensing modality changes and when multiple modalities are combined. To this end, three tightly coupled components are integrated into a coherent adaptation, fusion, and calibration process that jointly bridges the modality gap and preserves language grounding. Specifically, ROA converts heterogeneous modality features into an RGB-compatible representation space, which enables stable reuse of RGB-pretrained vision priors under non-RGB inputs by reducing feature distribution mismatch. Based on the aligned features, CMB performs controlled cross-modal blending and generates multi-resolution representations consistent with the hierarchical inputs expected by the vision encoder, while gated fusion selectively integrates complementary cues and down-weights modality-specific noise, preventing performance degradation when some sensors are unreliable. With a more stable visual feature distribution, VGTT further calibrates class text embeddings using modality-specific pixel evidence from the decoder, compensating for modality-induced vision–text misalignment and maintaining consistent language grounding for open-vocabulary recognition. With these designs, AIM-SEEM achieves state-of-the-art performance across three experimental setups on two benchmark datasets and shows clear advantages on non-RGB modalities.
Although the results demonstrate strong capability in handling arbitrary modalities, there remains room to improve absolute accuracy and stability when RGB is unavailable. Future work will focus on strengthening fault tolerance, including more reliable modality selection and uncertainty-aware fusion for alternative modalities. In addition, since the present study primarily emphasizes segmentation effectiveness, modality adaptability, and open-vocabulary generalization, efficiency-oriented optimization remains outside the main scope of this work. Therefore, computational cost control, model compression, and deployment acceleration will also be important directions for future research so as to improve practical applicability on resource-constrained platforms. The trade-off between base-class performance and novel-class generalization in open-vocabulary transfer also warrants further investigation. This trade-off is not introduced by AIM-SEEM but becomes more apparent when the model is pushed toward stronger open-vocabulary generalization. Ablation results with prompt-based strategies suggest that the balance can be improved to some extent, yet it is not fully resolved, motivating more principled mechanisms for balancing base and novel classes in open-vocabulary terrain segmentation.