Haze-Line Graphs: Routing Information Along Physical Scattering Structure for Real-World Dehazing

Removing haze from a single photo means undoing a mixing process. Each pixel's observed color blends the true surface color with scattered "airlight," and the blend depends on how much haze sits between the camera and that point. Classical methods undo this with hand-written rules such as the dark channel prior. Those rules break on skies, white walls and patchy fog. Learned networks avoid the rules, but a convolutional network only sees a small neighborhood around each pixel. When a region is buried in fog, the useful evidence about what it should look like often sits far away, in a clearer part of the image that shows the same kind of surface.

Our claim is that the right long-range connections for dehazing are already given by physics, so a network does not need to discover them from feature similarity. Under the standard scattering model, pixels that share one surface color but sit under different haze thickness fall on a straight line in RGB space pointing toward the airlight. Non-local Image Dehazing called these "haze-lines." We propose to use soft, differentiable haze-line membership as the edge structure of a learned graph. Every pixel on a line can then pass features to every other pixel on that line, however far apart they are in the image, at a cost linear in pixel count. The network learns what to send along each line. The physics decides only who talks to whom.

Core Claim and What Is New

The two closest pieces of prior work each have half of this idea. Berman et al. use haze-lines non-locally, but only as a fixed rule: they take the pixel with the largest distance from the airlight as clear and read off transmission for the rest. This fails when the airlight estimate is wrong and when dense haze leaves no clear member on a line. Non-Homogeneous Haze Removal via Artificial Scene Prior and Bidimensional Graph Reasoning (NHRN) does the opposite. It learns a spatial graph that "borrows" clear textures for hazy regions, but it groups pixels by learned feature similarity with no physical grounding. The research file finds no method whose graph topology comes from scattering geometry.

We keep Berman's grouping and replace his readout with learned message passing. We also make the airlight estimate a trained, differentiable quantity, so that errors in it are corrected by the end-to-end loss rather than compounding through the inversion formula.

One observation sets the scope. The haze-line construction needs a uniform airlight, but it places no constraint on how transmission varies across the image. Patchy, non-homogeneous daytime haze therefore satisfies the prior's actual assumption, even though it breaks the depth-smoothness assumptions behind the dark channel prior. Nighttime scenes with colored street lights break the uniform-airlight assumption, as Fast Haze Removal for Nighttime Image Using MRP documents, and we treat them only as a stress test.

Research Program

The model is a light convolutional encoder-decoder with one module inserted at one or two scales. The module works as follows:

  1. Airlight and directions. A small head predicts the airlight $\hat A$. Each pixel gets a direction $u(x) = (I(x)-\hat A)/\lVert I(x)-\hat A\rVert$ and a radius $r(x)=\lVert I(x)-\hat A\rVert$. Here $I(x)$ is the observed color.
  2. Soft assignment to nodes. Pixels are softly assigned to $K$ direction prototypes on the unit sphere, with $K$ in the hundreds. The assignment is $w_k(x)\propto\exp(\kappa\, u(x)^\top p_k)$, where $p_k$ is a prototype and $\kappa$ is a learned sharpness.
  3. Node features. Each node's feature is the assignment-weighted average of encoder features. It is concatenated with statistics of the radii on that line, including the soft maximum radius.
  4. Message passing. One or two rounds run over the $K$ nodes, with edges between nodes whose prototypes are close on the sphere.
  5. Scatter back. Node features return to pixels through the same weights $w_k(x)$. They are combined with the pixel's radius ratio $r(x)/r_{\max}(k)$, which is Berman's transmission cue exposed as a learnable hint rather than a hard output. The result passes through a gated residual, so local detail is never overwritten.

Cost is $O(NK)$ in the number of pixels $N$, so the module stays usable at 4000×6000. The rounds are kept shallow and gated to limit the over-smoothing that deep graph stacks cause, a risk flagged in Graph Convolutional Network for Image Restoration: A Survey.

The analysis side matters as much as the architecture. We will record, for every hazy pixel, two quantities. The first is whether its haze-line contains a much clearer member. The second is how far away that member is in the image, compared with the encoder's receptive field. The hypothesis predicts that gains concentrate where a clearer member exists and lies beyond local reach. If gains are uniform, the module is acting as generic extra capacity and not as physics-guided borrowing.

Baselines

Naive reference points. We report the hazy input itself and Berman's training-free haze-line method. We rerun Berman's method on every test set because the file reports no number for it on NH-HAZE, Dense-Haze or DNH-HAZE. We also report the backbone encoder-decoder with the module removed and parameters matched by widening. This measures what plain convolution achieves at equal size.

Strongest ultra-high-resolution competitor. DehazeDCT gets long-range reach from deformable convolution plus frequency branches. It reports 21.73 dB PSNR and 0.743 SSIM on DNH-HAZE, ranking second in NTIRE 2024. It is the strongest competitor because it already addresses the receptive-field problem at 4000×6000 without graphs.

Other published reference points. On NH-HAZE, Knowledge Transfer Dehazing Network reports 21.44 dB PSNR. On Dense-Haze, HR-Dehazer reports 16.47 dB PSNR and 0.5181 SSIM.

Prior-injection competitor. PGH²Net injects dark and bright channel priors into a small network. It reports 41.70 dB PSNR on SOTS-Indoor with 1.76M parameters. It is the strongest efficient model that uses priors, though not relations between pixels.

Feature-similarity graph. NHRN is the direct graph competitor. The file reports only a relative SOTS gain for it, so no reported result was found on Lacuna for NHRN on the real-haze benchmarks, and we will retrain it.

Fair-comparison protocol. Published numbers anchor the comparison, but every learned baseline will also be retrained on identical splits. Each gets the same synthetic RESIDE outdoor pretraining followed by fine-tuning on the real training pairs, the same number of GPU-hours and the same hyperparameter search budget. NH-HAZE has 55 pairs and Dense-Haze has 33, so we report mean and spread over several seeds and cross-validation folds.

What counts as winning. Beating DehazeDCT on DNH-HAZE means higher PSNR at no more than its memory footprint. Beating the ablations means a gap larger than the fold-to-fold spread.

Ablation isolating the key ingredient. The core ablation holds everything fixed and changes only how pixels are assigned to the $K$ nodes. The three variants are haze-line directions, k-means on learned features in the style of NHRN, and random groups.

Why not just…?

Why not just feed Berman's transmission map as an extra input channel to a CNN? This is the most serious threat. It is exactly how PGH²Net uses the dark channel, and it costs almost nothing. The limitation is that a precomputed transmission map carries the prior's errors: bad airlight, and underestimated haze on lines with no clear member. It also gives each pixel a single number, where our module lets distant pixels on the same line exchange texture and color. We will train this variant with identical budget. If it matches our model, the routing adds nothing and we will report the idea as a better input feature, not a better architecture.

Why not just use a generic global operator such as criss-cross attention or Fourier convolution? CCNet reaches every pixel in two sparse passes. It routes along image rows and columns, not along physical structure. Fourier layers, as used in Beyond Spatial Domain: Cross-domain Promoted Fourier Convolution Helps Single Image Dehazing, mix everything globally. We swap each operator into the same slot at matched cost. The distance-conditioned analysis settles the question: haze-line routing should win specifically on pixels whose clear counterpart is far away, while generic operators should improve all pixels more evenly.

Why not just let a learned feature-similarity graph discover the grouping, as NHRN does? With enough data it might. Real paired haze data is tiny, though, and a physically fixed topology should be far more sample-efficient. The assignment ablation tests this directly. If feature k-means matches haze-line grouping on the real benchmarks, the physical grounding is unnecessary, and we will say so.

Proposed Experiments

Main benchmarks. The primary results are on NH-HAZE, Dense-Haze and DNH-HAZE. We report PSNR, SSIM, CIEDE2000, peak memory and runtime at full resolution. SOTS-Indoor from RESIDE serves as a sanity check where the scattering model holds exactly.

Airlight robustness. We perturb the airlight head's output by controlled offsets and measure how PSNR degrades, compared with Berman's method. The hypothesis predicts graceful degradation.

Dense-haze analysis. On Dense-Haze we split pixels by whether their line contains any member above a clarity threshold. This tests whether learned readout recovers the cases where Berman's method underestimates haze.

Nighttime stress test. Following Day and Night-Time Dehazing by Local Airlight Estimation, we replace the global airlight with a coarse local airlight map. This probes where the prior's assumption fails, and we will report it as a limitation if gains vanish.

Downstream detection. Detection mAP on RTTS is a secondary check that restored images help recognition.

Decisive outcome. The outcome that would sink the proposal is this: the transmission-channel CNN or the feature-k-means graph matches haze-line routing within fold variance, and gains show no dependence on the distance to a line's clearer member.