---
title: 'UniCT Depth: Unified Event-Image Depth Estimation'
url: https://www.emergentmind.com/topics/unict-depth
type: topic
---

# UniCT Depth: Unified Event-Image Depth Estimation

Searching arXiv for the target paper to ground the article in the current record.
UniCT Depth, introduced in "UniCT Depth: Event-Image Fusion Based Monocular Depth Estimation with Convolution-Compensated ViT Dual SA Block" [2507.19948], is a supervised monocular depth estimation method for synchronized RGB images and event-camera data. It predicts a dense depth map \(D \in \mathbb{R}^{H\times W}\) from an RGB intensity frame \(I \in \mathbb{R}^{H\times W \times 3}\) and a time-synchronized event representation, with the central design goal of unifying CNN and Transformer mechanisms for local detail modeling, long-range context aggregation, and cross-modal fusion. The method is built around a U-Net-like encoder–decoder with a Convolution-compensated ViT Dual SA block, abbreviated CcViT-DA, whose three principal components are Context Modeling Self-Attention (CMSA), Modal Fusion Self-Attention (MFSA), and Detail Compensation Convolution (DCC) [2507.19948].

## 1. Problem formulation and motivation

UniCT Depth addresses supervised monocular depth estimation in the paired-modality setting \((I_k, E_k) \mapsto \hat D_k\), where the predicted depth \(\hat D_k\) is trained to match ground-truth depth \(D_k^*\) at each time index \(k\) [2507.19948]. The paper motivates this formulation by arguing that pure RGB monocular depth methods, whether CNN-based or Transformer-based, are fragile in low light or night scenes, high dynamic range scenes, fast motion or motion blur, and scenes containing occlusions or large depth disparities. In those conditions, images can become noisy, saturated, blurred, or locally ambiguous, especially near depth discontinuities.

Event cameras provide a complementary sensing modality. Each event is represented as \(e=(x,y,t,p)\), where \((x,y)\) is the pixel location, \(t\) is the event time, and \(p \in \{-1,+1\}\) is the polarity. The paper identifies their strengths as very high temporal resolution at the \( \mu s \) scale, high dynamic range, and low motion blur, but also emphasizes their weaknesses: sparsity, spurious noise, and lack of absolute appearance or texture. As a result, event-only depth estimation often yields semi-dense or noisy depth and struggles on textureless regions, fine structural details, and static scene elements that do not generate events in a short window [2507.19948].

The paper treats event–image fusion as the natural remedy to these complementary failure modes. Images provide rich spatial structure and texture, while events contribute robust dynamic and HDR information. The difficulty is not the desirability of fusion, but the structure of fusion itself. UniCT Depth is explicitly designed to address four stated problems: occlusions and depth discontinuities, modality alignment despite disparate sensing characteristics, limited receptive fields in CNN-based fusion, and shallow or inefficient modality interaction in Transformer-based fusion [2507.19948].

## 2. Input representation and network architecture

The network takes two inputs: an RGB image \(I\) and a preprocessed event voxel grid \(\mathbf{V}\), and produces a dense depth map \(\hat D\) [2507.19948]. Events are converted into a spatio-temporal voxel grid with \(B\) temporal bins, preserving temporal distribution and reducing motion blur. For an event \(e_i=(x_i,y_i,t_i,p_i)\) in a time window \([t_0,t_0+\Delta T]\), the normalized time coordinate is

\[
t_i^* = \frac{B-1}{\Delta T}(t_i - t_0),
\]

and the voxel grid is defined as

\[
\mathbf{V}_k(x,y,t) = \sum_i p_i\,\delta(x-x_i, y-y_i)\,\max\{0, 1-|t-t_i^*|\}.
\]

This yields \(\mathbf{V}_k \in \mathbb{R}^{H\times W \times B}\), aligned to the RGB resolution. In the experiments, \(B=5\) and RGB inputs are resized to \(224 \times 224\) [2507.19948].

The preprocessor uses separate initial convolutions for events and images, producing \(F^E_0\) and \(F^I_0\), then concatenates them and applies another convolution to form a shared full-resolution feature map \(F_0\). This early unification is a defining architectural choice: after the preprocessor, the encoder is shared rather than split into modality-specific branches, so all later stages operate on fused features rather than independently processed streams [2507.19948].

The encoder contains two residual blocks followed by four CcViT-DA blocks. Feature resolutions progress through

\[
\left\{\tfrac{1}{2},\, \tfrac{1}{4},\, \tfrac{1}{8},\, \tfrac{1}{16},\, \tfrac{1}{32}\right\},
\]

with downsampling inside each CcViT-DA block implemented by a \(3\times 3\) patch-embedding convolution with stride 2. The decoder mirrors the encoder using five decoder blocks, each with transpose convolution of kernel size 3 and stride 2, skip-connected encoder features via channel concatenation, and convolutional refinement. Decoder resolutions are

\[
\left\{\tfrac{1}{16},\, \tfrac{1}{8},\, \tfrac{1}{4},\, \tfrac{1}{2},\, 1\right\},
\]

and the final layer outputs a pixel-wise full-resolution depth prediction \(\hat D\) [2507.19948].

## 3. Convolution-compensated ViT Dual SA block

The CcViT-DA block is the architectural core of UniCT Depth. For an input feature map \(F \in \mathbb{R}^{H \times W \times C}\), it performs patch embedding, tokenization with positional embedding, parallel processing through CMSA and MFSA, and local refinement through DCC before merging the results [2507.19948]. The block is intended to answer three complementary questions: where spatial context should be aggregated, which channels or fused modality patterns should be emphasized, and how local convolutional priors should be reintroduced.

CMSA is a window-based multi-head self-attention mechanism designed for spatial dependency modeling. Tokens are partitioned into non-overlapping windows, and self-attention is computed independently within each window. This reduces complexity from \(O(P^2)\) to \(O(PP_w)\), where \(P\) is the total number of tokens and \(P_w\) the tokens per window. The paper characterizes CMSA as suitable for depth discontinuities, occlusions, and local depth variation because it maintains spatial attention within moderate-sized neighborhoods while avoiding the expense of global token interactions [2507.19948].

MFSA is designed for global channel-wise dependencies and modal fusion. Instead of attending spatially, it groups channels and performs attention along the channel dimension, effectively aggregating global information per channel group. The method uses a single attention head and grouped channels, giving complexity \(O(P C C_g)\) rather than \(O(P^2 C)\). The paper’s interpretation is explicitly modality-aware: MFSA can upweight event-dominated channels in dark regions and image-dominated channels in well-lit regions, because both modalities have already been integrated into the shared representation before the block [2507.19948].

The merge stage combines CMSA and MFSA outputs with DCC-derived weighting. The paper states that the CMSA and MFSA outputs are dot-multiplied with the DCC output as weights, then concatenated and passed through a merge layer such as a \(1\times 1\) convolution with normalization and nonlinearity. In consequence, the block is neither a conventional Transformer encoder nor a simple CNN–Transformer hybrid in parallel; it is a modality-fusion block in which spatial attention, channel attention, and convolutional detail compensation are explicitly coupled [2507.19948].

## 4. Detail Compensation Convolution and local structural recovery

The DCC block is the “convolution-compensated” component of CcViT-DA. Its purpose is to restore local inductive bias, strengthen texture details, and enhance edge representations, compensating for the tendency of pure attention mechanisms to over-smooth or miss fine boundaries [2507.19948].

Given a downsampled feature map \(F' \in \mathbb{R}^{H'\times W' \times C'}\), DCC first computes global max pooling and global average pooling over channels, producing two single-channel spatial maps \(M\) and \(A\). These are concatenated into a 2-channel tensor \(S_0\), processed by a \(1\times 1\) convolution and sigmoid to obtain a spatial attention map

\[
S = \sigma(\mathrm{Conv}_{1\times 1}(S_0)) \in \mathbb{R}^{H'\times W' \times 1}.
\]

The map is applied multiplicatively,

\[
F'' = F' \odot S,
\]

and then refined through two further convolution layers with activations to produce a one-channel detail map \(D\). This detail map is dot-multiplied with the outputs of CMSA and MFSA, so high-frequency local cues modulate both the spatial-attention and channel-attention branches [2507.19948].

Within the overall fusion strategy, DCC anchors the attention outputs in convolutional evidence. The paper explicitly places DCC inside every CcViT-DA encoder block, not as a post hoc decoder refinement. This matters because the detail weighting affects the internal fused representation at multiple scales rather than only the final upsampled output. The ablation discussion reports that enabling both DCC branches significantly reduces errors versus attention alone while maintaining similar FPS [2507.19948].

## 5. Training objective and empirical performance

The method is trained fully supervised on MVSEC and DENSE, with no self-supervised photometric or consistency losses [2507.19948]. For predicted depth \(D_k\) and ground truth \(D_k^*\), the residual is defined as

\[
R_k(x,y) = D_k^*(x,y) - D_k(x,y),
\]

and the loss is

\[
L = \frac{1}{n}\sum_{(x,y)} \bigl(R_k(x,y) + R_k(x,y)^2\bigr),
\]

where \(n\) is the number of valid ground-truth pixels. The paper describes this as effectively an L1+L2 penalty that encourages both small absolute errors and discourages large outliers [2507.19948].

Implementation is in PyTorch on \(2 \times\) NVIDIA RTX 3090. On MVSEC, training uses learning rate \(2\times 10^{-4}\), AdamW, MultiStepLR with decay factor 0.5 at epochs 10, 20, and 30, batch size 16, 50 epochs, input resolution \(224\times 224\), event voxel bins \(B=5\), and equal L1 and L2 loss weights. On DENSE, the learning rate is \(2\times 10^{-3}\), with other settings similar unless otherwise specified [2507.19948].

On MVSEC, UniCT Depth achieves the best mean Avg.Error across all cutoffs and sequences. At 10 m, 20 m, and 30 m, the reported mean Avg.Error values are 1.09, 1.84, and 2.71, respectively. On Outdoor day1, the paper reports Abs.Rel 0.221, RMSE log 0.320, and \(\delta < 1.25 = 0.665\); on Outdoor night1, it reports Abs.Rel 0.311 and RMSE log 0.463. The summary given in the paper is that UniCT obtains the best results in 10 out of 12 scores across day and night [2507.19948].

On DENSE, the reported Avg.Error values are 0.26 at 10 m, 0.70 at 20 m, and 1.56 at 30 m, all best in the table. Abs.Rel is 0.18, identified as second-best and slightly above DPT at 0.17, while RMSE log is 0.36, described as close to the best value of 0.32. The qualitative analysis states that UniCT produces more complete and accurate depth for trees, poles, and traffic lights, and differentiates foreground objects from background more clearly, especially in occluded regions [2507.19948].

## 6. Comparative position, efficiency, and limitations

The paper positions UniCT Depth between two families of prior fusion approaches. Against CNN-based fusion methods such as RAMNet, EMoDepth, and Mixed-EF2DNet, it argues that pure convolutions are strong for local semantic feature learning but weak for long-range dependencies, occlusion relationships, and large depth disparities. Against Transformer-based fusion approaches, including event Transformers that process events independently, SRFNet, and a single global Transformer encoder over concatenated tokens, it argues that prior methods either fuse too late or incur expensive, noisy global attention with limited modality specificity [2507.19948].

UniCT Depth’s answer to these limitations is fourfold: a unified encoder after the preprocessor, dual self-attention in the form of CMSA and MFSA, convolution compensation through DCC, and efficiency through window-based and grouped attention. The ablations quantify these trade-offs. A pure convolution variant is fastest at 47 FPS but has the highest error. Standard global self-attention is the slowest at 13 FPS. MFSA+CMSA yields the best accuracy among the ablations without DCC and runs at about 25 FPS, while the full CcViT-DA configuration gives the best Avg.Error across all distances, also at about 25 FPS [2507.19948].

The modality ablation is equally diagnostic. Using only events performs better at night scenes, using only images performs better in day scenes, and using both yields the best averaged and per-scene accuracy. This directly supports the method’s central claim that event–image fusion is beneficial when the architecture can exploit complementary sensing properties at depth discontinuities, under adverse illumination, and in the presence of motion blur [2507.19948].

The paper also makes several limitations explicit or implicit. UniCT Depth relies on supervised training with depth ground truth, uses a relatively moderate input resolution of \(224\times 224\), and fixes the event voxel representation to \(B=5\) bins. The paper notes that scaling to larger resolutions may require careful tuning of window sizes and grouping, and that extreme motion or very long exposures might need more sophisticated event representations [2507.19948]. These constraints delimit the scope of the current formulation, but they do not alter its central significance: UniCT Depth is a unified CNN–Transformer event–image fusion architecture in which spatial context modeling, channel-wise modal fusion, and local convolutional compensation are explicitly co-designed for dense monocular depth estimation.

Source: https://www.emergentmind.com/topics/unict-depth