arXiv:2609.03641cs.CVSep 2026

Manuscript Offprint

arXiv:2609.03641

Tree-Structured Vector Quantization For Efficient And Progressive Image Compression

Xinkun Wang, Tianyi Xu, Qingyu Luo, Mingming Ma, Changzhe Jiao, Fu Li, Yi Niu

Abstract

Vector-quantization based image compression has achieved strong rate–distortion performance, yet most of them still produce a separate compressed representation for each target bitrate. Such variable-rate behavior allows one model to operate at multiple rates, but it does not necessarily provide a progressive bitstream whose prefixes are themselves decodable and can be refined by appending additional bits. We propose Tree-VQ, a progressive tree-structured vector quantization framework for learned image compression. Tree-VQ organizes discrete codewords as a hierarchical binary tree and represents each latent token by a routed root-to-leaf path. Crucially, every prefix of this path corresponds to a valid quantized representation, so shallow internal nodes serve as coarse reconstruction codes and deeper nodes provide successive refinements. This allows a compressed image to be decoded from an early prefix and progressively improved as more branch symbols are received, rather than being re-encoded for different target rates. To make this structure practical for compression, we introduce a prefix-compatible tree entropy model that codes progressive continuation decisions and routed branch refinements using only causally available decoded contexts. We further use rate-aware refinement scheduling to decide which spatial blocks should receive additional tree bits under a given prefix budget, and hierarchical prefix supervision to ensure that internal nodes are directly decodable at low rates. Experiments show that Tree-VQ achieves a superior performance–efficiency trade-off, delivering the best perceptual compression results with much fewer parameters and lower latency than competing methods.

1 Introduction

Image compression is a fundamental problem in visual computing and communication systems, as it determines the storage, transmission, and delivery cost of digital imagery [31]. In recent years, learned image compression has emerged as a powerful paradigm by replacing hand-crafted transforms [40, 33, 34] with end-to-end optimized neural analysis and synthesis transforms [3, 36, 2, 37]. Built upon entropy-constrained autoencoders [3], subsequent advances in hyperprior modeling [4] and context-adaptive entropy estimation [25, 11, 22] have substantially improved rate–distortion performance, making learned codecs competitive with classical standards.

Despite this progress, most learned compression systems still produce a complete representation for a selected operating point. Variable-rate learned compression addresses this issue by controlling a single model with conditioning variables, gain parameters, quantization steps, or rate–distortion

*Corresponding author: niuyi@xidian.edu.cn

Preprint.

trade-off coefficients [6, 42, 15]. However, such methods mainly provide model-level rate adaptivity: different target rates lead to different representations. They do not necessarily provide bitstream-level progressivity, where a low-rate representation is a prefix of a high-rate one and image quality can be improved by simply receiving additional bits.

Figure 1 compares Tree-VQ with representative learned codecs in terms of model size, perceptual coding performance, and inference latency. Tree-VQ lies near the lower-left region with a small bubble, indicating a favorable trade-off among BD-LPIPS, parameter count, and runtime. This motivates our tree-structured design, which aims to support progressive decoding while keeping routing and codebook lookup efficient.

Bitstream-level progressivity is important for network transmission, latency-sensitive decoding, scalable storage, and interactive visualization. These scenarios require an embedded representation in which every prefix of the bitstream yields a valid reconstruction, while later bits refine rather than replace previously decoded information [20]. This imposes a nested structure across rates, making it stronger than conventional variable-rate coding.

Discrete latent representations provide a natural interface for progressive coding. Vector-quantized autoencoders, such as VQ-VAE [39] and VQGAN [9], map continuous image features into discrete code indices while preserving strong reconstruction and generation capability. Recent compression methods have also explored VQ-based or VQ-related representations for controllable and perceptual reconstruction [21, 10]. However, most of them rely on flat codebooks, where each latent vector is assigned to an unordered codeword [41]. Such flat indices are atomic symbols: although identifying a codeword may require multiple bits, prefixes of the index usually do not correspond to meaningful coarse reconstruction codes. Therefore, flat VQ does not naturally support coarse-to-fine refinement.

The limitation of flat VQ lies not only in its O(N)\mathcal{O}(N) search cost, but also in its lack of explicit structure. Codewords are learned as unordered prototypes, without a relationship connecting coarse and fine representations. In contrast, a tree-structured codebook organizes codewords hierarchically: internal nodes capture coarse prototypes, while descendants specialize them with finer details. This structure naturally supports progressive refinement and reduces search complexity to O(log⁡N)\mathcal{O}(\log N).

In this paper, we propose Tree-VQ, a progressive tree-structured vector quantization framework for learned image compression. Tree-VQ organizes codewords as a hierarchical binary tree, where each latent token is routed from the root toward a leaf through binary branch decisions. Every prefix of the routed path is a valid discrete representation: shallow nodes provide coarse approximations, and deeper nodes provide refined ones. Thus, each additional branch decision acts as a discrete refinement, giving the latent representation bit-wise progressive semantics. After entropy coding, the ordered branch symbols form a prefix-decodable progressive bitstream.

To build a practical codec, we introduce a block-wise progressive coding mechanism. The bitstream is organized into successive refinement layers, where continuation symbols decide whether each block receives further tree refinement, and branch symbols extend the routed paths of its tokens. This ensures that block depths are monotonic across the bitstream: later prefixes only extend previously decoded paths, rather than replacing them or requiring re-encoding with a new depth map.

A key challenge is entropy modeling. For prefix decoding, the probability model used for arithmetic coding must not depend on future symbols or an unknown final target depth. We therefore design a prefix-compatible tree entropy model that estimates continuation and branch probabilities using only causally available decoded contexts. We further use rate-aware refinement scheduling to prioritize

Figure

Figure 1: Model efficiency comparison on DIV2K. The x-axis shows parameter count (M), bubble size denotes decoding latency, and the y-axis reports relative BD-LPIPS with respect to Tree-VQ over the overlapping bitrate range (bpp ≥\geq 0.25). Negative values indicate worse perceptual quality than Tree-VQ, while 0% corresponds to Tree-VQ itself.

refinements with high distortion reduction per coding cost, and hierarchical prefix supervision to make internal tree nodes directly usable for low-rate reconstruction.

The main contributions of this paper are as follows:

  • We propose Tree-VQ, a progressive tree-structured vector quantization framework where every prefix of a routed binary tree path corresponds to a valid reconstruction code.

  • We introduce an embedded progressive bitstream in which additional branch symbols monotonically refine previously decoded representations, enabling decoding at arbitrary prefix lengths without re-encoding.

  • We design a prefix-compatible tree entropy model and rate-aware refinement scheduling mechanism under causally decodable contexts.

  • We introduce hierarchical prefix supervision to improve the quality of early progressive reconstructions.

Figure

Figure 2: Framework of the proposed Tree-VQ. We contrast previous non-progressive variable-rate baselines with our bitstream-level progressive coding approach, which generates a single embedded bitstream via block-wise refinement layers.

References (42)