Manuscript Offprint

arXiv:2610.12142

Instruction-Conditioned Electromagnetic Spectrum Understanding via Budget-Adaptive Signal Tokenization

Lei Zhai, Zhihao Chang, Shuyuan Yang, Zhixi Feng

Abstract

Electromagnetic spectrum monitoring increasingly requires flexible analysis beyond task-specific recognition and detection. Multimodal large language models offer a unified interface, but extending vision-language models (VLMs) to raw I/Q signals requires tokenization that balances fidelity against a strict budget. For signals, dense encoding causes token costs to grow with observation length, whereas fixed-resolution compression may discard short-duration or localized signal evidence. Thus, we propose BATok, a budget-adaptive signal tokenizer that adjusts token capacity to the input length while allocating that capacity according to the signal content. BATok constructs candidate representations from signal-derived features using lightweight multi-resolution branches, then combines a local energy prior with learnable queries to resample these representations into compact signal tokens. The number of tokens adapts to the input length while remaining strictly bounded. The resulting tokens are projected into the language embedding space of VLMs. We further introduce EMSpec-Instruct, a multimodal instruction dataset aligning raw I/Q signals, waterfall images, and language supervision for modulation recognition, structured detection, and language-conditioned signal grounding. Experiments show that BATok learns effective signal representations and achieves competitive performance across all tasks.

Introduction

Electromagnetic spectrum monitoring supports communications, spectrum management, interference analysis, and dynamic spectrum access (Yucek and Arslan 2009; Ding et al. 2018). Beyond recognizing predefined signal classes, practical monitoring also requires detecting, localizing, and characterizing signals of interest across time and frequency (Ding et al. 2018; Boegner et al. 2022b). These practical demands call for spectrum analysis systems that can flexibly respond to different information needs rather than producing only a fixed set of predictions. Figure 1 contrasts this unified objective with task-specific pipelines.

Existing spectrum-analysis methods generally use task-specific encoders with dedicated classification or detection heads (O'Shea, Corgan, and Clancy 2016; Shalu and Singh 2026; Boegner et al. 2022b). Although effective for individual objectives, they expose separate interfaces for recognition, detection, and localization. Supporting additional

Figure

Figure 1: Motivation for unified instruction-conditioned spectrum understanding. Task-specific models require manual redesign, while detector–LLM cascades inherit upstream errors. Our framework couples signal tokenization with a VLM through a unified interface.

queries therefore typically requires manually designed rules, post-processing, or new model components. A detector–LLM cascade can provide a natural-language interface, but its answers remain constrained by the labels, boxes, and attributes produced by the upstream detector. In contrast, multimodal large language models (MLLMs) provide a general interface for multimodal perception, reasoning, and language generation (Yin et al. 2024; Jiang et al. 2026).

Building on recent advances in audio-language models (KimiTeam et al. 2025; Yang, Ho, and Lee 2025), video-language models (Zhang et al. 2025; Tang et al. 2026), and time-series-language models (Wang et al. 2025; Liu et al. 2025a), recent RF-oriented MLLMs connect electromagnetic observations to language through visual representations, including waveform plots, spectra, spectrograms, waterfall images, and constellation diagrams (Zou et al. 2026b,a; Han et al. 2026; Bara et al. 2026). However, these vision-aligned interfaces convert numerical I/Q samples into fixed-resolution images before tokenization. Such conversion may attenuate waveform-level amplitude, phase, and transient evidence, while the visual token capacity is de-

∗^{*}Corresponding author: Shuyuan Yang.

termined by image resolution rather than the duration and content of the original observation. Moreover, generic audio and time-series tokenizers are not designed around the coupled physical structure of I/Q samples.

Existing signal encoders achieve strong performance on task-specific signal recognition using CNN-based (Du et al. 2022), RNN-based (Yao, Yang, and Huang 2025), Transformer-based (Zhai et al. 2025), and state-space-based (Zhang et al. 2024; Ma, Wang, and Zhang 2025) architectures. Nevertheless, they typically produce global representations for fixed prediction heads or temporal features whose granularity is determined by predefined strides, pooling ratios, or patch sizes. This creates a capacity mismatch for mixed-length observations: dense representations become expensive for long signals, whereas a uniformly small output budget may discard localized evidence. Consequently, existing encoders generally do not adapt their output granularity jointly to input length and information distribution. Integrating raw I/Q into an MLLM therefore requires a tokenizer that adapts its representation capacity to signal length and content while keeping the output strictly bounded.

To address these challenges, we develop an instruction-conditioned multimodal framework for electromagnetic spectrum understanding. At its core, we introduce BATok, a signal tokenizer that adapts the total token capacity to the input length and adapts temporal aggregation to the signal content for VLM conditioning. BATok first constructs candidate signal representations using signal-derived amplitude, power, and phase features together with lightweight multi-resolution temporal branches. It performs evidence-guided query resampling to compress variable-length features into compact signal tokens, while a monotonic token-budget function allocates larger yet strictly bounded representation capacity to longer observations. The resulting tokens are projected into the language-model embedding space and jointly processed with waterfall-image tokens and textual instructions. To provide supervision for this setting, we construct EMSpec-Instruct, a multimodal instruction dataset that aligns raw I/Q observations and waterfall images with modulation recognition, structured detection, and language-conditioned signal grounding.

Our main contributions are summarized as follows:

• We construct EMSpec-Instruct, a multimodal instruction dataset aligning I/Q signals, waterfall images, and language supervision for modulation recognition, structured detection, and language-conditioned signal grounding.

• We propose BATok, a lightweight signal tokenizer with a compact parameter footprint. It uses multi-resolution evidence-guided query resampling to convert mixed-length I/Q observations into informative tokens with an adaptive yet strictly bounded budget.

• We integrate BATok with a VLM through continuous signal-token projection. Experiments demonstrate the effectiveness and show that I/Q signals provide complementary waveform-level evidence beyond waterfall images.

References (46)