Compressible and Searchable: AI-native Multi-Modal Retrieval System with Learned Image Compression

Jixiang LuoarXiv 2024 · DOI

Introduction

In the current landscape of big data, multimedia management is burdened by a "double tax." To manage storage costs, images must be compressed using standards like JPEG or BPG. To enable discovery, these same images must undergo separate, computationally expensive feature extraction using models like CLIP (Contrastive Language-Image Pretraining). This decoupled approach leads to redundant processing and storage overhead.

While Learned Image Compression (LIC) offers a neural alternative to traditional codecs, a fundamental "semantic gap" exists. LIC features are optimized for pixel-perfect reconstruction ("compressible"), making them semantically noisy for search tasks. Conversely, retrieval embeddings like those from CLIP are "searchable" but detail-lossy, often ignoring specific structural nuances required for high-fidelity reconstruction.

Conceptual differences between compressible LIC features and searchable CLIP features.

The Proposed AI-Native Retrieval System

This paper introduces a unified framework that bridges the gap between ELIC (Efficient Learned Image Compression) and CLIP. The goal is a system where the compressed bitstream itself serves as the foundation for multi-modal retrieval.

Streamlined Pipeline

The traditional retrieval workflow involves three distinct stages: compression/storage, feature extraction, and matching. The proposed system collapses these into a more efficient two-stage process by reusing the LIC encoder for both tasks, effectively eliminating the need for a separate feature extraction pass during database ingestion.

Comparison of traditional multi-stage retrieval pipelines vs. the proposed streamlined LIC-based approach.

Technical Implementation: The Multi-Scale Adapter

The core innovation is a lightweight multi-scale adapter that transforms LIC features into the CLIP embedding space. This involves:

  1. Feature Reuse: Re-purposing the LIC encoder ($g_a$) to extract latent representations.
  2. Resolution Alignment: Standardizing variable-sized LIC features into fixed-length tokens using pooling and convolutional layers.
  3. Mapping: Utilizing a Multi-Layer Perceptron (MLP) to align these features with CLIP's semantic space.

The training follows a two-stage regime. First, the LIC model is optimized for rate-distortion performance. Second, the adapter is trained to minimize the cosine distance between its output and the ground-truth CLIP embeddings, while the base LIC model remains largely frozen to preserve compression integrity.

Experimental Evaluation

The system was trained on the MSCOCO dataset and evaluated using a database of 5,000 images. Retrieval performance was tested using the Kodak dataset as a query set to measure accuracy across varying bit-rates.

Key Results

  • Retrieval Performance: While raw LIC features performed poorly in search tasks, the adapted system achieved a 100% hit rate (24/24) on test queries, matching the accuracy of a standalone CLIP model.
  • Compression Efficiency: The integration of searchability introduced a negligible overhead. The bit-rate increased slightly from 0.5901 bpp to 0.6002 bpp, maintaining a high PSNR (Peak Signal-to-Noise Ratio) of approximately 35dB.
  • Structural Fidelity: Qualitative analysis suggested the LIC-based system occasionally outperformed CLIP in scenarios requiring precise counting or shape recognition, as LIC features retain more structural detail than purely semantic embeddings.

Conclusion and Future Work

By unifying compression and search, this "AI-native" approach significantly reduces the computational burden of large-scale image databases. Future research will focus on scaling the system to larger datasets, implementing standardized automated metrics like Mean Average Precision, and extending the framework to video-based multi-modal retrieval.

Summary updated

Abstract

The burgeoning volume of digital content across diverse modalities necessitates efficient storage and retrieval methods. Conventional approaches struggle to cope with the escalating complexity and scale of multimedia data. In this paper, we proposed framework addresses this challenge by fusing AI-native multi-modal search capabilities with neural image compression. First we analyze the intricate relationship between compressibility and searchability, recognizing the pivotal role each plays in the efficiency of storage and retrieval systems. Through the usage of simple adapter is to bridge the feature of Learned Image Compression(LIC) and Contrastive Language-Image Pretraining(CLIP) while retaining semantic fidelity and retrieval of multi-modal data. Experimental evaluations on Kodak datasets demonstrate the efficacy of our approach, showcasing significant enhancements in compression efficiency and search accuracy compared to existing methodologies. Our work marks a significant advancement towards scalable and efficient multi-modal search systems in the era of big data.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Kodak · query images; search database of 5,000 images sampled frProposed LIC–CLIP adapter retrieval systembpp0.6002split: val · backbone=CLIP · search-database=5,000 images sampled from MSCOCO validation · LIC-learning-rate=1e-6 · adapter-learning-rate=1e-4
Source quote
L105: bpp │ 0.5901 │ 0.7655 │ 1.2678 │ 3.267 │ 0.6002
Kodak · query images; search database of 5,000 images sampled frProposed LIC–CLIP adapter retrieval systempsnr35.02split: val · backbone=CLIP · search-database=5,000 images sampled from MSCOCO validation · LIC-learning-rate=1e-6 · adapter-learning-rate=1e-4
Source quote
L106: psnr │ 35.20 │ 35.20 │ 32.20 │ 23.96 │ 35.02
BibTeX
@misc{luo2024compressible,
  author = {Jixiang Luo},
  title = {{Compressible and Searchable: AI-native Multi-Modal Retrieval System with Learned Image Compression}},
  year = {2024},
  eprint = {2404.10234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.10234},
}
Figure