# FlareReal: A Real-Captured Paired Dataset for Nighttime Lens Flare Removal

*Dafeng Zhang, Shizhuo Liu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/139225) · [Open on the map](../papers.html#p139225)

Category: [3D Vision & Image Restoration](../pcat/2.md) › [Diffusion-Based Image Restoration](../pgroup/638.md) · Type: benchmark or dataset · Keywords: nighttime lens flare removal, real captured dataset, image restoration, benchmark evaluation, cross-device generalization

Areas: [Evaluation & Benchmarks](../areas/evaluation.md) › Multimodal System Benchmarks › Video and image editing benchmarks; [Computer Vision & 3D](../areas/computer-vision.md) › Visual Diffusion and Restoration › Image Restoration

## Summary
FlareReal is a real-captured benchmark containing 4,037 pixel-aligned nighttime flare-corrupted and flare-free image pairs (plus 500 pure flare images) that enables supervised learning for lens flare removal.

## Explained to a 5-year-old
We took pictures at night with a dirty lens and then cleaned the lens and took the same picture again. By matching the two pictures, we made a set of pairs where one picture has glare and the other does not. This helps computers learn to remove glare from night photos.

## Explained to a 5-year-old, longer
At night, cameras sometimes get a bright sparkle called lens flare because light bounces inside the lens. It’s hard to teach a computer to fix this because we need many real examples where the glare is present and where it is gone, and they must line up perfectly. So we created a new collection called FlareReal. We did this by taking a picture with a deliberately dirty lens, then cleaning the lens and taking the same scene again. We then used special software to line up the two pictures so they match exactly. This gave us over four thousand pairs of night photos, one with glare and one without, plus some pictures that show only the glare. We also added many different scenes, lenses, and types of lights. By training computer models on this real data, they got much better at removing glare than models trained on older, made-up data. The new data also works well on phones and cameras we hadn’t used when we made it, which means the models are more useful in real life.

## For a technical reader
The paper introduces a dataset collected via a two-shot protocol: capture a scene with induced lens contamination, then re-capture after cleaning. Precise alignment yields paired flare and clean images. Experiments show that models trained on this real data outperform those trained on synthetic benchmarks across multiple test sets and generalize better to unseen devices and off-screen conditions.

## Problem
Supervised learning for nighttime lens flare removal is hindered by the scarcity of accurately aligned real flare-corrupted and flare-free image pairs, making it difficult to train effective models.

## Method
A controlled contamination-cleaning protocol captures each scene twice-once with induced lens contamination and once after optical cleaning-followed by robust global alignment and manual curation to produce pixel-aligned flare-corrupted and flare-free pairs.

## Results
Models trained with the approach achieve higher restoration performance on Flare7K, FlareX, and other benchmark test sets compared to models trained on Flare7K, Flare7K++, and FlareX, and show improved cross-device and off-screen generalization.

## Contributions
A real-world paired dataset with accurate alignment, a systematic contamination-cleaning protocol, and empirical evidence that real paired supervision yields better generalization than synthetic benchmarks.

## Practical relevance
Provides a reliable benchmark for developing and evaluating nighttime lens flare removal algorithms on real devices.

## Research questions this paper is counted under

- [How can we train image restoration models when paired real-world data is scarce or expensive?](../q/654.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/139225)
