MRT: Learning Compact Representations with Mixed RWKV-Transformer for Extreme Image Compression

Han Liu, Hengyu Man, Xingtao Wang, Wenrui Li, Debin Zhao

TL;DR

MRT (Mixed RWKV-Transformer) is a new architecture designed for extreme image compression—squeezing images down to bitrates below 0.02 bits per pixel (bpp). By combining the global modeling power of RWKV with the local detail-oriented strengths of Transformers, it maps images into highly compact 1-D latent representations, achieving up to 43% bitrate savings over state-of-the-art methods while maintaining superior visual quality.

What Problem Does This Paper Address?

In the world of "extreme" image compression, the goal is to maintain recognizable, high-quality images at bitrates so low that traditional methods (like JPEG or even modern VVC) would produce a blurry mess.

Most current deep-learning codecs use 2-D architectures (CNNs or Swin Transformers) that produce 2-D "latent" feature maps. The authors argue that these 2-D maps still contain significant spatial redundancy—neighboring pixels in the latent space are too similar, wasting precious bits. While some researchers have tried 1-D tokenization (turning an image into a single string of data), these attempts often struggle with variable image resolutions or fail to capture long-range relationships across the entire image.

Methods

The authors introduce the Mixed RWKV-Transformer (MRT), which uses a "best of both worlds" approach:

  1. The MRT Encoder: The image is partitioned into fixed-size windows.
  2. Bi-RWKV Blocks: These use linear attention to capture "global" dependencies across different windows. Because RWKV has linear complexity, it handles long sequences much more efficiently than standard Transformers.
  3. ViT (Transformer) Blocks: These handle "local" redundancies within each window, focusing on fine-grained textures.
  4. 1-D Latent Representation: Instead of a grid, the encoder produces a compact 1-D sequence of tokens. For a 256x256 image, while a standard 2-D architecture might produce 256 latent features, MRT squeezes it down to just 32.
  5. RWKV Compression Model (RCM): Since standard 2-D compression tools don't work on 1-D strings, the authors built a dedicated module using Bi-RWKV blocks and Look-up Free Quantization (LFQ). LFQ improves how the "codebook" (the dictionary of allowed values) is used, ensuring no bits are wasted.
  6. Two-Stage Training: First, they align their 1-D codes with a pre-trained VQGAN to learn semantic structures. Second, they fine-tune the entire system end-to-end using perceptual and adversarial losses to ensure the reconstructed images look "real" to human eyes.

Datasets

  • Training: The model was trained on the Open Images dataset (specifically v4).
  • Evaluation: Performance was tested on three standard benchmarks:
  • Kodak: A classic set of 24 images.
  • CLIC2020: High-resolution images from the Challenge on Learned Image Compression.
  • DIV2K: A popular dataset for image restoration and compression tasks.

Key Insights and Ideas

  • 1-D is the New 2-D: Moving from a 2-D grid to a 1-D sequence allows the model to strip away spatial redundancies that 2-D kernels (like those in CNNs) inherently struggle to eliminate.
  • RWKV as a Bridge: Standard Transformers (Self-Attention) are great but get exponentially slower as images get bigger. RWKV provides the "global" view needed for 1-D sequences without the massive computational overhead.
  • Quantization Matters: By using Look-up Free Quantization (LFQ) instead of traditional Vector Quantization (VQ), the authors achieved much higher "entropy" in their codebook. Essentially, they are using their available "data vocabulary" much more effectively.

Key Results

  • Bitrate Savings: On the Kodak dataset, MRT achieved 43.75% bitrate savings compared to the state-of-the-art 2-D architecture (GLC) when measured by the DISTS perceptual metric. On CLIC2020, it saved 30.59%.
  • Visual Fidelity: At extremely low bitrates (e.g., 0.009 bpp), MRT maintains sharp textures and fine details (like the individual leaves on a tree or the texture of a brick wall) where other models like MS-ILLM or VTM produce significant blurring or "banding" artifacts.
  • Efficiency: Despite using a more complex hybrid architecture, MRT's decoding time is significantly faster than diffusion-based compression methods (like DiffEIC), making it more practical for real-world use.

Limitations and Future Work

  • Computational Complexity: While faster than diffusion models, MRT still has longer encoding and decoding times than simpler 2-D CNN-based methods. The authors note that optimizing the architectural design for speed is a primary goal for future work.
  • Training Strategy: The current two-stage training process is effective but complex. Future research could look into more streamlined, single-stage training approaches.
  • Extreme Focus: The model is specifically tuned for "extreme" low bitrates. Its performance relative to standard codecs at higher bitrates (where "perfect" pixel-for-pixel reconstruction is required) was not the focus of this study.

Summary updated

BibTeX
@inproceedings{liu2026mrt,
  author = {Han Liu and Hengyu Man and Xingtao Wang and Wenrui Li and Debin Zhao},
  title = {{MRT: Learning Compact Representations with Mixed RWKV-Transformer for Extreme Image Compression}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i9.37650},
}
Figure