arXiv:2610.25142cs.CVOct 2026

Manuscript Offprint

arXiv:2610.25142

Image Dehazing as In-Context Tabular Inference

Le-Anh Tran

Le-Anh Tran

Abstract—Image dehazing is traditionally addressed through handcrafted physical priors or task-specific deep learning models, often requiring carefully designed architectures or extensive model training. Recent advances in tabular foundation models (TFMs), however, offer an alternative learning paradigm in which continuous relationships can be inferred directly from contextual examples without task-specific model training. Motivated by this capability, this paper investigates whether single-image dehazing can be effectively reformulated as an in-context tabular regression problem and introduces DehazeTab, a framework that estimates atmospheric transmission from structured image-patch representations. Specifically, overlapping patches extracted from hazy images are transformed into tabular samples using handcrafted haze-related descriptors, pretrained visual embeddings, or their hybrid combinations, while corresponding transmission patches are summarized as scalar regression targets. A pretrained TFM then performs in-context regression using labeled reference patches to predict transmission values for unseen images without any further fine-tuning. These predictions are spatially aggregated into a transmission map, refined through guided filtering, and incorporated into the atmospheric scattering model to recover haze-free images. Experiments on benchmark datasets demonstrate competitive restoration performance and reveal that physically motivated handcrafted features can outperform pretrained visual embeddings, while hybrid representations offer complementary benefits. Further analyses examine the effects of feature representations, patch selection, and contextual reference configurations on restoration quality. Beyond image dehazing, the findings highlight the potential of TFMs as an alternative paradigm for addressing low-level vision tasks through structured and in-context inference.

Index Terms—Image dehazing, image restoration, foundation model, tabular foundation model, in-context learning.

I. INTRODUCTION

IMAGE dehazing seeks to recover clear scene information obscured by atmospheric haze, which reduces contrast, alters colors, and suppresses structural details, compromising visual quality and downstream vision tasks. Yet single-image dehazing is inherently ill-posed: distinct clear scenes can produce similar hazy observations. Recovering a plausible scene therefore requires physical priors or learned constraints. The widely used atmospheric scattering model describes this degradation as:

I(x)=J(x)t(x)+A(1−t(x)),(1)\mathbf{I}(x)=\mathbf{J}(x)t(x)+\mathbf{A}\big(1-t(x)\big), \tag{1}

where I(x)\mathbf{I}(x) and J(x)\mathbf{J}(x) are the hazy observation and haze-free radiance, A denotes atmospheric light, and t(x)t(x) is transmission. This physically interpretable formulation makes transmission estimation central to restoration. Conventional methods estimate transmission from natural-image statistics. Dark channel prior (DCP) [1], for instance, exploits local intensity patterns, while saturation line prior (SLP) [2] uses

TABLE I

ILLUSTRATION OF THE PATCH-TO-TABULAR FORMULATION. LABELED PATCHES CONSTITUTE THE CONTEXT, WHILE UNSEEN PATCHES ARE PROVIDED WITHOUT TRANSMISSION TARGETS.

TypePatchFeaturesTarget
f1f_1f2f_2f3f_3⋯\cdotsfnf_n
ContextP1P_10.610.180.43⋯\cdots0.520.78
P2P_20.730.110.57⋯\cdots0.660.61
P3P_30.450.270.31⋯\cdots0.480.84
⋮\vdots⋮\vdots⋮\vdots⋮\vdots⋱\ddots⋮\vdots⋮\vdots
UnseenPu,1P_{u,1}0.680.150.49⋯\cdots0.58×
Pu,2P_{u,2}0.790.090.63⋯\cdots0.71×
⋮\vdots⋮\vdots⋮\vdots⋮\vdots⋱\ddots⋮\vdots⋮\vdots

local saturation–brightness relationships to infer haze-related quantities. These approaches suggest an important observation: image patches contain structured cues from which transmission can be predicted as a continuous value. However, fixed priors may fail when scene characteristics violate their assumptions. Deep learning offers more flexible mappings, estimating transmission or directly restoring clear images from paired data [3]–[7]. Despite impressive results, such models often depend on task-specific training and substantial paired data, and synthetic-to-real domain shifts remain challenging. Some weakly supervised, synthetic-to-real, zero-shot, and unpaired methods also seek to alleviate these limitations [8]–[13].

Meanwhile, tabular foundation models (TFMs) [14]–[16] have introduced a different way to learn from structured data. Rather than optimizing a separate regressor for every task, a pretrained TFM can infer feature–target relationships in context, directly from labeled examples. This capability is particularly appealing for small- and medium-scale datasets, reducing the need for repeated training, hyperparameter tuning, and task-specific architecture design. It raises an interesting question: can image dehazing be solved through in-context tabular inference instead of training a dedicated network?

Motivated by this question, the paper proposes DehazeTab, which reformulates transmission estimation as patch-level tabular regression. Each hazy-image patch becomes a row of structured features, paired with a scalar transmission target, as illustrated in Table I. Given labeled reference patches, a pretrained TFM predicts transmission for patches from an unseen image without task-specific fine-tuning. Overlapping predictions are aggregated into a dense transmission map, refined by guided filtering [17] to preserve boundaries and reduce artifacts, and used in the atmospheric scattering model to recover the haze-free scene. Accordingly, feature representation is crucial to this formulation. Handcrafted haze descriptors

tranlevision@gmail.com

https://github.com/tranleanh/dehazetab explicitly encode physical and local statistical cues; pre-trained visual embeddings offer richer structural and semantic information; and hybrid representations may combine their strengths. DehazeTab therefore examines these complementary representations to understand what information supports effective in-context transmission prediction. In a nutshell, the main contributions include:

• The DehazeTab framework is introduced to reformulate single-image dehazing as patch-level structured regression using a pretrained TFM and contextual examples.

• A patch-to-tabular pipeline is developed to transform image features into transmission predictions, followed by spatial aggregation and image reconstruction.

• Handcrafted, pretrained visual, and hybrid feature representations are systematically investigated to examine their contributions to the framework’s performance.

• Benchmark comparisons and ablation studies are conducted to assess the feasibility and limitations of the proposed framework, highlighting its potential for broader image restoration applications.

The goal is not to claim state-of-the-art performance, but to examine whether structured in-context inference offers a viable alternative perspective on image restoration. Section II reviews related work; Section III details the DehazeTab framework; Section IV presents experiments and analysis; and Section V concludes the paper.

References (30)