# 4D Spatio-Temporal ConvNets: Minkowski Convolutional Neural Networks

Sparse 4D convolutions process 3D video directly, without frame-by-frame processing

Choy, Christopher, Gwak, JunYoung, Savarese, Silvio · arXiv · 2019-4-18

- **Problem** Dense 3D convolutions are costly, and 3D networks have not clearly beaten 2D ones. Dense 4D hypercube kernels also grow exponentially in parameters, so a temporal axis is hard to add.
- **Method** Minkowski convolutional networks run generalized sparse convolutions over sparse tensors, with time as a fourth axis. A hybrid kernel uses a cubic spatial part and a cross-shaped temporal part instead of a full tesseract.
- **Results** MinkowskiNet42 reached 67.9 mIoU on ScanNet at 5cm voxels, above 50.1 for 3DMV-FTSDF. On noiseless Synthia 4D, 4D MinkNet20 with TS-CRF reached 78.30 mIoU, against 76.24 for 3D MinkNet20.

## Why 3D video is hard for convolutional networks

The work targets 3D video, which is a temporal sequence of 3D scans such as depth-camera streams or LIDAR sequences. Three obstacles motivate it: 3D data often needs its own representations and processing, 3D convolutional networks have been no better than or only on par with 2D ones, and open-source libraries for large-scale 3D data are scarce.

Dense convolution scales badly with dimension. A kernel of size 5 has 25 weights in 2D, 125 in a 3D cube and 625 in a 4D tesseract, so an unrestricted 4D hypercube kernel multiplies parameters and compute without a guarantee of better accuracy.

Sparse storage addresses the empty-space problem, since most of a 3D scan or a 4D volume is empty. Only occupied coordinates and their features are kept, and outputs are computed only for chosen coordinates. The authors also argue that sparse tensors fit into existing neural network libraries, which mostly support them, so the representation stays homogeneous across the network.

## Sparse tensors and quantized input

A sparse tensor generalizes a sparse matrix to N dimensions. It keeps the coordinates of the occupied cells together with one feature vector per coordinate, and the authors use the COO format because it supports neighbourhood queries efficiently. Coordinates are stored as rows of x, y, z, t and a batch index b, and the features as rows of a matrix F.

The batch index keeps points that share a coordinate but belong to different batches apart.

Raw input becomes this form through sparse tensor quantization. Coordinates are floored after division by the voxel size, converted to hash keys, sorted and reduced so that each occupied voxel keeps one feature vector and one label. When points in the same voxel carry different labels, the voxel is marked IGNORE\_LABEL, and that voxel is ignored in the cross-entropy loss during training.

## Generalized sparse convolution

The generalized operator sums over a set of kernel offsets that is chosen per output coordinate, rather than over a fixed hypercube on an integer grid. For an output coordinate \\(u\\) in \\(C^{out}\\), the output is \\(x^{out}\_u = \\sum\_{i \\in \\mathcal{N}^D(u,C^{in})} W\_i\\, x^{in}\_{u+i}\\), where \\(\\mathcal{N}^D(u,C^{in})\\) keeps only the offsets that land on occupied input coordinates.

Input and output coordinate sets need not match, and the kernel shape is a free choice of offsets. The dense convolution is recovered when both sets are the full integer grid and the offsets form a hypercube, which makes the generalized operator a superset of the conventional ones.

Setting the output coordinates equal to the input coordinates with hypercube offsets gives the sparse submanifold convolution. Strided dense convolution follows when the coordinate sets are multiples of a natural number with hypercube offsets. Computation runs through kernel maps, which are pairs of input and output index lists for each offset.

These are needed because scattered sparse coordinates do not allow the mapping to be inferred as in a dense grid. For each offset, the algorithm multiplies the weight matrix with the gathered input features and adds the result into the gathered output features, so each offset is applied through its own kernel map.

## Pooling and architectures on sparse data

Max pooling is harder on sparse data because the number of inputs varies from output to output. The implementation sorts input indices by their output coordinate and then runs a custom CUDA kernel that takes the maximum per channel over each group.

Average and global pooling are written as sparse matrix multiplications through cuSparse, followed by division by the number of inputs per output. The authors argue that this division removes density information, so they propose sum pooling, which skips the division.

The residual network is rebuilt with generalized sparse convolutions. The first layer is a 5×5×5×1 sparse convolution in place of a 7×7 two-dimensional convolution, and the remaining layers follow the original residual architecture, with hypercross and hypercube kernels as shown for MinkowskiNet18. The U-shaped variants add strided sparse convolutions, strided sparse transpose convolutions and skip connections between layers of equal stride.

MinkowskiUNet32 is one of these variants.

## Why a hybrid kernel instead of a tesseract

A full 4D hypercube kernel grows exponentially in parameters. The authors link this to over-parametrization, overfitting, and higher compute and memory use. The hybrid kernel combines a cubic kernel over the spatial axes with a cross-shaped kernel along time. The cubic part captures local spatial geometry, while the cross-shaped part links the same spatial point across frames.

The hybrid kernel is built from arbitrary kernel offsets of the generalized sparse convolution, so no separate operator is needed. The authors report that the hybrid kernel beats the tesseract kernel in both speed and accuracy, and the accuracy comparison is given in the Synthia results below.

## Trilateral stationary CRF

Cross-entropy is applied per voxel and has no pairwise terms, so it gives no explicit incentive for consistency. The authors add a CRF whose nodes live in a 7D trilateral space made of 3D space, 1D time and 3D chromatic space. The colour axes create a gap between spatially adjacent points with different colours, which keeps label information from leaking across region boundaries.

The pairwise potential is required to be stationary, meaning it depends only on the offset between two nodes. Camera extrinsics place each node in the world coordinate system, so stationary points keep the same coordinates over time. Unlike conventional CRFs with Gaussian edge potentials and dense connections, the compatibility function is not restricted to a Gaussian.

Finding the optimum of the CRF is intractable, so a mean-field approximation factorizes the distribution. Its fixed-point update is given below, where the sum over neighbours becomes a weighted sum that the authors show is a generalized sparse convolution in 7D. \\\[ Q\_i^{+}(x\_i) = \\frac{1}{Z\_i} \\exp\\Big( \\phi\_u(x\_i) + \\sum\_{j \\in \\mathcal{N}^7(x\_i)} \\sum\_{x\_j} \\phi\_p(x\_i,x\_j)\\, Q\_j(x\_j) \\Big) \\\] Iterating this update as sparse convolutions yields the algorithm, where the unary logits from the 4D network initialize the distribution and each step applies a softmax to the unary term plus the convolved term.

The unary logits and the pairwise kernel are trained end-to-end through the unrolled layers.

## Training, metrics and datasets

The engine is written in C++ and CUDA and wrapped for PyTorch, and point clouds are quantized on the fly during data loading. Training uses Momentum SGD with a Poly scheduler from a learning rate of 1e-1, with random scaling, rotation around the gravity axis, translation, elastic distortion and chromatic jitter. Evaluation uses mIoU and mAcc, and voxel predictions are propagated to points from the nearest voxel centre.

ScanNet contains reconstructions of real rooms, and each room is fed to the network in full without cropping. Stanford 3D Indoor Spaces covers six floors of three buildings and is evaluated on Fold #1 with 5cm and 2cm voxels. RueMonge 2014 (Varcity) is cropped on the fly into temporal sequences and uses the official split.

Synthia 4D is built by back-projecting depth images from driving scenes, with 6 sequences under 9 weather conditions. Train, validation and test sequences are assigned by weather and sequence number. Because Synthia is purely synthetic, noise is added to the inputs for the noisy experiments, using elastic distortion, Gaussian noise and a chromatic shift.

## ScanNet and S3DIS results

On ScanNet, MinkowskiNet42 at 5cm voxels reached 67.9 mIoU. This is above 50.1 for 3DMV-FTSDF, which also uses 2D images, and above 52.3 for PointNet++SW. SparseConvNet reached 72.5 mIoU, marked as a post-CVPR submission in the same table.

At 2cm voxels the main table lists 73.4 mIoU for MinkowskiNet42, marked as a post-CVPR submission. The text instead reports 72.1% mIoU for a 2cm run trained for 60k iterations, and the per-class table also lists 72.1, so the two 2cm values are not the same run. The authors report a gain of +19% mIoU over the best published ScanNet works at the time of the CVPR deadline, and attribute it to network depth and fine spatial resolution.

Among the compared methods, SuperpointGraph has 58.04 mIoU and PointCNN 57.26 mIoU in the same table. The authors state a +7% mIoU gain on Stanford at the CVPR deadline.

## Synthia 4D ablation without added noise

With MinkNet20, the 3D network reached 76.24 mIoU and 89.31 mAcc. The 4D network reached 77.46 mIoU, but its mAcc was 88.013, so the gain is in mIoU rather than in mAcc. Temporal averaging on the 3D network raised its mIoU to 77.03, with mAcc 89.20.

Within the same MinkNet20 setting, the tesseract kernel reached 75.34 mIoU and 89.27 mAcc, below the 77.46 mIoU of the hybrid-kernel 4D network. The authors describe this as the hybrid kernel outperforming the tesseract kernel.

Adding TS-CRF to 4D MinkNet20 raised mIoU from 77.46 to 78.30, with mAcc 90.23. The 4D MinkNet32 with TS-CRF reached 78.67 mIoU and 90.51 mAcc.

## Robustness to noisy 4D input

On the noisy Synthia 4D data, 3D MinkNet42 reached 76.717 mIoU and 4D MinkNet42 reached 79.836 mIoU. The noisy table uses MinkNet42, which differs from the MinkNet20 backbone of the clean ablation. The 4D Tesseract MinkNet42 reached 78.871 mIoU on the same noisy data.

Temporal averaging on the noisy 3D MinkNet42 lowered mIoU from 76.717 to 75.865. The authors attribute this to the noisy input coordinates, which make averaging along time introduce noise.

The 4D network adds less than 6.4% parameters relative to the 3D network, and TS-CRF adds less than 6e-3%.

## RueMonge results and runtime

On RueMonge 2014 (Varcity) TASK3, 3D MinkNet20 reached 66.46 mIoU, 4D MinkNet20 reached 66.56 and the version with TS-CRF reached 66.59. The dataset is small, and the authors note that results saturate quickly, so the differences are small.

Runtime was measured with 3D and 4D networks, and with 4D networks plus TS-CRF, while varying voxel size and sequence length. The authors note that the 4D networks gain a little speed as temporal sequences are processed in batches, and that the gain is smaller at large voxel sizes.

## Limitations

The temporal experiments use the synthetic Synthia 4D dataset, and the noise there is simulated rather than measured. The clean kernel and TS-CRF ablation uses MinkNet20, while the noisy experiment uses MinkNet42, so the two tables are not one controlled comparison.

The 4D gain is in mIoU; 4D MinkNet20 has lower mAcc (88.013) than 3D MinkNet20 (89.31) on noiseless Synthia. On RueMonge the 4D and TS-CRF variants differ from the 3D network by very small margins, and the authors say that dataset is small and saturates.

The two ScanNet 2cm values, 73.4 and 72.1, come from different entries of the paper, and the 2cm results are post-CVPR submissions. Timing claims depend on voxel size and sequence length, and the speed gain at large voxel sizes is small according to the authors.

## Paper info

- **Authors**: Choy, Christopher, Gwak, JunYoung, Savarese, Silvio
- **Venue**: arXiv · Preprint
- **First published**: 2019-4-18
- **Added**: 2026-11-12
- **Updated**: 2019-6-13
- **Version**: v4
- **arXiv**: 1904.08755
- **Category**: cs.CV · cs.AI
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1904.08755v4) · [PDF ↗](https://arxiv.org/pdf/1904.08755v4)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Choy, Christopher, Gwak, JunYoung, Savarese, Silvio (2019). 4D Spatio-Temporal ConvNets: Minkowski Convolutional Neural Networks. arXiv:1904.08755v4. https://arxiv.org/abs/1904.08755v4

**BibTeX**

```
@misc{christopher2019spatio,
  title = {{4D Spatio-Temporal ConvNets: Minkowski Convolutional Neural Networks}},
  author = {Choy, Christopher and Gwak, JunYoung and Savarese, Silvio},
  year = {2019},
  eprint = {1904.08755},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.08755v4}
}
```

## Other paper commentary

- [Designing Network Design Spaces](https://refivu.com/en/papers/37f6e2ac-519b-4565-a6cb-673b7ed0265a-designing-network-design-spaces.md)
- [Deep metric learning using Triplet network](https://refivu.com/en/papers/f6dd7198-0b7a-4f6a-a88a-eb7bbe1ff7ee-deep-metric-learning-using-triplet-network.md)
- [Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting](https://refivu.com/en/papers/d52df827-0d8c-42c3-97e1-3063d2cc1256-autoformer-decomposition-transformers-with-auto-correlation.md)
- [DeepSurv: Personalized Treatment Recommender System Using A Cox Proportional Hazards Deep Neural Network](https://refivu.com/en/papers/e56bf111-97b6-4d99-b702-a3e324f609b2-deepsurv-personalized-treatment-recommender-system-using-a.md)
- [BinaryConnect: Training Deep Neural Networks with binary weights during propagations](https://refivu.com/en/papers/50c59bf6-7b51-443a-b99a-d2bbc087f3e9-binaryconnect-training-deep-neural-networks-with-binary.md)
- [Deep Networks with Stochastic Depth](https://refivu.com/en/papers/a740a8af-8c09-4c4a-92ca-ab98a84c56cf-deep-networks-with-stochastic-depth.md)
- [Mixed Precision Training](https://refivu.com/en/papers/65eb5ae7-5d07-475b-869d-fe6a7fb2c613-mixed-precision-training.md)
- [Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networks](https://refivu.com/en/papers/12afca27-3173-4d16-a76b-cb72a4fa0438-feature-squeezing-detecting-adversarial-examples-in-deep.md)
- [Unsupervised Image-to-Image Translation Networks](https://refivu.com/en/papers/23eee1aa-7651-4535-93bf-d37262ee5dff-unsupervised-image-to-image-translation-networks.md)
- [Methods of Hierarchical Clustering](https://refivu.com/en/papers/b67289cf-e579-4f78-a7ff-bdea1acaa376-methods-of-hierarchical-clustering.md)
- [Towards Principled Methods for Training Generative Adversarial Networks](https://refivu.com/en/papers/b0f4dfa6-159a-4785-ba9c-7a882bcab62f-towards-principled-methods-for-training-generative.md)
- [The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables](https://refivu.com/en/papers/a2b9da66-2864-4212-85c2-c935a02c48cf-the-concrete-distribution-a-continuous-relaxation-of.md)

## Terms in this paper

- [Scannet](https://refivu.com/en/terms/bef8b5634a3a-scannet)
- [variational inference](https://refivu.com/en/terms/44c66cf79542-variational-inference)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/bb10cb3b-b1cc-4119-9de1-8503fdbd27ff-4d-spatio-temporal-convnets-minkowski-convolutional-neural)
