Manuscript Offprint
arXiv:2608.25568CrossMambaTuning: Synergistic Spatial and Cross-Layer Adaptation for Machine Vision Compression
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
To reduce deployment cost and retraining overhead, adapting pre-trained learned image compression (LIC) models to downstream machine vision tasks has attracted growing attention. However, existing methods typically insert fine-tuning modules independently into frozen backbones, lacking explicit mechanisms for cross-layer coordination. To address this limitation, we propose a novel framework named CrossMambaTuning, which integrates State Space Models with cross-layer interaction mechanisms for parameter-efficient fine-tuning. Specifically, we design an efficient Mamba adapter equipped with task-specific prompts and multiscale branching to precisely capture both local features and global dependencies. Furthermore, we introduce a Scale-Invariant Cross-Layer Adapter (SICA) utilizing a parameter-sharing strategy to fuse task information across different scales and reduce redundancy. Extensive experiments demonstrate that CrossMambaTuning achieves state-of-the-art (SOTA) performance on multiple machine vision tasks, reducing parameter overhead by 72% compared to SOTA methods. Code is available at https://github.com/rsr1123/CrossMambaTuning.
CCS Concepts
• Computing methodologies → Image compression.
Keywords
Learned Image Compression; Parameter-Efficient Fine-Tuning; State Space Model; Machine Vision
ACM Reference Format:
Haobo Xiong, Shaobo Liu, Kai Liu, and Chongyang Ding. 2026. CrossMambaTuning: Synergistic Spatial and Cross-Layer Adaptation for Machine Vision Compression. In Proceedings of the 34th ACM International Conference
Shaobo Liu
School of Computer Science and Technology, Xidian
University
Xi'an, China
Chongyang Ding
School of Computer Science and Technology, Xidian
University
Xi'an, China
on Multimedia (MM '26), November 10–14, 2026, Rio de Janeiro, Brazil. ACM, New York, NY, USA, 16 pages. https://doi.org/10.1145/3767308.3835353
Figure 1: Performance comparison on COCO2017-val [30]. The different variants of the proposed method, full fine-tuning, TransTIC [12], ICMH-Net [33], Adapt-ICMH [28], and SVD-LoRA [39], are compared. BD-mAP is computed using the base codec of TIC [36] as the anchor. The size of the circles represents Gflops for encoding.
The exponential growth of visual data used in downstream applications [24, 42, 49], such as the Internet of Things (IoT) [15], demands efficient compression techniques that support machine vision tasks. However, practical deployment scenarios often require compression models to preserve image reconstruction capability for human viewing. To minimize the parameter overhead and retraining cost of maintaining multiple task-specific systems, early studies [14, 31] explored unified frameworks. However, these approaches typically required training multi-task networks from scratch, which incurred substantial training and storage overheads. Therefore, reducing the training and storage overhead for diverse applications has become an important direction.
Corresponding author.

This work is licensed under a Creative Commons Attribution 4.0 International License. MM '26, Rio de Janeiro, Brazil © 2026 Copyright held by the owner/author(s). ACM ISBN 979-8-4007-2213-4/2026/11 https://doi.org/10.1145/3767308.3835353
Haobo Xiong, Shaobo Liu, Kai Liu, and Chongyang Ding
To address this need, recent studies [12, 28, 33] increasingly adopt the parameter-efficient fine-tuning (PEFT) paradigm, where lightweight task-specific modules are attached to pretrained learned image compression (LIC) models. Instead of training separate task-specific codecs from scratch, these methods reuse pretrained models and introduce only minimal additional parameters for downstream machine vision adaptation. In practical deployment, adapting a pretrained LIC model to machine vision tasks avoids storing an additional full set of model weights, thereby substantially reducing both retraining costs and storage overhead.
Building on the PEFT paradigm, existing methods can be broadly categorized into two approaches. The first category (e.g., ICMH-Net [33] and TransTIC [12]) employs masks or visual prompting[8]. However, these methods often impose rigid structural constraints on the encoder (e.g., TransTIC is exclusive to Transformers), limiting their architectural flexibility. The second category focuses on architecture-agnostic fine-tuning via Low-Rank Adaptation (LoRA) [26, 39] or adapters [25, 28]. Notably, methods like SFMA achieve efficient adaptation via input-adaptive frequency modulation, but frequency modulation often fails to capture long-range spatial dependencies. Although attention mechanisms [3, 45] could address this limitation, their quadratic complexity makes them intractable for high-resolution images. A promising alternative lies in State Space Models [20, 34, 55], such as VMamba [34], which capture long-range dependencies with linear complexity, offering an efficient solution for global spatial modeling.
Furthermore, existing methods [28, 39] typically insert modules independently at various layers within the network, without explicit mechanisms for cross-layer coordination. Consequently, task-relevant information may not be effectively integrated across layers, limiting the utilization of complementary semantics.
To address these challenges, we propose CrossMambaTuning, a parameter-efficient adaptation framework for machine vision tasks. First, we design an efficient Mamba adapter equipped with task-specific prompts. Simultaneously, this module utilizes multi-scale branching to extract local features and selective scanning to capture long-range spatial dependencies, enabling precise modeling of task-relevant priors. Second, to alleviate the layer-isolation issue, we introduce a Scale-Invariant Cross-Layer Adapter (SICA) with a parameter-sharing strategy. This approach implements a scale-agnostic cross-layer mechanism to fuse task information across features of different scales. Such a design facilitates cross-layer information fusion and reduces compression redundancy, thereby significantly improving parameter utilization efficiency.
Leveraging these innovations, our framework achieves parameter efficiency. The Tiny variant reduces parameter overhead by 72% compared to the state-of-the-art (SOTA) method [28], using 0.08M parameters while achieving comparable or superior performance.
In summary, the main contributions are as follows:
- We propose an efficient Mamba adapter augmented with task-specific prompts and local multi-scale branching modules. By effectively modeling spatial dependencies within images, this design facilitates efficient adaptation of LIC models to downstream machine vision tasks.
• We introduce a cross-layer information fusion mechanism employing a parameter-sharing strategy. By implementing a Scale-Invariant Cross-Layer Adapter, this mechanism effectively fuses task information across different scales, thereby reducing redundancy and enhancing parameter efficiency.
• We present the CrossMambaTuning framework by integrating the proposed Mamba adapter and cross-layer fusion mechanism. Extensive experiments demonstrate that our method achieves SOTA performance on multiple machine vision tasks across various network configurations.
2 Related Work
2.1 Learned Image Compression (LIC)
Learned Image Compression (LIC) [6, 7, 22, 27, 38] demonstrates strong competitiveness against traditional codecs such as VVC [11] and HEVC [44], typically evaluated using PSNR and MS-SSIM. LIC models generally consist of a transform module and an entropy model. Prior work on transform modules focuses on nonlinear transformation, adopting convolutions with GDN [7] or enhancing expressiveness via residual learning and attention [13, 57]. Recent studies use Transformer-based architectures to model long-range dependencies [35, 36]. For entropy models, hyperprior-based methods capture spatial dependencies [7], while autoregressive models exploit decoded context [38]. Recent work integrates richer cues for entropy estimation [27].
2.2 Machine Vision in LIC
Despite the success of LIC models optimized for human perception, their compressed representations are not always well aligned with the requirements of downstream machine vision tasks. Early studies [4, 14] explored unified or multi-task frameworks to support diverse usage scenarios within a single model. For instance, Choi & Bajic [14] proposed a scalable coding framework via latent decomposition, while Zhang et al.[54] presented an ensemble framework with multi-path aggregation. However, these multi-branch designs incur substantial training and storage overheads, limiting practical deployment. Consequently, recent research [12, 28, 39] has shifted toward the fine-tuning paradigm to adapt pretrained LIC models. These approaches typically fall into two categories. The first utilizes masks or visual prompts, such as the mask generator [19] and TransTIC [12]. However, such methods are often tied to specific architectures (e.g., TransTIC is restricted to Transformer-based models), limiting their versatility. The second category employs Low-Rank Adaptation (LoRA) [39] or Adapters [28]. By inserting lightweight task-specific modules into frozen codecs, these methods apply to a broad range of backbones, achieving strong task performance with minimal additional parameters.
2.3 Mamba-based PEFT Methods
Recently, State Space Models (SSMs) [34, 50, 51, 55] have shown strong potential in vision tasks, offering global modeling capacity competitive with Transformers while maintaining linear computational complexity. Leveraging their linear complexity and efficient long-range modeling capability, recent studies have explored the use of SSMs as lightweight adaptation modules in pretrained models. In medical image segmentation, Triplane Mamba [46] introduces Mamba as an adapter for 3D SAM [53], enabling parameter-efficient fine-tuning through long-range spatial dependency modeling in
Algorithm 1 Procedure of CrossMambaTuning
Require: Image x, Frozen Backbone , Mamba Adapters , SICA Module with gates , Global Code , Layer Embeddings , Prompt Generator
Ensure: Representation y
1:
2:
3:
4: for do
5:
6:
7:
8:
9:
10: end for
11: return
3D data. In point cloud understanding, PMA [52] proposes a Point Mamba Adapter that constructs an ordered feature sequence from all layers of the pretrained model and uses Mamba for cross-layer semantic fusion. Mamba has also been adopted for cross-model adaptation. For example, MAVLT [43] uses a Mamba adapter as a bridge between the visual and language encoders, achieving efficient vision-language fusion with only a small number of trainable parameters. These studies suggest that Mamba can serve not only as a backbone but also as an adapter in pretrained models.
Unlike existing Mamba-based adaptation methods that are largely tailored to specific scenarios, our approach is developed for machine vision compression through parameter-efficient adaptation of pretrained LIC models. It provides a unified framework for machine vision compression across classification, object detection, and instance segmentation, and is applicable to diverse architectures, including both CNN-based and Transformer-based models. Its strong performance comes from two complementary components: the Task-aware Mamba Adapter performs efficient spatial modeling, while SICA alleviates the redundancy introduced by frozen codecs. Notably, the Tiny variant requires only 0.08M parameters while maintaining competitive performance across multiple tasks.
3 Method
3.1 Overview and Motivations
Existing PEFT-based adaptation frameworks exhibit two key limitations when adapting pretrained learned image compression (LIC) models to downstream machine vision tasks. First, current methods often struggle to capture long-range spatial dependencies, with underrepresented correlations between distant regions hindering the preservation of task-relevant global structure. Second, the lack of explicit cross-layer coordination may cause adapters at different layers to learn overlapping feature patterns [29], introducing redundancy and limiting the coordinated utilization of complementary semantics across layers. To address these issues, we propose Cross-MambaTuning, a PEFT framework tailored for machine vision. The framework comprises two lightweight modules that enhance spatial dependency modeling and cross-layer information integration:

Figure 2: The APC modifies the input x before the adapter.
(i) Task-Aware Mamba Adapter. We insert a Mamba-based adapter after each encoder/decoder stage except the last. Leveraging the SSM, the adapter captures long-range spatial dependencies efficiently. To incorporate task awareness, we employ a shared Task-Specific Prompt Generator (TSPG) to inject task priors and promote consistent information sharing across adapters.
(ii) Scale-Invariant Cross-Layer Adapter (SICA). To facilitate cross-layer interaction, we establish information pathways between adjacent layers. By aligning features across scales and extracting task-relevant semantics, this adapter enables cross-scale feature integration and facilitates information exchange across layers.
The procedure of the adaptation can be seen in Algorithm 1, while Figure 3 provides an overview of the pipeline. Given an input image x, the encoder produces a compact latent y, which is coded into a binary bitstream via an entropy model; the decoder then reconstructs the image optimized for the downstream task. Overall, CrossMambaTuning improves adaptation and compression efficiency while introducing only 1%-4% additional parameters.
3.2 Task-aware Mamba Adapter
To effectively capture long-range spatial dependencies while promoting interaction among adapters, we integrate the proposed Task-aware Mamba Adapter into the pre-trained codecs. As shown in Figure 3, the adapter first applies an Affinity Pre-conditioner (APC) to the input features x to align them with the distribution of downstream tasks. The resulting features are then projected into a lower-dimensional space through a linear transformation. The transformed features are processed by two parallel branches. One branch uses a local information extractor to capture multi-scale spatial details, followed by an SSM augmented with task-specific prompts to generate modulation signals, which are applied to the other branch via element-wise gating. An up-projection layer restores the original feature dimension, and the output is combined with the APC-adjusted features through a residual connection to produce the final representation. Specifically, we employ three distinct designs to construct an efficient Mamba adapter:
(i) Affinity Pre-conditioner (APC). Conventional PEFT methods typically apply additive modulation to intermediate features. However, the feature distribution generated by the frozen backbone often deviates from the optimal distribution for downstream tasks. The absence of proper preprocessing consequently limits the fine-tuned distribution from reaching the ideal state. To rectify this misalignment and thereby enhance the affinity for downstream tasks, we introduce the Affinity Pre-conditioner (APC).
As shown in Figure 2, APC operates as a lightweight feature rectification module preceding the residual adapter. APC adopts a dual-path mechanism fusing the raw input with normalized features. The pre-conditioned feature is formulated as:
Haobo Xiong, Shaobo Liu, Kai Liu, and Chongyang Ding

Figure 3: Overview of the proposed CrossMambaTuning. The snowflake symbol represents frozen layers, while the flame symbol represents trainable layers. Since the decoding stage is the inverse process of the encoding stage, only the specific fine-tuning modules within the encoder are shown. More details can be found in Appendix H.
where denotes normalization such as LayerNorm [2], and are learnable scaling parameters. The APC module introduces only 4C learnable parameters, where C denotes the channel dimension; for Lu2022-TIC [36] with C = 128, this corresponds to 512 parameters per module, resulting in negligible parameter overhead.
As shown in Table 1. We calculate the Wasserstein Distance and KL Divergence between the feature distributions of the full fine-tuning model and the Mamba-Adapter, with and without APC. We report the metrics for the latent representation y and the average across network stages. The results indicate that APC mitigates distribution shift and aligns features closer to the full fine-tuning.
Table 1: We measure the distribution distance relative to the full fine tuning (lower is better). The metrics are reported for the average of intermediate stages (Stages) and the latent (y).
| Method | Wasserstein ↓ | KL Divergence ↓ | ||
|---|---|---|---|---|
| Stages | y | Stages | y | |
| w/o APC | 0.0308 | 0.0388 | 0.0396 | 0.0163 |
| w/ APC | 0.0277 | 0.0318 | 0.0318 | 0.0077 |
(ii) Local Information Extractor (LIE). To mitigate the limited ability of SSMs [20, 34, 40, 55] to capture fine-grained local details, we introduce a Local Information Extractor to replace the original depth-wise convolution. The module adopts a multi-branch design with depth-wise convolution kernels of sizes , , and , capturing pixel-level variations, local neighborhood context, and broader texture and edge patterns, respectively. Through multi-scale fusion, the extractor provides a strong local inductive bias for the subsequent SSM, enhancing its capacity to process high-frequency information such as edges and textures.
Formally, given an input , three depth-wise convolution branches independently process x with kernel sizes . The refined feature y is obtained by integrating multi-scale local information into the input:
where denotes a depth-wise convolution with kernel size .
(iii) Task-Specific Prompt Generator (TSPG). To condition the Mamba Adapters with task-oriented prior, we introduce the Task-Specific Prompt Generator (TSPG).
Unlike instance-wise conditioning, TSPG generates a task prior that initializes the SSM states. Formally, we create a global shared task embedding to unify task objectives, and layer-specific embeddings to capture layer-wise variations. The prompt for the l-th layer is generated via a lightweight projector :
This prompt is prepended to the input sequence :
where denotes concatenation along the sequence dimension. Consequently, the Mamba Adapter processes the prompt first, thereby initializing its hidden states with task-specific information before handling image features. Furthermore, the shared implicitly links distributed adapters, enabling effective joint optimization.
3.3 Scale-Invariant Cross-Layer Adapter (SICA)
3.3.1 Problem Formulation. We denote the frozen backbone as , comprised of consecutive stages. At the -th stage, the feature extraction is governed by the frozen transformation operator . The feature transition is formalized as:
In conventional frameworks [28, 39], the adapted feature is introduced locally in a layer-wise manner and subsequently processed by . Such a design lacks an explicit mechanism for cross-layer coordination and could limit the coordinated utilization of task-relevant information across layers. Moreover, adapters at different layers may learn overlapping feature patterns [29], thereby introducing redundancy.
3.3.2 Design of the SICA Bypass Operator. To address this, SICA establishes an explicit bypass connection. Let denote the adapted feature at stage . The input to the next stage, denoted as , is given by:
where is a learnable scalar initialized to 0.
To achieve extreme parameter efficiency, we employ a Scale-Invariant Parameter Sharing strategy. We define the transformation operator as a composition of spatial and semantic operations:
The parameter set is shared across stages. Specifically, we define , where applies to encoder and to decoder. The operators are defined as follows:
Scale-Alignment Spatial Operator . To align resolutions, applies distinct operations for encoder and decoder stages ( ):
where DWConv denotes a depthwise convolution with stride s, and Up( ) represents bilinear interpolation.
Scale-Invariant Projector . After spatial alignment, the features are processed via a bottleneck MLP. With reduction ratio , the projection matrices are and . The operator acts on the feature as:
where denotes the SiLU activation [17]. By sharing , across all stages, captures semantic representations independent of spatial scale.
The same generalizes across domains of varying scales, enforcing a universal feature injection mechanism.
3.4 Training Loss
During the training phase, the weights of the pretrained codec are frozen, and only the inserted adapters are optimized. The overall training objective follows a RD optimization, defined as:
where denotes the bitrate estimated by the entropy model (for the hyperprior entropy model, ), represents the task specific perceptual distortion metric (defined in Appendix D), and is the hyperparameter controlling the rate distortion tradeoff.
4 Experiments
4.1 Experimental Setup
4.1.1 Datasets. We evaluate the proposed method on three representative downstream machine vision tasks: image classification, object detection, and instance segmentation. We utilize the ImageNet dataset [16] for the classification, while the COCO2017 dataset [30] is used for object detection and instance segmentation.
4.1.2 Benchmarks. To assess the effectiveness of the proposed method, we integrate CrossMambaTuning into two different base codecs. We use a simplified version of the Transformer-based Lu2022TIC [36] codec, which utilizes only the hyperprior entropy model. Additionally, we incorporate the CNN-based ELIC [21] model with the Spatial-Channel Context model. To benchmark performance, we conduct comprehensive comparisons against recent SOTA methods, including Channel Selection [32], ICMH-Net [33], TransTIC [12], Adapt-ICMH [28], and SVD-LoRA [39]. The entire framework is implemented based on CompressAI [9].
4.1.3 Evaluation Metrics. We measure compression performance using bits per pixel (bpp). To assess downstream task performance, we evaluate Top-1 accuracy on ImageNet-VAL (using a pre-trained ResNet-50 [24]) and mAP on COCO2017-val. For object detection, we use Faster R-CNN [42], and for instance segmentation, we use Mask R-CNN [23], both implemented with Detectron2 [47]. Additionally, we report BD-rate [10] and BD-mAP, which quantify bitrate savings at equivalent performance and performance gains at equivalent bitrates, respectively.
4.1.4 Training Details. In all experiments, the backbone remains frozen, and only the proposed adapters are optimized. All training images are randomly cropped to . For classification, we train for 8 epochs with a batch size of 16. Conversely, for detection and segmentation tasks, we train for 40 epochs with a batch size of 8. Further details are available in Appendix H.
4.2 Experimental Results
Figure 4 illustrates the rate-accuracy curves on the TIC codec, demonstrating that CrossMambaTuning consistently outperforms all competing methods. Notably, for classification, our "Small" model surpasses the state-of-the-art Adapt-ICMH while utilizing only 51.7% of the trainable parameters. In detection and segmentation,
Haobo Xiong, Shaobo Liu, Kai Liu, and Chongyang Ding

Figure 4: Rate-Accuracy performance comparison for different machine vision tasks using the Lu2022-TIC base codec.
Table 2: Performance comparison of different methods on three machine tasks, using TIC as the base codec. We report the number of trainable parameters and two BD metrics [10]: BD-rate and BD-acc/mAP. The best and second-best results are highlighted in bold and underline, respectively.
| Method | Venue | Image Classification | Object Detection | Instance Segmentation | Trainable Params ↓ (M) | |||
|---|---|---|---|---|---|---|---|---|
| BD-rate↓ | BD-acc↑ | BD-rate↓ | BD-mAP↑ | BD-rate↓ | BD-mAP↑ | |||
| full fine-tuning | - | / | 17.688 | -73.943% | 4.511 | -67.977% | 3.755 | 7.51(100.00%) |
| channel selection [32] | ICPR'22 | -37.178% | 6.278 | 6.849% | -0.550 | 16.511% | -0.949 | 0.92(12.25%) |
| ICMH-Net [33] | ACM MM'23 | -18.759% | 3.360 | -9.080% | 0.625 | -10.772% | 0.654 | 3.98(53.00%) |
| TransTIC [12] | ICCV'23 | -58.529% | 9.956 | -46.301% | 2.768 | -46.521% | 2.690 | 1.62(21.57%) |
| Adapt-ICMH [28] | ECCV'24 | -88.573% | 16.901 | -55.150% | 3.547 | -52.407% | 3.208 | 0.29(3.86%) |
| SVD-LoRA [39] | CVPR'25 | -50.162% | 7.920 | -39.927% | 2.207 | -42.431% | 1.938 | 0.09(1.20%) |
| Ours-Tiny | - | -83.187% | 16.118 | -58.236% | 3.742 | -55.387% | 3.266 | 0.08(1.07%) |
| Ours-Small | - | -91.570% | 16.934 | -60.575% | 3.980 | -60.661% | 3.426 | 0.15(2.00%) |
| Ours-Base | - | -92.788% | 17.575 | -65.607% | 4.249 | -62.589% | 3.624 | 0.32(4.26%) |
Table 3: Ablation study of core components.
| Method | Components | Object Detection | Instance Segmentation | Trainable Params ↓ (M) | |||||
|---|---|---|---|---|---|---|---|---|---|
| APC | LIE | SICA | TSPG | BD-Rate↓ | BD-mAP↑ | BD-Rate↓ | BD-mAP↑ | ||
| (a) | -60.162% | 3.948 | -59.676% | 3.405 | 0.26 (3.46%) | ||||
| (b) | ✓ | -61.303% | 4.021 | -60.885% | 3.479 | 0.26 (3.46%) | |||
| (c) | ✓ | ✓ | -61.977% | 4.062 | -61.789% | 3.493 | 0.27 (3.60%) | ||
| (d) | ✓ | ✓ | ✓ | -64.931% | 4.195 | -62.164% | 3.575 | 0.30 (3.99%) | |
| (e) | ✓ | ✓ | ✓ | ✓ | -65.607% | 4.249 | -62.589% | 3.624 | 0.32 (4.26%) |
even our "Tiny" variant significantly outperforms recent SOTA algorithms (Adapt-ICMH and SVD-LoRA).
Quantitative results in Table 2 corroborate this superiority: on detection and segmentation tasks, our "Tiny" variant outperforms Adapt-ICMH with merely 27% of the parameters and exceeds SVD-LoRA by 1.328 ~ 1.533 mAP at equivalent bitrates. Additional experiments on the CNN-based ELIC[21] backbone further demonstrate this efficiency. As reported in Table 4, the proposed method consistently surpasses existing state-of-the-art approaches. At the same bitrate, the "Tiny" variant improves mAP by 0.484 for object detection, while reducing the number of trainable parameters by 73%. These results highlight both the parameter efficiency and generalization capability of CrossMambaTuning. Our "Tiny" and "Small" variants surpass larger SOTA methods in performance while utilizing fewer trainable parameters. This confirms both the high parameter efficiency and analytical soundness of our approach.
4.3 Ablation Study
4.3.1 Core components. As shown in Table 3, we validate the effectiveness of our design through progressive integration. Compared to the baseline (Row a), the introduction of APC (Row b) achieves a significant improvement in detection metrics. Incorporating the LIE (Row c) then confirms the importance of multi-scale feature extraction. Subsequently, SICA (Row d) further reduces the BD-rate

Full finetuning
bpp: 0.06618 | mAP: 37.369 | ρ: 0.01
Ours w CICA
bpp: 0.08656 | mAP: 37.08 | ρ: 0.05
Ours w/o CICA
bpp: 0.08897 | mAP: 36.879 | ρ: 0.10
SFMA
bpp: 0.09637 | mAP: 36.61 | ρ: 0.18
Figure 5: Visualization of spatial correlation for normalized latent representations . SFMA (right) exhibits significant spatial correlation. In contrast, our method (second from left) effectively suppresses correlations, approaching the decorrelation efficiency of Full Fine-tuning (left). More details are provided in Appendix E.
Table 4: Performance comparison of different methods on object detection, using ELIC [21] as the base codec.
| Method | Object Detection BD-rate↓ | BD-mAP↑ | Trainable Params ↓(M) |
|---|---|---|---|
| full fine-tuning | -70.409% | 5.745 | 33.79(100.00%) |
| channel selection [32] | -23.235% | 1.518 | 2.68(7.93%) |
| SVD-LoRA [39] | -41.190% | 2.149 | 0.41(1.21%) |
| Adapt-ICMH [28] | -54.844% | 3.379 | 0.41(1.21%) |
| Ours-Tiny | -57.495% | 3.863 | 0.11(0.33%) |
| Ours-Small | -60.016% | 4.137 | 0.21(0.62%) |
| Ours-Base | -62.710% | 4.500 | 0.43(1.27%) |
and demonstrates that cross-layer interaction reduces redundancy. Finally, the inclusion of the TSPG module (Row e) yields the best performance via task-specific prompt. These results demonstrate the effectiveness and complementarity of all components.
4.3.2 Parameter sharing strategy. We evaluate the efficacy of the parameter sharing strategy within the SICA module on the detection task. As shown in Table 5, disabling cross-layer sharing (instantiating independent modules for each bypass connection) increases the parameter count from 0.32M to 0.36M, yet leads to inferior performance. This suggests that, although different layers process features at varying semantic levels, they may still contain similar task-relevant information. The proposed sharing strategy therefore avoids repeatedly learning similar mappings across layers, reducing redundancy while preserving model compactness.
4.3.3 Local Perception Mechanism. We investigate kernel configurations for local feature extraction. As shown in Table 6, while expanding to a kernel improves over the baseline, the dual-scale strategy outperforms the single large kernel. This proves that aggregating multi-grained features is more effective than simple spatial expansion. Ultimately, our multi-scale design achieves optimal performance by fusing diverse receptive fields.
Table 5: Ablation study on the parameter sharing strategy.
| Strategy | Object Detection | Trainable Params ↓ (M) | |
|---|---|---|---|
| BD-Rate↓ | BD-mAP↑ | ||
| Independent | -63.224% | 4.106 | 0.36 |
| Shared (Ours) | -65.607% | 4.249 | 0.32 |
Table 6: Ablation study on the Local Perception Mechanism.
| Kernel Configurations | Object Detection | Trainable Params ↓ (M) | |
|---|---|---|---|
| BD-Rate↓ | BD-mAP↑ | ||
| Baseline () | -61.302% | 4.021 | 0.26 |
| Larger Kernel () | -61.268% | 4.032 | 0.26 |
| Dual Scale () | -61.678% | 4.045 | 0.26 |
| Ours () | -61.977% | 4.062 | 0.27 |
4.3.4 Spatial Modeling Module. To isolate the effect of the SSM module, we replace it with a window-based self-attention [35] module under the same experimental settings. As shown in Table 7, the window-attention variant performs slightly worse than the Mamba-based design, suggesting that Mamba is more effective for spatial modeling in machine-vision adaptation.
Table 7: Ablation study on the spatial modeling module.
| Module | Object Detection | Trainable Params ↓ (M) | |
|---|---|---|---|
| BD-Rate↓ | BD-mAP↑ | ||
| w/ window attention | -62.020% | 4.084 | 0.31 |
| Ours (Mamba-based) | -64.931% | 4.195 | 0.30 |
Haobo Xiong, Shaobo Liu, Kai Liu, and Chongyang Ding
Table 8: Reconstruction quality on Imagenet-val. We report bitrate and reconstruction quality for different settings.
| Method | bpp | PSNR(dB) | MS-SSIM |
|---|---|---|---|
| Base codec | 0.477 | 32.04 | 0.981 |
| Ours w/o adapters | 0.477 | 32.04 | 0.981 |
4.4 Analysis of Redundancy Reduction.
We use spatial correlation as a proxy to quantify redundancy, following prior works that explicitly analyze redundancy through correlation maps and correlation values [1, 41, 48, 56], as well as recent designs that improve compression efficiency by reducing local correlation [18]. As shown in Fig. 5, the previous SOTA method [28] exhibits relatively high redundancy (0.18). In contrast, our approach reduces this metric to 0.05, substantially narrowing the gap towards full fine-tuning (0.01). The increased correlation in the ablation variant (w/o SICA) further supports the role of the proposed SICA in alleviating redundancy.
4.5 Reconstruction Quality Check
Although our primary focus is downstream machine vision adaptation, we include a brief reconstruction check for completeness. Table 8 reports the bitrate and reconstruction quality of the base codec and the adapter-removed setting. Additional results for the adapter-attached setting are provided in Appendix B. Since our method features a plug-in design, removing the adapters exactly restores the pretrained codec, yielding identical RD performance.
4.6 Computational complexity and efficiency
We benchmark the computational complexity of our method against full fine-tuning (full ft) in Table 9. Our proposed variants (Ours-Base, Ours-Small, Ours-Tiny) demonstrate strong parameter efficiency: notably, the "Tiny" variant requires only 0.08M trainable parameters during training, representing a substantial reduction compared to the 7.51M required by full ft.
Overall, our framework focuses on trainable parameter efficiency. It substantially reduces the trainable parameter count while remaining competitive in computational cost and latency. More details are provided in Appendix C.
Table 9: We compare the complexity and performance of our method against the full fine-tuning baseline. The average encoding and decoding latencies are evaluated on an INTEL® XEON® SILVER 4310 CPU and an NVIDIA 4090 GPU.
| Method | KMACs/pixel | Latency(ms) | Params ↓(M) | BD-Acc↑ | ||
|---|---|---|---|---|---|---|
| Enc | Dec | Enc | Dec | |||
| full ft | 130.5 | 177.0 | 29.7 | 26.8 | 7.51 | 17.7 |
| Ours-T | 137.9 | 185.9 | 32.2 | 29.1 | 0.08 | 16.1 |
| Ours-S | 144.5 | 193.4 | 32.3 | 29.7 | 0.15 | 16.9 |
| Ours-B | 157.8 | 208.6 | 33.3 | 30.5 | 0.32 | 17.6 |

Figure 6: Qualitative comparison of different methods for detection and segmentation. The figure displays (from top to bottom): the original and decoded images, their corresponding results.
4.7 Qualitative Results
Figure 6 presents a qualitative comparison demonstrating the superiority of our method. Compared to the SOTA method (Adapt-ICMH), our approach preserves more fine-grained details and task-relevant features, even at lower bitrates. Specifically, in the object detection task, our framework successfully identifies an apple instance that was missed by Adapt-ICMH. Similarly, for instance segmentation, it accurately segments a glass that the competing method failed to recognize. These results validate the effectiveness of the proposed CrossMambaTuning framework.
5 Conclusion
In this paper, we propose CrossMambaTuning, a novel parameter-efficient fine-tuning framework for adapting pre-trained image compression codecs to downstream machine vision tasks. Specifically, we introduce a Task-aware Mamba Adapter and a Scale-Invariant Cross-Layer Adapter to facilitate the efficient adaptation of pre-trained codecs. Extensive experimental results demonstrate that our method significantly outperforms existing approaches across multiple downstream tasks, including image classification, instance segmentation, and object detection. Notably, our lightweight variants (i.e., Small and Tiny) surpass current SOTA methods while requiring substantially fewer trainable parameters, thereby verifying both the parameter efficiency and effectiveness of the proposed framework. Furthermore, additional experiments across diverse architectures confirm the robustness of our approach.
6 Acknowledgments
The work was supported by the China Postdoctoral Science Foundation under Grant 2024M752531 and the National Natural Science Foundation of China under Grant 62171342.
References
[1] Muhammad Salman Ali, Yeongwoong Kim, Maryam Qamar, Sung-Chang Lim, Donghyun Kim, Chaoning Zhang, Sung-Ho Bae, and Hui Yong Kim. 2023. Towards Efficient Image Compression Without Autoregressive Models. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine (Eds.). http://papers.nips.cc/paper_files/paper/2023/hash/170dc3e41f2d03e327e04dbab0fccbfb-Abstract-Conference.html
[2] Lei Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. 2016. Layer Normalization. CoRR abs/1607.06450 (2016). arXiv:1607.06450
[3] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2015. Neural Machine Translation by Jointly Learning to Align and Translate. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, Yoshua Bengio and Yann LeCun (Eds.).
[4] Yuanchao Bai, Xu Yang, Xianming Liu, Junjun Jiang, Yaowei Wang, Xiangyang Ji, and Wen Gao. 2022. Towards End-to-End Image Compression and Analysis with Transformers. In Thirty-Sixth AAAI Conference on Artificial Intelligence, AAAI 2022, Thirty-Fourth Conference on Innovative Applications of Artificial Intelligence, IAAI 2022, The Twelveth Symposium on Educational Advances in Artificial Intelligence, EAAI 2022 Virtual Event, February 22 - March 1, 2022. AAAI Press, 104–112. doi:10.1609/AAAI.V36I1.19884
[5] Johannes Ballé, Philip A. Chou, David Minnen, Saurabh Singh, Nick Johnston, Eirikur Agustsson, Sung Jin Hwang, and George Toderici. 2021. Nonlinear Transform Coding. IEEE J. Sel. Top. Signal Process. 15, 2 (2021), 339–353. doi:10.1109/JSTSP.2020.3034501
[6] Johannes Ballé, Valero Laparra, and Eero P. Simoncelli. 2017. End-to-end Optimized Image Compression. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net.
[7] Johannes Ballé, David Minnen, Saurabh Singh, Sung Jin Hwang, and Nick Johnston. 2018. Variational image compression with a scale hyperprior. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net.
[8] Amir Bar, Yossi Gandelsman, Trevor Darrell, Amir Globerson, and Alexei A. Efros. 2022. Visual Prompting via Image Inpainting. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh (Eds.).
[9] Jean Bégaint, Fabien Racapé, Simon Feltman, and Akshay Pushparaja. 2020. CompressAI: a PyTorch library and evaluation platform for end-to-end compression research. arXiv preprint arXiv:2011.03029 (2020).
[10] Gisle Bjontegaard. 2001. Calculation of average PSNR differences between RD-curves. ITU-T SG16, Doc. VCEG-M33 (2001).
[11] Benjamin Bross, Ye-Kui Wang, Yan Ye, Shan Liu, Jianle Chen, Gary J. Sullivan, and Jens-Rainer Ohm. 2021. Overview of the Versatile Video Coding (VVC) Standard and its Applications. IEEE Trans. Circuits Syst. Video Technol. 31, 10 (2021), 3736–3764. doi:10.1109/TCSVT.2021.3101953
[12] Yi-Hsin Chen, Ying-Chieh Weng, Chia-Hao Kao, Cheng Chien, Wei-Chen Chiu, and Wen-Hsiao Peng. 2023. TransTIC: Transferring Transformer-based Image Compression from Human Perception to Machine Perception. In IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023. IEEE, 23240–23250. doi:10.1109/ICCV51070.2023.02129
[13] Zhengxue Cheng, Heming Sun, Masaru Takeuchi, and Jiro Katto. 2019. Deep Residual Learning for Image Compression. In IEEE Conference on Computer Vision and Pattern Recognition Workshops, CVPR Workshops 2019, Long Beach, CA, USA, June 16-20, 2019. Computer Vision Foundation / IEEE, 0.
[14] Hyomin Choi and Ivan V. Bajic. 2022. Scalable Image Coding for Humans and Machines. IEEE Trans. Image Process. 31 (2022), 2739–2754. doi:10.1109/TIP.2022.3160602
[15] Jun Wei Chuah. 2014. The Internet of Things: An overview and new perspectives in systems design. In 2014 International Symposium on Integrated Circuits (ISIC), Singapore, December 10-12, 2014. IEEE, 216–219. doi:10.1109/ISICIR.2014.7029576
[16] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. 2009. ImageNet: A large-scale hierarchical image database. In 2009 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2009), 20-25 June 2009, Miami, Florida, USA. IEEE Computer Society, 248–255. doi:10.1109/CVPR.2009.5206848
[17] Stefan Elfwing, Eiji Uchibe, and Kenji Doya. 2018. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural
Networks 107 (2018), 3–11. doi:10.1016/J.NEUNET.2017.12.012
[18] Donghui Feng, Zhengxue Cheng, Shen Wang, Ronghua Wu, Hongwei Hu, Guo Lu, and Li Song. 2025. Linear Attention Modeling for Learned Image Compression. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2025, Nashville, TN, USA, June 11-15, 2025. Computer Vision Foundation / IEEE, 7623–7632. doi:10.1109/CVPR52734.2025.00714
[19] Kristian Fischer, Fabian Brand, and André Kaup. 2022. Boosting Neural Image Compression for Machines Using Latent Space Masking. IEEE Trans. Circuits Syst. Video Technol. 35, 4 (2022), 3719–3731. doi:10.1109/TCSVT.2022.3195322
[20] Albert Gu and Tri Dao. 2023. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. CoRR abs/2312.00752 (2023). arXiv:2312.00752 doi:10.48550/ARXIV.2312.00752
[21] Dailan He, Ziming Yang, Weikun Peng, Rui Ma, Hongwei Qin, and Yan Wang. 2022. ELIC: Efficient Learned Image Compression with Unevenly Grouped Space-Channel Contextual Adaptive Coding. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022. IEEE, 5708–5717. doi:10.1109/CVPR52688.2022.00563
[22] Dailan He, Yaoyan Zheng, Baocheng Sun, Yan Wang, and Hongwei Qin. 2021. Checkerboard Context Model for Efficient Learned Image Compression. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2021, virtual, June 19-25, 2021. Computer Vision Foundation / IEEE, 14771–14780. doi:10.1109/CVPR46437.2021.01453
[23] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. 2017. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision. 2961–2969.
[24] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep Residual Learning for Image Recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016. IEEE Computer Society, 770–778. doi:10.1109/CVPR.2016.90
[25] Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin de Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. 2019. Parameter-Efficient Transfer Learning for NLP. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA (Proceedings of Machine Learning Research, Vol. 97), Kamalika Chaudhuri and Ruslan Salakhutdinov (Eds.). PMLR, 2790–2799.
[26] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-Rank Adaptation of Large Language Models. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.
[27] Wei Jiang, Jiayu Yang, Yongqi Zhai, Feng Gao, and Ronggang Wang. 2025. MLIC : Linear Complexity Multi-Reference Entropy Modeling for Learned Image Compression. ACM Trans. Multim. Comput. Commun. Appl. 21, 5 (2025), 142:1–142:25. doi:10.1145/3719011
[28] Han Li, Shaohui Li, Shuangrui Ding, Wenrui Dai, Maida Cao, Chenglin Li, Junni Zou, and Hongkai Xiong. 2024. Image Compression for Machine and Human Vision with Spatial-Frequency Adaptation. In Computer Vision - ECCV 2024 - 18th European Conference, Milan, Italy, September 29-October 4, 2024, Proceedings, Part LI (Lecture Notes in Computer Science, Vol. 15109), Ales Leonardis, Elisa Ricci, Stefan Roth, Olga Russakovsky, Torsten Sattler, and Gül Varol (Eds.). Springer, 382–399. doi:10.1007/978-3-031-72983-6_22
[29] Ziyue Li and Tianyi Zhou. 2025. Sparser Mixture-of-Adapters with Cross-Layer Generalization. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL 2025 - Volume 1: Long Papers, Albuquerque, New Mexico, USA, April 29 - May 4, 2025, Luis Chiruzzo, Alan Ritter, and Lu Wang (Eds.). Association for Computational Linguistics, 3988–4002. doi:10.18653/V1/2025.NAACL-LONG.201
[30] Tsung-Yi Lin, Michael Maire, Serge J. Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. 2014. Microsoft COCO: Common Objects in Context. In Computer Vision - ECCV 2014 - 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V (Lecture Notes in Computer Science, Vol. 8693), David J. Fleet, Tomás Pajdla, Bernt Schiele, and Tinne Tuytelaars (Eds.). Springer, 740–755. doi:10.1007/978-3-319-10602-1_48
[31] Jinming Liu, Xin Jin, Ruoyu Feng, Zhibo Chen, and Wenjun Zeng. 2023. Composable Image Coding for Machine via Task-oriented Internal Adaptor and External Prior. In IEEE International Conference on Visual Communications and Image Processing, VCIP 2023, Jeju, Republic of Korea, December 4-7, 2023. IEEE, 1–5. doi:10.1109/VCIP59821.2023.10402659
[32] Jinming Liu, Heming Sun, and Jiro Katto. 2022. Improving Multiple Machine Vision Tasks in the Compressed Domain. In 26th International Conference on Pattern Recognition, ICPR 2022, Montreal, QC, Canada, August 21-25, 2022. IEEE, 331–337. doi:10.1109/ICPR56361.2022.9956532
[33] Lei Liu, Zhihao Hu, Zhenghao Chen, and Dong Xu. 2023. ICMH-Net: Neural Image Compression Towards both Machine Vision and Human Vision. In Proceedings of the 31st ACM International Conference on Multimedia, MM 2023, Ottawa, ON, Canada, 29 October 2023 - 3 November 2023, Abdulmotaleb El-Saddik, Tao Mei, Rita Cucchiara, Marco Bertini, Diana Patricia Tobon Vallejo, Pradeep K. Atrey, and M. Shamim Hossain (Eds.). ACM, 8047–8056. doi:10.1145/3581783.3612041
Haobo Xiong, Shaobo Liu, Kai Liu, and Chongyang Ding
[34] Yue Liu, Yunjie Tian, Yuzhong Zhao, Hongtian Yu, Lingxi Xie, Yaowei Wang, Qixiang Ye, Jianbin Jiao, and Yunfan Liu. 2024. VMamba: Visual State Space Model. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang (Eds.).
[35] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. 2021. Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. In 2021 IEEE/CVF International Conference on Computer Vision, ICCV 2021, Montreal, QC, Canada, October 10-17, 2021. IEEE, 9992–10002. doi:10.1109/ICCV48922.2021.00986
[36] Ming Lu, Peiyao Guo, Huiqing Shi, Chuntong Cao, and Zhan Ma. 2022. Transformer-based Image Compression. In Data Compression Conference, DCC 2022, Snowbird, UT, USA, March 22-25, 2022, Ali Bilgin, Michael W. Marcellin, Joan Serra-Sagristà, and James A. Storer (Eds.). IEEE, 469. doi:10.1109/DCC52660.2022.00080
[37] TorchVision maintainers and contributors. 2016. TorchVision: PyTorch's Computer Vision library.
[38] David Minnen, Johannes Ballé, and George Toderici. 2018. Joint Autoregressive and Hierarchical Priors for Learned Image Compression. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montréal, Canada, Samy Bengio, Hanna M. Wallach, Hugo Larochelle, Kristen Grauman, Nicolò Cesa-Bianchi, and Roman Garnett (Eds.). 10794–10803.
[39] Unki Park, Seongmoon Jeong, Youngchan Jang, Gyeong-Moon Park, and Jong Hwan Ko. 2025. Test-Time Fine-Tuning of Image Compression Models for Multi-Task Adaptability. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2025, Nashville, TN, USA, June 11-15, 2025. Computer Vision Foundation / IEEE, 4430–4440. doi:10.1109/CVPR52734.2025.00418
[40] Xiaohuan Pei, Tao Huang, and Chang Xu. 2025. EfficientVMamba: Atrous Selective Scan for Light Weight Visual Mamba. In AAAI-25, Sponsored by the Association for the Advancement of Artificial Intelligence, February 25 - March 4, 2025, Philadelphia, PA, USA, Toby Walsh, Julie Shah, and Zico Kolter (Eds.). AAAI Press, 6443–6451. doi:10.1609/AAAI.V39I6.32690
[41] Shiyu Qin, Jinpeng Wang, Yimin Zhou, Bin Chen, Tianci Luo, Baoyi An, Tao Dai, Shutao Xia, and Yaowei Wang. 2024. MambaVC: Learned Visual Compression with Selective State Spaces. CoRR abs/2405.15413 (2024). arXiv:2405.15413 doi:10.48550/ARXIV.2405.15413
[42] Shaoqing Ren, Kaiming He, Ross B. Girshick, and Jian Sun. 2015. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. In Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, Corinna Cortes, Neil D. Lawrence, Daniel D. Lee, Masashi Sugiyama, and Roman Garnett (Eds.). 91–99.
[43] Liangtao Shi, Bineng Zhong, Qihua Liang, Xiantao Hu, Zhiyi Mo, and Shuxiang Song. 2025. Mamba Adapter: Efficient Multi-Modal Fusion for Vision-Language Tracking. IEEE Trans. Circuits Syst. Video Technol. 35, 9 (2025), 9300–9311. doi:10.1109/TCSVT.2025.3557570
[44] Gary J. Sullivan, Jens-Rainer Ohm, Woojin Han, and Thomas Wiegand. 2012. Overview of the High Efficiency Video Coding (HEVC) Standard. IEEE Trans. Circuits Syst. Video Technol. 22, 12 (2012), 1649–1668. doi:10.1109/TCSVT.2012.2221191
[45] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is All you Need. In Advances in Neural Information Processing Systems 30: Annual Conference
on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett (Eds.). 5998–6008.
[46] Hualiang Wang, Yiqun Lin, Xinpeng Ding, and Xiaomeng Li. 2024. Tri-Plane Mamba: Efficiently Adapting Segment Anything Model for 3D Medical Images. In Medical Image Computing and Computer Assisted Intervention - MICCAI 2024 - 27th International Conference, Marrakesh, Morocco, October 6-10, 2024, Proceedings, Part IX (Lecture Notes in Computer Science), Marius George Linguraru, Qi Dou, Aasa Feragen, Stamatia Giannarou, Ben Glocker, Karim Lekadir, and Julia A. Schnabel (Eds.). Springer, 636–646. doi:10.1007/978-3-031-72114-4_61
[47] Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. 2019. Detectron2.
[48] Zhuojie Wu, Heming Du, Shuyun Wang, Ming Lu, Haiyang Sun, Yandong Guo, and Xin Yu. 2025. CMamba: Learned Image Compression with State Space Models. CoRR abs/2502.04988 (2025). arXiv:2502.04988 doi:10.48550/ARXIV.2502.04988
[49] Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, José M. Álvarez, and Ping Luo. 2021. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, Marc'Aurelio Ranzato, Alina Beygelzimer, Yann N. Dauphin, Percy Liang, and Jennifer Wortman Vaughan (Eds.). 12077–12090.
[50] Fei Xie, Jiahao Nie, Yujin Tang, Wenkang Zhang, and Hongshen Zhao. 2025. Mamba-Adaptor: State Space Model Adaptor for Visual Recognition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2025, Nashville, TN, USA, June 11-15, 2025. Computer Vision Foundation / IEEE, 20124–20134. doi:10.1109/CVPR52734.2025.01874
[51] Masakazu Yoshimura, Teruaki Hayashi, and Yota Maeda. 2025. MambaPEFT: Exploring Parameter-Efficient Fine-Tuning for Mamba. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net. https://openreview.net/forum?id=UAKnJMIBwf
[52] Yaohua Zha, Yanzi Wang, Hang Guo, Jinpeng Wang, Tao Dai, Bin Chen, Zhihao Ouyang, Xue Yuerong, Ke Chen, and Shu-Tao Xia. 2025. PMA: Towards Parameter-Efficient Point Cloud Understanding via Point Mamba Adapter. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2025, Nashville, TN, USA, June 11-15, 2025. Computer Vision Foundation / IEEE, 16976–16986. doi:10.1109/CVPR52734.2025.01582
[53] Kaidong Zhang and Dong Liu. 2023. Customized Segment Anything Model for Medical Image Segmentation. CoRR abs/2304.13785 (2023). arXiv:2304.13785 doi:10.48550/ARXIV.2304.13785
[54] Xu Zhang, Peiyao Guo, Ming Lu, and Zhan Ma. 2024. All-in-One Image Coding for Joint Human-Machine Vision with Multi-Path Aggregation. In Advances in Neural Information Processing Systems, A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang (Eds.), Vol. 37. Curran Associates, Inc., 71465–71503.
[55] Lianghui Zhu, Bencheng Liao, Qian Zhang, Xinlong Wang, Wenyu Liu, and Xinggang Wang. 2024. Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net.
[56] Yinhao Zhu, Yang Yang, and Taco Cohen. 2022. Transformer-based Transform Coding. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.
[57] Renjie Zou, Chunfeng Song, and Zhaoxiang Zhang. 2022. The Devil Is in the Details: Window-based Attention for Image Compression. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022. IEEE, 17471–17480. doi:10.1109/CVPR52688.2022.01697
A Scope and Practical Relevance
This work is motivated by practical multimedia deployment scenarios in which an on-device compression system is expected to support both human-vision image compression and machine vision compression under limited storage and deployment budgets. Instead of training and maintaining two separate learned compression systems from scratch, our framework reuses an existing pretrained LIC codec as the base system and performs parameter-efficient adaptation only for the machine vision mode. As a result, supporting machine vision compression requires training and storing only a small number of additional parameters, while the original codec remains available for human-vision compression.
B Reconstruction Quality Under Different Adapter Settings
Table 10 reports reconstruction reference results on ImageNet-val. The first two rows verify that removing the adapters exactly recovers the original pretrained codec, yielding identical bitrate and reconstruction quality. The remaining rows correspond to machine-vision compression methods, where the distortion term is optimized using task-oriented feature loss rather than the MSE-based reconstruction loss. Consequently, PSNR and MS-SSIM are not explicitly preserved during training, and reconstruction quality generally declines when the adapters remain attached.
For instance, compared to the base codec, the adapter-attached setting decreases the PSNR from 28.92 dB to 23.90 dB and the MS-SSIM from 0.971 to 0.923. Comparable degradation is evident in other compression frameworks for machine vision, indicating that this is a prevalent consequence of optimizing for specific tasks instead of an anomaly specific to our approach. Furthermore, we note a qualitative tendency where methods exhibiting marginal improvements on machine tasks, like TransTIC[12] and SVD-LoRA[39], maintain proportionally higher PSNR and MS-SSIM scores. This may indicate that their adaptations introduce weaker perturbations to the original representation, although we do not establish a strict causal relationship due to the bitrate and settings differences across methods.
In this PEFT-based setting, the adapter-based path is optimized for machine-vision compression, while the pretrained codec remains the path for reconstruction. Accordingly, deployment can be naturally interpreted as two selectable operating modes within the same LIC system: the pretrained codec path is used for human-vision compression, whereas the adapter-based path is used for machine-vision compression. Switching between the two modes only requires enabling or disabling a small set of task-specific parameters. Therefore, the results in Table 10 should be interpreted as reconstruction references under machine-oriented optimization, rather than as part of a rate-distortion comparison.
Table 10: Reconstruction reference for the ImageNet-val dataset. We report bitrate and reconstruction quality for the base codec, the adapter-removed setting, and several machine-vision compression methods. Since these methods are optimized using task-oriented feature loss rather than MSE loss, the reported PSNR and MS-SSIM values are included only as reconstruction references, not for a full rate-distortion comparison.
| Method | bpp | PSNR(dB) | MS-SSIM |
|---|---|---|---|
| Base codec | 0.227 | 28.92 | 0.971 |
| Ours w/o adapters | 0.227 | 28.92 | 0.971 |
| full ft | 0.239 | 22.66 | 0.903 |
| Ours w/ adapters | 0.206 | 23.90 | 0.923 |
| Adapt-ICMH [28] | 0.216 | 24.23 | 0.919 |
| TransTIC [12] | 0.176 | 26.64 | 0.948 |
| SVD-LoRA [39] | 0.190 | 28.31 | 0.953 |
C Additional Complexity Comparison with PEFT Baselines
Table 11 further compares CrossMambaTuning with full fine-tuning and representative PEFT baselines in terms of trainable parameters, computational cost, runtime latency, and downstream performance. All compared baselines follow their official implementations whenever available, and are evaluated under the same hardware environment as our method. The results indicate that the main advantage of our framework lies in parameter efficiency rather than in lower runtime cost. Relative to full fine-tuning, our variants substantially reduce the number of trainable parameters while preserving competitive performance, with moderate increases in KMACs and latency. Relative to existing PEFT baselines, CrossMambaTuning exhibits a more favorable parameter–performance trade-off: our “Small” variant matches SFMA-64 in BD-Acc with substantially fewer trainable parameters, whereas our “Tiny” variant outperforms SVD-LoRA by a large margin under a similarly small parameter budget. TransTIC, by comparison, incurs notably higher encoding cost and inferior machine-vision performance. Taken together, these results characterize CrossMambaTuning as a parameter-efficient machine-vision compression framework, rather than a method tailored for minimum inference complexity.
Haobo Xiong, Shaobo Liu, Kai Liu, and Chongyang Ding
Table 11: Complexity and performance comparison with full fine-tuning and representative PEFT baselines. Average encoding and decoding latencies are measured on an INTEL® XEON® SILVER 4310 CPU and an NVIDIA 4090 GPU.
| Method | KMACs/pixel | Latency(ms) | Params ↓(M) | BD-Acc↑ | ||
|---|---|---|---|---|---|---|
| Enc | Dec | Enc | Dec | |||
| full ft | 130.5 | 177.0 | 29.7 | 26.8 | 7.51 | 17.7 |
| Adapt-ICMH [28] | 145.2 | 191.7 | 31.4 | 28.5 | 0.29 | 16.9 |
| TransTIC [12] | 328.3 | 177.0 | 46.9 | 27.2 | 0.29 | 10.0 |
| SVD-LoRA [39] | 130.5 | 177.0 | 30.0 | 26.9 | 7.9 | |
| Ours-T | 137.9 | 185.9 | 32.2 | 29.1 | 16.1 | |
| Ours-S | 144.5 | 193.4 | 32.3 | 29.7 | 0.15 | 16.9 |
| Ours-B | 157.8 | 208.6 | 33.3 | 30.5 | 0.32 | 17.6 |
D Task-Specific Perceptual Loss
During the training phase, we employed task-specific perceptual loss () to train for downstream tasks:
To remain consistent with previous work, we followed the approach of [12], using pre-trained downstream task models (ResNet50 [24], Faster-RCNN[42], Mask-RCNN[23]) to extract features from the original image and the reconstructed image , and computed the mean squared error (MSE) between the features. Specifically, we divided the downstream tasks into two groups: classification and instance segmentation/object detection.
We visually illustrate the feature layers used for loss computation in Figure 7.

Figure 7: Network architecture of ResNet50-FPN.
D.1 Loss for Classification
For the classification task, we utilize the feature layers from the ResNet-50 network [24]. The perceptual loss is computed by averaging the MSE across feature layers , and . The loss formulation is defined as:
For ResNet50, we used the V1 weights from Torchvision [37], which achieved an accuracy of 76.7% on the ImageNet-val dataset.
D.2 Loss for Object Detection and Instance Segmentation
For object detection and instance segmentation tasks, we employ Faster R-CNN [42] and Mask R-CNN [23], respectively. Both architectures utilize the Feature Pyramid Network (FPN). Consequently, we compute the loss using feature levels , and . The corresponding loss function is calculated as:
We used weights from Detectron2 [47] for both Faster R-CNN and Mask R-CNN. The mAP scores for detection and segmentation are 40.2% and 37.2%, respectively.
E Details of Spatial Correlation
In Section 4, we measured the spatial correlation of the proposed method and comparison method [28]. This section presents the formal definition of spatial correlation .
E.1 Preliminaries and Model Settings
Learned Image Compression (LIC) frameworks typically consist of the transform module and the entropy model. As stated in previous works [5, 7, 56], an ideal transform module should effectively reduce the correlation in the input original signal, enabling the use of simple scalar quantization methods and factorized entropy models without compromising performance.
Current LIC methods [7, 27, 38, 56] predominantly adopt hyperprior-based entropy models (with most utilizing Gaussian entropy models). According to the aforementioned criterion, the transform module should aim to Gaussianize the distribution of the latent representation to minimize coding costs.
Definition E.1. Taking a simplified version of [36] as an example, the latent representation is modeled as a Gaussian distribution , where the parameters are given by the hyperprior network and . We define the normalized version of as :
In the ideal case, this results in a standard spherical normal vector.
E.2 Metric of Spatial Correlation
Definition E.2. For any two variables and , the Pearson Correlation Coefficient is defined as the ratio of their covariance to the product of their standard deviations:
This metric measures the degree of linear correlation between two variables and is invariant to scale.
Definition E.3. Although is theoretically designed to be a standard normal distribution, its actual distribution may exhibit deviations. To precisely evaluate the decorrelation effect, we use the Pearson correlation coefficient. Specifically, we compute the Pearson correlation coefficient for the normalized latent representation at spatial positions and , and then average it across the channel dimension to obtain the spatial correlation :
COROLLARY E.4. A lower value of spatial correlation indicates reduced redundancy across spatial positions in the latent representation, which is generally associated with improved rate-distortion performance.
Haobo Xiong, Shaobo Liu, Kai Liu, and Chongyang Ding
Analysis. Based on the above definitions, we employ spatial correlation as a metric to measure the redundancy within the framework. Combined with the experimental results in Section 4, the proposed SICA module and Mamba-Adapter significantly reduced the value, thereby demonstrating that the method effectively reduces model redundancy.
F Metrics Definition
In this work, we utilize the Wasserstein Distance and Kullback-Leibler (KL) Divergence to quantify the discrepancy between feature distributions. Let and denote two probability distributions defined on the same metric space .
F.1 Wasserstein Distance
The Wasserstein distance, also known as the Earth Mover's Distance, measures the minimal cost of transporting probability mass between two distributions. The 1-Wasserstein distance is defined as
Here, denotes the set of all joint distributions whose marginals are and .
F.2 Kullback-Leibler Divergence
The Kullback-Leibler (KL) divergence measures the discrepancy between two probability distributions in terms of expected information content. It is defined as
The KL divergence characterizes the additional expected information cost incurred when distribution is used to approximate distribution . It therefore provides a quantitative measure of how much the approximation deviates from the reference distribution.
G Supplementary Information for CrossMambaTuning
In this section, we illustrate the detailed architecture of CrossMambaTuning in the decoder stage. As depicted in Figure 8, this operates as the inverse process of the encoder stage.
H More Implementation Details
H.1 Module Configuration
In this section, we detail the specific configurations of the proposed CrossMambaTuning.
- Base Configuration. To achieve optimal performance, we integrate the APC, LIE, SICA, and TSPG modules into the Base model, constructing a comprehensive Task-Aware Mamba-Adapter and Cross-Layer Interaction framework. The specific configurations for each module are as follows:
-
The learnable parameters and in the APC module are initialized to and 1, respectively, to ensure stability during the initial training phase.
-
The parameter in the SICA module is initialized to 0 to prevent interference with the optimization process of the Mamba-Adapter in the early stages of training.
-
In the TSPG module, the task embeddings and layer embeddings are initialized using a Gaussian distribution with a mean of 0 and a variance of 0.02. The intermediate dimension of its bottleneck MLP is set to 32.
-
The intermediate dimension of the Base model is set to 64. Specifically, input features are first projected down to 64 after passing through the APC module, then modulated in the spatial domain, and finally restored to their original dimensions.
-
The state space dimension is set to 16 to strike a favorable balance between computational cost and modeling capability.
We adopt SS2D [34] as the selective scanning implementation in the Mamba Adapter, without introducing additional modifications to the scanning process. Our contribution is a Task-aware Mamba Adapter for machine vision compression, which introduces APC, LIE, and TSPG to improve distribution alignment, local dependency modeling, and task-aware conditioning, respectively.
Furthermore, to align with the information bottleneck design of the Mamba-Adapter, the intermediate dimension of the SICA module is set to 64, thereby facilitating effective cross-layer feature adaptation.
- Lightweight Configurations. To construct more lightweight and training-stable models, we reduce the intermediate dimensions of the Mamba-Adapter and SICA modules to 32 and 16 for the Small and Tiny variants, respectively. Concurrently, we omit the TSPG module in these lightweight settings, as its additional gain becomes limited under stricter parameter budgets. As shown in Table 12, enabling TSPG in the Tiny variant brings only marginal additional improvement, while increasing the trainable parameters from 0.08M to 0.09M. Owing to these designs, the number of trainable parameters for the Small and Tiny models is reduced to 47% and 25% of the Base model, respectively, significantly improving parameter efficiency.

Figure 8: Overview of the proposed CrossMambaTuning (decoder stage). Efficient transfer is achieved by incorporating the proposed adapters into various pre-trained codecs. The snowflake symbol represents frozen layers, while the flame symbol represents trainable layers.
Table 12: Ablation study on the TSPG in Tiny variant.
| Strategy | Object Detection | Trainable Params↓ (M) | |
|---|---|---|---|
| BD-Rate↓ | BD-mAP↑ | ||
| Ours-T | -58.236% | 3.742 | 0.08 |
| Ours-T w/ TSPG | -58.453% | 3.749 | 0.09 |
H.2 Settings and Hyperparameters
All experiments were conducted using the PyTorch framework. The software environment and hardware configuration are summarized below.
Software Setup. Experiments were performed on a Linux system running Ubuntu 20.04. PyTorch 2.4 was used as the deep learning framework, with CUDA 12.4 and cuDNN 8.9 providing GPU acceleration.
Hardware Configuration. All models were trained on a single NVIDIA GeForce RTX 4090 GPU with 24 GB of VRAM. The training server was equipped with an Intel Xeon Silver 4310 CPU operating at 2.10 GHz and 256 GB of system memory.
The hyperparameter settings for different downstream tasks are reported in Table 13. For all tasks, we employed the Adam optimizer with a base learning rate of . Owing to task-specific characteristics, different batch sizes and training schedules were adopted for classification, object detection, and instance segmentation. Specifically, classification models were trained for 8 epochs, whereas detection and segmentation models were trained for a larger number of epochs using a fixed learning rate. The trade-off coefficient was selected from task-specific candidate sets to balance rate and distortion objectives.
Haobo Xiong, Shaobo Liu, Kai Liu, and Chongyang Ding
Table 13: Training hyperparameters for experiments.
| Classification | Detection | Segmentation | |
|---|---|---|---|
| Optimizer | Adam | Adam | Adam |
| Batch size | 16 | 8 | 8 |
| Trade-off term | [2.5, 3.5, 5, 6.7, 13] | [0.5, 0.875, 1.75, 3] | [0.35, 0.5, 0.875, 1.75, 3] |
| Epochs | 8 | 40 | 40 |
| Learning rate schedule | - | - | - |
| Milestones | - | - | - |
| Learning rate decay | - | - | - |
| Base learning rate | 4e-4 | 4e-4 | 4e-4 |
I Limitations
Several boundary conditions of the current study are worth noting. First, our experiments focus on high-level downstream machine vision tasks, and the applicability of the framework to low-level vision tasks remains outside the present scope. Second, although CrossMambaTuning is parameter-efficient, its runtime cost still depends on the underlying codec and may require further simplification in extremely high-resolution or strict real-time settings. Third, our study does not focus on extremely low bitrate regimes (e.g., below 0.05 bpp), where the compressed representation itself may become the dominant bottleneck and limit the benefit of downstream adaptation. Finally, while the framework is validated on both CNN-based and Transformer-based codecs, broader evaluation on more diverse compression architectures and practical deployment environments remains future work.
