NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Large-kernel Attention for Efficient and Robust Brain Lesion Segmentation

Liam Chalcroft, Ruben Lourenço Pereira, Mikael Brudfors, Andrew S. Kayser, Mark D'Esposito, Cathy J. Price, Ioannis Pappas, John AshburnerarXiv 2023

TL;DR

Researchers have developed a hybrid "Large-Kernel Attention" (LKA) model that combines the computational efficiency of CNNs with the global perspective of Vision Transformers for 3D brain lesion segmentation. Their architecture, MDUNet, proves significantly more robust to variations in MRI sequences and scanners than traditional CNNs while using fewer parameters and less compute than state-of-the-art transformers.

What Problem Does This Paper Address?

Accurately segmenting brain lesions (like strokes or tumors) is critical for clinical tasks like radiotherapy planning and prognosis. Traditionally, Convolutional Neural Networks (CNNs) like the U-Net have dominated this field. However, CNNs have a "local" bias; they are excellent at identifying textures but struggle with long-range spatial relationships—such as comparing one side of the brain to the other to detect asymmetry.

Vision Transformers (ViTs) were introduced to solve this by modeling global interactions. Unfortunately, ViTs are computationally expensive, especially for high-resolution 3D medical images, and they lack the helpful "inductive biases" (like translation invariance) that make CNNs so effective at processing images. The authors seek a "middle ground": a model that has a massive receptive field like a transformer but remains as efficient and easy to train as a CNN.

Methods

The core innovation is the Large-Kernel Attention (LKA) module. Instead of using a massive, computationally prohibitive 3D convolutional kernel (e.g., $21 \times 21 \times 21$), the authors decompose the operation into three efficient steps:

  1. Local Context: A small $5^3$ depth-wise convolution.
  2. Global Context: A $7^3$ depth-wise convolution with a dilation of 3.
  3. Channel Mixing: A $1 \times 1 \times 1$ pointwise convolution.

This decomposition allows the model to achieve a receptive field equivalent to a $21^3$ kernel with a fraction of the parameters. The authors integrated these LKA units into a U-Net-style architecture, creating two variants: LKA-E (LKA in the encoder only) and LKA-ED (LKA in both the encoder and decoder).

Fig. 1: Summary of LKA block 1d used as direct drop-in for convolution block in U-Net, and its components LKA 1a, attention 1b and ConvFF 1c.

Datasets

The models were evaluated on three major brain imaging benchmarks:

  • ISLES: Multi-modal MRI for binary stroke lesion segmentation.
  • ATLAS: T1-weighted MRI for binary stroke lesion segmentation.
  • BraTS: Multi-modal MRI for multi-class glioblastoma tumor segmentation.
  • Out-of-Distribution (OOD) Testing: To test robustness, models trained on ATLAS were tested on entirely different MRI sequences (T2, DWI, FLAIR) from the ISLES 2015 dataset.

Key Insights and Ideas

  • Effective Receptive Field (ERF): Qualitative analysis showed that LKA models develop a much larger receptive field much earlier in the network compared to standard CNNs (nnUNet) and even window-based transformers (Swin-UNETR). This allows the model to "see" the whole brain almost immediately.
  • Shape vs. Texture Bias: CNNs are notoriously biased toward local textures. If the contrast of an MRI changes slightly, a CNN often fails. LKA models, like transformers, exhibit a "shape bias," focusing on the global structure of the lesion, which makes them far more robust to "domain shift" (changes in scanner or sequence).
  • Efficiency without Sacrifice: The LKA-ED model actually requires less compute (measured in GFLOPS) than a standard U-Net while maintaining competitive or superior performance.
Fig. 2: ERFs for models with the ATLAS validation set. Subfigures show the ERFs of the final pre-normalisation layer of each encoder stage.

Key Results

  • Superior Robustness: In the domain shift experiments, the standard CNN (nnUNet) performance collapsed when faced with new MRI sequences. In contrast, the LKA models remained competitive with the much heavier Swin-UNETR transformer.
  • ISLES Performance: LKA-E and LKA-ED significantly outperformed both the CNN and Transformer baselines, particularly in the F1 score (0.681 for LKA-E vs. 0.579 for nnUNet).
  • BraTS Performance: LKA-E outperformed the baselines in nearly every metric for tumor sub-section segmentation, showing its versatility across different types of pathology.
  • Efficiency: LKA-ED uses only ~33M parameters compared to Swin-UNETR’s ~62M, and it uses ~413 GFLOPS compared to nnUNet’s ~479 GFLOPS.
Fig. 3: Performance on new MRI sequences for LKA and baseline models.

Limitations and Future Work

While LKA models showed strong performance, the authors noted a few areas for improvement:

  • Hyperparameter Sensitivity: The optimal kernel size and dilation for LKA are not yet fully understood and likely vary by task.
  • Patch Embeddings: The role of patch embeddings (a concept borrowed from transformers) in an all-convolutional model like this one requires further study to see if they are truly necessary.
  • Specific Modalities: On the ATLAS dataset (isotropic T1w images), the traditional CNN still held a slight edge in Dice score, suggesting that the benefits of global attention might be modality-dependent.

Summary updated

BibTeX
@misc{chalcroft2023large,
  author = {Liam Chalcroft and Ruben Lourenço Pereira and Mikael Brudfors and Andrew S. Kayser and Mark D'Esposito and Cathy J. Price and Ioannis Pappas and John Ashburner},
  title = {{Large-kernel Attention for Efficient and Robust Brain Lesion Segmentation}},
  year = {2023},
  eprint = {2308.07251},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.07251},
}
Figure