arXiv:2608.28687cs.CVAug 2026

Manuscript Offprint

arXiv:2608.28687

FLM: Frequency-Aware Language Models for Generative Image Compression

Jiarun Chen, Kejun Wu, Li Li, Chengtao Cai, Zhengguo Li, Chia-Wen Lin

Jiarun Chen, Kejun Wu, Senior Member, IEEE, Li Li, Senior Member, IEEE, Chengtao Cai, Senior Member, IEEE, Zhengguo Li, Fellow, IEEE, and Chia-Wen Lin, Fellow, IEEE

Abstract—Generative models have significantly improved the performance ceiling of image lossy compression at low bitrates by exploiting learned priors. However, the generated textures and semantic details may deviate from the source content, thereby affecting the fidelity of image reconstruction. To solve these challenges, we propose FLM, a frequency-aware language model that improves compression efficiency through frequency-domain probabilistic modeling while retaining deterministic reconstruction. At the encoder, the input image is transformed into quantized DCT coefficients, which are organized into discrete sequences using macroblock-based coefficient tokenization. FLM then performs next-coefficient prediction to autoregressively estimate token-wise conditional probability distributions for arithmetic coding, thereby generating a compact bitstream. At the decoder, the LLM and arithmetic decoder jointly recover the frequency-domain data, followed by inverse transformations for image reconstruction. A task-specific frequency-domain dataset and a two-stage fine-tuning strategy are further developed to enable the model to operate across multiple bitrate settings. FLM is a versatile compressor that is compatible with both lossy compression and lossless JPEG recompression frameworks. Experiments show that FLM exceeds conventional and generative lossy compression methods in rate-distortion performance. FLM achieves BD-PSNR gains of 3.30 dB, 3.83 dB, and 3.80 dB than JPEG baseline on Kodak, Tecnick, and CLIC2020, respectively. Better qualitative quality of FLM can be achieved in improving semantically high fidelity and suppressing blocking artifacts. FLM is also validated to be applicable to the lossless recompression task with competitive performance.

Index Terms—Image Compression; Generative Compression; Large Language Model; Frequency Domain Feature Learning

I. INTRODUCTION

IMAGE compression seeks to represent visual signals with as few bits as possible while preserving the information required for faithful reconstruction. Recent advances in generative models such as generative adversarial networks (GANs) [1] and diffusion models [2] have widely used in image generation, and digital forensics [3]. By exploiting learned

Figure

Fig. 1. Conceptual comparison of representative image compression methods. Diffusion-based methods compromise reconstruction fidelity, whereas JPEG requires a higher bitrate. Our FLM method achieves both high fidelity and low bitrate.

image priors, generative models also have established as an important paradigm for image compression [4], [5]. Generative image compression can reconstruct perceptually compelling images from highly compact representations, particularly at low bitrates. However, perceptual realism does not necessarily imply fidelity to the source image [6], [7], as shown in Fig. 1. Direct synthesis of image content from an information-limited representation may yield textures, structures, and semantic details that appear plausible yet differ from those in the source image. Consequently, improving compression efficiency without introducing content deviations associated with generative synthesis remains an important challenge.

Conventional Transform-based codecs follow a different reconstruction principle. Methods such as JPEG [8] and JPEG-XL [9] represent and reconstruct an input image using explicitly derived frequency-domain coefficients. Although transform and quantization operations still introduce distortion, this reconstruction process does not introduce the type of content deviation caused by generative image synthesis. Nevertheless, conventional entropy models exploit only limited contextual dependencies and may not fully characterize the complex spatial, cross-frequency, and long-range relationships among frequency-domain coefficients, leaving considerable statistical redundancy unexploited [10]–[12].

Beyond direct content synthesis, generative models can also support compression through probability estimation. Delétang

Jiarun Chen and Kejun Wu are with the School of Electronic Information and Communications, Huazhong University of Science and Technology, Wuhan 430074, China.

Li Li is with the MOE Key Laboratory of Brain-Inspired Intelligent Perception and Cognition, University of Science and Technology of China, Hefei 230093, China

Chengtao Cai is with College of Intelligent Systems Science and Engineering, Harbin Engineering University, Harbin 150001, China.

Zhengguo Li is with VI Department, Institute for Infocomm Research, Agency for Science, Technology and Research (A*STAR), Singapore.

Chia-Wen Lin is with the Department of Electrical Engineering and the Institute of Communications Engineering, National Tsing Hua University, Hsinchu 30013, Taiwan.

This work was supported by the National Natural Science Foundation of China under Grant 62501246.

Corresponding author: Kejun Wu (kjwu@hust.edu.cn).

et al. [13] demonstrated the close relationship between autoregressive language modeling and lossless compression by combining model-predicted symbol probabilities with arithmetic coding [14]. Subsequent studies adapted large language models (LLMs) to the lossless compression of image pixels or prediction residuals [15]–[18]. These methods establish the feasibility of employing LLMs as strong entropy models.

However, existing LLM-based image compression methods primarily perform lossless coding of pixels or pixel residuals. These methods require a high bitrate to encode intrinsic image noise and subtle textures that are barely perceptible to the human eye. In contrast, frequency-domain representations explicitly separate frequency components and allow them to be treated according to their perceptual importance. Transform and quantization drive many high-frequency coefficients to or near zero, thereby yielding sparse and structured sequences that are easier for the LLM to model and predict. However, using an LLM to model frequency-domain coefficients presents several challenges. For example, frequency-domain coefficients have a wide dynamic range that varies with quantization strength. Moreover, direct-current and alternating-current coefficients exhibit different numerical ranges and statistical distributions.

To address these challenges, we propose FLM, a frequency-aware language model for generative image compression, which extends the LLM-based compression paradigm from pixel-domain coding to frequency-domain probabilistic modeling. Specifically, at the encoder, FLM first applies the JPEG processing pipeline to the input image to obtain quantized DCT coefficients. A macroblock-based DCT coefficient tokenization strategy then organizes spatially adjacent coefficient blocks into discrete token sequences, which are subsequently fed into FLM for autoregressive estimation of the conditional probability distribution of each coefficient. We further propose a range-constrained probability modeling strategy, which improves coding efficiency by restricting the prediction space to coefficient candidates valid for the current macroblock and coefficient type. At the decoder, the arithmetic decoder and the LLM jointly perform autoregressive decoding to progressively recover the frequency-domain sequence from the compressed bitstream. The reconstructed frequency-domain data are subsequently converted back into image pixels through a series of inverse processing steps, yielding the reconstructed image. To adapt a pretrained LLM to the numerical and statistical characteristics of frequency-domain coefficients, we construct a task-specific frequency-domain dataset and develop a two-stage fine-tuning strategy.

The main contributions of this paper are summarized as follows:

  • We propose FLM, a novel image compression framework that combines conventional DCT-based transform coding with the powerful sequence-modeling capabilities of LLMs. By formulating entropy modeling as a next-coefficient prediction task, FLM effectively leverages the contextual modeling capabilities of LLMs to achieve superior compression efficiency. To the best of our knowledge, FLM is the first LLM-based image compression framework to directly model the conditional distributions of quantized DCT coefficient tokens.

  • We develop a macroblock-based DCT coefficient tokenization and a range-constrained probability modeling strategy to enable the LLM to better understand frequency-domain coefficients. A task-specific fine-tuning dataset and a two-stage fine-tuning strategy are developed to further enhance FLM's ability to model coefficient distributions across multiple bitrates.

  • We conduct comprehensive evaluations on the Kodak, Tecnicn, and CLIC2020 datasets against conventional codecs and generative compression methods. The results demonstrate that FLM achieves overall superior rate-distortion performance and qualitative quality against traditional codecs and generative codecs. FLM also validated to obtain competitive performance in lossless JPEG recompression task.

References (42)