arXiv:2610.01492cs.SDOct 2026

Manuscript Offprint

arXiv:2610.01492

Q-SPT: Learnable Query-Based Compression for Low-Frame-Rate Speech Tokenization

Jeeyoung Yun, Seohwan Yun, Sungwoong Kim

ABSTRACT

Neural speech codecs increasingly serve as tokenizers for speech language models (SLMs). Lowering the frame rate reduces the computational and memory costs of SLMs, but makes it difficult to preserve both linguistic information and acoustic detail. Existing approaches rely on rule-based compression: average pooling can discard linguistic information, whereas similarity-based merging uses a fixed threshold on adjacent-frame similarity and applies the resulting boundaries to the acoustic stream. We propose Q-SPT, a low-frame-rate dual-stream speech tokenizer with separate, context-aware, learnable query-based compressors specialized for semantic and acoustic representations. In particular, queries at a fixed rate independently attend to the semantic and acoustic streams as separate key-value sources, enabling stream-specific, context-aware aggregation through two separately learned compressors. In addition, an autoregressive text loss explicitly supervises the semantic compressor to preserve linguistic information. Experimental results show that Q-SPT achieves the best reconstruction among the evaluated codecs at the same frame rate. In downstream SLMs, it yields the best speech recognition accuracy and text-to-speech perceptual quality with competitive intelligibility.

Index Terms— Low frame rate, neural speech codec, query-based compression, speech language model, speech tokenization

1. INTRODUCTION

Neural speech codecs compress speech into compact discrete tokens and reconstruct waveforms while preserving perceptual quality [1–3]. These codecs increasingly serve as tokenizers for speech language models (SLMs), enabling speech understanding and generation through language modeling over discrete speech tokens [4, 5]. Effective speech tokenization therefore requires representations that support both high-quality waveform reconstruction and downstream speech modeling.

Recent codecs represent speech with fewer tokens by reducing the number of codebooks per frame [6, 7] or the temporal resolution [4, 8], while maintaining reconstruction quality. The reduced token rate also improves the efficiency of SLMs by lowering the computational and memory costs of both training and inference [4, 8]. However, at extremely low frame rates, each token must carry more speech content, making it difficult to preserve both linguistic information and acoustic detail [9].

To enhance linguistic information while retaining acoustic detail, prior codecs leverage pretrained speech representations. SpeechTokenizer [10] and Mimi [4] distill self-supervised learning (SSL) features into the first residual vector quantization (RVQ) [3] layer, while X-Codec [11] fuses semantic and acoustic features before quantization. More recently, dual-stream codecs encode semantic and acoustic features in separate streams to preserve both [9, 12]. DualCodec [12] downsamples SSL features to a fixed frame rate by average pooling, but this uniform averaging can discard linguistic information at extremely low frame rates, degrading intelligibility [9, 13]. FlexiCodec [9] instead merges adjacent frames based on semantic similarity, improving information preservation at average frame rates as low as 6.25 Hz. However, the same merging boundaries are applied to the acoustic stream, although semantically similar frames may still differ in acoustic detail. Moreover, the merging rule relies only on adjacent-frame similarity with a fixed threshold, so it neither uses broader temporal context nor is optimized by the training objective.

We propose Q-SPT, a low-frame-rate dual-stream speech tokenizer based on learnable query-based compression. Unlike rule-based compression such as average pooling or similarity-based merging (Fig. 1(a)–(b)), Q-SPT compresses features through cross-attention with learnable queries, which adaptively weight frames within each temporal window (Fig. 1(c)). Since the semantic and acoustic streams carry different information, Q-SPT employs separate semantic and acoustic compressors, each with a distinct temporal context accessible to its fixed-rate queries. In addition, because reconstruction objectives supervise linguistic content only implicitly, we add an autoregressive text loss that explicitly supervises the semantic compressor. By conditioning autoregressive transcript prediction on the semantic queries, this loss encourages the semantic tokens to retain linguistic information for downstream SLMs.

Our contributions are summarized as follows:

• We present Q-SPT, which replaces rule-based temporal compression in dual-stream speech tokenization with learnable query-based compression specialized for each stream. Separate semantic and acoustic compressors with distinct temporal contexts adaptively weight frames to preserve both linguistic information and acoustic detail.

• We introduce an autoregressive text loss that explicitly supervises the semantic compressor through transcript prediction, which improves the preservation of linguistic information in the semantic tokens and leads to gains in both reconstruction and downstream SLM performance.

• Experiments show that Q-SPT achieves the best reconstruction among the evaluated codecs at the same frame rate and, in downstream SLMs, the best automatic speech recognition (ASR) performance and text-to-speech (TTS) perceptual quality.

†^{\dagger}Corresponding author.

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

Figure

(d) Q-SPT Architecture

Fig. 1. Comparison of temporal compression strategies for low-frame-rate speech tokenization: (a) average pooling in DualCodec [12], (b) similarity-based merging in FlexiCodec [9], and (c) learnable query-based compression in Q-SPT. (d) Detailed architecture and training objectives of Q-SPT. Dashed elements indicate components and connections used only during training.

References (36)