TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Poly-NL: Linear Complexity Non-local Layers with Polynomials

Poly-NL: Linear Complexity Non-local Layers with Polynomials

Francesca Babiloni, Ioannis Marras, Filippos Kokkinos, Jiankang Deng, Grigorios Chrysos, Stefanos Zafeiriou

2021-07-06Semantic SegmentationInstance SegmentationFace Detection
PaperPDF

Abstract

Spatial self-attention layers, in the form of Non-Local blocks, introduce long-range dependencies in Convolutional Neural Networks by computing pairwise similarities among all possible positions. Such pairwise functions underpin the effectiveness of non-local layers, but also determine a complexity that scales quadratically with respect to the input size both in space and time. This is a severely limiting factor that practically hinders the applicability of non-local blocks to even moderately sized inputs. Previous works focused on reducing the complexity by modifying the underlying matrix operations, however in this work we aim to retain full expressiveness of non-local layers while keeping complexity linear. We overcome the efficiency limitation of non-local blocks by framing them as special cases of 3rd order polynomial functions. This fact enables us to formulate novel fast Non-Local blocks, capable of reducing the complexity from quadratic to linear with no loss in performance, by replacing any direct computation of pairwise similarities with element-wise multiplications. The proposed method, which we dub as "Poly-NL", is competitive with state-of-the-art performance across image recognition, instance segmentation, and face detection tasks, while having considerably less computational overhead.

Results

TaskDatasetMetricValueModel
Facial Recognition and ModellingWIDER Face (Medium)AP0.9571Poly-NL(ResNet-50)
Facial Recognition and ModellingWIDER Face (Easy)AP0.9637Poly-NL(ResNet-50)
Facial Recognition and ModellingWIDER Face (Hard)AP0.9276Poly-NL(ResNet-50)
Face DetectionWIDER Face (Medium)AP0.9571Poly-NL(ResNet-50)
Face DetectionWIDER Face (Easy)AP0.9637Poly-NL(ResNet-50)
Face DetectionWIDER Face (Hard)AP0.9276Poly-NL(ResNet-50)
Face ReconstructionWIDER Face (Medium)AP0.9571Poly-NL(ResNet-50)
Face ReconstructionWIDER Face (Easy)AP0.9637Poly-NL(ResNet-50)
Face ReconstructionWIDER Face (Hard)AP0.9276Poly-NL(ResNet-50)
3DWIDER Face (Medium)AP0.9571Poly-NL(ResNet-50)
3DWIDER Face (Easy)AP0.9637Poly-NL(ResNet-50)
3DWIDER Face (Hard)AP0.9276Poly-NL(ResNet-50)
3D Face ModellingWIDER Face (Medium)AP0.9571Poly-NL(ResNet-50)
3D Face ModellingWIDER Face (Easy)AP0.9637Poly-NL(ResNet-50)
3D Face ModellingWIDER Face (Hard)AP0.9276Poly-NL(ResNet-50)
3D Face ReconstructionWIDER Face (Medium)AP0.9571Poly-NL(ResNet-50)
3D Face ReconstructionWIDER Face (Easy)AP0.9637Poly-NL(ResNet-50)
3D Face ReconstructionWIDER Face (Hard)AP0.9276Poly-NL(ResNet-50)

Related Papers

SeC: Advancing Complex Video Object Segmentation via Progressive Concept Construction2025-07-21DiffOSeg: Omni Medical Image Segmentation via Multi-Expert Collaboration Diffusion Model2025-07-17SCORE: Scene Context Matters in Open-Vocabulary Remote Sensing Instance Segmentation2025-07-17Unified Medical Image Segmentation with State Space Modeling Snake2025-07-17A Privacy-Preserving Semantic-Segmentation Method Using Domain-Adaptation Technique2025-07-17SAMST: A Transformer framework based on SAM pseudo label filtering for remote sensing semi-supervised semantic segmentation2025-07-16Tomato Multi-Angle Multi-Pose Dataset for Fine-Grained Phenotyping2025-07-15U-RWKV: Lightweight medical image segmentation with direction-adaptive RWKV2025-07-15