Papers
Topics
Authors
Recent
Search
2000 character limit reached

PGDM-Loss: Prior-Guided Masking for Depth

Updated 14 July 2026
  • The paper introduces PGDM-Loss, a novel method using a dynamic mask based on reprojection error to discount unstable regions during training.
  • It integrates cost volume auto-masking and spectral entropy priors to refine multi-frame depth estimation in dynamic scenes.
  • Empirical results on benchmarks like KITTI and Cityscapes show improved depth accuracy with lower Absolute Relative errors and higher δ1 metrics.

Searching arXiv for the cited paper and closely related methods to ground the article with current identifiers. arXiv search query: (Chen et al., 2024) Prior-Guided Dynamic Mask Loss (PGDM-Loss) denotes a loss-design perspective for self-supervised depth estimation in dynamic scenes in which priors about pixel trustworthiness are used to mask or weight photometric supervision. In the formulation made explicit by D3^3epth, the central prior is a reprojection-error-based dynamic mask that removes pixels with jointly high reprojection error across adjacent source frames from the photometric loss; this is complemented by an inter-frame appearance-consistency prior for cost-volume construction and a spectral-entropy prior for uncertainty-aware depth fusion (Chen et al., 2024). Within this framework, PGDM-Loss is not a separate network component but a way of organizing supervision so that regions inconsistent with the rigid-motion assumption contribute less, or not at all, to self-supervised training.

1. Formal setting within self-supervised monocular depth estimation

D3^3epth is built directly on the standard self-supervised monocular scheme of Zhou et al. and Monodepth2, then modifies the loss with a dynamic mask (Chen et al., 2024). Each training sample is a triplet of consecutive monocular images,

It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},

with ItI_t as the target frame and IsI_s, s{t1,t+1}s\in\{t-1,t+1\}, as source frames. Supervision is purely photometric via view synthesis, and no ground-truth depth is used.

The model employs a DepthNet and a PoseNet in a standard self-supervised pipeline. DepthNet contains a MonoDepth branch that predicts single-frame depth DMonoD_{\text{Mono}}, a MultiDepth branch that predicts multi-frame depth DMultiD_{\text{Multi}} via cost volume, and a Spectral Entropy Uncertainty (SEU) module used to fuse the two predictions. The paper also follows a teacher–student distillation scheme from Xiang et al. [33], although the pose estimation network is not detailed in the provided description (Chen et al., 2024).

Target-view synthesis is defined as

Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,

where KK is the camera intrinsics, 3^30 projects pixels from the target frame into the source frame using depth and pose, and 3^31 denotes differentiable sampling. The photometric error is

3^32

Following Monodepth2, the baseline photometric term is the per-pixel minimum reprojection loss

3^33

In the PGDM-Loss interpretation, this baseline is not discarded; rather, it is reweighted spatially by priors that identify where rigid-view synthesis is unreliable. The significance of the formulation is therefore not a change in the self-supervised paradigm itself, but a change in which pixels are permitted to define the photometric training signal.

2. Reprojection-error prior and dynamic-mask construction

The central prior in D3^34epth is that pixels with high reprojection error in both adjacent source views are likely to correspond to dynamic objects, occlusion regions, or strong photometric violations, which are precisely the locations where self-supervised geometry from rigid motion is unreliable (Chen et al., 2024). For each source frame 3^35, the method computes a synthesized image and a per-pixel reprojection error: 3^36

3^37

Stacking the two source-view errors yields

3^38

where the two channels correspond to 3^39 and It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},0. For each channel It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},1, the spatial dimensions are flattened,

It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},2

and a quantile threshold It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},3 is computed,

It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},4

with It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},5 controlling the cutoff; the example given is It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},6, corresponding to the top 20% highest reprojection errors per source view.

Binary high-loss masks are then defined as

It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},7

The dynamic mask is

It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},8

This mask is explicitly a keep-mask. A pixel is retained when at least one source view does not exhibit extremely high error, and it is excluded only when both source views are highly inconsistent. Pixelwise, It1, It, It+1,I_{t-1},\ I_t,\ I_{t+1},9 denotes a dynamic, occluded, or otherwise outlier-like location as judged by the dual-view reprojection prior, while ItI_t0 indicates that the pixel remains in photometric supervision (Chen et al., 2024).

The thresholding strategy is adaptive rather than based on a fixed absolute error. This matters because it makes the mask depend on the current reprojection-error distribution in each batch item. A plausible implication is that the mask is less sensitive to scale shifts in photometric error than a fixed-threshold alternative, although the provided description does not report a direct comparison.

3. Loss integration and the PGDM-Loss formulation

The total objective in DItI_t1epth is

ItI_t2

where each branch-specific loss takes the form

ItI_t3

The masked photometric term is written explicitly as

ItI_t4

The smoothness term is the standard edge-aware regularizer,

ItI_t5

A defining property of this PGDM-Loss instantiation is that the smoothness term is not masked. The paper states that it still regularizes the depth even in regions not supervised photometrically (Chen et al., 2024). Thus, the loss does not simply discard dynamic or unreliable regions altogether; it suppresses their direct photometric contribution while preserving regularization over the full field.

The practical effect is stated directly: high-error pixels in both source views are removed from photometric supervision, preventing them from pulling the network toward incorrect depths while still retaining gradients in well-behaved pixels (Chen et al., 2024). This also clarifies a common misunderstanding. The dynamic mask is not an additional prediction head and not an explainability mask learned from scratch; it is a binary gating variable derived from reprojection statistics.

From the more general PGDM-Loss perspective provided in the source, the same pattern can be abstracted as

ItI_t6

with ItI_t7 interpreted as a prior-guided weight. In DItI_t8epth, the realized form is binary and driven primarily by reprojection-error quantiles (Chen et al., 2024).

4. Auxiliary priors beyond the loss-level dynamic mask

DItI_t9epth supplements the loss-level dynamic mask with two additional priors: a cost volume auto-mask based on inter-frame appearance consistency, and a spectral-entropy prior over cost-volume reliability (Chen et al., 2024). These are not identical to the dynamic mask, but they belong to the same broader PGDM-Loss design logic in which priors determine which evidence should influence depth estimation.

For the multi-frame branch, features from the reference and source views are used to construct a cost volume over depth or disparity hypotheses. Before cost-volume construction, the method defines a pixelwise equality mask

IsI_s0

and then

IsI_s1

After downsampling according to feature scale,

IsI_s2

the mask is applied elementwise to feature maps,

IsI_s3

IsI_s4

The stated prior intuition is that pixels whose appearance is unchanged between frames carry no useful parallax, for example because the camera is stationary or the region is co-moving with the camera. The method therefore ignores them in cost-volume matching by zeroing the corresponding features (Chen et al., 2024). Importantly, this mask does not appear explicitly in the loss; it modifies the features that produce IsI_s5, and thereby influences the losses on IsI_s6 and IsI_s7.

The third prior is spectral entropy. Let IsI_s8 denote a cost probability tensor. The SEU module applies a Fourier transform,

IsI_s9

computes the magnitude spectrum s{t1,t+1}s\in\{t-1,t+1\}0, normalizes it into a distribution s{t1,t+1}s\in\{t-1,t+1\}1, and defines spectral entropy as

s{t1,t+1}s\in\{t-1,t+1\}2

A small neural network maps s{t1,t+1}s\in\{t-1,t+1\}3 to an uncertainty map s{t1,t+1}s\in\{t-1,t+1\}4, which is then used for depth fusion: s{t1,t+1}s\in\{t-1,t+1\}5

The interpretation given in the source is that high spectral entropy indicates a more complex or noisy pattern and hence higher uncertainty, whereas low spectral entropy indicates a more structured signal and lower uncertainty (Chen et al., 2024). This module is trained implicitly: there is no explicit loss directly on s{t1,t+1}s\in\{t-1,t+1\}6 or s{t1,t+1}s\in\{t-1,t+1\}7; instead, gradients pass through the fused depth term because s{t1,t+1}s\in\{t-1,t+1\}8 is supervised by the same masked photometric-plus-smoothness loss.

5. Generalization as a prior-guided masking framework

The source explicitly relates Ds{t1,t+1}s\in\{t-1,t+1\}9epth to the notion of a “Prior-Guided Dynamic Mask Loss” and identifies three priors: a photometric reprojection error prior, an inter-frame appearance consistency prior for the cost volume, and a spectral entropy prior over cost-volume reliability (Chen et al., 2024). All three are described as priors on which pixels and which depth hypotheses are trustworthy, implemented as masks or weights inside the training objective.

Under this interpretation, a generalized PGDM-Loss can combine multiple prior-guided factors,

DMonoD_{\text{Mono}}0

where the reprojection prior may follow DDMonoD_{\text{Mono}}1epth’s binary dual-view rule, the appearance prior may down-weight pixels with unchanged raw RGB values, and the spectral prior may modulate confidence in multi-frame supervision through spectral entropy. The source also notes possible alternatives, such as soft masks, learned thresholds, temporal smoothing of masks, and spatial regularization, but presents these as generalization directions rather than as implemented components of DDMonoD_{\text{Mono}}2epth (Chen et al., 2024).

Several design axes are made explicit. First, there is a binary-versus-soft choice. DDMonoD_{\text{Mono}}3epth uses a binary dynamic mask DMonoD_{\text{Mono}}4 and a binary cost-volume auto-mask. The source notes that a PGDM-Loss could instead use soft masks, for example via a sigmoid of normalized reprojection error, in order to down-weight rather than fully ignore suspect pixels. Second, there is a static-versus-adaptive threshold choice. DDMonoD_{\text{Mono}}5epth uses quantile-based adaptive thresholds DMonoD_{\text{Mono}}6, which depend on the current error distribution. Third, there is a consistency choice: the implemented method handles each training sample independently, whereas a more advanced PGDM-Loss could impose temporal or spatial regularity on the mask.

The source also situates DDMonoD_{\text{Mono}}7epth relative to existing strategies. Monodepth2 uses minimum reprojection plus auto-masking to handle occlusions and static pixels, but can fail in dynamic scenarios where both reprojection errors are high. DDMonoD_{\text{Mono}}8epth adds the dynamic mask as a complement: when both views are bad, the contribution is suppressed entirely (Chen et al., 2024). The source further contrasts this with explainability masks in Zhou et al., which are learned mask networks; DDMonoD_{\text{Mono}}9epth instead uses hand-crafted priors based on reprojection, appearance consistency, and spectral entropy.

6. Empirical behavior, implementation details, and limitations

The implementation details reported for DDMultiD_{\text{Multi}}0epth are directly relevant to the PGDM-Loss interpretation. The architecture uses a DepthNet with a standard encoder–decoder backbone from Xiang et al. [33]. The multi-frame branch uses a cost volume constructed between DMultiD_{\text{Multi}}1 and an adjacent frame, with features masked by the cost-volume auto-mask. The SEU module is a small network that takes the spectral entropy map as input and outputs the uncertainty map DMultiD_{\text{Multi}}2 (Chen et al., 2024).

For the dynamic mask, the reported hyperparameter is DMultiD_{\text{Multi}}3, corresponding to the top 20% highest reprojection errors per source view. On KITTI, the dynamic mask is applied from epoch 0; on Cityscapes, it is applied from epoch 1 to allow initial stabilization. Training uses Adam with learning rate DMultiD_{\text{Multi}}4 for the teacher and DMultiD_{\text{Multi}}5 for the student, with a 10DMultiD_{\text{Multi}}6 decay schedule, batch size 12, and 20 epochs on KITTI and 5 epochs on Cityscapes (Chen et al., 2024).

The empirical results support the claim that the dynamic-mask prior is most consequential in scenes rich in dynamics. On KITTI, dynamic objects are stated to be rare, approximately DMultiD_{\text{Multi}}7 of pixels, so improvements are modest but still SOTA or near-SOTA. On Cityscapes, DDMultiD_{\text{Multi}}8epth reduces AbsRel to DMultiD_{\text{Multi}}9 and raises Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,0 to Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,1, outperforming several dynamic-aware baselines (Chen et al., 2024).

The ablation study on Cityscapes isolates the contribution of the individual priors. For single-frame inference, the baseline is AbsRel Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,2, Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,3 Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,4; adding DM yields AbsRel Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,5, Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,6 Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,7; adding CAM yields AbsRel Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,8; adding SEU yields AbsRel Ist=IsProj(Dt, Tts, K),I_{s \rightarrow t} = I_s\left\langle \text{Proj}(D_t,\ T_{t \rightarrow s},\ K) \right\rangle,9; and the full single-frame DKK0epth model yields AbsRel KK1, KK2 KK3. For multi-frame inference, the baseline is AbsRel KK4, KK5 KK6; adding DM yields AbsRel KK7, KK8 KK9; adding CAM yields AbsRel 3^300; adding SEU yields AbsRel 3^301; combining DM and CAM yields AbsRel 3^302, 3^303 3^304; and the full multi-frame D3^305epth model yields AbsRel 3^306, 3^307 3^308, the best result in the reported table (Chen et al., 2024). The FFT ablation further reports AbsRel 3^309, 3^310 3^311 without FFT and AbsRel 3^312, 3^313 3^314 with FFT.

The advantages reported by the authors are that the dynamic mask provides a simple but robust prior-guided mask based purely on reprojection-error statistics without extra networks, and that CAM and SEU incorporate multi-frame and frequency-domain priors without inference-time overhead (Chen et al., 2024). The limitations are equally explicit: high reprojection error is not uniquely caused by dynamics, since textureless areas, strong illumination changes, and motion blur can also produce high loss; the dynamic mask may therefore suppress some static regions that are merely difficult to reconstruct. The authors state that future work will focus on better distinguishing high-loss regions caused by dynamics from inherently hard regions.

These observations define the scope of PGDM-Loss as exemplified by D3^315epth. Its operative principle is not that every high-error region is dynamic, but that self-supervised photometric learning in dynamic scenes benefits when such regions are treated as unreliable unless corroborated by stronger geometric or appearance-based priors (Chen et al., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Prior-Guided Dynamic Mask Loss (PGDM-Loss).