Manuscript Offprint
arXiv:2610.37097TriDifNet: A Unified Three-Task Diffusion Network for End-to-End RGB-T Perception
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 , and 26.83% mAP .
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 , and 26.83% mAP . The results show superior system-level performance against strong competing pipelines under the same setting.
a) Forward diffusion: Let denote a clean target variable. A diffusion model defines a Markov forward process that gradually perturbs into Gaussian noise:
where each transition is commonly chosen as
with a variance schedule. Define and . Then the marginal distribution admits a closed form:
(3)
where .
b) Reverse diffusion: The generative reverse process learns to reconstruct from :
where each reverse step is parameterized as a Gaussian
Sampling starts from and iteratively applies Eq. (5) to obtain . In practice, the denoiser is commonly trained to predict the injected noise , which leads to a simple and stable optimization objective.
c) Conditional diffusion and guidance: For vision tasks, diffusion is typically used in a conditional manner, where the reverse process is guided by an observation y:
Compared with unconditional diffusion, conditional diffusion introduces task-related observations into the denoising process, enabling the model to generate or restore target variables under specific visual constraints.
III. METHODOLOGY
A. Overview
This section describes the architecture and optimization of TriDifNet. As illustrated in Fig. 1, TriDifNet is organized as a modular closed-loop network, where registration, fusion, and detection are executed sequentially in the forward path and are further coupled through cross-task feedback during training.
TriDifNet consists of three core components:
-
Registration Diffusion Module (RegDM): estimates a dense deformation field to align the unaligned infrared image with the optical reference image, producing the registered infrared input for fusion.
-
Fusion Diffusion Module (FusDM): performs residual conditional diffusion to generate a detection-oriented fused representation from the optical image and the registered infrared image.
-
Detection Diffusion Module (DetDM): formulates object detection as a denoising diffusion process in bounding-box space and performs ROI-guided re-inference for final prediction.
The three components are connected by explicit cross-task interactions. In the forward direction, RegDM provides aligned infrared guidance to FusDM (Reg-to-Fus), and FusDM supplies the detector-oriented representation to DetDM (Fus-to-Det). In the feedback direction, the fusion result regularizes registration through structural consistency (Fus2Reg), a frozen infrared-domain detector provides semantic supervision for detection-guided registration (Det2Reg), and the detector feeds ROI-guided task semantics back to the fusion branch (Det2Fus). Through these interactions, the three tasks are jointly refined within a unified closed-loop network.
The remainder of this section is organized as follows. Sec. III-B defines the notation and formulates the three-task problem. Sec. III-C details the Registration Diffusion Module (RegDM). Sec. III-D presents the Fusion Diffusion Module (FusDM). Sec. III-E introduces the Detection Diffusion Module (DetDM). Sec. III-F describes the cross-task coupling paths among registration, fusion, and detection. Sec. III-G presents the stage-wise training strategy and the Nash-MTL-based late-stage refinement. Finally, Sec. III-H summarizes the inference pipeline.
B. Notation and Problem Formulation
Let denote the optical (visible) image, and let denote the unaligned infrared image. The

Fig. 1. Overall architecture of TriDifNet. (a) Task overview. Given a visible image Y and an unaligned infrared image , TriDifNet sequentially produces the registered infrared image , the fused image , and the final detection result . (b) Closed-loop tri-task diffusion network. RegDM estimates a dense deformation field through conditional deformation-field diffusion and spatial warping; FusDM generates a detection-oriented fused representation through residual conditional diffusion; and DetDM performs box-space conditional diffusion followed by ROI-guided re-inference. Black arrows denote the forward data flow, while red dashed arrows denote cross-task feedback paths, including Det2Reg, Fus2Reg, and Det2Fus. The frozen infrared-domain detector provides semantic guidance during training and is not updated with the TriDifNet parameters. (c) Symbol description.
goal of TriDifNet is to jointly optimize registration, fusion, and detection under the misaligned RGB-T setting.
In the current work, the cross-modal discrepancy is modeled as controlled weak affine misalignment. Specifically, the infrared input is perturbed by in-plane rotation and translation with respect to the visible reference. This setting provides a practical weakly misaligned RGB-T scenario for evaluating whether registration, fusion, and detection can be optimized consistently within a unified network.
Given Y and , the Registration Diffusion Module (RegDM) estimates an inverse deformation field
which is used to warp the unaligned infrared image into the optical reference coordinate system:
where denotes the spatial warping operation. Here, is the registered infrared image.
Based on Y and , the Fusion Diffusion Module (FusDM) predicts a residual fusion component
and the final fused output is obtained by residual reconstruction
where denotes the fused representation. The detection-oriented fusion representation that is first fed into the Detection Diffusion Module (DetDM) is denoted by , which is obtained from the FusDM output after a visible-fusion cross-attention interaction module and serves as the first-pass detector input.
The Detection Diffusion Module (DetDM) performs object detection in the bounding-box space. Given , the detector first produces an initial prediction
where denotes the first-pass detection result on the fusion-side detector input. Using the ground-truth box prior and the prediction-derived ROI prior, a mixed ROI mask is constructed, and the detector-oriented representation is further refined into the task-driven detector representation , which is used for the task-driven re-inference stage of DetDM. Therefore, the final fusion-side detection can be written as
In addition to fusion-side detection, TriDifNet also introduces infrared-domain detection for registration guidance. Specifically, a frozen infrared detector is applied to the unregistered and registered infrared images, yielding
where and provide stable semantic supervision for detection-guided registration.
Overall, TriDifNet can be summarized as a three-task closed-loop system:
with three cross-task coupling paths:
The fused output contains both fusion-oriented and detection-oriented channels.
• Det2Reg: infrared-domain semantic consistency from and regularizes RegDM;
- Det2Fus: detection semantics derived from and reshape the fusion-side detector representation from to and feed back to FusDM;
• Fus2Reg: the fused representation further regularizes registration through structural feedback.
Accordingly, the objective of this work is not to optimize registration, fusion, and detection independently, but to jointly learn them within a unified end-to-end network in which geometry, cross-modal fusion, and task-level semantics are mutually constrained.
C. Registration Diffusion Module (RegDM)
- Conditional Diffusion for Deformation Field Estimation: The Registration Diffusion Module (RegDM) formulates dense infrared-to-optical alignment as a conditional diffusion denoising process over the inverse deformation field. Given the optical reference image Y and the unaligned infrared image , RegDM aims to estimate an inverse deformation field that maps the source infrared image into the optical reference coordinate system.
At diffusion step t, the model takes a noisy deformation representation together with a registration condition tensor and predicts the clean inverse deformation field. Under the current IR–optical setting, the condition tensor is constructed by concatenating the optical reference and the unaligned infrared input along the channel dimension:
The RegDM denoiser predicts the injected Gaussian noise in the inverse deformation diffusion process as
According to the standard diffusion reconstruction form, the clean inverse deformation field can then be recovered as
where denotes the cumulative noise coefficient defined in Sec. II.
The predicted inverse deformation field is then applied to the unaligned infrared image through a spatial warping operation:
where denotes the spatial warping operation. The resulting is expected to be geometrically aligned with the optical reference image Y and subsequently serves as the infrared condition for FusDM.
In this way, RegDM provides the geometric foundation of the overall network: it first reduces cross-modal misalignment, then supplies the registered infrared image to the fusion branch, and meanwhile remains open to semantic and structural feedback from the downstream tasks through the closed-loop optimization.
- Registration Objective: RegDM is optimized with a composite objective that balances diffusion reconstruction, deformation smoothness, and cross-modal alignment consistency:
Here, denotes the diffusion reconstruction loss for denoising the inverse deformation field. Following the standard diffusion training formulation, the denoiser is trained to predict the injected Gaussian noise:
where and is obtained by the forward diffusion process from the clean inverse deformation field.
The smoothness term regularizes the spatial continuity of the predicted deformation field:
where and denote horizontal and vertical finite-difference operators, respectively. This term discourages unrealistic discontinuities and stabilizes the registration process.
The alignment term enforces cross-modal consistency between the registered infrared image and the optical reference:
where denotes the grayscale projection of the optical image used for cross-modal similarity measurement, and is the normalized cross-correlation operator. This term encourages the warped infrared image to be geometrically consistent with the visible reference while remaining robust to cross-modal intensity differences.
Therefore, the overall role of RegDM is twofold: it explicitly estimates the dense geometric correction needed for misaligned RGB-T inputs, and it provides the aligned infrared representation required by the subsequent fusion and detection processes.
D. Fusion Diffusion Module (FusDM)
- Residual Conditional Diffusion for Infrared–Visible Fusion: After RegDM produces the registered infrared image , the Fusion Diffusion Module (FusDM) performs conditional diffusion to generate a cross-modal residual representation under the joint guidance of the optical image and the aligned infrared image. Unlike direct full-image generation, FusDM adopts a residual formulation since the optical image Y already provides a stable structural and textural base, while the fusion branch mainly needs to inject complementary infrared saliency into target-relevant regions.
Formally, the fusion condition tensor is defined as
At diffusion step t, the FusDM denoiser takes the noisy residual fusion state together with and predicts the clean residual component:
The final fused representation is reconstructed by residual addition:
where denotes the fused output of FusDM. This residual design explicitly preserves the dominant optical structures while allowing the diffusion model to focus on modality-complementary information from the infrared branch.
Therefore, FusDM serves as the cross-modal representation hub of the overall network: it receives the geometrically corrected infrared signal from RegDM, produces the fused representation for image-level perception, and simultaneously supplies the detector-oriented fusion cue for the downstream detection branch.
- Detector-Oriented Fusion Representation: In addition to generating the fused output , FusDM also provides a detector-oriented representation for DetDM. Rather than using a separate post-processing branch, this representation is built directly within the fusion pipeline, so that it can be refined by downstream detection semantics.
Specifically, let denote the raw detection-oriented fusion channel extracted from the FusDM output, where is the detector-side single-channel output before visible-fusion interaction. To preserve detector-friendly optical structural cues, we introduce a visible-fusion cross-attention module to generate the first-pass detector input . This helps keep the detector input closer to the original optical-image setting of DiffusionDet [27], while complementing the subsequent ROI-guided infrared enhancement stage.
We first encode the optical image and the raw detector-oriented fusion channel as
where and denote the optical and fusion feature encoders, respectively, and denotes the channel-replication operator that expands a single-channel fusion map into a three-channel tensor for detector-side processing.
Based on these two feature embeddings, the visible-guided cross-attention is formulated as
where , , and are learnable linear projection operators for query, key, and value, respectively. The attention map is computed by
where d is the feature dimension. The detector-oriented fusion representation after visible-fusion interaction is then obtained as
where denotes the projection operator that maps the cross-attended feature representation back to the detector input representation space.
The resulting serves as the first-pass detector input for DetDM. Therefore, the fusion branch provides not only the fused image representation for image-level perception, but also a cross-attention-enhanced detector-oriented representation that bridges fusion and detection.
In this sense, FusDM plays two roles in TriDifNet:
-
it produces the fused image representation for cross-modal perception;
-
it generates the detector-oriented representation that bridges fusion and detection.
This design ensures that the fusion branch is not only optimized for visual fusion quality, but also prepared for semantic feedback from the downstream detector.
- Fusion Objective: The base optimization of FusDM is defined as
where is the diffusion reconstruction loss for the residual fusion process, enforces pixel-level fidelity between the fused output and the fusion target, and preserves structural consistency in the fused representation.
The diffusion term is written as
where and is the noisy residual state sampled from the forward diffusion process. The pixel-level fidelity term is defined as
where denotes the fusion supervision target. The structural regularization term is defined as
which encourages the fused output to preserve perceptually meaningful scene structures.
It should be noted that the above objective only defines the base fusion optimization of FusDM. In the full three-task network, this objective is further augmented by the task-driven Det2Fus constraints and the closed-loop cross-task feedback. The corresponding cross-task coupling mechanisms are formulated in Sec. III-F. With these additional couplings, the fusion branch is ultimately optimized not only for image-level fusion quality but also for detection-oriented semantic utility.
E. Detection Diffusion Module (DetDM)
- Diffusion-Based Detection Formulation: To prevent detection from remaining a detached downstream task, TriDifNet introduces a Detection Diffusion Module (DetDM) as the third trainable component in the closed-loop system. Instead of directly predicting object boxes in a one-shot manner, DetDM formulates pedestrian detection as an iterative denoising process in the bounding-box space. Given a detector-oriented fusion representation, the detector starts from a set of noisy box proposals and progressively refines them into the final object predictions.
Given the first-pass detector input obtained from the cross-attention-enhanced fusion representation, DetDM first generates an initial fusion-side prediction:

Fig. 2. ROI-guided re-inference in DetDM. First-pass predictions are converted into an ROI prior, which guides ROI-IR injection for second-pass detection.
where contains the first-pass pedestrian predictions, including the box locations and confidence scores on the fusion-side detector representation.
- ROI-Guided Re-inference: Unlike a conventional single-pass detector, the current DetDM does not directly use the first-pass prediction as the final output. Instead, is converted into an ROI prior and used to refine the detector-side fusion representation for second-pass detection.
As shown in Fig. 2, this re-inference process consists of four steps: D3 first-pass detection, ROI prior construction, ROI-IR injection, and second-pass detection. To construct the task-driven refinement prior, the ground-truth boxes are first converted into a soft ROI mask:
where denotes the ground-truth bounding-box annotations, and denotes the ROI mask generation operator that converts box annotations into a soft ROI mask. Similarly, the first-pass prediction is converted into a prediction-derived ROI mask:
To balance supervision from the ground-truth prior and the detector prediction prior, a mixed ROI mask is constructed as
where is an adaptive mixing coefficient determined by the agreement between the prediction-derived ROI and the ground-truth ROI. In practice, the agreement is measured by the mask-level IoU between and , and is constrained within a GT-dominant interval to prevent the mixed ROI prior from being overly dominated by unstable early predictions.
The mixed ROI mask is then used to refine the first-pass detector input into a task-driven detector representation:
where denotes the ROI-guided task-driven rewriting operator. Intuitively, this operation preserves the original detector-oriented fusion response in non-target regions while injecting stronger infrared saliency into target-centered ROI regions. As a result, the detector input is no longer a purely fusion-driven representation, but a task-aware representation explicitly reshaped by the object prior.
The refined representation is then used for the second-pass detection:
where denotes the final fusion-side detection output.
- Detection Objective: The optimization of DetDM consists of two coupled levels. At the detector level, we adopt the box-space diffusion detection objective to supervise the final second-pass prediction :
where is the classification loss, is the box regression loss, and is the generalized intersection-over-union loss.
At the representation level, the detector is further coupled with the fusion branch through ROI-guided task-driven constraints. These constraints do not merely supervise the final boxes; instead, they act on the detector-oriented fusion representation itself through and . Consequently, the detector not only predicts pedestrian instances, but also provides semantic feedback that reshapes the fusion-side representation before final inference.
Therefore, the overall role of DetDM in TriDifNet is twofold:
-
it serves as the final pedestrian detector operating on fusion-side representations;
-
it acts as a task-semantic driver that constructs the ROI-guided feedback used by the Det2Fus pathway.
In this way, detection is lifted from a passive downstream consumer to an endogenous component of the closed-loop optimization, enabling the final detector to jointly influence fusion behavior and, through the cross-task constraints, the overall RGB-T perception process.
F. Cross-Task Coupling: Registration–Fusion–Detection
A key contribution of TriDifNet is to explicitly couple registration, fusion, and detection in a closed-loop manner, so that improvements in one task can directly constrain and enhance the others. The resulting interactions include a forward coupling from registration to fusion, a semantic feedback path from detection to registration, a task-driven feedback path from detection to fusion, and a structural feedback path from fusion to registration. These couplings are denoted as Reg-to-Fus, Fus2Reg, Det2Reg, Det2Fus, and Fus-to-Det, respectively.
-
Registration-to-Fusion Consistency (Reg-to-Fus): The registered infrared image produced by RegDM serves as the geometrically aligned infrared condition for FusDM. By replacing the raw unaligned infrared input with , FusDM operates on a cross-modal pair with substantially reduced spatial discrepancy, which stabilizes the residual diffusion process and improves the structural consistency of the fused output. Accordingly, Reg-to-Fus is implemented by using as the infrared condition in the FusDM residual diffusion process defined in Sec. III-D. This forward coupling allows FusDM to operate on a geometrically corrected RGB-T pair and stabilizes the generation of the fused representation.
-
Fusion-to-Registration Structural Feedback (Fus2Reg): Beyond serving as the output of FusDM, the fused representation also feeds back to RegDM as a structural regularizer. The motivation is that the fusion result encodes cross-modal structural consistency after complementary information from both modalities has been integrated, and such fused structural cues can be used to further regularize geometric alignment.
We denote this feedback path as Fus2Reg. To preserve geometry-sensitive structures, we implement Fus2Reg through a fractional-order derivative consistency between the registered infrared image and the structure extracted from the fused representation:
where denotes a fractional-order derivative operator with order , and denotes channel-wise averaging that maps the fused representation to a comparable structural map. This constraint encourages the registered infrared image to share consistent structural responses with the fusion-enhanced structure, thereby correcting deformation estimation using fusion-driven geometry cues.
- Detection-Guided Registration (Det2Reg): Low-level alignment cues alone are insufficient for object-centric RGB-T perception, since registration should also preserve the semantic consistency of target regions across the unaligned and registered infrared domains. To this end, we introduce Det2Reg, which uses a frozen infrared-domain detector as a stable semantic anchor during training.
Specifically, the frozen detector is applied to the unaligned infrared image and the registered infrared image , producing
These two predictions provide object-level semantic supervision for registration, encouraging RegDM to align object-centric structures more accurately. Unlike using the trainable fusion-side detector, this frozen infrared-domain detector provides a stable semantic reference and avoids introducing optimization drift from the fusion-side detection branch into the registration supervision.
Accordingly, the Det2Reg constraint can be summarized as
where denotes the infrared-domain semantic consistency objective induced by the frozen detector predictions and the ground-truth bounding-box annotations . Specifically, we formulate it as
where supervises the registered-infrared detection prediction with the ground-truth boxes, and encourages object-level semantic responses before and after registration to remain consistent around annotated target regions. In TriDifNet, this term acts as a training-time semantic regularizer for RegDM and is not used during inference.
In practice, the semantic consistency term is computed on detector responses matched to the ground-truth boxes:
where and denote the detector semantic responses associated with the -th ground-truth box from and , respectively, and denotes the stop-gradient operation.
- Detection-Aware Fusion (Det2Fus): To explicitly inject object-level semantics into the fusion process, we further design Det2Fus, which allows detection to reshape the detector-oriented fusion representation before final inference. Unlike simply attaching a detection loss to the fused output, Det2Fus first constructs an ROI-guided prior and uses it to rewrite the detector-side fusion representation. The construction of the ROI masks , , the mixed prior , and the task-driven detector representation has been introduced in Sec. III-E2. Here, we focus on how this detector-side semantic prior is further fed back to FusDM through task-driven fusion constraints.
As shown in Fig. 3, we introduce a TDFusion-style learnable weighting branch to strengthen the detector-to-fusion feedback. This branch serves as a training-time loss-side guidance module rather than an additional inference-time fusion generator. Specifically, a learnable weighting generator

Fig. 3. TDFusion-style loss-side guidance branch in Det2Fus. It predicts task-driven spatial weights for ROI-aware fusion constraints during training.
takes the registered infrared image, the optical image, the first-pass detector input, and the mixed ROI prior as inputs:
where the predicted weights are modality-aware and region-aware spatial maps that adaptively control infrared enhancement, visible suppression, ROI emphasis, edge preservation, background inhibition, and alignment relaxation.
To avoid a trivial visible-dominant solution, the TDFusion branch biases the effective weighting toward infrared responses inside ROI regions while suppressing unnecessary visible dominance in object-centric areas. Therefore, it regularizes FusDM through the detector-aware representation and the ROI-guided semantic prior without introducing an additional fused-image generation path during inference.
With the ROI-guided rewriting and the TDFusion-style weighting branch, the Det2Fus objective imposes task-driven constraints directly on the detector-oriented fusion representation:
where all terms are computed on the ROI-rewritten detector-side fusion representation . enforces weighted intensity consistency with the registered infrared image and the visible structural proxy . preserves the dominant Sobel-gradient responses from the two modalities. applies an ROI-masked infrared consistency constraint to enhance target saliency. suppresses unnecessary detector-channel residual activation in background regions. maintains consistency with the teacher detector-oriented fusion target while relaxing this constraint inside ROI regions.
This design enables DetDM to shape the fusion behavior at the representation level while preserving global fusion fidelity outside object-centric regions. Therefore, Det2Fus is not a simple auxiliary detection loss, but a representation-level semantic feedback mechanism that reshapes the detector-oriented fusion branch before final detection.
-
Fusion-Enhanced Detection(Fus-to-Det): The fused representation also enhances detection in the forward direction. Specifically, FusDM provides the first-pass detector input , while the refined representation is used for the final detector inference. In this way, the fusion branch not only receives semantic feedback from DetDM, but also produces the task-specialized detector input that drives the final diffusion-based detection process.
-
Overall Training Objective: The overall optimization of TriDifNet is jointly driven by registration, fusion, and detection objectives:
The registration objective is defined as
where the first three terms are the base registration losses of RegDM, and the last two terms represent semantic feedback from Det2Reg and structural feedback from Fus2Reg.
The fusion objective is defined as
where the first three terms denote the base fusion optimization of FusDM, and the last term introduces the ROI-guided task-driven semantic feedback from Det2Fus.
In the current implementation, already includes the ROI-guided infrared enhancement and the TDFusion-style learnable weighting mechanism. The corresponding TDFusion branch acts as a training-time loss-side guidance module, which shapes the optimization trajectory of FusDM without introducing an additional fused-image generation path at inference time.
The detection objective is imposed on the final detector output driven by the refined detector representation . It follows the box-space diffusion detection loss defined in Sec. III-E, including classification, box regression, and generalized intersection-over-union terms.
Through this formulation, RegDM maintains geometric consistency, FusDM is jointly shaped by image-level supervision and detection-aware semantic feedback, and DetDM is optimized on the detector-oriented fusion representation refined by ROI-guided re-inference. As a result, the final training strategy consistently reflects the current three-task closed-loop network: geometry, fusion, and semantics are no longer optimized in isolation, but are mutually constrained within one unified end-to-end network. The above formulation defines the branch-wise optimization targets of TriDifNet. The practical training schedule used to optimize these objectives, including the late-stage Nash-MTL-based refinement, is introduced next.
G. Training Strategy and Nash-MTL-based Late-Stage Refinement
TriDifNet is not trained with a single static schedule from the beginning. Instead, we adopt a stage-wise progressive training strategy to stabilize optimization across registration, fusion, and detection. Specifically, the training process consists of multiple stages. We first optimize the registration branch while freezing the fusion and detection branches, so that RegDM can establish a reliable geometric alignment basis. Next, we optimize the coupled RegDM–FusDM and RegDM–DetDM settings separately by freezing one branch at a time, which allows the fusion and detection branches to adapt to the registration-guided inputs under reduced optimization interference. After that, all three branches are jointly optimized in the full closed-loop setting, so that Det2Reg, Det2Fus, and Fus2Reg can simultaneously participate in the end-to-end interaction.
After the above joint training stage, we further introduce a late-stage refinement step to improve the optimization balance among the three task objectives. Unlike a fixed loss summation, Nash multi-task learning (Nash-MTL) is used as a dynamic task-coordination strategy to adaptively balance registration, fusion, and detection in the final training stage. Let
denote the set of active trainable objectives in this refinement stage. We compute their gradients with respect to a shared intermediate representation s and form the gradient matrix
Following Nash-MTL, the dynamic task weights are obtained by solving
where denotes the element-wise reciprocal. The resulting weighted objective for the late-stage refinement is
This design is motivated by the observation that the final closed-loop optimization contains heterogeneous objectives from geometric alignment, cross-modal fusion, and task-level detection. Directly summing these losses with fixed weights may cause one task to dominate the optimization and suppress the others. Nash-MTL provides a dynamic balancing mechanism that coordinates the gradients of the three branches and encourages a more stable multi-task update. If a training batch does not contain valid detection supervision, the detector branch is excluded from the bargaining step, and the optimization falls back to the available active objective(s) rather than enforcing an invalid three-task update.
It should be emphasized that Nash-MTL is used only in this training-time late-stage refinement step. It improves the optimization balance among RegDM, FusDM, and DetDM, but does not introduce additional inference-time modules or change the structural closed-loop coupling of TriDifNet.
H. Inference Pipeline
During inference, TriDifNet performs end-to-end RGB-T perception through a sequential forward pass over RegDM, FusDM, and DetDM, while preserving the detector-side ROI-guided re-inference mechanism. Given an optical image Y and an unaligned infrared image , RegDM first estimates the inverse deformation field and warps the infrared image into the optical reference coordinate system:
The registered infrared image is then fed into FusDM together with the optical image Y to produce the fused representation:
Next, the visible–fusion cross-attention module converts the raw detector-side fusion channel into the cross-attention-enhanced detector-oriented representation , which serves as the first-pass detector input.
Based on , DetDM performs an initial diffusion-based detection and produces the first-pass prediction
The first-pass prediction is then converted into a prediction-derived ROI prior
where denotes the ROI mask generation operator from the detector prediction. Using this prediction-derived ROI prior, the detector-oriented representation is rewritten into a task-driven refined detector input:
where denotes the ROI-guided rewriting operator that enhances infrared saliency in target-centered regions while preserving the original fusion-driven detector response in non-target regions. The final pedestrian detection is then obtained through ROI-guided re-inference:
It is worth noting that the training-only semantic and structural supervision terms are not used during inference. In particular, the frozen infrared-domain YOLO detector employed by Det2Reg serves only as a semantic anchor during training and is removed at test time. Similarly, the loss terms associated with Det2Reg, Det2Fus, and Fus2Reg are used only for optimization and are not evaluated during inference. However, the detector-side ROI-guided refinement remains part of the forward inference pipeline, since it directly constructs the task-driven detector representation from the first-pass prediction prior for the second-pass detection.
Therefore, the inference stage of TriDifNet outputs three perceptually and semantically meaningful results: the registered infrared image , the fused representation , and the final pedestrian detection result . This inference pipeline consistently reflects the design principle of TriDifNet: geometry is first corrected by RegDM, cross-modal information is integrated by FusDM, and final task-level semantics are produced by DetDM through prediction-guided detection refinement.
IV. EXPERIMENTS
A. Datasets, Misalignment Setting, and Evaluation Metrics
a) Datasets: All experiments are conducted on the KAIST Multispectral Pedestrian Benchmark [30], which provides paired visible–thermal images for RGB–T pedestrian perception. Following a cleaned annotation setting, heavily occluded, severely truncated, extremely small, and ambiguous pedestrian annotations are removed or ignored. The remaining valid pedestrian-related annotations are merged into a single pedestrian class for training and evaluation.
TABLE I COMPARISON SETTINGS FOR DIFFERENT EVALUATION SETTINGS
| Evaluation Setting | Input | Output | Primary Goal |
|---|---|---|---|
| Registration comparison | Misaligned RGB-T | Registered IR | Image-level registration accuracy |
| Fusion comparison | Aligned RGB-T | Fusion result | Image-level fusion effectiveness |
| End-to-end comparison | Misaligned RGB-T | Final detection | Full-system perception performance |
TABLE II BASELINES USED IN THE EXPERIMENTS
| Category | ID | Description | Selected |
|---|---|---|---|
| Registration | R1 | No-registration baseline | NoReg |
| Registration | R2 | Template-matching-based visible-thermal registration baseline | TWMM (2022) [31] |
| Registration | R3 | Plug-and-play general multi-modal image registration baseline | PGMR (2025) [32] |
| Fusion | F1 | Detection-driven fusion baseline | DetFusion (2022) [10] |
| Fusion | F2 | Meta-feature embedding guided infrared-visible fusion baseline | MetaFusion (2023) [11] |
| Fusion | F3 | Registration-fusion integrated infrared-visible fusion baseline | MulFS-CAP (2025) [3] |
| System | S1 | Visible-only detection baseline with an external detector | YOLO11s |
| System | S2 | Infrared-only detection baseline with an external detector | YOLO11s |
| System | S3 | External registration + registered-IR detection pipeline | PGMR (2025) [32] + YOLO11s |
| System | S4 | External fusion + detection pipeline | LRRNet (2023) [33] + YOLO11s |
| System | S5 | Fully external sequential Reg→Fus→Det pipeline | PGMR (2025) [32] + LRRNet (2023) [33] + YOLO11s |
| System | S6 | External registration preprocessing + fusion-detection integrated method | PGMR (2025) [32] + MetaFusion (2023) [11] |
| System | S7 | Registration-fusion integrated method + external detector | MulFS-CAP (2025) [3] + YOLO11s |
b) Patch-Based Data Preparation: Considering the memory cost of joint registration, fusion, and detection training, we adopt patch-based processing instead of full-frame training. Each visible–thermal pair is cropped into patches with a stride of 128, and at most 50 ground-truth boxes are retained for each patch. The processed training patches are further split into training and validation subsets with a ratio of 0.8. For background-only patches with empty samples, only 20% are retained independently within the training/validation and testing splits to avoid overwhelming the optimization. For each retained patch, both reference-coordinate boxes and perturbed infrared-domain boxes are stored for branch-specific detection evaluation.
c) Teacher Fusion Target: Since KAIST does not provide real fusion ground truth, we use the fusion results produced by LRRNet [33] on the original KAIST data as a pseudo teacher target for training FusDM. The teacher output is used only to stabilize residual fusion learning and is not treated as exact fusion ground truth for final evaluation.
d) Misalignment Setting: To simulate weakly misaligned RGB-T perception, synthetic affine perturbations are applied to the infrared modality while the visible image is kept as the reference. In the current setting, the infrared patch is perturbed by an in-plane rotation up to and a translation ratio of 0.05, corresponding to a maximum translation of approximately 12.8 pixels along each axis for a patch. This controlled setting focuses on weak affine misalignment rather than severe non-rigid deformation, and is used to evaluate whether RegDM can provide reliable geometric correction for the target RGB-T perception scenario.
e) Evaluation Metrics: We evaluate TriDifNet from three perspectives. For registration, we report root mean squared error (RMSE), normalized cross-correlation / correlation coefficient (NCC/CC), and structural similarity (SSIM) [34] between the registered infrared image and the aligned infrared reference. For fusion, we use weak-reference image-level measures, including CC and UIQI [35], to evaluate structural consistency and cross-modal information preservation. For detection, we report Precision, Recall, mAP , and mAP for the visible branch, the infrared or registered-infrared branch, and the fusion branch. Since all valid pedestrian-related annotations are merged into a single pedestrian class, mAP is computed in a single-class COCO-style [36] manner over IoU thresholds from 0.50 to 0.95 with a step size of 0.05. The annotation domain used for each detection branch follows the comparison setting summarized in Table I. The final fusion-side detection result serves as the primary evaluation of the complete network.
B. Experimental Settings and Baselines
a) Training and Inference Settings: TriDifNet is implemented in PyTorch and trained on a single NVIDIA RTX 5060 Ti GPU with 16 GB memory. All experiments are conducted with input patches. The model is trained under the stage-wise three-task optimization strategy introduced in Sec. III-G, with a batch size of 1, 30,000 training iterations, and 500 diffusion timesteps. RegDM, FusDM, and DetDM are optimized within the unified closed-loop training pipeline using branch-specific optimizers, with learning rates of , , and , respectively.
At test time, the training-only auxiliary components are removed, and the deployed inference pipeline consists of RegDM, FusDM, and DetDM with ROI-guided re-inference. For diffusion inference, RegDM and FusDM use DDIM sampling [37] with 25 steps. For ROI-guided re-inference, the first-pass D3 confidence threshold is set to 0.10 to improve recall for ROI construction, whereas the final second-pass detection uses a confidence threshold of 0.30 for reporting Precision and Recall. No ground-truth boxes are used for ROI construction during inference. All FPS results are measured on the same platform with batch size 1, excluding data loading and file I/O.
b) Baseline Categories: To avoid ambiguity, the compared methods are grouped into registration, fusion, and system-level baselines, as summarized in Table II. Registration baselines evaluate geometric correction under the same misaligned RGB-T input. Fusion baselines evaluate image-level fusion behavior under aligned-input conditions. System-level baselines evaluate the final pedestrian detection performance under complete RGB-T perception pipelines. Since LRR-Net [33] is used as the pseudo teacher for FusDM training, it is not included as a direct image-level fusion baseline, and its downstream influence is evaluated through S4 and S5. For detector-based system baselines, most external pipelines use YOLO11s as the downstream detector, while S6 follows the original MetaFusion evaluation setup and uses YOLOv5s [11].
c) Comparison Settings: Different experiments follow different input settings. Registration comparisons start from the same misaligned RGB-T input and evaluate only the registered infrared output. Fusion comparisons are conducted under a unified aligned-input condition to isolate fusion behavior from registration errors. End-to-end comparisons start from the same misaligned RGB-T input and evaluate the final detection results with branch-specific annotations. Specifically, visible, registered-infrared, and fusion-side outputs are evaluated with reference-coordinate boxes, while unaligned-infrared detection is evaluated with perturbed infrared-domain boxes.
d) Training Settings for Baselines: For fair comparison, all baseline methods are trained and evaluated under the same overall data setting used by TriDifNet. For methods with official implementations, we follow their released configurations whenever applicable, initialize them from the official pretrained weights, and fine-tune them on the current training data rather than training from scratch. For module-level baselines, registration methods are fine-tuned on the misaligned RGB-T training set, while fusion methods are fine-tuned on the aligned RGB-T training set according to Table I. Each single-task baseline is fine-tuned for 50 epochs and evaluated on the corresponding unified test set.
For system-level baselines with sequential components, each downstream component is fine-tuned on the training-set outputs produced by its upstream component for 50 epochs before being evaluated on the corresponding test-set outputs. For the MulFS-CAP-based [3] baselines F3 and S7, we follow the official implementation and fine-tune it for 200 epochs using 500 randomly sampled training pairs and 100 validation pairs. All baselines, including MulFS-CAP-based pipelines, are evaluated on the same unified test set.
C. Main Quantitative Results
a) Registration Comparison: We first compare RegDM with the registration baselines under the same misalignment setting. All methods take the same misaligned RGB-T pair as input and output a registered infrared image. Since the current benchmark focuses on controlled weak affine perturbations, this comparison is intended to evaluate whether RegDM can provide reliable geometric correction under the target weakly misaligned RGB-T setting, rather than to claim general superiority under severe non-rigid deformation scenarios.
TABLE III QUANTITATIVE COMPARISON OF REGISTRATION RESULTS
| Method | RMSE↓ | NCC/CC↑ | SSIM↑ |
|---|---|---|---|
| R1 | 10.976204 | 0.831235 | 0.854959 |
| R2 | 45.652067 | 0.591024 | 0.543002 |
| R3 | 10.457858 | 0.835497 | 0.853929 |
| Proposed RegDM | 10.425901 | 0.832831 | 0.856359 |

Fig. 4. Qualitative comparison of registration results corresponding to Table III, including absolute-error heatmaps and checkerboard alignment visualizations.
As shown in Table III, the proposed RegDM achieves the lowest RMSE (10.425901) and the highest SSIM (0.856359) among the compared registration methods, while maintaining competitive NCC/CC. R3 obtains a slightly higher NCC/CC (0.835497), indicating that the image-level registration scores of different methods can be close under the controlled weak-misalignment setting. These results suggest that RegDM provides stable geometric correction for the subsequent fusion and detection stages, rather than an overwhelming single-task registration advantage over all baselines. The qualitative results in Fig. 4 further show that RegDM produces low-residual responses and coherent checkerboard alignment patterns. The downstream contribution of RegDM is further evaluated in the end-to-end detection comparison and the system-level ablations, where RegDM is coupled with Det2Reg and Fus2Reg.
b) Fusion Comparison: We next compare FusDM with the fusion baselines under a unified aligned-input condition. This setting isolates fusion behavior from registration errors and follows the corresponding setting in Table I. Since KAIST does not provide real fusion ground truth and the LRRNet output is used only as a pseudo teacher during training, the following comparison reports weak-reference image-level indicators rather than treating teacher-referenced scores as the primary evidence.
Table IV reports weak-reference image-level fusion scores
TABLE IV QUANTITATIVE COMPARISON OF FUSION RESULTS
| Method | CC↑ | UIQI↑ |
|---|---|---|
| F1 | 0.900771 | 0.808711 |
| F2 | 0.903327 | 0.864656 |
| F3 | 0.942980 | 0.862271 |
| Proposed FusDM | 0.926469 | 0.840299 |

Fig. 5. Qualitative comparison of fusion results corresponding to Table IV. TriDifNet emphasizes target-aware infrared saliency while maintaining visible structural cues for downstream detection.
under the aligned-input setting. F3 and F2 achieve the best CC and UIQI, respectively, while FusDM obtains competitive but not leading teacher-referenced scores. Since the KAIST benchmark lacks real fusion ground truth, these metrics are used only to characterize image-level fusion behavior rather than downstream perception utility. Fig. 5 shows that FusDM preserves visible structural cues and enhances target-related infrared responses. More detailed evidence for its task-level effectiveness is provided by the end-to-end detection comparison in Sec. IV-C and the cross-task ablations in Sec. IV-D.
c) End-to-End Detection Comparison: The most important comparison is the end-to-end pedestrian detection performance. All system-level baselines start from the same misaligned RGB-T input and are evaluated under the same detection benchmark. This comparison directly verifies whether the proposed closed-loop Reg–Fus–Det optimization improves downstream perception compared with single-modality settings, sequential external pipelines, and partially coupled alternatives.
TABLE V END-TO-END PEDESTRIAN DETECTION COMPARISON
| Method | P(%)↑ | R(%)↑ | mAP(%)↑ | mAP(%)↑ |
|---|---|---|---|---|
| S1 | 81.53 | 39.49 | 36.02 | 16.45 |
| S2 | 79.39 | 44.80 | 40.33 | 20.88 |
| S3 | 81.14 | 9.28 | 8.32 | 3.12 |
| S4 | 80.22 | 25.22 | 22.90 | 10.15 |
| S5 | 69.53 | 37.71 | 32.65 | 14.66 |
| S6 | 41.62 | 52.84 | 38.51 | 18.76 |
| S7 | 72.42 | 48.45 | 43.66 | 19.02 |
| Proposed TriDifNet | 73.85 | 65.44 | 57.55 | 26.83 |
Table V reports the system-level detection results. TriDifNet obtains the best scores on the three main detection metrics, i.e., 65.44% Recall, 57.55% mAP , and 26.83% mAP . Compared with the strongest external system-level baseline S7, TriDifNet improves these three metrics by 16.99%, 13.89%, and 7.81%, respectively. Although the visible-only baseline S1 obtains the highest precision, its recall and mAP remain limited, indicating that single-modality detection is insufficient under misaligned RGB-T inputs.
S3 shows a sharp degradation under the post-registration detection setting, with only 9.28% recall, 8.32% mAP , and 3.12% mAP . Although PGMR obtains competitive image-level registration scores in Table III, its registered output may still contain object-level residual offsets with respect to the reference-domain detection annotations. Such offsets can be amplified into localization errors and missed detections, leading to a clear decrease in recall and mAP. This result

Fig. 6. Qualitative comparison of end-to-end pedestrian detection results corresponding to Table V. Case 1 shows daytime large targets; Cases 2 and 3 show daytime small targets; Case 4 shows nighttime small targets under low-light conditions; and Case 5 shows nighttime small targets with relatively stronger illumination. Yellow and green boxes denote ground truth and predictions, respectively.
TABLE VI SYSTEM-LEVEL ABLATION STUDY
| Method | P(%)↑ | R(%)↑ | mAP50(%)↑ | mAP50:95(%)↑ | FPS↑ | |
|---|---|---|---|---|---|---|
| RegDM | FusDM | |||||
| - | - | 48.77 | 49.57 | 37.90 | 13.71 | 11.02 |
| - | ✓ | 70.81 | 57.34 | 44.67 | 19.13 | 0.32 |
| ✓ | - | 51.03 | 49.46 | 39.04 | 14.07 | 1.03 |
| ✓ | ✓ | 73.85 | 65.44 | 57.55 | 26.83 | 0.25 |
shows that good single-task registration metrics do not necessarily guarantee detection-consistent alignment in a decoupled Reg→Det pipeline.
S4 also yields limited detection performance, with 25.22% recall and 22.90% mAP . Since LRRNet is applied without explicit registration in this setting, the fused image can suffer from misalignment-induced ghosting, double edges, and target deformation. These artifacts degrade the detector input and further propagate to the final detection metrics. S5 performs the fully external Reg→Fus→Det pipeline, but the sequential combination still suffers from the accumulation of registration and fusion errors. For the MetaFusion-based setting S6, we follow its original evaluation setup with YOLOv5s, so part of the performance difference may also come from the different detector configuration.
Overall, the large gains in recall and mAP indicate that TriDifNet reduces missed detections and achieves a better detection trade-off under misaligned RGB-T inputs. These results support the effectiveness of closed-loop optimization among registration, fusion, and detection over sequential or partially coupled pipelines.
Fig. 6 further provides qualitative evidence for the end-to-end comparison. Compared with the system-level baselines, TriDifNet produces more complete and better localized pedestrian predictions under misaligned RGB-T inputs. This advantage is most evident in Cases 4 and 5, where several baselines suffer from missed detections under weak visible cues and low-contrast infrared responses, whereas TriDifNet still retains stable target predictions. The qualitative comparison is consistent with the quantitative gains reported in Table V.
D. Ablation Studies
a) System-Level Ablation: We conduct system-level ablations to evaluate the contribution of RegDM and FusDM to RGB-T pedestrian perception. DetDM is retained in all variants, and each variant is trained under the same training schedule before testing. When both RegDM and FusDM are removed, detection is performed on the unaligned infrared input; when FusDM is removed, detection is performed on the registered infrared image; otherwise, detection is performed on the fusion-oriented representation.
As shown in Table VI, removing RegDM and FusDM gives limited detection performance, with 37.90% mAP and 13.71% mAP . Using FusDM alone improves mAP from 37.90% to 44.67% and mAP from 13.71% to 19.13%, indicating that cross-modal fusion provides useful perception cues even under misalignment. Using RegDM alone produces a smaller improvement, increasing mAP from 37.90% to 39.04% and mAP from 13.71% to 14.07%. This suggests that registration alone is insufficient for the final perception task when cross-modal fusion is absent. The full TriDifNet achieves the best detection results, reaching 65.44% recall, 57.55% mAP , and 26.83% mAP . The large performance gap between the full TriDifNet and the single-module variants indicates that RegDM and FusDM are more effective when jointly optimized within the full TriDifNet model.
Table VI also reports the inference efficiency of different variants. The lower FPS of the full TriDifNet is mainly associated with the additional iterative computation introduced by diffusion-based registration, diffusion-based fusion, and ROI-guided re-inference. This efficiency cost is a common limitation of diffusion-based registration–fusion methods [2]. In this work, the main focus is to evaluate three-task closed-loop optimization under misaligned RGB-T inputs. Improving the real-time efficiency of the diffusion-based inference pipeline will be investigated in future work.
b) Cross-Task and Internal Mechanism Ablation: We further evaluate the cross-task feedback paths and the key internal mechanisms in Table VII. Compared with the full TriDifNet, removing Det2Reg degrades both registration and detection, increasing RMSE from 10.4259 to 10.8720 and reducing mAP from 57.55% to 54.11%. This indicates that the frozen infrared-domain detector provides useful object-level semantic guidance for registration. Removing Fus2Reg causes the largest registration degradation among the feedback-path variants, with RMSE increasing to 11.0282 and SSIM decreasing to 0.8426, suggesting that fusion-to-registration structural feedback contributes to geometric consistency.
The detection-aware fusion pathway has the most direct influence on final perception. Without Det2Fus, mAP and mAP decrease from 57.55% and 26.83% to 42.03% and 18.70%, respectively. When ROI-IR Injection is further disabled, the performance further drops to 36.60% and 14.54%.
TABLE VII ABLATION STUDY ON CROSS-TASK FEEDBACK
| Index | Det2Reg | Fus2Reg | Det2Fus | ROI-IR Injection | Nash-MTL | Registration | Fusion | Detection | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RMSE↓ | NCC/CC↑ | SSIM↑ | CC↑ | UIQI↑ | P(%)↑ | R(%)↑ | mAP50(%)↑ | mAP50:95(%)↑ | ||||||
| 1 | - | ✓ | ✓ | ✓ | ✓ | 10.8720 | 0.8215 | 0.8461 | 0.9258 | 0.8447 | 71.30 | 62.77 | 54.11 | 24.73 |
| 2 | ✓ | - | ✓ | ✓ | ✓ | 11.0282 | 0.8176 | 0.8426 | 0.9263 | 0.8427 | 73.80 | 61.48 | 55.59 | 26.75 |
| 3 | ✓ | ✓ | - | ✓ | ✓ | 10.9231 | 0.8188 | 0.8448 | 0.9665 | 0.9492 | 55.17 | 52.17 | 42.03 | 18.70 |
| 4 | ✓ | ✓ | - | - | ✓ | 11.0814 | 0.8181 | 0.8424 | 0.9640 | 0.9406 | 54.92 | 47.01 | 36.60 | 14.54 |
| 5 | ✓ | ✓ | ✓ | ✓ | - | 10.9469 | 0.8196 | 0.8443 | 0.9312 | 0.8508 | 71.56 | 63.59 | 55.32 | 25.52 |
| 6 | ✓ | ✓ | ✓ | ✓ | ✓ | 10.4259 | 0.8328 | 0.8563 | 0.9264 | 0.8402 | 73.85 | 65.44 | 57.55 | 26.83 |
The variants without Det2Fus or ROI-IR Injection obtain higher fusion scores in terms of CC and UIQI, but these higher image-level scores are accompanied by a clear decline in detection performance. This trend suggests that removing detection-oriented feedback shifts the fusion branch toward weak-reference image-level similarity, rather than target-aware representation learning. Therefore, weak-reference fusion metrics do not necessarily reflect downstream task utility in the misaligned RGB-T detection setting. The performance drops caused by removing Det2Fus and ROI-IR Injection support the importance of fusion-detection coupling and ROI-level infrared injection for constructing a task-discriminative fusion representation.
Removing Nash-MTL also reduces mAP from 57.55% to 55.32%, indicating the benefit of late-stage three-branch optimization balancing among registration, fusion, and detection. Overall, the full TriDifNet achieves the best registration and detection results, supporting the complementary effects of the proposed closed-loop feedback paths and internal refinement mechanisms.
V. CONCLUSION
In this paper, we propose TriDifNet, a unified diffusion-based network for misaligned RGB-T pedestrian perception. By optimizing registration, fusion, and detection in a closed loop, TriDifNet reduces sequential error propagation and enables geometric alignment, cross-modal fusion, and task-level semantics to reinforce each other. Experiments on the KAIST multispectral pedestrian benchmark show that TriDifNet provides reliable registration and task-oriented fusion, while achieving clear improvements in end-to-end pedestrian detection over single-modality, sequential, and partially coupled baselines. Ablation studies further support the effectiveness of the cross-task feedback paths, ROI-guided infrared injection, and late-stage multi-task balancing. Future work will focus on improving inference efficiency and extending the network to broader RGB-T perception scenarios.
REFERENCES
[1] H. Xu, J. Ma, J. Yuan, Z. Le, and W. Liu, “Rfnet: Unsupervised network for mutually reinforcing multi-modal image registration and fusion,” in 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 19647–19656.
[2] W. Diao, L. Hu, K. Zhang, and L. Xiao, “Dual-conditionally guided diffusion models for fusion of unregistered multisource remote sensing images,” IEEE Transactions on Geoscience and Remote Sensing, vol. 63, pp. 1–17, 2025.
[3] H. Li, Z. Yang, Y. Zhang, W. Jia, Z. Yu, and Y. Liu, “Mulfs-cap: Multimodal fusion-supervised cross-modality alignment perception for unregistered infrared-visible image fusion,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 47, no. 5, pp. 3673–3690, 2025.
[4] D. Wang, J. Liu, L. Ma, R. Liu, and X. Fan, “Improving misaligned multi-modality image fusion with one-stage progressive dense registration,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 34, no. 11, pp. 10944–10958, 2024.
[5] J. Li, B. Gao, W. L. Woo, J. Xu, L. Liu, and Y. Zeng, “A novel multispectral fusion defect detection framework with coarse-to-fine multispectral registration,” IEEE Transactions on Instrumentation and Measurement, vol. 73, pp. 1–13, 2024.
[6] D. Wang, J. Liu, X. Fan, and R. Liu, “Unsupervised misaligned infrared and visible image fusion via cross-modality image generation and registration,” 2022. [Online]. Available: https://arxiv.org/abs/2205.11876
[7] Z. Huang, J. Liu, X. Fan, R. Liu, W. Zhong, and Z. Luo, “Reconet: Recurrent correction network for fast and efficient multi-modality image fusion,” in Computer Vision – ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23–27, 2022, Proceedings, Part XVIII. Berlin, Heidelberg: Springer-Verlag, 2022, pp. 539–555.
[8] K. Niu, C. Wang, J. Xu, J. Liang, X. Zhou, K. Wen, M. Lu, and C. Yang, "Early forest fire detection with uav image fusion: A novel deep learning method using visible and infrared sensors," IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, vol. 18, pp. 6617–6629, 2025.
[9] L. Tang, J. Yuan, and J. Ma, “Image fusion in the loop of high-level vision tasks: A semantic-aware real-time infrared and visible image fusion network,” Information Fusion, vol. 82, pp. 28–42, 2022. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1566253521002542
[10] Y. Sun, B. Cao, P. Zhu, and Q. Hu, “Detfusion: A detection-driven infrared and visible image fusion network,” in Proceedings of the 30th ACM International Conference on Multimedia, ser. MM ’22. New York, NY, USA: Association for Computing Machinery, 2022, p. 4003–4011. [Online]. Available: https://doi.org/10.1145/3503161.3547902
[11] W. Zhao, S. Xie, F. Zhao, Y. He, and H. Lu, “Metafusion: Infrared and visible image fusion via meta-feature embedding from object detection,” in 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023, pp. 13955–13965.
[12] L. Tang, H. Zhang, H. Xu, and J. Ma, “Rethinking the necessity of image fusion in high-level vision tasks: A practical infrared and visible image fusion network based on progressive semantic injection and scene fidelity,” Information Fusion, vol. 99, p. 101870, 2023. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1566253523001860
[13] Y. Zeng, T. Liang, Y. Jin, and Y. Li, “Mmi-det: Exploring multi-modal integration for visible and infrared object detection,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 34, no. 11, pp. 11198–11213, 2024.
[14] K. Hu, Y. He, Y. Li, J. Zhao, S. Chen, and Y. Kang, “Ei2det: Edge-guided illumination-aware interactive learning for visible-infrared object detection,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 35, no. 7, pp. 7101–7115, 2025.
[15] H. Fu, J. Yuan, G. Zhong, X. He, J. Lin, and Z. Li, “Cf-deformable detr: An end-to-end alignment-free model for weakly aligned visible-infrared object detection,” in Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI-24, K. Larson, Ed. International Joint Conferences on Artificial Intelligence Organization, 8 2024, pp. 758–766, main Track. [Online]. Available: https://doi.org/10.24963/ijcai.2024/84
[16] M. Yuan, Y. Wang, and X. Wei, “Translation, scale and rotation: Cross-modal alignment meets rgb-infrared vehicle detection,” 2022. [Online]. Available: https://arxiv.org/abs/2209.13801
[17] Y. Cao, X. Luo, J. Yang, Y. Cao, and M. Y. Yang, “Locality guided cross-modal feature aggregation and pixel-level fusion for multispectral pedestrian detection,” Information Fusion, vol. 88, pp. 1–11, 2022. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1566253522000549
[18] N. Chen, J. Xie, J. Nie, J. Cao, Z. Shao, and Y. Pang, "Attentive alignment network for multispectral pedestrian detection," in Proceedings of the 31st ACM International Conference on Multimedia, ser. MM '23. New York, NY, USA: Association for Computing Machinery, 2023, p. 3787–3795. [Online]. Available: https://doi.org/10.1145/3581783.3613444
[19] Y. Sun, B. Cao, P. Zhu, and Q. Hu, “Drone-based rgb-infrared cross-modality vehicle detection via uncertainty-aware learning,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 32, no. 10, pp. 6700–6713, 2022.
[20] R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer, "High-resolution image synthesis with latent diffusion models," in 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 10674–10685.
[21] C. Saharia, J. Ho, W. Chan, T. Salimans, D. J. Fleet, and M. Norouzi, "Image super-resolution via iterative refinement," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 4, pp. 4713–4726, 2023.
[22] C. Saharia, W. Chan, H. Chang, C. A. Lee, J. Ho, T. Salimans, D. J. Fleet, and M. Norouzi, “Palette: Image-to-image diffusion models,” CoRR, vol. abs/2111.05826, 2021. [Online]. Available: https://arxiv.org/abs/2111.05826
[23] B. Kawar, M. Elad, S. Ermon, and J. Song, “Denoising diffusion restoration models,” in Advances in Neural Information Processing
Systems, S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, Eds., vol. 35. Curran Associates, Inc., 2022, pp. 23 593–23 606. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2022/file/95504595b6169131b6ed6cd72eb05616-Paper-Conference.pdf
[24] B. Kim, I. Han, and J. C. Ye, “Diffusemorph: Unsupervised deformable image registration using diffusion model,” 2022. [Online]. Available: https://arxiv.org/abs/2112.05149
[25] Z. Zhao, H. Bai, Y. Zhu, J. Zhang, S. Xu, Y. Zhang, K. Zhang, D. Meng, R. Timofte, and L. Van Gool, “Ddfm: Denoising diffusion model for multi-modality image fusion,” in 2023 IEEE/CVF International Conference on Computer Vision (ICCV), 2023, pp. 8048–8059.
[26] Z. Cao, S. Cao, L.-J. Deng, X. Wu, J. Hou, and G. Vivone, “Diffusion model with disentangled modulations for sharpening multispectral and hyperspectral images,” Information Fusion, vol. 104, p. 102158, 2024. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1566253523004748
[27] S. Chen, P. Sun, Y. Song, and P. Luo, “Diffusiondet: Diffusion model for object detection,” in 2023 IEEE/CVF International Conference on Computer Vision (ICCV), 2023, pp. 19773–19786.
[28] A. Navon, A. Shamsian, I. Achituve, H. Maron, K. Kawaguchi, G. Chechik, and E. Fetaya, “Multi-task learning as a bargaining game,” arXiv preprint arXiv:2202.01017, 2022.
[29] J. Ho, A. Jain, and P. Abbeel, “Denoising diffusion probabilistic models,” in Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, and H. Lin, Eds., vol. 33. Curran Associates, Inc., 2020, pp. 6840–6851. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2020/file/4c5bcfec8584af0d967f1ab10179ca4b-Paper.pdf
[30] C. Li, D. Song, R. Tong, and M. Tang, “Multispectral pedestrian detection via simultaneous detection and segmentation,” in British Machine Vision Conference (BMVC), 2018.
[31] Y. Mo, X. Kang, S. Zhang, P. Duan, and S. Li, “A robust infrared and visible image registration method for dual-sensor uav system,” IEEE Transactions on Geoscience and Remote Sensing, vol. 61, pp. 1–13, 2023.
[32] T. Zheng, G. Dong, P. Zhang, X. He, and C. Ren, “Plug-and-play general image registration for misaligned multi-modal image fusion,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 35, no. 10, pp. 10017–10031, 2025.
[33] H. Li, T. Xu, X.-J. Wu, J. Lu, and J. Kittler, “Lrrnet: A novel representation learning guided fusion network for infrared and visible images,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 9, pp. 11040–11052, 2023.
[34] Z. Wang, A. Bovik, H. Sheikh, and E. Simoncelli, “Image quality assessment: from error visibility to structural similarity,” IEEE Transactions on Image Processing, vol. 13, no. 4, pp. 600–612, 2004.
[35] Z. Wang and A. Bovik, “A universal image quality index,” IEEE Signal Processing Letters, vol. 9, no. 3, pp. 81–84, 2002.
[36] T. Lin, M. Maire, S. J. Belongie, L. D. Bourdev, R. B. Girshick, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick, “Microsoft COCO: common objects in context,” CoRR, vol. abs/1405.0312, 2014. [Online]. Available: http://arxiv.org/abs/1405.0312
[37] J. Song, C. Meng, and S. Ermon, “Denoising diffusion implicit models,” CoRR, vol. abs/2010.02502, 2020. [Online]. Available: https://arxiv.org/abs/2010.02502

Qianchao He received the B.Eng. degree in aircraft control and information engineering from Northwestern Polytechnical University, Xi'an, China, in 2025. He is currently pursuing the M.Eng. degree in control science and engineering with the School of Automation Science and Engineering, Xi'an Jiaotong University, Xi'an, China.
His research interests include computer vision and diffusion models.

Jing Liu (Senior Member, IEEE) received the B.Sc. and M.Sc. degrees in automatic control from Northwestern Polytechnical University, Xi'an, China, in 1998 and 2000, respectively, and the Ph.D. degree in electrical and computer engineering from the National University of Singapore, Singapore, in 2007.
From 2006 to 2008, she was a Research Fellow with the Department of Electrical and Computer Engineering, National University of Singapore. She is currently a Professor with the School of Electronics and Information Engineering, Xi'an Jiaotong University, Xi'an. Her research interests include tensor decomposition, information fusion, signal processing, and applications in target detection, recognition, and tracking.

Yunhao Li received the B.Eng. degree in automation from Xi'an Jiaotong University, Xi'an, China, in 2025. He is currently pursuing the M.Eng. degree in control science and engineering with the School of Automation Science and Engineering, Xi'an Jiaotong University, Xi'an, China.
His research interests include image processing, target tracking and deep learning.

Xiaoqing Tian received the M.E. degree from Ningxia University, Yinchuan, China, in 2017, and the Ph.D. degree in control science and engineering from Xi'an Jiaotong University, Xi'an, China, in 2024. She is currently a Lecturer with the School of Electrical Engineering and Automation, Xi'an University of Science and Technology, Xi'an.
Her research interests include radar signal processing and target tracking.