What and Where to Adapt: Structure-Semantics Co-Tuning for Machine Vision Compression via Synergistic Adapters
Organizations: Xidian University
Abstract
Parameter-efficient fine-tuning of pre-trained codecs is a promising direction in image compression for human and machine vision. While most existing works have primarily focused on tuning the feature structure within the encoder-decoder backbones, the adaptation of the statistical semantics within the entropy model has received limited attention despite its function of predicting the probability distribution of latent features. Our analysis reveals that naive adapter insertion into the entropy model can lead to suboptimal outcomes, underscoring that the effectiveness of adapter-based tuning depends critically on the coordination between adapter type and placement across the compression pipeline. Therefore, we introduce Structure-Semantics Co-Tuning (S2-CoT), a novel framework that achieves this coordination via two specialized, synergistic adapters: the Structural Fidelity Adapter (SFA) and the Semantic Context Adapter (SCA). SFA is integrated into the encoder-decoder to preserve high-fidelity representations by dynamically fusing spatial and frequency information; meanwhile, the SCA adapts the entropy model to align with SFA-tuned features by refining the channel context for more efficient statistical coding. Through joint optimization, S2-CoT turns potential performance degradation into synergistic gains, achieving state-of-the-art results across four diverse base codecs with only a small fraction of trainable parameters, closely matching full fine-tuning performance. Code is available at https://github.com/Brock-bit4/S2-CoT.
Figures & tables
| Adapter Placement | Adapter Type | Classification | Params (M) | |
|---|---|---|---|---|
| BD-Rate | BD-Acc | |||
| , | Structural | -82.00% | 18.71 | 0.28 |
| , | Structural | -1.56% | 0.27 | 0.26 |
| combined | Structural | -81.27% | 18.80 | 0.55 |
| bpp | mAP | |||||
|---|---|---|---|---|---|---|
| 0-7 | 0-7 | 0-3 | 0-3 | 0.0639 | 37.63 | 0.239 |
| 1,3,5 | 2,4,6 | \ | \ | 0.0829 | 37.21 | 0.289 |
| 0-7 | 0-7 | \ | \ | 0.0881 | 37.32 | 0.314 |
| 1,3,5 | 2,4,6 | 0-3 | 0-3 | 0.0685 | 37.42 | 0.260 |
| Base | Method | Venue | Object Detection | Instance Segmentation | Trainable Params (M) | ||
| BD-Rate | BD-mAP | BD-Rate | BD-mAP | ||||
| Lu2022-TIC | full fine-tuning | – | -73.943% | 4.511 | -67.977% | 3.755 | 7.51 (100.00%) |
| Channel Selection | ICPR'22 | 6.849% | -0.550 | 16.511% | -0.949 | 0.92 (12.25%) | |
| TransTIC | ICCV'23 | -46.301% | 2.768 | -46.521% | 2.690 | 1.62 (21.57%) | |
| ICMH-Net | ACM MM'23 | -9.080% | 0.625 | -10.772% | 0.654 | 3.98 (53.00%) | |
| Adapt-ICMH | ECCV'24 | -55.150% | 3.547 | -52.407% | 3.208 | 0.29 (3.86%) | |
| Stage | Module | Object Detection | Instance Segmentation | Trainable Params (M) | ||
|---|---|---|---|---|---|---|
| BD-Rate | BD-mAP | BD-Rate | BD-mAP | |||
| Stage II | -54.063% | 3.568 | -56.038% | 3.308 | 0.18 (2.40%) | |
| -52.667% | 3.335 | -53.160% | 3.079 | 0.15 (2.00%) | ||
| Stage III | SFA w/o Fusion | -55.635% | 3.563 | -53.591% | 3.196 | 0.26 (3.46%) |
| SFA | -58.077% | 3.842 | -56.042% | 3.421 | 0.40 (5.33%) | |
| Method | SFA | SCA | Object Detection | Instance Segmentation | Trainable Params (M) | |||
|---|---|---|---|---|---|---|---|---|
| BD-Rate | BD-mAP | BD-Rate | BD-mAP | |||||
| (a) | -58.077% | 3.842 | -56.042% | 3.421 | 0.40 (5.33%) | |||
| (b) | -59.344% | 3.891 | -58.385% | 3.439 | 0.41 (5.50%) | |||
| (c) | -58.533% | 3.931 | -61.271% | 3.443 | 0.41 (5.50%) | |||
| (d) | -60.824% | 4.014 | -61.784% | 3.480 | 0.42 (5.59%) | |||
| (e) | Adapt-ICMH-128 [ 31 ] | -58.399% | 3.709 | -60.936% | 3.413 | 0.64 (8.52%) | ||
| Object Detection | Trainable Params (M) | |||
|---|---|---|---|---|
| BD-Rate | BD-mAP | |||
| 32 | 16 | -57.622% | 3.875 | 0.29 (3.86%) |
| 64 | 8 | -60.824% | 4.014 | 0.42 (5.59%) |
| 96 | 4 | -61.329% | 4.063 | 0.57 (7.59%) |
| Model | KMACs/pixel | Latency (ms) | Params | BD- | ||
|---|---|---|---|---|---|---|
| Enc. | Dec. | Enc. | Dec. | (M) | Acc | |
| full fine-tuning | 132.6 | 176.4 | 94.9 | 94.8 | 7.51 | 17.6 |
| Ours | 153.6 | 197.3 | 109.5 | 101.0 | 0.42 | 17.4 |
| Method | Adapters in Encoder-Decoder | Adapters in Entropy Model | Object Detection | Instance Segmentation | Trainable Params (M) | ||
|---|---|---|---|---|---|---|---|
| BD-Rate | BD-mAP | BD-Rate | BD-mAP | ||||
| (a) | SCA | – | -51.179% | 3.022 | -48.209% | 2.863 | 0.05 (0.67%) |
| (b) | SCA | SCA | -50.975% | 3.255 | -51.417% | 2.983 | 0.07 (0.93%) |
| (c) | SCA | SFA | -49.972% | 3.160 | -50.445% | 2.953 | 0.19 (2.53%) |
| (d) | SFA | – | -58.077% | 3.842 | -56.042% | 3.421 | 0.40 (5.33%) |
| (e) | SFA | SFA | -55.415% | 3.977 | -60.365% | 3.464 | 0.54 (7.19%) |
| Tasks | Models | Bit Rate | mAP ( ) | PSNR ( ) | PSNR w/o Adapters ( ) |
|---|---|---|---|---|---|
| object detection | base codec | 0.056 | 27.123 | 30.286 | 30.286 |
| S 2 -CoT | 0.0814 | 36.767 | 27.044 | 30.286 | |
| instance segmentation | base codec | 0.056 | 24.81 | 30.29 | 30.29 |
| S 2 -CoT | 0.103 | 34.64 | 28.18 | 30.29 |
| Classification | Detection | Segmentation | |
| Optimizer | Adam | Adam | Adam |
| Batch size | 16 | 8 | 8 |
| Epochs | 8 | 40 | 40 |
| Base learning rate | 1e-4 | 1e-4 | 1e-4 |
| Lu2022-TIC | |||
| Trade-off term | [2.5, 3.5, 5, 6.7, 13] | [0.5, 0.9, 1.8, 3.2] | [0.35, 0.5, 0.9, 1.8, 3.2] |
| Base | Method | Venue | Object Detection | Instance Segmentation | Trainable Params (M) | ||
|---|---|---|---|---|---|---|---|
| BD-Rate | BD-mAP | BD-Rate | BD-mAP | ||||
| Cheng2020 -anchor | full fine-tuning | – | -59.015% | 4.699 | -74.052% | 3.869 | 26.60 (100.00%) |
| Channel Selection | ICPR'22 | -11.520% | 0.723 | -5.156% | 0.230 | 1.34 (5.04%) | |
| ICMH-Net | ACM MM'23 | -8.365% | 0.503 | -11.980% | 0.737 | 4.43 (16.65%) | |
| Adapt-ICMH | ECCV'24 | -49.245% | 3.121 | -60.657% | 3.389 | 0.41 (1.54%) | |
| SVD-LoRA | CVPR'25 | -36.354% | 2.331 | -38.087% | 1.899 | 0.14 (0.53%) | |
| Method | SFA | SCA | Object Detection | Instance Segmentation | Trainable Params (M) | |||
|---|---|---|---|---|---|---|---|---|
| BD-Rate | BD-mAP | BD-Rate | BD-mAP | |||||
| (d) Ours | -60.824% | 4.014 | -61.784% | 3.480 | 0.42 (5.59%) | |||
| (e) | Adapt-ICMH-128 | -58.399% | 3.709 | -60.936% | 3.413 | 0.64(8.52%) | ||
| (f) | Adapt-ICMH-96 | -59.811% | 3.665 | -59.309% | 3.341 | 0.48(6.39%) | ||
| (g) | Adapt-ICMH-64 | -57.894% | 3.894 | -57.851% | 3.356 | 0.30 (3.99%) | ||
| Placement in | Core Idea | Params | |
|---|---|---|---|
| hp1, sp5 | reverse bottleneck | +0.459 | 0.497 |
| hp5, sp1 | classic bottleneck | -0.496 | 0.421 |
| hp3, sp4 or hp3, sp3 | symmetrical middle layer | +0.479 | 0.421 |
| hp2, hp4, sp2, sp4 | symmetrical middle high layer | +0.242 | 0.438 |
| hp3, hp5, sp1, sp3 | symmetrical middle high layer | +0.343 | 0.438 |
| hp3, hp5, sp3, sp5 | asymmetric layer | +0.467 | 0.504 |
| Detection | Segmentation | Params (M) | ||||
|---|---|---|---|---|---|---|
| BD-Rate | BD-mAP | BD-Rate | BD-mAP | |||
| 32 | 32 | -60.276% | 3.852 | -60.255% | 3.386 | 0.28 (3.73%) |
| 32 | 16 | -57.622% | 3.875 | -61.991% | 3.462 | 0.29 (3.86%) |
| 64 | 8 | -60.824% | 4.014 | -61.784% | 3.480 | 0.42 (5.59%) |
| 96 | 4 | -61.329% | 4.063 | -62.429% | 3.529 | 0.57 (7.59%) |
| 128 | 4 | -62.763% | 4.165 | -63.657% | 3.625 | 0.72 (9.59%) |
| Original Image | LIC | Traditional | ||
| Base Codec | Ours | JPEG(Q10) | ||
| Compression Ratio | None | 219:1 | 296:1 | 67:1 |
| mAP | 51.302 | 45.231 | 47.760 | 15.481 |
| Methods | Base Codec | Ours | ||
| bpp | mAP | bpp | mAP | |
| Faster-RCNN | 0.1096 | 31.606 | 0.0812 | 36.601 |
| Model | KMACs/pixel | CPU Average Latency (ms) | GPU Average Latency (ms) | Trainable Params (M) | BD- Acc | |||
|---|---|---|---|---|---|---|---|---|
| Enc. | Dec. | Enc. | Dec. | Enc. | Dec. | |||
| base codec | 132.64 | 176.42 | 94.87 | 94.75 | 33.22 | 31.18 | - | - |
| full fine-tuning | 132.64 | 176.42 | 94.87 | 94.75 | 33.22 | 31.18 | 7.51 | 17.7 |
| Adapt-ICMH [ 31 ] | 147.39 | 191.16 | 111.01 | 110.14 | 29.49 | 25.34 | 0.29 | 16.9 |
| Ours | 153.57 | 197.34 | 109.49 | 101.03 | 29.60 | 28.45 | 0.42 | 17.4 |
| Base | Method | Venue | Object Detection | Instance Segmentation | Trainable Params (M) | ||
| BD-Rate | BD-mAP | BD-Rate | BD-mAP | ||||
| DCAE | full fine-tuning | – | -84.677% | 4.002 | -81.897% | 3.049 | 119.40 (100.00%) |
| Channel Selection | ICPR'22 | -24.498% | 0.977 | -18.661% | 0.747 | 2.68 (2.24%) | |
| TransTIC | ICCV'23 | -49.269% | 2.339 | -50.120% | 2.271 | 1.13 (0.95%) | |
| Adapt-ICMH | ECCV'24 | -64.608% | 2.863 | -63.240% | 2.404 | 0.36 (0.30%) | |
| SVD-LoRA | CVPR'25 | -58.166% | 2.300 | -54.371% | 2.229 | 0.17 (0.14%) | |
| Method | Classification | Params | |
|---|---|---|---|
| BD-Rate | BD-Acc | (M) | |
| full fine-tuning | - | 17.688 | 7.51 (100%) |
| Channel Selection | -37.178% | 6.278 | 0.92 (12.25%) |
| TransTIC | -58.529% | 9.956 | 1.62 (21.57%) |
| ICMH-Net | -18.759% | 3.360 | 3.98 (53.00%) |
| Adapt-ICMH | -88.573% | 16.901 | 0.29 (3.86%) |
| Method | Object Detection | Trainable | |
|---|---|---|---|
| Lu2022-TIC | BD-Rate | BD-mAP | Params (M) |
| +SFA | -58.077% | 3.842 | 0.40 (5.33%) |
| +SCA | +8.160% | -0.511 | 0.02 (0.27%) |
| +SFA +SCA | -60.824% | 4.014 | 0.42 (5.59%) |