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.
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.
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:
- Feature Reuse: Re-purposing the LIC encoder ($g_a$) to extract latent representations.
- Resolution Alignment: Standardizing variable-sized LIC features into fixed-length tokens using pooling and convolutional layers.
- 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