Skip to content

PICA: Four Agents That Adapt a Black-Box Codec to New Goals

THE ARGUMENT

You do not have to retrain a codec when the compression goal changes: split the job into four agents for intent reading, restoration, quality-control search and evaluation, then run them online against an existing codec's adjustable quality knob. The catch is that you need an exposed quality interface and a trustworthy scenario metric.

On this page

Your team has 3 compression goals to satisfy — pixel fidelity, human realism, machine-vision accuracy — but you already ship a single H.266 encoder, so the decision is whether to retrain it or adapt it at inference time. The usual advice is that a new goal means a new model: if the target shifts from pixel error to perceptual realism or downstream accuracy, the codec needs redesign and re-optimization. This paper challenges that default [1]. It proposes PICA, four collaborating agents that schedule, evaluate and reflect around an off-the-shelf codec, adapting it to different scenarios and degraded inputs without touching its internals.

Four roles, one codec, no internal surgery

The paper splits a single compression run into four collaborating agents [1]. A codec here means the program that turns an image into a bitstream and back, and PICA treats it as a finished product it cannot modify. The Perception agent reads user intent, decides whether this run wants pixel fidelity, human realism or downstream task accuracy, and analyzes content, quality and regions of interest to produce structured guidance. The Improvement agent restores before coding, but it does not simply remove every degradation it detects. Instead it evaluates each candidate operation against both the resulting bitrate and the reconstruction quality, and keeps only the ones that improve the quality-rate trade-off. That separates it from restoration agents that optimize for cleanliness alone.

AgentMain inputDecision signalOutput
PerceptionUser intent, content and quality, regions of interestIntent classification and content/quality analysisStructured guidance for later agents
ImprovementInput image, candidate restoration operationsBitrate plus reconstruction quality under the scenario metricOnly operations that improve the trade-off
CodingFeasible global quality point, ROI partitionBitrate and reconstruction quality, searched per roundGlobal and regional quality settings
After-coding improvementDecoded image, candidate operationsWhether final image quality increasesResidual and artifact reduction

The key abstraction is a single quality-control factor that stands in for each codec's own knob, such as the quantization parameter in H.266/VVC. In plain terms, raising it compresses harder, spends fewer bits and blurs more; lowering it does the reverse. PICA only assumes this knob is adjustable and that the resulting bitrate and quality are observable, not that it knows the codec's internals.

AROIC: moving regions of interest on a black box

Regions of interest are the parts of the image you care about most. Conventional ROI coding either requires native codec support or a purpose-trained ROI module, so it breaks the moment you swap codecs. AROIC, the Agentic ROI Coding scheme, treats the codec as a black box and runs a fixed loop:

  • Schedule: the agent drafts candidate plans that adjust quality-control factors for the ROI and the background, downsampling the background when that helps;
  • Execute: each region is encoded separately with the target codec, and the decoded regions are assembled into one image;
  • Evaluate: the compressed result is scored on bitrate and reconstruction quality;
  • Reflect: feedback refines the next round of plans, and the best candidate so far is retained.

Because it relies only on the codec's native quality interface, AROIC needs no architectural change and no codec-specific retraining. The flip side is blunt: if a codec exposes no adjustable quality interface, the premise disappears.

SGQR: swapping the ruler when the scenario changes

The paper separates 3 compression scenarios. Standard compression is scored on pixel distortion such as PSNR, which simply compares reconstructed pixels against the original. Perceptual compression asks whether humans find the result realistic and semantically faithful. Machine-vision compression asks whether task-relevant information survives for a downstream model. Because these define quality differently, one ruler misjudges at least two of them. SGQR, the Scenario-Guided Quality-Rate strategy, takes the bitrate and the reconstructed image, scores them with the metric the current scenario specifies, and selects the plan with the best quality-rate trade-off, aligning all four agents to the same objective.

What the experiments cover, and what they do not

The evaluation setup is explicit: 3 datasets (Kodak, CLIC2020, HEVC), 2 codecs (the conventional H.266/VVC and the neural Cheng2020), 3 input conditions (clean, noisy, blurred) and 3 scenarios (standard, perceptual, machine-vision). The reported conclusion is that PICA consistently improves compression for both codecs and outperforms competing methods on those datasets [1].

One caution matters for buyers and evaluators. The excerpt available here does not include the per-item PSNR, LPIPS or bitrate-saving tables, and it gives no percentage figures. I therefore reproduce no performance numbers, because any gain I did not read in the source should not be invented on your behalf. Go to the original tables for the actual deltas.

When PICA does not apply

PICA fails when the codec exposes no adjustable quality interface, or when its behavior after adjustment cannot be observed, because AROIC's black-box assumption collapses. It does not apply when the degradation you face falls outside the external restoration toolbox, since the pre-coding agent then has nothing to choose from. The schedule-execute-evaluate-reflect loop is inference-time search, so it adds latency and compute that must be measured before any real-time pipeline adopts it. It also fails when the SGQR scenario metric is mis-specified: the system will then optimize very efficiently toward the wrong target. Finally, the evidence covers 3 scenarios, 3 datasets and 2 codecs, so generalization across other codecs and degradation types remains out of scope until more results appear.

References

  1. An Agentic Framework for Quality-Aware and Scenario-Adaptive Image Compression

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…