SLIM: Semantic-based Low-bitrate Image compression for Machines
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: We're looking at the paper: "SLIM: Semantic-based Low-bitrate Image compression for Machines".
Jane: Here's the gist of the paper. The gist: SLIM proposes Semantic-based Lowbitrate Image compression for Machines by leveraging diffusion, which focuses on Region-of-Interest (RoI) areas and uses a pretrained latent diffusion model to enhance decompressed latents, achieving high classification accuracy at low bitrates.
Tom: Proposed Method Overview The SLIM framework is a new effective training framework of image compression for machine vision, using a pretrained latent diffusion model.
Jane: The compressor model focuses only on the Region-of-Interest (RoI) areas for machine vision in the image latent to compress it compactly.
Tom: Then the pretrained Unet model enhances the decompressed latent, utilizing a RoI-focused text caption which containing semantic information of the image.
Paper summary: Tom: So we're looking at this paper called "SLIM: Semantic-based Low-bitrate Image compression for Machines." Basically, they're saying that current image compression models for machine vision are too focused on human vision, which keeps too many unnecessary details and limits how small the file size can get for those specific tasks.
Jane: It sounds like the main idea here is to fix that by using diffusion models to help with compression. They propose this new framework called SLIM, which uses a pretrained latent diffusion model to achieve low-bitrate image compression while still preserving important semantic information for machine vision tasks.
Lu: The core of it is a two-part system. First, they have a compressor that focuses only on the Region-of-Interest areas in the image latent space to compress it compactly, and then they use a diffusion-based semantic decoder to enhance that compressed latent with guidance from text cues.
Meng: So if I'm hearing this right, the compressor is smart enough to ignore what's not important for machine vision during compression, and then a separate enhancement step brings back the missing details using context from text. That sounds like it could be useful for deployment because it tackles the bitrate efficiency directly.
Lalam: Exactly. They claim that this approach allows them to focus on RoI areas without needing explicit masks during inference, which is a big win for practical application in real-time machine vision scenarios, especially when dealing with very low bitrates.
Conclusion: Tom: So we've covered the concept of SLIM, which uses RoI focus and diffusion enhancement to get better performance at low bitrates compared to older compression methods. The authors are showing that this method requires fewer bits per pixel than other models for the same classification accuracy on machine vision tasks.
Jane: It seems like the authors are emphasizing how this framework manages to keep high-quality details in the important parts of an image while making sacrifices in less critical areas when compressing heavily. It's about balancing quality and size for a specific purpose, which is what machine vision needs.
Lu: The implication is that we can potentially use these models for tasks where data transmission or storage is extremely constrained, like on remote sensors or edge devices, because the compression stays accurate enough for the required machine vision outcome.
Meng: From a deployment standpoint, if this model consistently delivers better rate-accuracy performance under the same bits per pixel condition as those other models they tested against, then it's worth looking at integrating this kind of structure into our production pipelines to see how much we can save on bandwidth or storage costs.
Lalam: I think the paper is really pointing toward a more semantically aware compression pipeline for specialized AI applications instead of just generic image compression. It’s about making the data understood by the machine vision task itself, not just visually.
Hyeonjin Lee, Jun-Hyuk Kim, Jong-Seok Lee
Yonsei University · Chung-Ang University
eess.IV, cs.CV
Submitted: 2025-12-20
Updated: 2026-10-17
Comments: Accepted to ACCV 2026
Code: https://github.com/mcml-official/SLIM
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 87/100
The gist: The gist: SLIM proposes Semantic-based Lowbitrate Image compression for Machines by leveraging diffusion, which focuses on Region-of-Interest (RoI) areas and uses a pretrained latent diffusion model
Key concepts
- Region-of-Interest (RoI) Focus
- The compressor is trained to concentrate its compression efforts specifically on areas in the image that are semantically and functionally important for machine vision tasks. This allows the model to discard less critical details while preserving vital information, which is crucial for maintaining performance at low bitrates.
- Latent Diffusion Enhancement
- A pretrained diffusion model is used during decoding to clean up and improve the compressed latent representation. This enhancement process acts like a denoising step, taking the imperfect compressed data and refining it into a semantically rich latent space. This ensures that even with very few bits, the resulting image retains perceptual details.
- Dual Cues Guidance
- The system uses two types of guidance during enhancement: one comes from the RoI-focused latent representation itself, and the other is provided by a text-based semantic guidance. This combination helps the diffusion model accurately reconstruct high-quality images, ensuring both critical region details and overall scene coherence are preserved.
- Two-Stage Training Objectives
- The model is trained in two stages. The first stage focuses on learning to compress efficiently by minimizing loss on non-important areas. The second stage adds losses to specifically ensure high fidelity and semantic accuracy for the important RoI regions and the final machine vision task performance.
Terminology
Summary
The gist: SLIM proposes Semantic-based Lowbitrate Image compression for Machines by leveraging diffusion, which focuses on Region-of-Interest (RoI) areas and uses a pretrained latent diffusion model to enhance decompressed latents, achieving high classification accuracy at low bitrates.
Proposed Method Overview
The SLIM framework is a new effective training framework of image compression for machine vision, using a pretrained latent diffusion model. The compressor model focuses only on the Region-of-Interest (RoI) areas for machine vision in the image latent to compress it compactly. Then the pretrained Unet model enhances the decompressed latent, utilizing a RoI-focused text caption which containing semantic information of the image. Therefore, SLIM is able to focus on RoI areas of the image without any guide mask at the inference stage, achieving low bitrate when compressing. And SLIM is also able to enhance a decompressed latent by denoising steps, so the final reconstructed image from the enhanced latent can be optimized for the machine vision task while still containing perceptual details for human vision.
System Architecture and Training
The overall architecture of our model is shown in Fig. 1. The encoder part consists of a VAE encoder and a compressor, and the decoder part includes a decompressor, a VAE decoder, CLIP encoder, Unet, and control module. We leverage pretrained components from Stable Diffusion 2.1 including the VAE encoder, VAE decoder, Unet, and CLIP encoder. The key trainable components of SLIM are the compressor, the decompressor, and the control module. During inference, an input image is first encoded into a latent representation by the VAE encoder. The compressor then transforms this latent into a bitstream focusing on RoI areas, and this bitstream is transmitted to the decoder along with a RoI-focused text caption extracted from the image. In the decoder, before passing through the VAE decoder, the latent is enhanced by the Unet which is conditioned on the RoI-focused text caption via the control module.
The training phase of SLIM is divided into two stages. In stage 1, we define guide loss as Lguide = MSE(MROI (z), MROI (ˆz)) where z and zˆ mean the latent encoded by the VAE encoder and the latent decompressed by the decompressor. The predefined RoI-mask used in the guide loss is obtained by Grad-CAM when the image samples pass the pretrained ResNet50. With bitrate loss R, SLIM is trained to reduce more bits on non-RoI areas where fidelity is less critical. For training the control module attached to the pretrained Unet, we define the denoising loss as Ldenoise = MSE(ϵ, ϵθ(zt, t, c)) where ϵ is the target noise and ϵθ is the predicted noise by the Unet attached with the control module with weight parameters θ. The loss function of training stage 1 is formulated as Lstage1 = λr · R + λg · Lguide + λd · Ldenoise.
Two-Stage Training Objectives
In stage 2, additional losses are included in the training stage 2. To ensure the reconstructed image samples maintain the fidelity and semantics of RoI areas in original images, we define the RoI loss as LROI = MSE(MROI (x), MROI (ˆx)) + LP IP S(MROI (x), MROI (ˆx)). The first term MSE(MROI (x), MROI (ˆz)) is the mean squared error between the original image x and reconstructed image xˆ in RoI areas for high fidelity of RoI areas in reconstructed images at the pixel level. The second term LP IP S(MROI (x), MROI (ˆx)) is the LPIPS loss between two inputs for high perceptual details of RoI areas in reconstructed images at the semantics level. To ensure the reconstructed image samples are optimized for machine vision, we define the task loss as Ltask = CE(y, yˆ) where y and yˆ are the ground truth class label and the predicted class label respectively. The loss function of training stage 2 is formulated as Lstage2 = Lstage1 + λROI · LROI + λt · Ltask.
Experimental Results and Performance
Experimental results show that SLIM achieves a higher classification accuracy in the same bits per pixel condition, compared to conventional image compression models for machines. Our SLIM model achieves the best rate-accuracy performance compared to other baselines when evaluated with both ResNet50 and ConvNeXt-T classifiers. In comparison with the models for machine vision, including MPA, TransTIC, AdaptICMH, our approach requires consistently fewer bits per pixel (bpp) to achieve the same classification accuracy. Furthermore, in comparison with the model for human vision, OSCAR, our approach still achieves better rate-accuracy performance. Particularly at low bitrates, SLIM maintains reasonable accuracy while OSCAR shows a significant drop in accuracy. The corresponding BD-Rate comparison results are reported in Tab. 1.
Ablation Studies and Efficiency
The diffusion module has a significant impact on the rate-accuracy performance of SLIM, achieving higher accuracy at the same bitrate level, especially in low bitrates. Without the diffusion module, no denoising steps of Unet for enhancing the image latent is involved before passing it to the VAE decoder and nonenhanced latent which decompressed by decompressor are directly used to be decoded by the VAE decoder. The diffusion module is a crucial component that enhances the imperfect latent into the latent with rich semantics and details through denoising steps of Unet. RoI-focused training leads to a higher BD-Rate performance as shown in Tab. 2, resulting in a BD-rate reduction of 18.87%. Processing a 512 × 512 sized RGB image takes a total of 1657.83 GFLOPs, with the majority of the computational cost arising from the diffusion module in the decoding phase. Our method yields improved rate-accuracy performance at the cost of increased computational complexity compared to non-diffusion based approaches. Our method achieves a decoding time comparable to OSCAR while requiring only about twothirds of its GFLOPs.
Conclusion and Future Work
In this paper, we proposed a novel semantic-based framework of learned image compression for machine vision, named SLIM. Our SLIM model could efficiently reduce the bitrate by the compressor focusing on the RoI areas of the image latent, and effectively improve the quality of a reconstructed image by the diffusion module enhancing the decompressed latent through denoising steps. This work provides a novel scheme for learned image compression in machine vision applications, utilizing RoI-focused training and pretrained diffusion. In future work, we aim to accelerate our model by utilizing an one-step diffusion.
Supplementary Information
To obtain RoI-focused text captions, we feed the RoIMasked image into BLIP2 which generates a description of the preserved areas. Samples of the resulting RoIfocused text captions after compression with the zlib lossless compression algorithm require only 367 bits on average. On this scale, the captions require only 0.0014 bpp on average, which is extremely small compared to the bitrate required for the compressed image data. We examine the effect of the training dataset size by additionally training our SLIM model on an extended dataset constructed by combining OpenImages v6 (train), CLIC2020 professional (train), and COCO2017 (train) which comprises of approximately 170,000 images. The experimental result indicates that our SLIM model has the potential to achieve better classification accuracy at low bitrates when trained on extended datasets.
Computational Cost Details
Table 3 shows the computational cost of each model for a 512 × 512 sized RGB image. The encoding phase requires 575.61 GFLOPs, while the decoding takes 1082.22 GFLOPs, indicating that the majority of the computational cost arises from the diffusion module in the decoding phase. SLIM (Ours) has a total processing time of 50.60 ms for encoding and 212.95 ms for decoding. The overall complexity could be further reduced by employing a onestep diffusion model.
Additional Samples
Figure 11a shows reconstructed images comparing the SLIM models with and without the diffusion module. Figure 11b shows the bit allocation maps obtained from the SLIM models with and without RoI-focused training.
Improvements for AI systems
-
Semantic-based Lowbitrate Image compression for Machines SLIM can achieve higher classification accuracy in machine vision tasks at a lower bitrate compared to conventional image compression models for machines, as shown by achieving
a higher classification accuracy in the same bits per pixel condition
(Page 1). -
The system can effectively reduce the bitrate by
focusing on the Region-of-Interest (RoI) areas relevant to machine vision tasks, allowing low bitrate compression without significant loss of important information
(Page 2). -
The reconstructed images from SLIM can be optimized for machine vision tasks while still containing perceptual details for human vision because the system uses
denoising steps of the diffusion model enhance the decompressed latent representations into refined latent features
(Page 1). -
SLIM can maintain reasonable accuracy at low bitrates where other models like OSCAR show a significant drop, suggesting it is
specially designed for machine vision and its effectiveness is increasingly noticeable when a compression ratio increases
(Page 4). -
The system demonstrates superior rate-accuracy performance compared to baselines, achieving an
average BD-Rate reduction of-94.56 %
against the MPA model on the ImageNet-val dataset (Page 4). -
The model can preserve crucial texture and details in RoI areas while strategically removing details only in non-RoI areas, leading to reconstructed images with
more natural textures than others, particularly in the RoI areas for machine vision
(Page 6).
Sources
- End-to-end Optimized Image Compression
- Variational image compression with a scale hyperprior
- OSCAR: One-Step Diffusion Codec Across Multiple Bit-rates
- Ultra Lowrate Image Compression with Semantic Residual Coding and Compression-aware Diffusion
Related papers
- GBT-SAM: A Parameter-Efficient Depth-Aware Model for Generalizable Brain tumour Segmentation on mp-MRI
- PanoDiff-SR: Synthesizing Dental Panoramic Radiographs using Diffusion and Super-resolution
- Nonparametric Distribution Matching for Self-Supervised Whole-Slide Image Condensation
- Revisiting Integration of Image and Metadata for DICOM Series Classification: Cross-Attention and Dictionary Learning
- VesselSDF: Distance Field Priors for Vascular Network Reconstruction
- cSVR: Convolutional Slice-to-Volume Reconstruction