arXiv:2611.09476cs.AINov 2026

Manuscript Offprint

arXiv:2611.09476

LEMMO: A Large Electromagnetic Model leveraging Pretrained LLMs for Million-Sample Signal Understanding

Mingkai Li, Jiajun Wu, Yihan Mao, Zilin Sang, Taosong Yu, Yuan Ma, Minghe Liu, Qianqian Yang, Zhiguo Shi

ABSTRACT

Large language models have expanded beyond text to vision, audio, and other modalities, but understanding raw electromagnetic (EM) signals remains challenging. Wideband recordings can contain millions of samples, whereas existing waveform-based EM models are primarily evaluated on short in-phase and quadrature (IQ) segments, leaving long-recording understanding and detailed description insufficiently explored. We introduce LEMMO, a large EM model for instruction-driven recognition and description of long raw IQ recordings. LEMMO combines a linear-attention EM encoder with anti-aliased temporal resampling to process up to eight million complex samples. Its EM-text interaction module conditions learnable queries on instructions before retrieving signal evidence. Compact queries support recognition, while structured queries with auxiliary factual supervision organize scene-level properties, signal attributes, and cross-signal relationships for detailed description. We also construct and release a unified 1.38-TB corpus of real-world and synthetic EM signals, including LEMMO-ShortQA and LEMMO-LongDesc. Compared with MERLIN-LoRA, LEMMO improves mean EM-Bench perception accuracy by 15.77 %, mean strategy-generation ROUGE-L F1 by 4.38 points, and mean LEMMO-ShortQA accuracy by 14.31 %. It also improves categorical and numerical fact F1 on both LEMMO-LongDesc tasks while preserving its language backbone's MMLU performance. Our code and datasets are available at https://github.com/N1rv4n4/LEMMO and https://huggingface.co/datasets/DaftJun/RFLAS, respectively.

1 Introduction

Electromagnetic (EM) signals carry information about the wireless activities around us: which devices are transmitting, how they use the spectrum, and how their transmissions overlap or interfere. Interpreting this information supports applications across wireless communications, environmental sensing, autonomous systems, and security (Zhang et al., 2024; Dong et al., 2021; Yu et al., 2024b). Such understanding extends beyond isolated waveform classification to identifying signal components, characterizing their behavior, and interpreting their temporal and spectral relationships. Large language models (LLMs) have expanded beyond language to modalities such as vision, enabling natural-language interaction with increasingly diverse types of information Dai et al. (2023); Huang et al. (2023); Chen et al. (2024). Extending this capability to EM signals requires a corresponding interface that extracts instruction-relevant evidence from raw waveforms and incorporates it into response generation.

Existing research provides important steps toward this objective. Task-specific deep learning methods have advanced automatic modulation recognition (AMC) (O'Shea et al., 2018; Li et al., 2023), jamming pattern recognition (JPR) (Wang, 2019; Wang et al., 2026), and radio frequency (RF)-based unmanned aerial vehicle (UAV) identification (Yu et al., 2025; Cai et al., 2024). EM foundation models, including SpectrumFM and EMind, broaden this scope by learning transferable

*Equal contribution

†Corresponding Author

Table 1: Comparison of capabilities between existing EM models and LEMMO.

ModelRaw IQ EncodingLong IQ SequenceNatural Language QADetailed Signal DescriptionUAV RF Recognition
SpectrumFM✓✗✗✗✗
EMind✓✗✗✗✗
RF-GPT✗✗✓✓✗
PReD✗✗✓✗✗
MERLIN✓✗✓✗✗
LEMMO✓✓✓✓✓

representations through self-supervised pretraining (Zhou et al., 2025; Luo et al., 2025). MERLIN and PReD further connect signal representations with LLMs for question answering and strategy generation (Shen et al., 2026; Han et al., 2026). However, representative waveform-based models are primarily trained and evaluated on segments containing hundreds to a few thousand in-phase and quadrature (IQ) samples; these evaluations do not establish their ability to understand million-sample raw-IQ recordings (Zhou et al., 2025; Luo et al., 2025; Shen et al., 2026). RF-GPT explores wideband understanding through spectrograms, but magnitude spectrograms do not explicit retain phase information, and their time-frequency detail depends on image resolution (Zou et al., 2026a).

We study instruction-driven understanding directly from continuous wideband IQ recordings spanning multiple frequency channels at a fixed receiver center frequency. The temporal locations and frequency bands of signals of interest are unknown in advance, so the model cannot rely on prior target-specific cropping, bandpass filtering, or downsampling. This setting presents two coupled challenges. First, high sampling rates produce long inputs even over brief intervals: a 10 ms recording at 100 MS/s contains one million complex samples. Processing these inputs requires efficient encoding that preserves local waveform characteristics and integrates context across the recording. Second, the evidence needed from a recording depends on the instruction. Recognition requires category-discriminative features, whereas detailed description requires distinguishing signal components, associating attributes with them, and describing their relationships. The signal-to-language interface must therefore both select relevant evidence and organize it for the requested task.

To address these challenges, we introduce LEMMO, a framework that combines hierarchical waveform processing with instruction-conditioned evidence retrieval. A causal linear-attention EM encoder extracts signal features, and a Temporal Resampler reduces the sequence length for recordings exceeding one million complex samples. The resampler compresses encoded subsequences by a factor of 64, concatenates them in temporal order, and integrates their context through bidirectional linear attention; shorter recordings bypass resampling. This design supports inputs of up to eight million complex samples. The EM-text interaction module then conditions learnable queries on the instruction before they attend to signal features, making evidence selection instruction-dependent. The retrieved representations are projected into a pretrained LLM's embedding space for response generation.

We further tailor the query organization and supervision to the different requirements of recognition and description. Q16 Recognition uses 16 general-purpose queries trained jointly for language generation and classification. Q128 Description uses 128 queries organized into global, object-feature, and relation groups, together with physical position information and auxiliary factual supervision. This structure organizes evidence at the scene, object, and relation levels, while the auxiliary objectives supervise the representations used for generation without passing fact-head predictions to the LLM. To support training and evaluation, we construct and release a unified corpus of real-world and synthetic IQ recordings, including LEMMO-ShortQA for recognition and LEMMO-LongDesc for detailed description. Across the recognition tasks evaluated in EM-Bench and LEMMO-ShortQA, LEMMO achieves higher mean accuracy than Merlin-LoRA.

Our contributions are threefold:

  • We combine linear-attention waveform encoding, temporal compression, and cross-subsequence contextualization to support inputs of up to eight million complex samples.

  • We condition learnable queries on instructions before signal retrieval and develop two complementary configurations: compact recognition queries with discriminative supervision, and structured description queries with auxiliary factual supervision.

  • We release real-world and synthetic raw-IQ recordings for representation learning and language supervision, including LEMMO-ShortQA and LEMMO-LongDesc for recognition and detailed descriptions of signal components, attributes, and relationships.

References (82)