Manuscript Offprint

arXiv:2610.37097

TriDifNet: A Unified Three-Task Diffusion Network for End-to-End RGB-T Perception

Qianchao He, Jing Liu, Yunhao Li, Xiaoqing Tian

Qianchao He, Jing Liu, Senior Member, IEEE, Yunhao Li and Xiaoqing Tian

Abstract—Infrared–visible (IR–VIS) multi-modal perception is important for robust scene understanding under challenging illumination conditions. In practice, infrared and visible images are often misaligned due to platform motion, viewpoint changes, and modality-dependent distortions, causing registration errors to propagate into subsequent fusion and detection stages. To address this issue, we propose TriDifNet, a unified three-task diffusion network for end-to-end RGB-T perception. To the best of our knowledge, TriDifNet is the first diffusion-based network that jointly optimizes registration, fusion, and detection for misaligned RGB-T pedestrian perception.

TriDifNet consists of three diffusion-based modules, i.e., the Registration Diffusion Module (RegDM), the Fusion Diffusion Module (FusDM), and the Detection Diffusion Module (DetDM). RegDM aligns the unaligned infrared image to the optical reference by estimating a dense deformation field. FusDM performs residual conditional diffusion to generate a detection-oriented fused representation with optical structural cues and complementary infrared saliency. DetDM formulates pedestrian detection as an iterative denoising process in bounding-box space. To couple the three tasks, TriDifNet introduces a closed-loop optimization mechanism, where detection semantics guide fusion and registration, and the fusion result further regularizes geometric alignment. A stage-wise progressive training strategy and a lightweight Nash multi-task learning (Nash-MTL)-based late-stage refinement are further adopted to balance registration, fusion, and detection optimization.

Extensive experiments on the KAIST multispectral pedestrian benchmark show that TriDifNet achieves superior downstream detection performance under misaligned RGB-T settings. Against a comprehensive set of strong system-level competitors, TriDifNet achieves 65.44% Recall, 57.55% mAP 50_{50}, and 26.83% mAP 50:95_{50:95}.

Index Terms—Multispectral pedestrian detection, misaligned RGB-T perception, infrared–visible image registration and fusion, diffusion models, multi-task learning.

I. INTRODUCTION

INFRARED-VISIBLE(IR-VIS) multi-modal perception has become increasingly important in safety-critical scenarios such as night-time surveillance, autonomous driving, and search-and-rescue. Visible images provide rich texture and structural details, whereas infrared imagery highlights thermal saliency and remains robust under adverse illumination. In practice, however, the two modalities are often spatially misaligned due to platform motion, viewpoint variation, capture timing differences, and modality-dependent imaging distortions. The core challenge is therefore not merely the presence of cross-modal misalignment itself, but the fact that geometric alignment, cross-modal fusion, and task-level semantics are usually optimized in a decoupled manner. Recent studies have shown that registration and fusion should not be treated as entirely independent stages [1], and that bidirectional interaction between them can improve both alignment quality and fusion fidelity [2]. More recent efforts have further explored tighter registration-fusion integration within unified or single-stage methods [3], [4]. For example, IMF introduces a one-stage progressive dense registration scheme and jointly optimizes it with a Transformer-Conv fusion subnetwork to mitigate structural distortions and edge ghosts in misaligned infrared-visible fusion [4]. Nevertheless, object detection in most existing registration-fusion systems still remains an external downstream consumer of the fused result rather than an endogenous optimization target inside the perception loop.

A representative limitation appears in conventional sequential pipelines that perform registration first and fusion afterward. In such methods, registration is optimized before knowing which structures and regions are truly critical for downstream recognition, while fusion is forced to absorb the residual errors inherited from upstream geometric inaccuracies. This issue becomes more severe in practical misaligned IR–VIS scenarios, where explicit alignment is difficult [5] and cross-modal appearance discrepancy is large [6]. As a result, even mild misregistration can cause ghosting, double edges, structural distortion, or target deformation in the fused result [4], [7]. In complex real-world sensing conditions, such sensitivity to misalignment can further degrade the effectiveness of subsequent fusion-based perception [8]. Consequently, the fusion stage is often reduced to a compensatory process on imperfectly aligned inputs, which limits both semantic fidelity and downstream robustness.

Another line of work attempts to inject high-level semantics into fusion, for example by using segmentation or detection signals to guide the generation of fused representations [9]–[12]. Recent VIS–IR detection-oriented fusion methods further show that fusion and detection should be optimized in a task-consistent manner. For instance, MMI-Det explores multilevel visible–infrared integration with contour enhancement, fusion-focused feature interaction, contrastive bridging, and information-guided optimization to better balance fusion and detection objectives [13]. EI2Det further introduces cross-

This work was supported in part by the National Natural Science Foundation of China under Grant 62173267, Grant 61573276, and Grant 62173266. (Corresponding author: Jing Liu.)

Qianchao He, Jing Liu and Yunhao Li are with the School of Automation Science and Engineering, Faculty of Electronic and Information Engineering, Xi'an Jiaotong University, Xi'an 710049, China (e-mail: banyedisco@163.com; elelj20080730@gmail.com; lyhxjstu@stu.xjtu.edu.cn).

Xiaoqing Tian is with the School of Electrical and Control Engineering, Xi'an University of Science and Technology, Xi'an 710054, China (e-mail: tianxiaoqing2017@xust.edu.cn).

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

modal interaction, illumination-aware modality weighting, and edge-guided fusion to improve detection robustness under varying lighting conditions [14]. In parallel, recent weakly aligned RGB-T detection studies have recognized that strict cross-modal alignment is often unrealistic in practice [15]–[18]. Uncertainty-aware cross-modal detectors also indicate that practical RGB–IR perception suffers from object-level uncertainty caused by low-light visible observations, confusing infrared responses, thermal ghost shadows, and pose-induced cross-modal misalignment [19]. Although these efforts demonstrate the value of task semantics, modality reliability, and alignment-aware detection, detection is still commonly treated either as an auxiliary guidance source for fusion or as a separate downstream task. As a result, it is rarely incorporated as a trainable component that jointly shapes alignment, fusion behavior, and final recognition. Consequently, what remains missing is a unified network in which geometric alignment, cross-modal fusion, and task-level detection semantics are optimized within a shared closed loop.

Recently, diffusion models have demonstrated strong capacity for high-fidelity generation and restoration [20]–[23], making them appealing for misaligned IR–VIS perception. More importantly, diffusion provides a unified iterative refinement view for the three tasks considered in this work. For registration, cross-modal matching under weak affine misalignment still involves spatially varying deformation estimation, which can be naturally cast as a progressive denoising process over deformation fields [2], [24]. For fusion, the optical image already provides a stable structural base, while the complementary infrared contribution is better modeled as a conditional residual restoration problem rather than direct full-image generation [25], [26]. For detection, object localization can be reformulated as iterative denoising in the bounding-box space, enabling progressive refinement from noisy box hypotheses to final object predictions [27]. Therefore, instead of treating registration, fusion, and detection as heterogeneous modules coupled only at the loss level, diffusion offers a common optimization perspective in which geometry, cross-modal representation, and task semantics can all be refined through task-specific denoising processes. This shared formulation is particularly suitable for the proposed closed-loop design, as it makes the three tasks not only jointly trainable, but also conceptually unified under iterative error correction and mutual refinement.

Building on this unified denoising perspective, we propose TriDifNet, a unified three-task diffusion network that jointly optimizes registration, fusion, and detection in an end-to-end manner. Instead of following the conventional “registration → fusion → detection” chain, TriDifNet explicitly couples the three tasks within one optimization system. First, a Registration Diffusion Module (RegDM) performs conditional diffusion to estimate a dense deformation field and warp the unaligned infrared image toward the optical reference. Then, a Fusion Diffusion Module (FusDM) performs residual conditional diffusion under the joint guidance of the optical image and the registered infrared image. This residual parameterization is adopted since the optical image already provides a stable structural base, while the diffusion model only needs to generate the complementary cross-modal component that injects infrared saliency into target-relevant regions.

To prevent detection from remaining a detached downstream head, we further elevate it into a trainable third task through a Detection Diffusion Module (DetDM), which formulates object detection as an iterative denoising process in bounding-box space. DetDM operates on the detection-oriented fusion representation and produces the final pedestrian predictions, while simultaneously feeding task semantics back into the upstream modules. In particular, the fusion branch is constrained by an ROI-guided task-driven supervision, denoted as Det2Fus, so that target-centered regions receive stronger infrared enhancement and more discriminative fusion behavior. In parallel, registration is regularized by infrared-domain object-level semantic consistency between the misaligned and registered infrared images, denoted as Det2Reg. For this purpose, we employ a frozen YOLO detector only during training as a stable infrared-domain semantic anchor, rather than reusing the trainable fusion-side detector. This allows the registration branch to receive consistent object-level supervision without being affected by the optimization drift of the fusion-domain detection process. Finally, the fusion result is also fed back to regularize registration through a structural fusion-to-registration constraint, denoted as Fus2Reg, forming a closed-loop optimization over the three tasks. To stabilize optimization across the three branches, TriDifNet is trained in a stage-wise progressive manner. After full closed-loop joint training, we further perform a lightweight Nash-MTL-based [28] late-stage refinement across the registration, fusion, and detection branches, so that the three task objectives can be dynamically balanced in the final optimization stage.

In this way, TriDifNet is not a simple concatenation of three modules, but a jointly optimized perception network in which geometry, fusion, and semantics are mutually constrained. RegDM improves the geometric basis for both fusion and recognition; FusDM builds a cross-modal representation that is explicitly shaped by downstream task demands; and DetDM not only produces the final predictions but also acts as a semantic driver for upstream learning. Through this closed-loop design, the proposed network reduces early-stage error propagation and promotes coordinated improvement in alignment quality, cross-modal complementarity, and pedestrian detection performance.

The main contributions of this work are summarized as follows:

  • We propose a unified three-task end-to-end network for misaligned RGB-T pedestrian perception, which jointly optimizes infrared–visible registration, fusion, and detection within a shared closed loop instead of treating them as isolated or sequential stages.

  • We develop a diffusion-based multi-module formulation for the three tasks, in which RegDM performs conditional deformation estimation for cross-modal alignment, FusDM performs residual conditional diffusion for complementary infrared–visible fusion, and DetDM formulates pedestrian detection as an iterative denoising process in bounding-box space.

  • We design explicit cross-task coupling mechanisms, including Det2Reg for detection-guided registration via a frozen infrared-domain semantic anchor, Det2Fus for ROI-guided task-driven fusion, and Fus2Reg for structural fusion-to-registration feedback, thereby establishing a genuine closed-loop optimization among geometry, fusion, and semantics.

• By integrating the above components into TriDifNet and employing a stage-wise training strategy with a lightweight late-stage three-branch Nash-MTL refinement, the proposed method achieves clear end-to-end detection improvements under misaligned RGB-T inputs. On the KAIST multispectral pedestrian benchmark with controlled RGB-T misalignment, TriDifNet reaches 65.44% Recall, 57.55% mAP 50_{50}, and 26.83% mAP 50:95_{50:95}. The results show superior system-level performance against strong competing pipelines under the same setting.

References (36)