Spatially-Adaptive Gradient Re-parameterization for 3D Large Kernel Optimization

Ho Hin Lee, Quan Liu, Shunxing Bao, Yuankai Huo, Bennett Allan Landman

Introduction: The Challenge of 3D Global Context

In 3D medical imaging modalities like CT and MRI scans, capturing "global context" is essential. Differentiating a malignant tumor from a benign cyst often requires the model to analyze the surrounding anatomy. To achieve this broad perspective, researchers typically rely on two architectures: Vision Transformers (ViTs) and Large Kernel CNNs.

While ViTs excel at modeling long-range dependencies, their self-attention mechanisms become computationally expensive and memory-intensive when applied to 3D volumes. Large kernel CNNs—utilizing massive kernels such as $21 \times 21 \times 21$—offer a more efficient, scalable alternative. However, they introduce a significant bottleneck: optimization instability.

The Root of the Problem

When naively scaling up a 3D convolutional kernel, models frequently fail to converge or hit an artificial performance ceiling. The authors of this paper identified the underlying cause: standard training paradigms treat every voxel within a large kernel equally.

This uniform treatment ignores the natural spatial bias of Effective Receptive Fields (ERFs). In reality, the center of a kernel is fundamentally more important for early, local feature learning, while the distant edges are responsible for gradually incorporating broader global context.

Methodology: Rep3D and Receptive Bias Modeling

To solve this optimization bottleneck, the authors introduce Rep3D, a framework built on a technique called Low-Rank Receptive Bias Modeling (LRBM).

Rather than training a static large kernel directly, Rep3D employs a lightweight "generator" network during the training phase. This generator produces a spatially-adaptive modulation mask guided by a distance-decay prior—essentially a heat map where the center is the most active.

  • Training Phase: The generator adaptively scales the gradient updates across the kernel. This allows the center to converge quickly on local features, while the edges slowly learn to capture global context.
  • Inference Phase: Utilizing structural re-parameterization, the modulation mask is permanently fused into the kernel weights once training is complete. The generator is entirely discarded, leaving behind a "plain" CNN that is highly efficient and easy to deploy.

This approach captures the optimization benefits of complex multi-branch architectures (like RepVGG) without the structural overhead of maintaining multiple paths during training.

Key Insights

  • Spatially Variable Learning Rates: The authors theoretically demonstrate that popular multi-branch training tricks (e.g., running a $3 \times 3$ and a $21 \times 21$ kernel in parallel) are effectively just indirect methods of assigning a higher learning rate to the center of the kernel. Rep3D achieves this directly.
  • Mimicking Human Vision: The "diffusion" pattern of the ERF—where influence originates at a central focal point and spreads outward—mirrors how human vision processes spatial frequencies.
  • The "Plain" Advantage: By integrating a learnable spatial prior, Rep3D proves that a simple, plain encoder can outperform much heavier architectures. The historical failure of large kernels was an optimization problem, not a lack of capacity.

Empirical Results

Rep3D was rigorously evaluated across five diverse 3D medical segmentation benchmarks: KiTS21 (kidney/tumor), MSD Pancreas, MSD Hepatic Vessel, and AMOS22 (both CT and MRI modalities).

The framework consistently established new state-of-the-art benchmarks:

  • Superior Accuracy: On the KiTS21 dataset, Rep3D achieved an average Dice score of 0.736, delivering a notable 5.39% improvement in tumor segmentation over the previous 3D UX-Net baseline.
  • Outperforming Transformers: Despite utilizing a simpler convolutional backbone, Rep3D outperformed popular transformer-based models like SwinUNETR and UNesT-B on the AMOS-CT and AMOS-MRI benchmarks.
  • Inference Efficiency: Rep3D successfully provided a massive $21^3$ receptive field while maintaining inference latency comparable to transformers with much smaller window sizes.

Limitations and Future Directions

While Rep3D elegantly resolves the optimization instability of large kernels, the raw memory cost of 3D large convolutions remains substantial. Training a $21 \times 21 \times 21$ kernel demands significant GPU VRAM, which inherently limits the batch sizes that can be utilized during training.

Furthermore, the distance-decay prior relies somewhat on voxel spacing (the physical resolution of the medical scan). Although the model demonstrated robustness across different spacings, developing a explicitly "spacing-aware" generator represents a promising avenue for future research. The authors also plan to investigate combining Rep3D with large-scale self-supervised pre-training to determine if these spatial priors can be learned even more effectively from massive datasets of unlabeled medical images.

Summary updated

BibTeX
@inproceedings{lee2026spatially,
  author = {Ho Hin Lee and Quan Liu and Shunxing Bao and Yuankai Huo and Bennett Allan Landman},
  title = {{Spatially-Adaptive Gradient Re-parameterization for 3D Large Kernel Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=yUvMzLLyfE},
}
Figure