CLIPtone: Unsupervised Learning for Text-based Image Tone Adjustment

Hyeongmin Lee, Kyoungkook Kang, Jungseul Ok, Sunghyun Cho · DOI

Introduction

Image tone adjustment—the process of modifying brightness, contrast, and color balance—is essential for professional photography and medical imaging. Traditionally, state-of-the-art models have relied on supervised learning, which requires expensive, expertly retouched paired datasets. This dependency creates three primary challenges: data scarcity, rigid aesthetic styles limited to training data, and a lack of user control over specific moods or styles.

CLIPtone introduces a novel unsupervised framework that eliminates the need for paired data. By leveraging the Contrastive Language-Image Pre-training (CLIP) model as a differentiable "perceptual critic," CLIPtone enables high-quality, zero-shot image editing using natural language descriptions.

The CLIPtone Framework

CLIPtone treats tone adjustment as a parameter modulation task, combining structural efficiency with semantic flexibility.

3D Look-Up Tables (LUTs)

The system uses 3D LUTs as its backbone. LUTs are highly efficient and naturally preserve image structure because they map colors rather than pixel positions, ensuring that fine details remain untouched during the enhancement process.

The Text Adapter Hyper-network

The core innovation is a hyper-network that acts as a text adapter. Instead of retraining the entire model for every style, the hyper-network takes a directional vector in the CLIP embedding space—the difference between a neutral prompt (e.g., "normal photo") and a target prompt (e.g., "neon light"). It then predicts modulation parameters ($\Delta \theta$) to tweak the backbone model's weights on the fly.

Unsupervised Loss Functions

To train without paired images, the authors utilize three key loss functions:

  1. CLIP Directional Loss: Ensures the visual change in the image aligns with the semantic change in the text.
  2. Content-Preserving Loss: A Mean Squared Error (MSE) loss that prevents the adjusted image from deviating too far from the original structure.
  3. LUT Regularization: A sampling interval loss that ensures smooth color transitions, preventing artifacts like "banding."

Key Results and Performance

CLIPtone demonstrates significant advantages over both traditional supervised models and modern diffusion-based editing tools.

  • Efficiency: CLIPtone achieves an inference time of just 10.3ms on an RTX 3090, making it roughly 700 times faster than diffusion-based models like InstructPix2Pix (IP2P), which can take over 7,000ms.
  • Zero-Shot Capability: The model can interpret prompts it never encountered during training, including specific mineral names or poetic descriptions.
Figure 1: Example of "Neon Light" tone adjustment.
  • Structural Integrity: Quantitative metrics (Grayscale SSIM) confirm that CLIPtone preserves original image details better than style-transfer competitors like CLIPstyler.
  • Human Preference: In a user study, participants consistently preferred CLIPtone for its ability to accurately match text descriptions while maintaining high aesthetic quality.

Insights and Limitations

The research proves that CLIP's internal representations correlate strongly with human-centric tonal preferences, allowing it to serve as a viable proxy for expert retouching. However, the model currently focuses on global adjustments; it cannot yet target specific areas (e.g., "only the sky"). Additionally, the model inherits certain biases from CLIP, such as associating the word "vivid" with specific purple hues. Future work aims to integrate spatially-aware adjustments and image-based style guidance.

Summary updated

BibTeX
@inproceedings{lee2024cliptone,
  author = {Hyeongmin Lee and Kyoungkook Kang and Jungseul Ok and Sunghyun Cho},
  title = {{CLIPtone: Unsupervised Learning for Text-based Image Tone Adjustment}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.00284},
}
Figure