Skip to main content
QUICK REVIEW

[Paper Review] Prompt-ICM: A Unified Framework towards Image Coding for Machines with Task-driven Prompts

Ruoyu Feng, Jinming Liu|arXiv (Cornell University)|May 4, 2023
Advanced Image Processing TechniquesComputer Science7 citations
TL;DR

Prompt-ICM proposes a unified image coding framework for machine vision that uses task-driven prompts to optimize compression and feature adaptation. By introducing compression prompts for content-aware bit allocation and task-adaptive prompts for downstream feature tuning, it achieves state-of-the-art performance with minimal additional parameters across diverse vision tasks.

ABSTRACT

Image coding for machines (ICM) aims to compress images to support downstream AI analysis instead of human perception. For ICM, developing a unified codec to reduce information redundancy while empowering the compressed features to support various vision tasks is very important, which inevitably faces two core challenges: 1) How should the compression strategy be adjusted based on the downstream tasks? 2) How to well adapt the compressed features to different downstream tasks? Inspired by recent advances in transferring large-scale pre-trained models to downstream tasks via prompting, in this work, we explore a new ICM framework, termed Prompt-ICM. To address both challenges by carefully learning task-driven prompts to coordinate well the compression process and downstream analysis. Specifically, our method is composed of two core designs: a) compression prompts, which are implemented as importance maps predicted by an information selector, and used to achieve different content-weighted bit allocations during compression according to different downstream tasks; b) task-adaptive prompts, which are instantiated as a few learnable parameters specifically for tuning compressed features for the specific intelligent task. Extensive experiments demonstrate that with a single feature codec and a few extra parameters, our proposed framework could efficiently support different kinds of intelligent tasks with much higher coding efficiency.

Motivation & Objective

  • Address the challenge of optimizing image compression for diverse downstream AI tasks rather than human perception.
  • Overcome the limitations of task-specific codecs and generic feature codecs by enabling a single codec to support multiple tasks.
  • Reduce computational and storage costs by minimizing the need for task-specific retraining or separate codecs.
  • Enable efficient transfer to downstream tasks through parameter-efficient tuning mechanisms.

Proposed method

  • Introduce compression prompts as task-conditioned importance maps predicted by a lightweight information selector to guide content-weighted bit allocation during compression.
  • Implement a spatially variable-rate feature compression model that uses compression prompts to allocate more bits to semantically important regions based on the downstream task.
  • Design task-adaptive prompts as a small set of learnable parameters to fine-tune the compressed features for specific downstream tasks.
  • Train the framework end-to-end with joint rate and task-specific loss optimization, enabling alignment between compression and downstream analysis.
  • Leverage pre-trained backbones for feature extraction and use the information selector to dynamically adapt compression based on task semantics.
  • Use a unified codec with minimal additional parameters, enabling efficient deployment across multiple vision tasks.
Figure 1: Different pipelines of image coding for machines (ICM): (a). Using the compressed images to support downstream tasks; (b). One-to-one feature-based ICM pipeline; (c). General features based ICM pipelines which ignores the explicit interaction between the compression task and downstream tas
Figure 1: Different pipelines of image coding for machines (ICM): (a). Using the compressed images to support downstream tasks; (b). One-to-one feature-based ICM pipeline; (c). General features based ICM pipelines which ignores the explicit interaction between the compression task and downstream tas

Experimental results

Research questions

  • RQ1How can image compression be dynamically adapted to different downstream vision tasks to improve coding efficiency?
  • RQ2Can task-driven prompts effectively coordinate compression and downstream analysis without requiring task-specific codecs?
  • RQ3To what extent can a small set of learnable parameters (task-adaptive prompts) achieve performance comparable to full fine-tuning?
  • RQ4How do compression prompts reflect task-specific importance, and can they be visualized to validate their semantic alignment?

Key findings

  • Prompt-ICM achieves state-of-the-art performance on image classification, object detection, and semantic segmentation tasks with a single unified codec.
  • The method significantly outperforms Omni-ICM and preprocessing-based baselines in rate-distortion performance while using far fewer learnable parameters.
  • Task-adaptive prompt tuning achieves better performance than full fine-tuning, using only 0.87M parameters compared to 87.61M for full tuning.
  • Compression prompts are visually aligned with task-relevant regions—focusing on object boundaries and discriminative features depending on task type.
  • Ablation studies confirm that compression prompts improve rate-distortion performance, especially when features from multiple semantic levels are used.
  • The framework maintains high performance across diverse tasks with minimal parameter overhead, demonstrating strong generalization and efficiency.
Figure 2: The framework of our proposed Prompt-ICM (taking Swin-T as an example). Downstream transferring is performed via task-driven prompt tuning. By tuning the lightweight information selector and task-adaptive prompts, Prompt-ICM could efficiently support various downstream tasks, e.g., classif
Figure 2: The framework of our proposed Prompt-ICM (taking Swin-T as an example). Downstream transferring is performed via task-driven prompt tuning. By tuning the lightweight information selector and task-adaptive prompts, Prompt-ICM could efficiently support various downstream tasks, e.g., classif

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.