Papers
Topics
Authors
Recent
Search
2000 character limit reached

What and Where to Adapt: Structure-Semantics Co-Tuning for Machine Vision Compression via Synergistic Adapters

Published 11 Apr 2026 in cs.CV | (2604.10017v1)

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.

Authors (4)

Summary

  • The paper presents S²-CoT, a dual-adapter framework that integrates structural and semantic adaptations to significantly improve rate–accuracy trade-offs in image compression.
  • It introduces a Structural Fidelity Adapter (SFA) and a Semantic Context Adapter (SCA) that respectively handle feature preservation and entropy model alignment through innovative nonlinear fusion and attention mechanisms.
  • Empirical results showcase robust performance gains across CNN and Transformer codecs, achieving substantial BD-mAP improvements and BD-rate reductions with under 6% of the parameters.

Structure–Semantics Co-Tuning with Synergistic Adapters for Machine Vision Compression

Motivation and Background

Recent advances in image compression for both human and machine vision (ICMH) have driven the adoption of learned codecs as core components, spanning both CNN- and Transformer-based architectures. While parameter-efficient fine-tuning (PEFT) has become a prevalent strategy for adapting such pre-trained codecs to specific downstream tasks (e.g., detection, segmentation), standard adapter-based PEFT techniques have overwhelmingly focused on modulating the encoder–decoder backbone. In contrast, fine-grained adaptation of the entropy model—responsible for probabilistic coding of latent statistics—remains largely unexplored.

Empirical analysis demonstrates that naive transplantation of structure-oriented adapters into the entropy model is fundamentally ineffective and can induce severe performance collapse. This finding exposes the architectural and functional mismatch between existing adapter designs and the requirements for effective statistical adaptation within entropy models. As a result, there is a critical need to rigorously address both what types of adapters should be employed for task-oriented adaptation, and where these adapters should be deployed within the learned compression pipeline.

S²-CoT: A Synergistic Dual-Adapter Paradigm

The Structure–Semantics Co-Tuning (S²-CoT) framework systematically addresses both the architectural specialization and placement sensitivity of adapters in end-to-end image compression. S²-CoT introduces two distinct, complementary adapters:

  • Structural Fidelity Adapter (SFA): Integrated into the encoder–decoder, the SFA preserves and enhances spatial and frequency-domain structure. It employs a dual-branch mechanism comprising modulations in both spatial and frequency bands (the latter via FFT-based operations), followed by a nonlinear soft fusion mechanism. Through recalibrated channel attention and bottlenecked feature projections, the SFA adapts multiscale backbone features for high structural fidelity with minimal overhead.
  • Semantic Context Adapter (SCA): Inserted within the entropy model, the SCA is designed for lightweight, context-aware refinement of channel statistics. It utilizes bottleneck projections and channel-wise SE attention, directly modulating the statistical priors that drive coding efficiency. The SCA specifically aligns the entropy model to the new latent distributions induced by SFA-adapted features, minimizing coding redundancy (ΔR) otherwise caused by statistical misfit.

The S²-CoT adapters are trained in a joint, end-to-end manner, while the remainder of the base codec and downstream task models remain frozen. The loss function is a combination of bitrate and task-specific perceptual distortion, measured in frozen downstream model feature space. This minimizes domain gap not only for pixel fidelity but also for the semantic features critical to machine vision.

Theoretical Analysis of Structure–Semantics Synergy

Structural adaptation in the encoder–decoder alone disrupts the statistical co-dependency with the entropy model, resulting in feature distribution shift and degraded coding. S²-CoT provides a formal quantification of this degradation as an explicit bitrate penalty term ΔR, arising due to KL divergence between the true adapted latent distribution and the mismatched frozen entropy model. Joint adaptation via SFA (structure) and SCA (semantics) ensures that the statistical modeling within the entropy model converges on the task-adapted latent distribution, thus eliminating ΔR. Empirical metrics support this theory: exclusive SFA tuning increases inter-channel and spatial correlation in the latents, while SCA insertion realigns statistical independence and reduces redundancy, demonstrably improving rate–accuracy trade-offs.

Empirical Results and Analysis

S²-CoT establishes robust state-of-the-art (SOTA) performance across a wide range of codecs:

  • Base Codecs: Transformer-based (Lu2022-TIC, DCAE), CNN-based (Cheng2020-anchor, ELIC)
  • Tasks: Object detection, instance segmentation, classification (ImageNet)
  • Metrics: Significant average BD-mAP increases and BD-rate reductions compared to all prior PEFT methods, approaching the upper bound of full fine-tuning with <6% of the parameters.

Key findings include:

  • Adapter Specialization is Critical: Attempting to use SFA in the entropy model, or SCA in the place of SFA, produces suboptimal or even degraded results. Optimal performance is exclusively achieved when each adapter operates in its specialized role.
  • Nonlinear Fusion is Essential: SFA's soft fusion of spatial and frequency branches is a major contributor to quality, outperforming additive or single-branch ablations.
  • Placement Sensitivity: Only carefully staged insertion—SFA into encoder–decoder multiscale pathways; SCA into mid-level entropy model layers—yields maximal synergy.
  • Generalizability: S²-CoT's abstraction allows seamless integration with diverse entropy modeling mechanisms (standard hyperprior, autoregressive GMMs, cross-attention dictionary priors, channel–spatial hybrid models) by modulating the universally present hyperprior feature pipeline.

Ablations on adapter capacity and placement, computational overhead, and downstream detector types (YOLO, Faster-RCNN) confirm efficiency and versatility. In all cases, S²-CoT achieves SOTA accuracy gains and bitrate savings with negligible increase in computational cost and practical inference latency.

Practical and Theoretical Implications

Practical: S²-CoT enables highly scalable, task-agnostic adaptation of learned codecs for ICMH. Its modular architecture and low footprint allow a single system to support both high-fidelity human viewing (by bypassing adapters) and task-specific machine analytics (by activating adapters), dramatically reducing storage and deployment complexity. S²-CoT is readily applicable to new codecs and downstream vision tasks, simplifying addition of new tasks by adding lightweight adapter modules, not task-specific copies of the entire codec.

Theoretical: S²-CoT formalizes the necessity of coordinated structure–semantics adaptation for statistically optimal and semantically faithful machine vision compression. Its synergy-based framework paves the way for more principled insertion of adaptation modules in not only compression models but also other domains, suggesting new research in joint adaptation of representation and inference/statistical components.

Future Directions: Extensions of S²-CoT to video and multi-task compression—especially in scenarios with rapid switching between machine and human consumption—are natural follow-ups. The framework's minimal parameter and compute requirements make it promising for edge deployment and federated analytics, where bandwidth and task diversity are key constraints.

Conclusion

S²-CoT provides a rigorously validated, dual-adapter fine-tuning strategy that unifies structural and statistical adaptation in learned codecs for machine vision. By demonstrating both theoretical foundations and strong empirical gains across codecs and tasks, it sets a paradigm for parameter-efficient, synergistic adaptation of deep compression systems. Through this principled co-tuning, S²-CoT both narrows the gap to full fine-tuning with orders-of-magnitude fewer parameters and reveals a transferable design principle for future adaptive AI systems.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.