← Latest storiesComputer Vision

HarnessIR: Your Photo Looks Better. Is It Still the Same Photo?

An AI photo cleanup can erase a sign, invent detail, and still earn a better quality score. HarnessIR tries to keep the original facts intact. Its most useful rule: when a restoration goes wrong, start over from the original.

Enlarged Figure 4 crops: a white cross in the blurry street photo disappears with direct Nano Banana 2 restoration and remains with HarnessIR using the same generator.
HarnessIR: Harnessing Multimodal Foundation Models for Universal Real-World Image Restoration — Xiangtao Kong et al., Figure 4, CC BY 4.0. Cropped, enlarged and labeled by Vision Radar. Original image ↗ · Licence ↗

There’s a white cross in a blurry street photo. Ask an AI image model to clean up the shot, and the storefront comes back sharper. The lettering looks crisp. The cross is gone.

That’s an actual example in the HarnessIR paper. In another, a snowy nighttime scene gets a daytime makeover. One model even gives the bare trees leaves. Nice picture. Different season.

The uncomfortable part is that an automatic image-quality score can reward this kind of makeover. A picture can look better while becoming a worse record of what the camera saw.

HarnessIR, from researchers at the Hong Kong Polytechnic University and OPPO Research Institute, tackles that problem by giving an existing image generator a more specific brief and a way to try again. The preprint and code release are dated October 7. It’s early work, but the problem is easy to recognize if you’ve ever zoomed into an AI-enhanced photo and thought, “Hang on. Was that there?”

Watch the cross disappear

Open the authors’ Figure 4 comparison and look at the middle row. The white cross is visible in the blurry input and the clean reference photo. Both directly prompted generators remove it. The HarnessIR versions retain it.

The bottom row makes a different mistake obvious: removing falling snow becomes an excuse to change the lighting and the snow already covering the scene. HarnessIR keeps more of those original conditions intact in the examples shown.

Full Figure 4: comparisons of a waterfall, a street with signs and a white cross, and a snowy nighttime building. Columns include degraded inputs, reference images where available, direct generators and HarnessIR results.

Tap the figure to inspect the full comparison. Figure 4 from HarnessIR: Harnessing Multimodal Foundation Models for Universal Real-World Image Restoration, Xiangtao Kong et al., CC BY 4.0. Full figure converted to lossless WebP; the cover uses enlarged, relabeled crops of the street example. No restoration results were generated or retouched by Vision Radar.

These are selected examples from the paper, so they can’t tell us how often a model makes either mistake. They do show why a polished before-and-after deserves a closer look.

In Figure 3, the authors show altered images earning higher scores than the clean reference images on measures that judge quality without seeing a reference. Those scores can assess whether a picture looks good. They can’t establish that a particular letter, branch, or building feature belongs there.

For a vacation photo, you might accept a little creative license. For a system reading a label or checking a part for damage, the same change could matter a lot. Those are reasons to test carefully; this paper doesn’t establish better OCR accuracy or more reliable defect detection.

Give the editor something specific to preserve

HarnessIR runs around an existing generator. There’s no new foundation model to train or fine-tune.

A model that understands images and text first examines the shot and decides what needs attention. It can call tools that read text, locate faces, estimate depth, or separate objects from their surroundings. Their findings help it write an instruction tied to that particular image.

Think of the difference between asking a photo editor to “clean this up” and pointing out the faded lettering that absolutely has to survive. The second request gives the editor something concrete to work with.

The generator receives the original image and the resulting written instruction. The depth and object maps stay with the instruction-writing stage. The authors found that feeding those maps directly to the generator could leave their artificial colors in the finished photo. Sometimes more input just creates another way to mess up.

A do-over starts with the original

The full system checks its result against the input and the restoration requirements. If that check finds a problem, it revises the instruction and starts again from the original photo.

That choice makes sense. Once an invented detail enters a picture, the next editing pass may treat it as something worth preserving. Going back to the source gives the model another chance without making the last attempt’s mistakes part of its starting point.

The authors tested this choice on 200 real images with clean references. Starting over performed better than editing the previous attempt; editing the previous attempt actually scored worse than stopping after one pass. Only 37% of images triggered another attempt in the reported full-system run.

There’s a practical gotcha in the release: verification and retries are off by default. The configuration sets enable_redo to false. The documented --redo option enables that part of the system, with up to three generation rounds in the paper’s setup.

The gains are real results, with a bill attached

On MiO100, a test set with artificially introduced combinations of image damage, the authors report these results:

Generator used in the study Direct use With HarnessIR Gain
Nano Banana 2 20.81 dB 22.21 dB +1.40 dB
GPT-Image-2.5-Sunburst 17.95 dB 19.70 dB +1.75 dB

PSNR, from Table 1. Higher means closer pixel agreement with the clean reference under this test. These are the authors’ measurements, not a Vision Radar reproduction.

That improvement supports the idea that how you guide a generator matters. It doesn’t certify every restored detail. The GPT-based version also remains behind several comparison methods on this pixel-level measure, despite improving over its own baseline.

The paper goes beyond a comparison with a bare-bones prompt. In a separate one-pass experiment, a more detailed generic request helped, image-specific analysis helped further, and adding tool evidence expressed in text improved the result again. That’s useful evidence for the design, though independent testing is still needed.

Extra checking takes time. On the authors’ Real-Paired-200 setup, the full Nano Banana 2 system averaged 64.3 seconds per image, versus 14.7 seconds for direct generation. Their estimated cost rose from $0.070 to $0.129 per image. Those are study-specific estimates, excluding setup and deployment overhead, rather than a price quote for running it yourself. Table 7 gives the breakdown.

Where I’d draw the line

I’d put HarnessIR on the shortlist for an experiment. The code is available, the design is concrete, and the paper tests a decision other teams can borrow immediately: keep the original as the starting point for every retry.

I’d also keep the original beside every restored image. The checker is another model, and it can miss a mistake. Some of the paper’s evaluation uses model judgments too; a better score from that evaluator isn’t a guarantee of accuracy. External model APIs and the generator’s own limits remain part of the deal.

For OCR or inspection, I’d want to see the actual downstream error rate before adding generative restoration to the pipeline. If a cleaned-up label becomes easier to read but contains the wrong character, the prettier image has made the job harder.

Would you use generative restoration before OCR or visual inspection, or keep it strictly for display?

Sources

Source checked on . Paper, figures, repository and default configuration checked. Results are reported by the authors; Vision Radar has not independently run HarnessIR.