High-Resolution Image Harmonization with Adaptive-Interval Color Transformation

Quanling Meng, Qinglin Liu, Zonglin Li, Xiangyuan Lan, Shengping Zhang, Liqiang NieNeurIPS 2024

TL;DR

AICT (Adaptive-Interval Color Transformation) achieves state-of-the-art high-resolution image harmonization by moving beyond simple global adjustments. By using position-dependent 3D lookup tables and adaptively adjusting color sampling intervals, the model captures complex, local non-linear color variations that previous methods missed, all while maintaining a lightweight and efficient architecture.

What Problem Does This Paper Address?

Image harmonization is the art of making a "pasted" foreground object look like it truly belongs in its new background by matching lighting, white balance, and color temperature. Doing this at high resolution (4K and beyond) is computationally expensive.

Existing methods generally fall into two traps:

  1. Global Adjustments: They apply the same color shift to the entire foreground. This fails when different parts of an object are lit differently (e.g., one side in shadow, one in direct sunlight).
  2. Upsampling Maps: They predict a low-resolution "map" of transformation parameters and blow it up to match the high-res image. This often introduces artifacts and fails to capture the "non-linearities"—the subtle, complex ways colors shift—at a local level.

The authors of this paper set out to create a method that is both pixel-aware and efficient enough for high-resolution production environments.

Methods

The core of the proposed AICT method is a dual-branch architecture: a Low-Resolution (LR) Branch that learns the "how" of the transformation, and a High-Resolution (HR) Branch that applies it.

Overview of the AICT dual-branch architecture.

Key technical innovations include:

  • Position-Dependent 3D LUTs: Instead of a single global lookup table (LUT), the model uses a parameter network (based on a Transformer encoder) to generate curves that vary based on a pixel's $(x, y)$ coordinates. This allows the model to treat different parts of the foreground differently.
  • Adaptive Interval Learning: This is the "A" in AICT. Standard LUTs sample colors at uniform intervals. AICT breaks the transformation into a cascade of two sub-transformations. The first "redistributes" color values to achieve non-uniform sampling. This allows the model to allocate more "resolution" to specific color ranges that require complex adjustments, effectively modeling local non-linearities.
  • Global Consistent Weight Learning: To ensure the object doesn't just look locally correct but also fits the "mood" of the scene, a separate module predicts image-level weights. This helps the model account for overall background brightness and color bias.

Datasets

The researchers evaluated AICT on several rigorous benchmarks:

  • iHarmony4: The industry standard, containing four subsets: HAdobe5k (high-res), HCOCO, HDay2night, and HFlickr.
  • ccHarmony: A dataset specifically designed to simulate natural illumination variations.
  • Real Composite Dataset: 100 real-world samples used to test how the model generalizes beyond synthetic training data.
  • High-Res Benchmarks: The authors curated "over4K" and "over5K" subsets from HAdobe5k to specifically test performance at extreme resolutions.

Key Insights and Ideas

  • Non-uniformity is a Feature: The "aha moment" here is that not all color shifts are created equal. By allowing the model to adaptively choose where to "sample" the color space (the adaptive interval), it can represent much more complex lighting transitions than a standard linear model.
  • Spatial Context is King: By making the 3D LUTs position-dependent, the model inherently understands that a pixel's location matters as much as its original color. This mimics how real-world light interacts with objects in a 3D space.
  • Efficiency via Parameterization: The model doesn't try to "generate" a high-res image from scratch (which is slow and memory-intensive). Instead, it predicts the parameters of a transformation. This allows the heavy lifting to happen at low resolution while the final application remains lightning-fast at high resolution.

Key Results

AICT consistently outperformed previous state-of-the-art (SOTA) models like PCT-Net and DCCF across almost all metrics.

Performance vs. Model Size comparison.
  • Quantitative Accuracy: On the iHarmony4 dataset, AICT achieved the lowest fMSE (foreground-normalized Mean Square Error) of 228.43, a significant improvement over PCT-Net's 238.27.
  • High-Resolution Performance: At 2048x2048 resolution, AICT maintained its lead with an fMSE of 147.99, proving its robustness as pixel counts climb.
  • Lightweight Architecture: Despite its complexity, the model remains highly efficient. As shown in the performance chart, it achieves SOTA results with a model size (~5 million parameters) comparable to or smaller than its closest competitors.
  • Qualitative Superiority: Visual results show that AICT is much better at preserving fine textures and avoiding the "washed out" or "over-saturated" look that global methods often produce.

Limitations and Future Work

The authors identify a specific "blind spot": complex materials. AICT struggles with foreground elements like mirrors and glass. Because these materials rely on reflections and complex light transport (refraction), a color-transformation-based approach cannot fully simulate how they should look in a new environment.

Future work will likely involve integrating more physically-based rendering cues or specialized modules to handle these tricky, non-diffuse surfaces.

Summary updated

BibTeX
@inproceedings{meng2024high,
  author = {Quanling Meng and Qinglin Liu and Zonglin Li and Xiangyuan Lan and Shengping Zhang and Liqiang Nie},
  title = {{High-Resolution Image Harmonization with Adaptive-Interval Color Transformation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=jXgHEwtXs8},
}
Figure