arXiv:2610.39778cs.CVOct 2026

Manuscript Offprint

arXiv:2610.39778

SCOPE: Semantic COdec Pre-Editing for Object-Preserving Compression

Silvia Dani, Leonardo Galteri, Marco Bertini

Silvia Dani 1^{1} ID^{ID}, Leonardo Galteri 2^{2} ID^{ID}, and Marco Bertini 1,2^{1,2} ID^{ID}

1^{1} University of Florence, Florence, Italy

{name.surname}@unifi.it

2^{2} Small Pixels, Florence, Italy

{name.surname}@small-pixels.com

Abstract. Image compression is increasingly used before machine vision systems, yet standard codecs are mainly optimized for human perception rather than downstream task accuracy. We propose SCOPE (Semantic COdec Pre-Editing), a conditional image pre-editor that modifies images before compression to improve the bitrate and detection accuracy trade-off. The model is conditioned on the codec family and compression severity, allowing a single trained network to adapt to multiple compression settings without retraining or loading codec-specific weights. Instead of uniformly preserving the whole image, the pre-editor learns to protect task-relevant regions while simplifying less important background content to improve compressibility. The resulting rate-accuracy curves show consistent gains across different codec families and detector architectures, together with strong transferability to unseen learned and wavelet-based compression families.

Keywords: Image compression for machines · Object detection

1 Introduction

Image compression is a fundamental component of visual data transmission and storage. Most codecs, however, are designed according to human perceptual criteria, with the goal of preserving visual quality at low bitrate. This assumption is increasingly mismatched with machine-to-machine scenarios, where images are acquired, compressed, transmitted, and then consumed directly by computer vision systems rather than by human viewers. In these settings, the objective is not only visual fidelity, but the trade-off between bitrate and downstream task accuracy. Strong compression can remove fine object boundaries, alter textures, or introduce artifacts that degrade object detection while still spending bits on background content that is less relevant to the task. This reflects the known mismatch between perceptual distortion and machine-task performance [30].

This gap has motivated a growing body of work on image and video coding for machines. One line of research modifies or optimizes codecs with task-aware objectives, either by adapting standard codecs through task-driven bit allocation and rate-distortion optimization, or by training learned codecs with machine vision losses [7,14,27][7,14,27]. Another line of work transmits intermediate neural features rather than reconstructed images, with the aim of reducing bitrate while preserving the information

S. Dani et al.

needed by the downstream network [9,10,43]. Although these approaches can improve rate-accuracy performance, they often require changes to the codec, to the transmitted representation, or to the downstream task pipeline. This limits their compatibility with standard image-compression systems and existing deployment settings.

A practical alternative is to insert a learned pre-processor before compression. Deep pre-editing has shown that images can be modified before encoding to improve compression efficiency while remaining compatible with standard codecs [48]. For machine consumption, pre-processing methods edit the input image to suppress task-irrelevant information and preserve task-relevant content before compression [33,56,57]. This family of methods is attractive because the transmitted signal remains a standard compressed image and the approach can be combined with off-the-shelf codecs. However, existing pre-processing methods are often tied to a fixed codec, a fixed quality setting, or a task-specific configuration. Even task-switchable approaches focus on switching between downstream tasks, rather than adapting a single model across different codec families and compression severities. As a result, moving to a new codec or operating point may require retraining or relying on codec-specific pre-processors.

In this work, we address this limitation with SCOPE (Semantic COdec Pre-Editing), a conditional image pre-editor for compression-aware object detection. Instead of learning a separate pre-processor for each codec or bitrate regime, our model is conditioned on both the codec family and a normalized compression severity. This allows a single trained network to adapt its edits to multiple compression settings without retraining or loading codec-specific weights. The model predicts an attention map together with object and background residuals. Object regions are preserved through bounded residual edits, while background regions are simplified through a blurred-background branch to improve compressibility. This design reflects the asymmetry of object detection, where object-level cues should be protected more strongly than background texture.

The proposed formulation focuses on codec-aware pre-editing rather than task switching. The same model learns how to modify images for different compression families and severity levels, while maintaining a fixed downstream task. In this way, the conditioning mechanism captures compression-dependent editing behavior and enables transfer to unseen codec families.

The main contributions of this paper are as follows:

– We propose a conditional pre-editing framework for object detection under image compression, where a single model adapts to different codec families and compression severities through learned conditioning.

– We introduce an attention-based object and background editing design that preserves object-relevant regions while simplifying less important background content to improve compressibility.

– We train the pre-editor with differentiable codec proxies and frozen detector supervision, enabling optimization of the rate-accuracy trade-off without modifying the downstream detector.

– We show that the learned model improves rate-accuracy performance across multiple codecs and detector architectures, and transfers to unseen compression families, including learned and wavelet-based codecs.

Code, configurations, and model weights are publicly available. 3^{3}

References (63)