Methods › Computer Vision › Image Feature Extractors › Non-Local Operation
Non-Local Operation
Introduced by Xiaolong Wang et al. in Non-local Neural Networks
archive 2025-07-28 Description, source and code snippet are the archive's method entry.
A Non-Local Operation is a component for capturing long-range dependencies with deep neural networks. It is a generalization of the classical non-local mean operation in computer vision. Intuitively a non-local operation computes the response at a position as a weighted sum of the features at all positions in the input feature maps. The set of positions can be in space, time, or spacetime, implying that these operations are applicable for image, sequence, and video problems.
Following the non-local mean operation, a generic non-local operation for deep neural networks is defined as:
𝕪ᵢ = 1/(𝒞(𝕩))∑_(∀j)f(𝕩ᵢ, 𝕩ⱼ)g(𝕩ⱼ)
Here i is the index of an output position (in space, time, or spacetime) whose response is to be computed and j is the index that enumerates all possible positions. x is the input signal (image, sequence, video; often their features) and y is the output signal of the same size as x. A pairwise function f computes a scalar (representing relationship such as affinity) between i and all j. The unary function g computes a representation of the input signal at the position j. The response is normalized by a factor C(x).
The non-local behavior is due to the fact that all positions (∀j) are considered in the operation. As a comparison, a convolutional operation sums up the weighted input in a local neighborhood (e.g., i − 1 ≤j ≤i + 1 in a 1D case with kernel size 3), and a recurrent operation at time i is often based only on the current and the latest time steps (e.g., j = i or i − 1).
The non-local operation is also different from a fully-connected (fc) layer. The equation above computes responses based on relationships between different locations, whereas fc uses learned weights. In other words, the relationship between xⱼ and xᵢ is not a function of the input data in fc, unlike in nonlocal layers. Furthermore, the formulation in the equation above supports inputs of variable sizes, and maintains the corresponding size in the output. On the contrary, an fc layer requires a fixed-size input/output and loses positional correspondence (e.g., that from xᵢ to yᵢ at the position i).
A non-local operation is a flexible building block and can be easily used together with convolutional/recurrent layers. It can be added into the earlier part of deep neural networks, unlike fc layers that are often used in the end. This allows us to build a richer hierarchy that combines both non-local and local information.
In terms of parameterisation, we usually parameterise g as a linear embedding of the form g(xⱼ) = W_g𝕩ⱼ , where W_g is a weight matrix to be learned. This is implemented as, e.g., 1×1 convolution in space or 1×1×1 convolution in spacetime. For f we use an affinity function, a list of which can be found here.
Papers archive 2025-07-28
30 shown of 181, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.
-
Robust Lane Detection with Wavelet-Enhanced Context Modeling and Adaptive Sampling 24 Mar 2025 · 0 repositories · arXiv:2503.18631
-
ParaGAN: A Scalable Distributed Training Framework for Generative Adversarial Networks 6 Nov 2024 · 0 repositories · arXiv:2411.03999
-
Unsupervised Panoptic Interpretation of Latent Spaces in GANs Using Space-Filling Vector Quantization 27 Oct 2024 · 1 repository · arXiv:2410.20573
-
Enhancing Tree Type Detection in Forest Fire Risk Assessment: Multi-Stage Approach and Color Encoding with Forest Fire Risk Evaluation Framework for UAV Imagery 27 Jul 2024 · 0 repositories · arXiv:2407.19184
-
A Scalable Quantum Non-local Neural Network for Image Classification 26 Jul 2024 · 1 repository · arXiv:2407.18906
-
Everything is Editable: Extend Knowledge Editing to Unstructured Data in Large Language Models 24 May 2024 · 1 repository · arXiv:2405.15349Syntology ran 5 of 12 samples · 7 unverified · 12 pointer-only (licence)
-
Deep Learning-Based CSI Feedback for XL-MIMO Systems in the Near-Field Domain 15 May 2024 · 0 repositories · arXiv:2405.09053
-
Vision-based Food Nutrition Estimation via RGB-D Fusion Network 25 Oct 2023 · 1 repository
-
Accurate and lightweight dehazing via multi-receptive-field non-local network and novel contrastive regularization 28 Sep 2023 · 0 repositories · arXiv:2309.16494
-
On quantifying and improving realism of images generated with diffusion 26 Sep 2023 · 0 repositories · arXiv:2309.14756
-
Precision-Recall Divergence Optimization for Generative Modeling with GANs and Normalizing Flows 21 Sep 2023 · 0 repositories
-
A Strategic Framework for Optimal Decisions in Football 1-vs-1 Shot-Taking Situations: An Integrated Approach of Machine Learning, Theory-Based Modeling, and Game Theory 27 Jul 2023 · 2 repositories · arXiv:2307.14732
-
Pyrus Base: An Open Source Python Framework for the RoboCup 2D Soccer Simulation 22 Jul 2023 · 1 repository · arXiv:2307.16875
-
Diffusion Models Beat GANs on Image Classification 17 Jul 2023 · 1 repository · arXiv:2307.08702
-
Diversity is Strength: Mastering Football Full Game with Interactive Reinforcement Learning of Multiple AIs 28 Jun 2023 · 0 repositories · arXiv:2306.15903
-
Rosetta Neurons: Mining the Common Units in a Model Zoo 15 Jun 2023 · 0 repositories · arXiv:2306.09346
-
Toward more accurate and generalizable brain deformation estimators for traumatic brain injury detection with unsupervised domain adaptation 8 Jun 2023 · 0 repositories · arXiv:2306.05255
-
FOOCTTS: Generating Arabic Speech with Acoustic Environment for Football Commentator 7 Jun 2023 · 0 repositories · arXiv:2306.07936
-
Action valuation of on- and off-ball soccer players based on multi-agent deep reinforcement learning 29 May 2023 · 0 repositories · arXiv:2305.17886
-
Is Centralized Training with Decentralized Execution Framework Centralized Enough for MARL? 27 May 2023 · 1 repository · arXiv:2305.17352Syntology ran 0 of 1 samples · 1 unverified · 1 pointer-only (licence)
-
Adaptive action supervision in reinforcement learning from real-world multi-agent demonstrations 22 May 2023 · 0 repositories · arXiv:2305.13030
-
An Empirical Study on Google Research Football Multi-agent Scenarios 16 May 2023 · 1 repository · arXiv:2305.09458
-
The MuSe 2023 Multimodal Sentiment Analysis Challenge: Mimicked Emotions, Cross-Cultural Humour, and Personalisation 5 May 2023 · 1 repository · arXiv:2305.03369
-
SportsMOT: A Large Multi-Object Tracking Dataset in Multiple Sports Scenes 11 Apr 2023 · 1 repository · arXiv:2304.05170
-
VARS: Video Assistant Referee System for Automated Soccer Decision Making from Multiple Views 10 Apr 2023 · 1 repository · arXiv:2304.04617
-
Towards Active Learning for Action Spotting in Association Football Videos 9 Apr 2023 · 0 repositories · arXiv:2304.04220
-
A Hybrid Multi-Scale Attention Convolution and Aging Transformer Network for Alzheimer's Disease Diagnosis 7 Apr 2023 · 1 repository
-
Exemplar-based Video Colorization with Long-term Spatiotemporal Dependency 27 Mar 2023 · 0 repositories · arXiv:2303.15081
-
Embedding Contextual Information through Reward Shaping in Multi-Agent Learning: A Case Study from Google Football 25 Mar 2023 · 0 repositories · arXiv:2303.15471
-
Deep Generative Multi-Agent Imitation Model as a Computational Benchmark for Evaluating Human Performance in Complex Interactive Tasks: A Case Study in Football 23 Mar 2023 · 0 repositories · arXiv:2303.13323
Tasks archive 2025-07-28
20 shown of 197 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.
Usage over time archive 2025-07-28
Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).
Categories archive 2025-07-28
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections