2 Architecture

本文为论文《LongCat-Flash-Omni 全模态技术报告》「论文原文」板块的对应章节,按 arXiv 官方全文逐字保留,层级与「中文全文翻译」板块一一对应。

图

Figure 2: An overview of the LongCat-Flash-Omni model architecture. The model is fully end-to-end and unifies multimodal understanding and generation across text, image, video, and audio within a single large language model framework. An vision encoder and an audio encoder are used to obtain vision features and audio features, respectively, which are then projected into a shared latent token space and fed into the LongCat-Flash LLM backbone. The LLM decoder directly generates multi-codebook speech tokens, parallel to generated text tokens, which are then converted to audio waveforms by an audio decoder. Shortcut-connected MoE (ScMoE) with zero-computation experts module proposed in LongCat-Flash is employed to achieve efficient multimodal fusion. Vision and audio features are chunk-wisely interleaved to support streaming audio-visual input.

As illustrated in Figure 2, LongCat-Flash-Omni is a fully end-to-end omni-modal model. It can receive various modalities as input, including text, audio, image, video, and their any arbitrary combination, and is able to directly generates speech tokens from the LLM backbone. LongCat-Flash-Omni employs a vision encoder and an audio encoder as multimodal perceivers. An LLM processes the multimodal inputs and generates text and audio tokens. An audio decoder reconstructs the waveform from the speech tokens generated by the LLM, enabling natural speech interaction. All modules are carefully designed to support efficient streaming inference. The audio encoder, vision encoder, and audio decoder are lightweight components, each with approximately 600M parameters. The large-scale LLM backbone uses the novel and efficient architectural design proposed in the LongCat LLM family (Meituan, 2025a; Meituan, 2025b).

In the reminder of this section, we first introduce each structural component of LongCat-Flash-Omni, including the vision encoder that supports inputs with arbitrary aspect ratios and native-resolution feature encoding, the audio encoder, decoder, and tokenizer, and the LLM backbone. Then we elaborate on the video processing strategy and the architectural components that enable low-latency, real-time audio-visual interaction.

2.1 Vision Encoder

The vision encoder serves as a critical component in multimodal language models. To effectively encode visual inputs such as images and videos, LongCat-Flash-Omni incorporates a well-designed Vision Transformer (ViT), referred to as LongCat-ViT (Qiao et al., 2025). LongCat-ViT achieves high performance across multimodal tasks, natively supports inputs with various resolutions and aspect ratios, while providing unified encoding capabilities for both image and video data.

Architecture Design LongCat-ViT is a Transformer-based encoder that retains the core structure of the conventional Vision Transformer while integrating several key enhancements: a unified patchification module for native image and video inputs, 2D rotary position embeddings (2D-RoPE) (Su et al., 2024), SwiGLU activation function, RMSNorm layer, a LayerScale module, and Query-Key normalization. Together, these refinements yield a more robust and efficient architecture compared to conventional designs. To improve computational efficiency in video frame encoding during real-time interaction while maintaining model performance, we adopt a relatively lightweight model configuration. The detailed hyper-parameters of the model are provided in Table 1. In line with common practice, a two-layer multilayer perceptron (MLP) with pre-normalization is employed as the vision-language projector to align visual and textual representations. Moreover, a 2$\times$ pixel-unshuffle operation is applied along the spatial dimension to mitigate the quadratic computational complexity associated with high-resolution inputs.

Table 1: Detailed architectural configuration for LongCat-ViT.

Native Resolution Encoding Conventional ViT models widely adopted in the community (e.g., CLIP (Radford et al., 2021), SigLIP (Zhai et al., 2023)) typically resize input images to a fixed resolution, which can result in substantial information loss, particularly for images with extreme aspect ratios or high native resolutions. To mitigate this limitation, LongCat-ViT encodes visual inputs at their native resolutions, circumventing the limitations of fixed-resolution ViT models. This preserves the spatial and contextual information inherent in visual data, thereby enhancing the model’s capability to comprehend and reason over complex visual inputs. For each image or video frame, if the number of patches falls within a predefined range (576-5832 during training), only minimal resizing is applied to ensure both dimensions are divisible by 112. Otherwise, the image is rescaled to fit within this range while preserving its aspect ratio.

Contrastive Vision-Language Pretraining LongCat-ViT adopts a progressive training scheme that integrates two complementary adaptation strategies: (1) progressive resolution adaptation, which leverages curriculum learning by transitioning from fixed low-resolution (e.g., 224) pretraining to native-resolution fine-tuning; and (2) progressive visual modality adaptation, which postpones the incorporation of video data until the final training stage to reduce computational overhead. To further facilitate convergence in the early phases, feature distillation from a frozen pretrained vision model is introduced as an auxiliary objective, and the weight of this objective gradually reduces in later stages. The model is trained from scratch on a total of 14.6 billion samples during the contrastive pretraining phase.

2.2 Audio Tokenizer, Encoder, and Decoder

We input audio in different formats to the LLM backbone of LongCat-Flash-Omni across training phases. Specifically, during pre-training stages 1-4, an audio tokenizer is employed to convert raw speech into four-codebook discrete tokens, enabling consistent next-token prediction and improved training efficiency. However, we observe that such discretization hinders the model’s ability to capture fine-grained acoustic details. Therefore, from pre-training stage 5 (Section 3.2.6) we incorporate an audio encoder to convert raw speech into continuous audio features before input to the LLM. For speech generation, to align with the inherent next token prediction paradigm, the LLM consistently outputs the four-codebook discrete tokens, which are subsequently converted back into a waveform using an audio decoder.

Audio Tokenizer and Decoder We adopt LongCat-Audio-Codec (Zhao et al., 2025a) as our audio tokenizer and decoder, owing to its robust semantic modeling, flexible acoustic feature extraction, and low-latency streaming synthesis capabilities. The tokenizer discretizes audio waveforms into four codebooks at a frame rate of 16.67 Hz, with one codebook representing semantic information and the other three capturing acoustic details. To achieve low-latency inference in real-time interaction scenarios, unlike conventional waveform reconstruction methods that rely on diffusion- or flow-matching-based code2mel models followed by vocoders, we directly employ the decoder from LongCat-Audio-Codec as the audio decoder to reconstruct waveform from tokens. It supports streaming audio decoding with a look-ahead of only three frames. As illustrated in Figure 4, the audio decoder consists of LSTM layers, convolutional blocks, and causal transposed convolution layers, and is trained under a generative adversarial network (GAN) framework.

图

Figure 3: Architecture of the audio decoder.

图

Figure 4: Architecture of the audio encoder.

Audio Encoder

To optimize response latency and accommodate speech inputs of arbitrary duration, the audio encoder is designed using a streaming architecture. As illustrated in Figure 4, the audio encoder takes 80-dimensional Fbank features as input. The architecture incorporates a Pre-FFN module that reduces the audio sequence length by a factor of eight through frame splicing downsampling technique, with each frame representing an 80ms time window. The core process is performed by a streaming encoder that maintains a Transformer-like structure while incorporating several key modifications: (1) a Pre-Norm configuration for enhanced training stability, and (2) replacing standard self-attention modules with FSMN layers (Zhang et al., 2018) to enable efficient feature processing within constrained context windows. To balance latency and performance, we implement a hybrid approach where only the final six layers incorporate a one-frame look-ahead mechanism, while maintaining strict causality in the preceding layers. The architecture concludes with a post-FFN module for additional feature refinement. The audio encoder is trained under supervised learning using speech recognition data using the CTC loss (Graves et al., 2006).

2.3 LLM Backbone

LongCat-Flash-Omni is built upon LongCat-Flash (Meituan, 2025a), a 560-billion-parameter Mixture-of-Experts (MoE) language model. LongCat-Flash adopts Multi-head Latent Attention (MLA) (Liu et al., 2024a), shortcut-connected MoE (Cai et al., 2024) and zero-computation experts, performing variable computation per token by activating 18.6B-31.3B parameters (27B on average), thereby unifying efficiency, performance and sparsity. These characteristics are retained and extended to multimodal understanding and audio-visual interaction by LongCat-Flash-Omni.

2.4 Video Strategy and Streaming Audio-Visual Interaction

LongCat-Flash-Omni is designed to seamlessly integrate robust offline multimodal understanding with low-latency audio-visual interaction. The audio and visual streams are independently processed by an audio encoder and a vision encoder, respectively. Their extracted features are subsequently time-aligned and chunked into synchronized segments, which are interleaved and fed into the LLM decoder for multimodal understanding. Here we elaborate the video strategy adopted by LongCat-Flash-Omni and how audio-visual input is processed to support streaming interaction.

2.4.1 Video Strategy

Efficient video processing remains a significant challenge due to the substantial variability in video properties, including durations ranging from a few seconds to several hours and resolutions spanning a wide spectrum. To address these challenges, we adopt a series of strategies to effectively balance between model performance and computational efficiency.

Dynamic Video Frame Sampling We adopt a default sampling rate of 2 frames per second (2 FPS), while also enable dynamic adjustments according to video duration. During training, shorter videos are sampled at a higher frame rate to capture denser temporal information, ensuring at least 16 frames for effective information utilization. In contrast, for excessively long videos, frames will be sampled uniformly based on a maximum frame number constraint. This frame cap further facilitates training by regulating memory consumption and preserving computational efficiency.

Textual Timestamps LongCat-Flash-Omni introduces timestamps preceding each input video frame to strengthen the model’s temporal awareness and improve its ability to recognize specific time points. The timestamps are input as pure text that are naturally aligned with the textual space. Similar to (Chen et al., 2024a), when sampling a video frame at second $i$, we prepend the text “$Second{i}$” to its corresponding visual tokens before inputting them into the LLM. The resulting input sequence is structured as “$Second{i}||\mathbf{V}{i}||Second{j}||\mathbf{V}{j}||\dots$”, where $Second{i}$ is the textual timestamp, $\mathbf{V}_{i}$ represents the visual tokens of the video frame at second $i$, and $||$ indicates concatenation.

Hierarchical Token Compress in Video Inputs We compress the video inputs with three successive steps: First, we rescale the each frame according to a predefined upper limit on the number of patches as described in Section 2.1. Then we apply a 3D convolution with temporal stride of 2 before feeding the video into the visual encoder, compressing the $N$ input frames to $N/2$ in temporal size. Finally, after the video is processed by the visual projector into visual tokens, if the number of visual tokens exceeds a predefined limit, we further perform an interpolative downsample on the visual tokens.

2.4.2 Streaming Audio-Visual Interaction

The streaming audio-visual interaction mechanism is a core component of LongCat-Flash-Omni, enabling real-time integration of video and speech signals to support interactive communication. The proposed audio-visual interaction framework is characterized by two key aspects:

Streaming Audio-Visual Feature Interleaving Unlike offline audio-visual understanding tasks, where audio and visual features can be concatenated at the sequence level, real-time audio-visual interaction requires features from the audio and video streams to be prefilled into the LLM backbone as early as possible to minimize response latency once the user query is received. To achieve this, we design a temporally-synchronized, chunk-wise audio-visual feature interleaving mechanism. Audio-visual feature chunks are structured as “¡—timestamp—¿:¡—video-tokens—¿¡—audio-start-token—¿¡—audio-tokens—¿¡—timestamp—¿:¡—video-tokens—¿¡—audio-tokens—¿…¡—audio-end-token—¿”, where the timestamp is represented in textual form, as described in Section 2.4.1.

Sparse-Dense Sampling Strategy We design a sparse-dense sampling strategy to optimally balance computational cost and information loss during turn-taking interactions between the user and the model. Specifically, we employ a chunk size of 1 second during the information input period to preserve as much audio-visual information as possible, using a denser video sampling rate of 2 FPS. During the model response period, video frames are buffered with a sparser sampling rate (i.e., chunk size of 2 seconds, 0.5 FPS) and prepended to the next user turn. This design effectively balances visual information retention during the model response period and computational overhead, enabling high-quality audio-visual interaction, a core capability that distinguishes it from other omni-modal models in the community.