3 Pre-Training
本文为论文《LongCat-Flash-Omni 全模态技术报告》「论文原文」板块的对应章节,按 arXiv 官方全文逐字保留,层级与「中文全文翻译」板块一一对应。
This section describes the data curation process (Section 3.1) and training strategy (Section 3.2) of LongCat-Flash-Omni.
3.1 Data Curation
We collect a large-scale and diverse multimodal corpus with over 2.5 trillion tokens for pre-training. This pre-training corpus consists of the following components: audio data (Section 3.1.1), generic image-text data (Section 3.1.2), OCR, grounding and GUI data (Section 3.1.3), STEM data (Section 3.1.4), multi-image data (Section 3.1.5), video data (Section 3.1.6), and long-context multimodal data (Section 3.1.7).
3.1.1 Audio Data
Speech-Text Interleaved Data Our data consists of tens of millions of hours of audio with rich diversity. We employ the following pipeline to extract high-quality speech audios with consistent topics: First, we use a VAD system to split a long audio into speaking segments and remove non-speaking regions. Next, we use two proprietary ASR models for cross-validation, filtering out segments with significant discrepancies on transcription results. A multilingual speech aligner (Pratap et al., 2024) is then applied for forced alignment, yielding precise transcription timestamps. We further refine the dataset by computing the ratio between speech duration and text length for each segment, and discard the segments whose ratios fall outside the $0.5$-th to $99.5$-th percentile range. Finally, we merge adjacent speaking segments separated by silences shorter than 10 seconds to form the training samples.
To build speech-text interleaved training data, we first split each training sample into fragments using punctuation marks as delimiters: $(A_{1},T_{1}),(A_{2},T_{2}),\dots,(A_{n},T_{n})$, where $A_{i}$ and $T_{i}$ represent the $i$-th audio fragment and its transcribed text, respectively. We then randomly mask either audio or text component of some fragments, resulting in the final training input such as $(T_{1},A_{2}+T_{2},T_{3},A_{4}+T_{4},\dots)$ or $(A_{1},A_{2}+T_{2},A_{3},A_{4}+T_{4},\dots)$.
Audio Understanding Data We curate an audio understanding dataset that encompasses a wide range of tasks, including audio captioning, semantic audio understanding, paralinguistic analysis, acoustic scene and event detection, audio question answering, and music understanding. The dataset comprises a combination of open-source datasets and in-house proprietary datasets.
We apply text translation as data augmentation for speech recognition datasets, various speech models for pseudo-label generation and label quality filtering, particularly for paralinguistic understanding and audio captioning datasets, and a diverse set of prompts for each task to enhance instruction variability.
3.1.2 Generic Image-Text Data
Image Caption Data High-quality image captions are crucial for aligning visual representations with the language model’s knowledge space. To this end, we build a large-scale image-caption dataset by first applying a multi-stage cleaning pipeline across text, image, and image-text pair levels. Low-quality samples, such as those with extremely short text, abnormal resolutions, or poor image quality, are removed using elaborately-refined heuristic rules. At the pair level, we further filter samples using a SigLIP similarity threshold, discarding those below a strict minimum to preserve downstream diversity. We then improve the dataset through re-captioning to generate dense, fine-grained captions with multiple open-source vision-language models while incorporating world knowledge from original annotations. Additional filtering, including mixed-language detection, repetition removal, and truncation handling is applied to help mitigate hallucinations and ensure the final image-text pairs are accurate, informative, and contextually rich.
To broaden semantic coverage and avoid overfitting to dominant patterns, we significantly enhance data diversity and balance. We cluster image-text pairs based on joint image and text embeddings and resample from each cluster to ensure representation of long-tail content, while simultaneously removing low-quality samples frequently concentrated in specific clusters. Experimental results confirm that preserving diversity at this stage is more beneficial than overly strict quality filtering. Furthermore, to address the pronounced long-tail distribution inherent in multimodal datasets, we adopt a concept-based resampling strategy inspired by MetaCLIP (Xu et al., 2023). By expanding the vocabulary with a 200K-scale Chinese lexicon and resampling for broader concept coverage, we achieve a more balanced distribution across semantic categories.
Interleaved Image-Text Data Interleaved image-text data provides broader visual-textual coverage and improves few-shot performance, but it is often noisy and has uneven quality. To address this, we construct a high-quality dataset through a two-stage pipeline of filtering and diversity sampling from open-source data. In the filtering stage, we remove samples with noisy tokens, sensitive content, and overly complex samples, and discard corrupted or low-resolution images. We then improve image-text alignment by pairing each image with its most relevant text segment by SigLIP similarity scores, and discard pairs with low semantic alignment. To sample a diverse and evenly distributed subset, we apply density-based pruning and semantic clustering similar to (Abbas et al., 2024). Samples are scored by knowledge content, quality, and similarity, then evenly sampled based on the cluster they belong to and their distances to the cluster centroid. This process reduces the raw dataset by approximately 74%, while maintaining diversity and quality for multimodal pretraining.
To enhance domain knowledge and reasoning capabilities, we further curate an in-house, high-quality image-text interleaved dataset derived from video content containing educational materials. We use an automated pipeline to select only instructional video segments and remove other parts. Textual information is extracted using ASR and OCR, then refined by an LLM to improve accuracy and consistency. Videos are segmented into meaningful scenes, and key frames are extracted and aligned with the refined text based on temporal and semantic correspondence. The resulting dataset comprises structured, context-rich sequences of synchronized visual and textual information, significantly strengthening the model’s capacity for academic reasoning and multimodal understanding.
3.1.3 OCR, Grounding and GUI Data
OCR Data We curate richly annotated training samples encompassing various content types, including PDFs, papers and web pages. These efforts further enrich our document parsing dataset, enabling the model to learn both content extraction and structural understanding, and resulting in more robust and accurate document parsing. We further include diverse OCR datasets covering scene text, structured documents, handwriting, and mathematical expressions. We also synthesize multi-page and region-level OCR samples from scene and document OCR data, with each sample comprising 2 to 6 pages. For OCR-related VQA, we incorporate a diverse range of datasets for visual question answering, covering domains of text-centric VQA, document VQA, table VQA, and chart VQA.
Grounding Data To enhance the model’s grounding capabilities, we adopt several widely used open-source object detection datasets (Krishna et al., 2017; Mao et al., 2016; Lin et al., 2014; Shao et al., 2019). We perform data quality validation to filter out incorrect and redundant samples. Using these high-quality open-source datasets, we construct two types of question-answering data: localization data and region-captioning data. We uniformly adopt relative coordinates, which are normalized to the range of 0-1000, and process the data into JSON format. We also incorporate PixMo dataset (Deitke et al., 2024) to enhance the model’s counting ability.
GUI Data Graphical User Interface (GUI) data contains rich information on visual understanding and task planning, enabling automated interactions on both mobile and desktop platforms. To this end, we utilize diverse types of GUI-related data to enhance the model’s perception, grounding, and planning capabilities (Zeng et al., 2025). For GUI perception, we utilize a large number of image-text pairs from screenshots of various PC and mobile applications, covering tasks such as OCR, VQA, and captioning with GUI images. For GUI grounding, we construct instruction-answer pairs based on visual screenshots from diverse platforms and devices. For each screenshot we create multiple pairs, accounting for different UI elements and interaction possibilities. For GUI planning, we collect a diverse set of navigational paths with rich context from both mobile and desktop. The planning data comprises key components such as screenshot observations, summarizations, reasoning traces, and corresponding actions. To enhance the model’s reasoning capability, we integrate multiple inference settings that involve different combinations of action, summarization, and reasoning outputs. Furthermore, to capture the underlying logic of GUI dynamics, we incorporate contextual scenarios that enable the model to predict changes across different screenshots.
3.1.4 STEM Data
To strengthen the model’s foundational capabilities in scientific reasoning and problem-solving, we construct a large-scale, multimodal STEM (Science, Technology, Engineering, and Mathematics) dataset. The collected data are meticulously processed and structured into both multiple-choice and open-ended generative question-answer formats. We implement a rigorous multi-stage filtering pipeline to ensure factual accuracy, eliminate ambiguity, and standardize formatting. This effort culminates in a high-fidelity pre-training dataset comprising 15 million image-text pairs with substantial diversity in both subject matter and academic level, and covering a wide range of disciplines from K12 education to advanced university studies. This foundational dataset is essential for enabling the model to achieve deep conceptual understanding and robust reasoning capabilities across a broad spectrum of scientific and technical domains.
3.1.5 Multi-Image Data
To enhance the model’s fine-grained image understanding, we constructed a taxonomy with various coarse-grained and fine-grained capabilities, such as “emotion recognition”, “vehicle identification”, and “time calculation with clocks”. Based on this taxonomy, we employed diverse strategies to collect multi-image question answering data, including open-source datasets with careful data selection and augmentation, and synthesizing images using dedicated tools.
3.1.6 Video Data
Our video dataset is primarily sourced from a broad range of publicly available corpora, covering diverse task types such as video classification, temporal grounding, detection, captioning, and question answering. We design a comprehensive data processing pipeline centered on rigorous quality filtering and targeted enhancement, resulting in a refined, high-quality dataset tailored for large-scale pre-training.
Additionally, we curate an in-house dataset from publicly available video content with three components:
High-quality video caption data Our video captioning process begins by dividing videos into coherent scenes using a scene detection algorithm similar to Koala (Wang et al., 2025a). To ensure a wide range of content, we then cluster and sample these scenes. Finally, we employ a proprietary model to generate detailed captions that describe the sequence of events and the overall context of the video.
Temporally grounded video QA data We construct a high-quality temporally grounded dataset by applying rule-based transformations to convert annotations from tasks such as temporal action detection, segmentation, video summarization, and temporal sentence grounding into question-answer (QA) pairs. Data complexity is further enriched through a proprietary model that generates more challenging and in-depth QA pairs.
Action recognition video QA data To strengthen the model’s action recognition capability, we transform several publicly available video recognition datasets (Carreira et al., 2019; Goyal et al., 2017) into multiple-choice and open-ended video QA pairs.
3.1.7 Long-Context Multimodal Data
To address the challenges in long-context multimodal scenarios, we construct a specialized long-context multi-modal dataset. The dataset contains two main parts: (1) carefully filtered samples from open-sourced data and in-house pre-training data, with a focus on videos exceeding three minutes in length, and (2) in-house long-context synthesized data.
Our in-house long-context dataset includes image-text interleaved data and long-video QA data. Image-text interleaved data is constructed by concatenating single-image data with the same topic or rendering some text segments within long text into images. This data can help the model to improve in-context learning and information retrieval from long context (i.e., “a needle in a haystack”). Long video QA data is constructed by the following pipeline: (1) First we segment videos into multiple clips and generates rich descriptive captions for each clip. (2) For consecutive clips from the same video, we analyze their scene continuity from their captions. If the clips are identified as continuous, we concatenate and refine their captions into a coherent longer-form video caption. (3) Finally, we construct temporally grounded and detailed QA pairs to form our long-video QA dataset. This data can help the model to enhance long-sequence cross-modal modeling and memory retention.

Figure 5: Pre-training stages.
3.2 Training Strategy
One of the most fundamental challenges in training omni-modal models lies in the significant heterogeneity of data distributions across modalities. Each modality exhibits distinct structural properties and representational characteristics. Text, for instance, is a highly compressed and abstract symbolic representation of human knowledge, and LLMs have demonstrated remarkable success in modeling large-scale text sequences. Speech, on the other hand, is the acoustic manifestation of human thoughts and concepts, a sequential signal like text, but enriched with paralinguistic information such as speaker timbre, emotion, prosody, and accent. However, its semantic density is much lower than that of text: while a typical speech tokenizer operating at 12.5 Hz must generate roughly 12.5 tokens per second, humans only speak about 3-4 text tokens per second. This mismatch makes sequence modeling for speech inherently more challenging than for text.
Visual information introduces a fundamentally different modality. Unlike the sequential nature of text and speech, images encode spatial structures, requiring the model to reason over spatial relationships. Video data further increases the complexity by incorporating both spatial and temporal dynamics, making it a much more complicated modality to model effectively. This requires careful consideration of effective frame sampling strategies, token compression methods, and temporal modeling approaches, as well as the ability to handle long-range sequence dependencies.
Guided by these observations, we adopt a curriculum-inspired, progressive training strategy that gradually transitions from simpler to more complex sequence modeling tasks, as illustrated in Figure 5. We begin with large-scale text pretraining (Stage-0), leveraging the maturity and stability of LLMs as a strong initialization for subsequent multimodal learning. Building on this foundation, we introduce speech data, which is structurally closer to text, to align acoustic representations with the language model’s feature space and effectively integrate paralinguistic information (Stage-1). Once speech-text alignment is established, we incorporate large-scale image-caption pairs and vision-language interleaved corpora (Stage-2) for vision-language alignment, enriching the model’s visual knowledge. We then introduce the most complex video data to enable spatial-temporal reasoning (Stage-3), meanwhile integrating higher-quality and more diverse image datasets to enhance vision comprehension. To further support long-context reasoning and multi-turn interactions, we extend the model’s context window from 8K to 128K tokens (Stage-4). Finally, to mitigate information loss in audio inputs represented by discrete speech tokens, we introduce an audio encoder alignment stage (Stage-5) that enables the model to directly process continuous audio features, thereby enhancing fidelity in downstream speech tasks.
The following part of this section presents details of each pre-training stage.
3.2.1 Stage-0 Text Pre-Training
To establish a robust text foundation, the text pre-training stage follows the same procedure as the initial phase of LongCat-Flash (Meituan, 2025a). The model is trained on approximately 16 trillion tokens drawn from a high-quality and diverse text corpus, where a constant learning rate is applied. Throughout training, the proportion of high-quality reasoning data (e.g., STEM and code) is progressively increased to strengthen the model’s reasoning and programming capabilities, thereby providing a solid foundation for subsequent multimodal learning.
3.2.2 Stage-1 Text-Speech Continued Pre-Training
Building upon the text foundation model obtained from stage-0, we continue pre-training using a mixture of text data, speech-text interleaved data, and ASR data. All speech samples are discretized into four-codebook token sequences. During training, we jointly optimize multiple objectives: (1) pure text next-token prediction (NTP) to preserve strong text understanding and generation capabilities; (2) text-speech interleaved NTP to align speech and text representations within a unified sequence modeling framework; and (3) ASR-style tasks to build basic speech perception capability. As shown in Figure 6, text and audio embeddings are fused before being fed into the LLM decoder. We introduce four audio prediction heads, enabling LongCat-Flash-Omni to directly generate audio tokens. The model simultaneously predicts text tokens, semantic tokens, and acoustic tokens, with a one-step temporal offset between semantic and acoustic token predictions. Empirical observations indicate that ASR tasks contribute minimally to modality alignment, prompting us to include only a small proportion of ASR data in the training process. The overall training objective is defined as follows:
| | $\mathcal{L}{\text{total}}=a\,\mathcal{L}{\text{pure-text}}+b\,\mathcal{L}{\text{audio}}+c\,\mathcal{L}{\text{audio-text}}+d\,\mathcal{L}_{\text{first-audio}}$ | |
where $a$, $b$, $c$ and $d$ are loss weights. $\mathcal{L}{\text{pure-text}}$ denotes the loss for pure text data, while $\mathcal{L}{\text{audio}}$ and $\mathcal{L}{\text{audio-text}}$ correspond to the audio loss and the text loss terms in the text-speech data. $\mathcal{L}{\text{first-audio}}$ is an additional loss term applied to the semantic audio token. After carefully hyperparameter tuning and extensive preliminary experiments, we set $a=1.75$, $b=0.25$, $c=1.5$, and $d=0.1$, which achieves the best balance between preserving text capabilities and enhancing audio performance.
This training stage uses approximately 5.1 trillion tokens, with the ratio of text tokens and audio tokens is 2:1. A slight learning rate decay is applied.

Figure 6: Schematic diagram of pre-training stage-1, where large-scale speech and text data is employed for the training process.
3.2.3 Stage-2 Multimodal Continued Pre-Training
Based on the model from stage-1, we further incorporate large-scale image-text data into the pre-training procedure, including image caption data, and interleaved image-text data. We use a vision transformer (ViT) with weights initialized from the LongCat-ViT model introduced in Section 2 to obtain visual features from images, and employ a randomly initialized vision projector to align the visual feature with the latent space of the LLM backbone. We maintain the text-to-audio data ratio the same as in stage-1, i.e., 2:1, and make the text-to-vision data ratio also 2:1. In total, this pre-training stage consumes more than 3 trillion tokens. The parameters of the ViT module and projector are jointly trained with the LLM decoder parameters throughout the stage-2 training, with a nearly constant learning rate. We reuse the loss weights in stage-1 and set the additional vision-related loss weight at 0.25 during this training process.
3.2.4 Stage-3 Multimodal Annealing Training
Following the pre-training stage, the model undergoes a multimodal annealing phase, where the model’s training continues with a curated higher-quality data under an annealed learning rate to achieve superior performance. We further incorporate video data, including video captioning and QA datasets, as well as a broader range of image-related data such as OCR, grounding, GUI, multi-image, and STEM datasets. We maintain the stage-2 data ratio to ensure cross-modal stability, using a text:vision:speech token ratio of 2:1:1, consuming 0.33 trillion tokens in total.
The effectiveness of the model is highly dependent on the quality and composition of the training data. Therefore, the domain mixture plays a crucial role in determining the final performance. Vision data, in particular, exhibits greater heterogeneity in content distribution, learning difficulty, and scale, thereby requiring more careful control over data composition.
We adopt a perplexity (PPL)-gap-based signal to automatically guide data sampling allocation. The corpus is first segmented into distinct subsets according to semantics and tasks. During training, we monitor PPL convergence for each subset: if a subset’s convergence lags behind the expected reference level, its sampling weight will be dynamically increased. For each subset, we build a corresponding validation set and use an off-the-shelf vision-language model to compute its per-sample PPL as the expected reference level (Xie et al., 2023; Michel et al., 2022). To prevent high-value samples from being diluted by aggregate statistics, samples for which the PPL convergence is consistent with downstream performance will be isolated and relabeled into independent data subsets. With the original data partitions largely preserved while the high-value samples organized more finely, this approach significantly enhances data efficiency and downstream task performance.
3.2.5 Stage-4 Context-Length Extension Training
To augment the model’s proficiency in capturing extended sequential relationships across various modalities, we gradually extend the context length to 32K and then 128K tokens, enabling the model to process and reason over more complex tasks such as long-term memory modeling and multi-turn real-time interaction. We scale the context length from 8K to 32K tokens using 100B training tokens and adjust RoPE’s base frequency (Su et al., 2024) from 1M to 5M to preserve positional encoding quality. The context length is then further expanded to 128K tokens with an additional 20B tokens of training, requiring a proportional increase of the RoPE’s base frequency to 10M to maintain stable attention across the extended sequence length.
A key challenge in long-sequence multimodal modeling lies in preserving fine-grained visual information across multi-image compositions or extended video sequences. To address this, integrating our native resolution encoding strategy achieves dual optimization: it maintains critical visual details at their original fidelity while intelligently managing token allocation efficiency. This approach ensures the preservation of essential spatial relationships in images and temporal coherence in videos throughout extended sequences. Building upon the stage-3 vision-related data, we further augment the training mixture by incorporating 25% additional long-context multimodal data, as detailed in Section 3.1.7.
For textual and speech modalities, we utilize the foundation language model’s high-quality text corpus (Meituan, 2025a), alongside carefully curated speech data from our multilingual audio repository (over 10 million hours of processed Chinese/English recordings). Notably, we maintain the same 2:1:1 text-to-vision-to-speech ratio as established in the pre-training phase, ensuring modality balance during context extension. This comprehensive approach ensures consistent performance across all modalities while scaling to extended contexts.
3.2.6 Stage-5 Audio Encoder Alignment Training
In this stage, we maintain the LLM parameters in a frozen state while exclusively training the audio encoder. This approach serves dual objectives: (1) preserving the LLM’s established multimodal processing capabilities, and (2) enhancing audio comprehension while aligning continuous speech inputs with the LLM’s semantic space. We investigated the necessity of separate audio projector module pre-training for semantic space alignment, but empirical results showed negligible performance differences compared to direct end-to-end audio encoder training. To accelerate convergence, we initialize the audio encoder (excluding the projector) from the audio encoder trained with speech recognition introduced in Section 2.2, while randomly initializing the projector module parameters.
During training, inputs are formatted as follows: “Task Prompt + Speech Input + LLM Response”, where the loss is computed exclusively on the “LLM Response” segment. To improve task generalization, we design multiple prompt variations for each task and randomly select prompts during training.
