Introduction
In the field of image compression, researchers have long grappled with the perception-distortion tradeoff. Traditional codecs, such as JPEG or VTM, prioritize minimizing pixel-wise distortion (MSE/PSNR). However, at low bitrates, these methods often produce blurry or blocky artifacts that are visually unappealing. Conversely, recent generative-based codecs (using GANs or Diffusion) produce sharp, realistic reconstructions but often suffer from high generative diversity. This leads to "hallucinations"—the synthesis of details like tooth textures or fabric patterns that were not present in the original image.
TACO (Text-Adaptive COmpression) introduces a novel framework that leverages text captions to guide the encoding process. By shifting text guidance from the decoder to the encoder, TACO achieves a rare balance: high perceptual quality without sacrificing pixel-level accuracy.
Methodology
TACO builds upon the ELIC neural codec architecture, introducing two primary innovations:
- Encoder-Centric Guidance: Unlike previous methods that use text to "prompt" a generative decoder, TACO uses a Text Adapter to inject semantic information directly into the encoder. This allows the model to identify and prioritize semantically important regions described in the text during the compression phase.
- The Text Adapter: This module utilizes a pre-trained, frozen CLIP text encoder to extract semantic features from image captions. These features are fused into the image's latent representation via multiple cross-attention layers.
During training, the model is optimized using a multi-part loss function that balances bit rate, pixel-level distortion (MSE), and perceptual similarity (LPIPS). A unique Joint Image-Text Loss ensures the reconstructed image remains semantically aligned with both the original image and the provided caption.
Experimental Results
Quantitative Performance
TACO demonstrates a significant breakthrough in the perception-distortion tradeoff. As shown in the performance analysis, TACO occupies the optimal upper-right quadrant of the fidelity spectrum, maintaining high PSNR while achieving state-of-the-art LPIPS scores.
While purely PSNR-focused models like LIC-TCM maintain a slight lead in raw pixel accuracy, TACO trails by only ~1dB. In contrast, diffusion-based generative models often see a drop of 3–5dB in PSNR to achieve similar perceptual sharpness.
Qualitative Analysis
Visual comparisons highlight TACO's ability to preserve fine textures—such as the details of lips or hair—without the artifacts common in other high-perception codecs. By using text as a guide for what to preserve rather than what to synthesize, TACO avoids the hallucinations seen in models like MS-ILLM.
Key Insights and Discussion
- Text as Supervision: The core insight of this work is that text is more effective as a supervisory signal for encoding rather than a generative tool for decoding. This approach allows the encoder to have "global semantic awareness," prioritizing high-frequency details that standard pixel-wise losses might otherwise smooth over.
- Robustness: TACO remains effective even when using machine-generated captions (e.g., from OFA or GPT-4), suggesting the model relies on core semantic content rather than specific linguistic nuances.
- Efficiency: The Text Adapter adds minimal overhead, with encoding times increasing by only 5–10% depending on resolution.
Conclusion and Future Work
TACO successfully bridges the gap between traditional and generative compression. While the current framework requires paired image-text data and faces potential scaling challenges with long captions, it sets a new benchmark for perceptual image coding. Future research will explore extending this text-guided encoding logic to video compression, where maintaining temporal consistency alongside semantic fidelity remains a significant challenge.
Summary updated