Introduction
As global data traffic increasingly shifts toward machine-to-machine communication, traditional image compression standards—optimized for human perception—are becoming a bottleneck. For autonomous systems and IoT devices, the priority is not visual aesthetics but the preservation of semantic features necessary for downstream tasks like classification. We present SLIM (Semantic-based Low-bitrate Image compression for Machines), a framework that leverages generative diffusion models to maintain high machine vision accuracy at extremely low bitrates.
The Challenge of Low-Bitrate Machine Vision
Standard codecs (e.g., JPEG, VVC) often discard high-frequency details or introduce blocky artifacts when pushed to ultra-low bitrates. While the resulting image might remain recognizable to a human, the subtle semantic cues required by deep learning classifiers are often lost. Furthermore, these codecs allocate bits uniformly across the image, wasting bandwidth on background textures irrelevant to the machine's objective.
Methodology: Generative Semantic Compression
SLIM addresses these issues through a novel architecture that combines Region-of-Interest (RoI) prioritization with the generative power of Latent Diffusion Models (LDM).
RoI-Focused Compression and Textual Guidance
The framework employs a two-stage training process. First, the compressor is trained to identify the RoI using Grad-CAM, ensuring that bits are prioritized for the most informative regions. To assist the decoder, a tiny side-channel transmits a text caption (e.g., generated by BLIP2) focused on the RoI. This caption acts as a semantic anchor, costing only ~0.0014 bpp.
Diffusion-Based Reconstruction
Instead of traditional signal reconstruction, SLIM uses a Unet-based denoising process. The decoder takes the low-bitrate "decompressed latent" and uses the text prompt to "hallucinate" semantically consistent details back into the RoI. This process is optimized using a combination of Task Loss (classifier cross-entropy) and RoI Loss (MSE + LPIPS), ensuring the output is tailored for machine observers.
Key Results and Performance
SLIM demonstrates significant improvements over state-of-the-art neural codecs. On the ImageNet-val dataset, it achieved a 94.56% reduction in BD-Rate compared to the MPA baseline when evaluated with a ResNet50 classifier.
Qualitatively, SLIM avoids the blocky artifacts typical of traditional compression. By leveraging the generative prior of Stable Diffusion, it reconstructs clean, textured objects within the RoI. Even at bitrates where competing methods like TransTIC fail to maintain classification accuracy, SLIM preserves the essential features needed for the machine to "see" correctly.
Discussion and Future Work
While SLIM offers superior semantic fidelity, the use of diffusion models introduces higher computational complexity and slower decoding times compared to non-generative methods. Additionally, the generative nature of the reconstruction carries a risk of "hallucination"—adding details not present in the original—which may limit its use in forensic contexts. Future research will focus on integrating one-step diffusion models to accelerate inference without compromising reconstruction quality.
Summary updated