---
title: "Scaling Local Self-Attention for Parameter Efficient Visual"
description: "How HaloNet scales local self-attention for visual recognition, improves parameter efficiency, and trades spatial symmetry for practical speed."
canonical: "https://research.elamur.ai/free/en/papers/vaswani-2021-scaling-local-self-attention-parameter/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/vaswani-2021-scaling-local-self-attention-parameter/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Scaling Local Self-Attention for Parameter Efficient Visual Backbones

# Scaling Local Self-Attention for Parameter Efficient Visual Backbones

Paper · 2021 · Ashish Vaswani, Prajit Ramachandran, Aravind Srinivas et al.

**Authors:** [Ashish Vaswani](https://md.research.elamur.ai/free/en/authors/ashish-vaswani/), [Prajit Ramachandran](https://md.research.elamur.ai/free/en/authors/prajit-ramachandran/), Aravind Srinivas, [Niki Parmar](https://md.research.elamur.ai/free/en/authors/niki-parmar/), [Blake A. Hechtman](https://md.research.elamur.ai/free/en/authors/blake-hechtman/) and [Jonathon Shlens](https://md.research.elamur.ai/free/en/authors/jonathon-shlens/) · **Year:** 2021 · **Venue:** IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[**453** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3135921327) · [IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings](https://openalex.org/S4210176548) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2103.12731)
- [DOI 10.1109/cvpr46437.2021.01270](https://doi.org/10.1109/cvpr46437.2021.01270)
- [arXiv 2103.12731](https://arxiv.org/abs/2103.12731)
- [OpenAlex](https://openalex.org/W3135921327)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Scaling Local Self-Attention for Parameter Efficient Visual Backbones

How HaloNet scales local self-attention for visual recognition, improves parameter efficiency, and trades spatial symmetry for practical speed. · about 36 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A visual recognition system needs to combine information from different parts of an image. Convolutions do this through learned filters that are reused across locations. Self-attention offers another approach: the contribution of a nearby feature can depend on the image content itself. The difficulty is making that flexibility affordable. Looking everywhere is expensive, while gathering a separate neighborhood around every pixel can consume too much memory. This paper develops HaloNet, a family of visual backbones built around an efficient form of local self-attention, and studies how to scale them beyond comparisons with conventional ResNet baselines.

The central operation groups query locations into blocks. Each block reads from a shared surrounding region, including a border called a halo. Sharing this region avoids repeatedly gathering almost the same information for neighboring queries. The authors also remove the masks that would restrict every query to an individually centered window. This gives queries access to more of the already gathered region, but makes their outputs depend in part on their position within a block. The operation therefore gives up exact equivariance to arbitrary pixel translations. A second change performs downsampling inside attention by computing fewer queries, rather than calculating a full-resolution output and reducing it afterwards.

These changes support a hierarchy of image features at progressively smaller spatial resolutions. HaloNet retains the residual backbone structure familiar from convolutional networks, while replacing the main operations that mix spatial information. On ImageNet, the resulting family matches or slightly exceeds EfficientNet at comparable parameter counts. The strongest reported member, H7, reaches 84.9% top-1 accuracy on the ImageNet validation set and 74.7% on ImageNet V2. The ImageNet training uses no larger-dataset pretraining. Separate transfer experiments start from ImageNet-21k and report favorable accuracy and inference-speed comparisons with ViT and BiT. Initial detection and instance-segmentation experiments also improve strong convolutional baselines by introducing attention near the end of the backbone.

The conclusion is about several distinct tradeoffs, not a universal replacement for convolution. Pure attention backbones remain slower to train than corresponding EfficientNets in the reported measurements. Hybrids that keep convolutions in early stages offer a better practical balance. The controlled studies also show that attention benefits from larger neighborhoods, responds strongly to regularization, and does not inherit every useful convolutional add-on equally well. The paper’s broader contribution is to connect the mathematical appeal of local attention with the data layout, neighborhood gathering, and architectural decisions needed to make it competitive.

### Ideas worth borrowing

Shared neighborhoods. Adjacent queries often need much of the same surrounding information. HaloNet gathers that information for a whole block instead of treating every query as an independent memory-access problem. The reusable principle is to identify overlap in the data consumed by nearby computations and organize execution around that overlap. It can matter whenever an algorithm appears cheap in arithmetic but repeatedly copies or rearranges similar inputs. The relevant unit of optimization may be a group of outputs rather than an individual output.

Use the work already performed. In the blocked implementation, attention masks discard connections after the shared region has already determined much of the computation. Removing those restrictions enlarges the usable neighborhood without adding the corresponding gathering work. This is a useful question for other constrained architectures: does a restriction save actual execution cost, or does it merely suppress results that the implementation has effectively paid to calculate? HaloNet tests the answer experimentally rather than assuming that the stronger spatial symmetry must be preferable.

Reduce outputs before expensive processing. The downsampling layer keeps the same input neighborhood but subsamples the query locations. It therefore avoids producing outputs that a later pooling operation would immediately compress. This principle applies when the next stage needs a reduced representation and the costly operation can be evaluated directly at the required output locations. The important condition is that reducing the queries must preserve the information the downstream task needs. Here, the authors report unchanged accuracy alongside lower arithmetic cost in the downsampling layers.

Separate parameter cost from execution cost. Enlarging an attention neighborhood barely changes the projection parameters, yet it increases the number of interactions that must be evaluated. HaloNet uses that distinction to explore [efficient architectures and compression](https://md.research.elamur.ai/free/en/topics/efficient-models/): a parameter budget can be spent differently from a runtime or activation-memory budget. The same distinction is useful when comparing systems that store similar numbers of learned values but organize computation differently. A small parameter count is evidence about storage and capacity allocation; it is not sufficient evidence about speed.

Retest inherited components. Techniques developed for convolution do not contribute equally when the spatial primitive changes. Label smoothing and RandAugment help HaloNet more than the matched ResNet comparison, whereas Squeeze-and-Excitation together with SiLU/Swish-1 helps it less. The transferable lesson is to treat a familiar training recipe as a collection of hypotheses. Components may complement one primitive and partly duplicate another. Controlled additions are more informative than carrying the entire recipe into a new architecture and attributing the outcome to its central operation.

Allocate primitives by stage. High-resolution layers and low-resolution layers present different computational conditions. The paper finds a useful balance by retaining convolution early and using attention later, where fewer spatial positions make attention easier to afford. This suggests a broader design practice: place an operation where its distinctive capability is valuable relative to its execution cost. Architectural consistency is not itself an objective. A backbone can use different forms of processing at different resolutions while preserving a coherent feature hierarchy.

### How Mova uses it

For Mova, the small transparent language system written in Rust, the strongest connection is an engineering principle rather than a demonstrated language result. HaloNet studies image neighborhoods, visual feature hierarchies, and image-recognition benchmarks. It does not establish that its architecture improves language processing, and there is no documented Mova implementation of halo attention to describe. Its relevance is therefore a set of concrete possibilities that would need separate implementation and evaluation.

One possibility is to organize local contextual processing around shared regions. If a future Mova component compares nearby textual positions with overlapping context, it could gather a region once for a group of queries. The image-specific square geometry would need to become a sequence-appropriate arrangement. The reusable idea is the sharing of context access, not the direct reuse of a visual block shape. Such a component could expose its query group, surrounding context, and permitted interactions explicitly, which would fit a transparent implementation.

The halo also suggests a clear way to think about boundaries. Processing independent chunks is convenient, but it can separate neighboring items that ought to interact. A surrounding context region allows information to cross a chunk boundary without requiring every query to inspect the entire input. In a language system, this would be a design hypothesis about local context. The paper supplies visual evidence that isolated blocks can lose accuracy; it supplies no evidence that a particular textual halo would preserve syntactic, semantic, or discourse relationships.

The implementation work is relevant even without adopting attention. HaloNet avoids repeatedly converting features between layouts and uses an existing optimized operation to gather data. Mova could apply the corresponding questions to its Rust components: which representation should persist between stages, which conversions are necessary, and which intermediate outputs are immediately discarded? These are possible engineering uses of the paper’s reasoning. They do not imply that Mova already uses HaloNet’s blocked representation or its accelerator-specific gathering technique.

The paper also offers a useful standard for evaluating a small system. Learned parameter count, working memory, arithmetic, and elapsed time describe different constraints. If Mova adopts a new contextual operation, reporting only its compactness would leave important questions unanswered. A reviewable comparison would state what is stored, what context is read, which task is evaluated, and what happens to runtime. HaloNet’s own results make this distinction concrete: favorable parameter efficiency coexists with a training-speed disadvantage for its pure attention backbones.

Finally, the treatment of spatial symmetry provides a caution about assumptions. HaloNet benefits from relaxing a property that initially seems desirable, but only under its particular training and evaluation conditions. Mova could borrow the practice of testing such assumptions individually. It could not borrow the conclusion that positional restrictions are generally unnecessary. Language order and image translation are different problems, and the paper does not test their relationship.

### The problem and its context

#### Why a better spatial primitive was not enough

The paper starts from a contrast between the dominant ways of processing language and images. The [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) had made self-attention central to sequence processing, while convolutions remained the usual basis of visual backbones. In the authors’ account, convolution suits images because local patterns such as edges and textures recur across spatial locations. A filter can learn such a pattern and be applied repeatedly throughout an image.

Self-attention changes how those local inputs are combined. Instead of choosing all mixing weights solely through a fixed learned filter, it computes interactions using the current features. The surroundings of an image location can therefore change which neighboring locations matter. The paper illustrates the distinction through objects with different appearances: the content around a ball and around an orange can induce different attention weights even when the same learned projections are used.

Another attraction is the cost of enlarging the receptive field. A receptive field is the input region that can influence an output. With an ordinary dense convolution, increasing the filter’s spatial extent requires more learned weights. In the attention formulation studied here, the main query, key, and value projections do not grow with the neighborhood. Only the positional component changes with spatial extent, and its parameter contribution is relatively small.

That property makes attention attractive for large images, but it does not make large neighborhoods computationally free. More candidate neighbors mean more query–key comparisons and more weighted aggregation. Global attention becomes especially demanding at high spatial resolution. The paper therefore focuses on local attention: each query reads a restricted region, retaining content-sensitive interactions without requiring every location to interact directly with every other location.

Earlier Stand-Alone Self-Attention, abbreviated SASA, had already replaced the spatial convolutions in a ResNet-like backbone with local attention. According to the paper, this improved the ResNet comparison while reducing parameters and floating-point operations. Yet beating a conventional baseline was not the same as matching the strongest convolutional families. HaloNet’s target is the latter comparison.

#### Scaling as an architectural question

The authors identify scaling as the missing step. Strong convolutional systems had benefited from decisions about depth, width, resolution, and architecture. Their examples include [EfficientNet](https://md.research.elamur.ai/free/en/papers/tan-2019-efficientnet-rethinking-model-scaling-convolutional/), work on [transferable image architectures](https://md.research.elamur.ai/free/en/papers/zoph-2017-learning-transferable-architectures-scalable-image/), and [network design spaces](https://md.research.elamur.ai/free/en/papers/radosavovic-2020-designing-network-design-spaces/). These precedents motivate studying attention as a family of scalable backbones rather than as an isolated layer substitution.

The distinction matters because a new primitive changes the economics of the surrounding architecture. Attention heads have a cost that depends on spatial resolution. Enlarging the neighborhood affects computation differently from widening the projected values. A downsampling method that is acceptable for one primitive may waste work for another. Components that improve convolution may offer less benefit when attention already contains related forms of multiplicative interaction.

HaloNet consequently retains a familiar residual hierarchy while questioning several of its settings. The [ResNet architecture](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/) supplies stacked residual bottleneck blocks. A bottleneck block changes channel width around a central spatial operation, and a residual connection carries information around the block. Keeping this structure makes it possible to study the effect of attention without simultaneously inventing an entirely different backbone organization.

The hierarchy also serves tasks beyond classification. Object detection and instance segmentation require features suitable for objects of different sizes. The authors preserve multiple spatial scales instead of using a single-resolution sequence throughout the network. Downsampling becomes part of the attention design, not merely an external operation added after it.

#### Why implementation belongs in the scientific argument

The paper emphasizes that convolution already had mature implementations on GPUs and TPUs. It cites advances in algorithms, structural variants, and software, including [Caffe](https://md.research.elamur.ai/free/en/papers/jia-2014-caffe-convolutional-architecture-fast-feature/) and [cuDNN](https://md.research.elamur.ai/free/en/papers/chetlur-2014-cudnn-efficient-primitives-deep-learning/). Its point is that a primitive’s practical performance reflects an accumulated implementation history as well as its mathematical definition.

Local attention faced an immediate difficulty: gathering neighborhoods. A library can expose an efficient convolution without materializing every local patch as a separate user-visible object. The local attention implementations discussed in the paper instead need to arrange neighboring features explicitly before attention can operate on them. A straightforward arrangement duplicates data heavily.

This creates a gap between operation counts and usable systems. An attention layer may have attractive theoretical arithmetic yet fail to scale because intermediate storage is too large or because data formatting dominates execution. The authors treat this as a design problem substantial enough to shape the attention rule itself.

Their solution relaxes exact translation equivariance. Equivariance means that translating an input produces a corresponding translation of the output. A pixel-centered local rule can preserve this property because every location sees the same relative neighborhood. HaloNet permits the neighborhood to depend on block membership, trading some symmetry for a representation that maps more effectively to hardware.

The empirical question is whether that trade harms recognition. The paper finds that its unmasked blocked operation improves accuracy in the tested setting. The authors suspect that image shifts and crops used during augmentation reduce the importance of enforcing the symmetry exactly. That is an interpretation of the results, not a separately established causal explanation.

#### The attention lineage described by the paper

The related-work discussion traces attention through sequence tasks, including [neural machine translation](https://md.research.elamur.ai/free/en/papers/bahdanau-2014-neural-machine-translation-jointly-learning/) and [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/). For vision, it notes the use of attention over image features in [Show, Attend and Tell](https://md.research.elamur.ai/free/en/papers/xu-2015-show-attend-tell-neural-image/). It also connects attention to non-local means, a method that forms weighted combinations of image pixels.

The paper distinguishes its objective from patch-based ViT in [An Image Is Worth 16x16 Words](https://md.research.elamur.ai/free/en/papers/dosovitskiy-2020-image-worth-16x16-words-transformers/). In the comparison described by the authors, ViT had shown strong results after pretraining on larger classification datasets. HaloNet initially asks whether a multiscale attention backbone can compete when trained directly on ImageNet. Larger-dataset transfer appears later as a separate experiment.

Other cited approaches use spatial downsampling, combine attention with convolutional features, or organize non-global interactions differently. The paper treats these as related directions rather than claiming that haloing exhausts the possible efficient attention designs. Its specific contribution concerns local neighborhoods, their implementation, and the scaling of the resulting visual backbone.

### The method, step by step

#### Start with a common description of spatial mixing

The authors first put convolution and attention into the same mathematical frame. An input image representation has height, width, and channels. At each spatial location, the operation combines feature vectors from a neighborhood to produce an output vector.

```
yᵢⱼ = Σ₍ₐ,ᵦ₎∈𝒩 f(i, j, a, b) xₐᵦ
```

Here, xₐᵦ is the input feature vector at row a and column b. The output yᵢⱼ belongs to row i and column j. The set 𝒩 contains the neighboring locations considered for that output. The function f supplies the linear weighting applied to a neighbor’s feature vector. The summation combines the transformed contributions.

The input has H rows, W columns, and cᵢₙ channels; the output at a location has cₒᵤₜ channels. As a result, f returns a transformation between the input and output channel spaces. This common description isolates the main question: how is the contribution from a particular neighbor determined?

For a convolution, the answer depends on relative position.

```
fᶜᵒⁿᵛ(i, j, a, b) = Wₐ₋ᵢ,ᵦ₋ⱼ
```

The matrix Wₐ₋ᵢ,ᵦ₋ⱼ is the learned filter weight associated with the neighbor’s displacement from the output location. The differences a−i and b−j specify that displacement. The same matrix is reused wherever that relative offset occurs. The image content changes the input values, but it does not select a new filter for each location.

Attention instead uses the content to determine a scalar weight for each neighbor. It begins with learned projections of the feature vectors.

```
qᵢⱼ = W_Q xᵢⱼ
```

The vector qᵢⱼ is the query at the output location. W_Q is the learned query transformation, shared across spatial locations. The query expresses what information that location will seek from its neighborhood.

```
kₐᵦ = W_K xₐᵦ
```

The vector kₐᵦ is the key for a candidate neighboring location. W_K is the shared key transformation. Comparing a query with a key produces a content-dependent compatibility score.

```
vₐᵦ = W_V xₐᵦ
```

The vector vₐᵦ is the value that the neighbor contributes after weighting. W_V is the learned value transformation. Separating keys from values allows the representation used to decide relevance to differ from the representation being aggregated.

#### Combine appearance with relative geometry

A visual neighborhood has spatial structure. The paper therefore uses relative positional embeddings, following the line of work represented by [relative position representations](https://md.research.elamur.ai/free/en/papers/shaw-2018-self-attention-relative-position-representations/).

```
pᵢⱼ(a, b) = softmax₍ₐ,ᵦ₎(qᵢⱼᵀ kₐᵦ + qᵢⱼᵀ rₐ₋ᵢ,ᵦ₋ⱼ)
```

The scalar pᵢⱼ(a, b) is the attention weight assigned by query location i,j to neighbor a,b. The superscript T denotes a transpose, so each product is a dot product. The vector rₐ₋ᵢ,ᵦ₋ⱼ represents the neighbor’s relative spatial displacement. Softmax normalizes the scores across the candidate locations in the neighborhood.

The first dot product measures a relationship between image features: the query is compared with the neighbor’s key. The second measures a relationship between the query content and spatial displacement. Geometry therefore participates in deciding relevance rather than simply being attached to the output afterward.

The corresponding spatial weighting function is:

```
fˢᵉˡᶠ⁻ᵃᵗᵗ(i, j, a, b) = pᵢⱼ(a, b) W_V
```

The scalar pᵢⱼ(a, b) scales the shared value transformation W_V. Unlike the convolutional matrix associated with an offset, this scalar can change from one image location to another because it depends on the current query and key features.

The attention output can then be written directly.

```
yᵢⱼ = Σ₍ₐ,ᵦ₎∈𝒩 softmax₍ₐ,ᵦ₎(qᵢⱼᵀ kₐᵦ + qᵢⱼᵀ rₐ₋ᵢ,ᵦ₋ⱼ) vₐᵦ
```

The output yᵢⱼ is the sum of neighboring values vₐᵦ, each multiplied by its normalized attention weight. All other symbols retain the meanings above. This equation describes an attention head. Multiple heads repeat the operation with different learned projections, providing several ways of mixing information in parallel.

The authors use this formulation to explain attention as a source of spatially varying filters. The underlying projections are shared, but the effective weights depend on local content. This is a more precise claim than saying that attention simply sees farther than convolution. Its distinction concerns how information is selected as well as how much information is available.

#### Understand which parameters grow with the neighborhood

The query, key, and value transformations do not depend on the neighborhood’s spatial size. Enlarging the region therefore leaves the main projection matrices unchanged. Relative positional embeddings do depend on the spatial extent, but the appendix describes a factorized construction with a small parameter contribution.

The relative embeddings are separated along height and width. Within a head, part of the channel representation serves each spatial direction. Their parameters are also shared across heads. For a fixed head dimension of 16, the appendix gives:

```
Nᵣ = 2(k−1) × 16
```

Nᵣ is the parameter count attributed to the relative embeddings in this appendix calculation. The symbol k denotes the attention-window size used in that discussion. The value 16 is the fixed dimension per head. The factorized spatial construction is what keeps the positional component small.

The appendix compares this with the projection parameters.

```
Nᵣ / Nₚ = [2(k−1) × 16] / (3d²)
```

Nₚ is the combined parameter count of the query, key, and value projections under the appendix’s equal-width comparison. The symbol d is the attention-layer channel width, and each projection contributes d² parameters. The expression shows why the relative embeddings can remain a small fraction of the learned transformations.

This is a parameter argument. It does not remove the cost of evaluating additional interactions. The paper explicitly says that attention computation rises quadratically with the window’s side length. HaloNet uses larger neighborhoods as a useful scaling direction while still treating their execution cost as a practical constraint.

#### Gather neighborhoods for blocks

The next step changes how local attention is organized. Gathering a separate square neighborhood around every pixel repeats much of the same data. Neighboring windows overlap heavily, so their storage and movement should be shared.

HaloNet divides the feature map into non-overlapping query blocks. Each block has side length b. A halo of width h is gathered around it, extending the source region beyond the query block. Queries come from the central block; keys and values come from the larger gathered region.

```
s = b + 2h
```

The symbol s is the side length of the shared source region. The block side length is b, and h is the halo width on each side. The expression describes the neighborhood shape used in the paper’s blocking construction.

The architecture illustration uses an input with spatial shape [4, 4], query blocks of size 2, and halo width 1. Each query block therefore reads a surrounding [4, 4, c] region, with c denoting channels. The output retains the query block’s spatial arrangement. Boundary padding supplies the surrounding positions where the source region extends beyond the available feature map.

For an input of height H and width W, blocking produces groups indexed by H/b and W/b. Each group can run attention against its own gathered region in parallel. The block becomes the unit of neighborhood preparation, while the individual query positions still receive their own attention weights and outputs.

From image features to a HaloNet prediction The steps in order.

The blocked formulation also clarifies the extremes. If the query block covers the entire spatial map, the construction becomes global attention. If the block contains an individual position, it approaches per-position neighborhood gathering. HaloNet works between those extremes, choosing a sharing arrangement that balances memory and computation.

#### Remove the centered-window masks

Blocking alone does not require changing which neighbors each query may use. The SASA implementation described by the authors also groups work into blocks, then uses attention masks to reproduce an individually centered square window.

For its 7×7 centered neighborhood, the cited configuration uses a halo of 3. The larger gathered region contains positions that some queries are prohibited from reading. Those prohibitions preserve the centered rule, but they do not eliminate all the work associated with the blocked implementation.

HaloNet removes the masks. Every query can use the shared source region gathered for its block. The receptive field therefore becomes larger than the masked alternative while using the same block-and-halo arrangement. The key point is that the extra connections come from a region already present in the implementation.

The cost is dependence on block membership. A location near a block boundary has an asymmetric relationship to the shared region. Translate the image and that location can occupy a different position inside a block, changing the surrounding information it can access. The operation preserves the corresponding block-aligned symmetry, but not exact equivariance to every pixel shift.

The authors adopt this change because the measured accuracy improves. They do not claim that translation equivariance is mathematically undesirable. Their evidence supports a narrower conclusion: in the tested training setup, access to the larger shared neighborhood is more useful than enforcing the centered mask.

#### Downsample through the queries

A multiscale backbone reduces spatial resolution as it progresses. One possible implementation computes attention at the original resolution and then uses strided average pooling. HaloNet instead retains the gathered source neighborhood while sub-sampling query positions.

The layer therefore asks fewer questions of the same local memory. Its output resolution follows the query resolution. It does not need to create every fine-resolution output before reducing the representation.

The authors report that this change leaves accuracy unaffected and lowers FLOPs in the downsampling layers by 4×. That claim concerns those layers, instead of the entire backbone. The overall speed improvement also depends on neighborhood gathering, formatting, and the distribution of work across stages.

This design preserves a distinction between the resolution of the output and the extent of the available input context. Reducing the number of output positions does not require reducing the gathered region in the same way. That is why striding can save work without simply shrinking what each remaining query can inspect.

#### Keep the blocked representation alive

The implementation avoids repeatedly restoring the usual image layout after attention. Once features have been blocked, the within-block spatial positions are flattened into a sequence. Subsequent operations, including batch normalization, are adapted to that representation.

```
X_blocked ∈ ℝ^(B × H/b × W/b × b² × c)
```

X_blocked denotes the blocked feature tensor. B is batch size, H and W are the feature-map height and width, b is the block side length, and c is channel width. The b² dimension contains the flattened positions within a query block. The spatial block indices remain separate dimensions.

The paper calls this persistent blocking. Its purpose is to avoid paying for reshape and formatting operations between layers. The representation is restored only at the end of the network rather than repeatedly throughout it.

Halo gathering also works directly with the blocked arrangement. The implementation uses 3D convolutions as data-gathering operations rather than building the regions through slicing and concatenation. These convolutions serve an implementation role: their use does not change the central claim that attention supplies the backbone’s main spatial interactions.

Together with attention downsampling, the formatting improvements produce training-step speedups of up to 2× in the reported TPU v3 measurements. The authors leave fused operations and improved overlap between memory access and computation for future investigation.

#### Build a scalable residual hierarchy

HaloNet places these attention layers inside a residual bottleneck backbone. The design keeps multiscale stages, with local attention at larger spatial resolutions and, typically, global attention when the feature maps have become small enough.

Several settings become scaling dimensions: input image size, query-block size, halo width, attention output width, bottleneck width, the number of blocks in a selected group, and the width of a final channel projection. Larger members can add a final 1×1 convolution before global average pooling, following the architectural example discussed for EfficientNet.

The number of heads across the stages is fixed at (4, 8, 8, 8). The smaller head allocation early in the hierarchy reflects the expense of attention at higher resolutions. Reported attention neighborhoods range from 14×14 with b=8 and h=3 to 18×18 with b=14 and h=2.

The authors deliberately keep block and halo settings homogeneous across layers within an architecture. This simplifies the family, but it is not presented as an optimal design. They suggest that attention-specific architecture design and accelerator-aware search could improve on a structure inherited largely from convolution.

#### Train the classification family

The main ImageNet experiments use a batch size of 4096. The main experimental description specifies a learning rate of 1.6, warmed up linearly over 10 epochs and then reduced with cosine decay. Training lasts 350 epochs and uses Nesterov’s accelerated gradient.

Regularization includes [dropout](https://md.research.elamur.ai/free/en/papers/srivastava-2014-dropout-simple-way-prevent/), weight decay, RandAugment, and [stochastic depth](https://md.research.elamur.ai/free/en/papers/huang-2016-deep-networks-stochastic-depth/). Dropout and stochastic depth act at different levels of the network; the paper includes them as parts of the training recipe rather than attributing the final accuracy to attention alone. The architecture studies also motivate label smoothing and SiLU/Swish-1 in the family.

The appendix discusses an end-of-training overfitting problem in larger members. Its response is to stop cosine annealing at a small non-zero fraction of the original rate rather than taking it all the way to zero. The appendix also gives classification learning-rate details that do not align straightforwardly with the main description. These settings should be read as reported, rather than silently combined into an invented unified schedule.

The authors evaluate the parameters obtained at the end of training. They also tune regularization settings for the baselines. That matters because the comparison is between complete trained systems, including their training procedures, rather than between isolated mathematical operators under an untouched default recipe.

### Experiments and results

#### ImageNet classification from scratch

The main classification benchmark is [ImageNet ILSVRC-2012](https://md.research.elamur.ai/free/en/papers/russakovsky-2014-imagenet-large-scale-visual-recognition/). The central metric is top-1 accuracy: whether the highest-ranked predicted class matches the target class. HaloNet members H0–H7 are constructed by growing the architectural settings described above.

The principal comparison is with EfficientNet at similar parameter counts. The paper reports that HaloNet lies at approximately the same level or slightly above it on that accuracy–parameter relationship, while surpassing the other compared families. Image resolutions are chosen to be comparable to the corresponding EfficientNet settings, with HaloNet training reaching 600×600 images.

H7 achieves 84.9% top-1 accuracy on the ImageNet validation set. Its ImageNet V2 top-1 accuracy is 74.7%. The authors additionally report a -0.5% deviation relative to the linear fit from the cited ImageNet V2 analysis. These are separate evaluation conditions; the ImageNet V2 result should not be read as another measurement on the original validation images.

The important training condition is that the family is trained directly on ImageNet. The paper’s claim is not that attention requires large external pretraining to become competitive. Instead, sufficiently developed local attention can reach the strong convolutional comparison under this benchmark’s direct-training setting.

The exact configuration and accuracy rows for the full family are not available in the numerical table material carried by the paper’s text. The family-level comparison is therefore best reported in the authors’ qualitative terms, with H7’s explicitly stated accuracy as the main numerical endpoint. Assigning exact values to every plotted architecture would go beyond the stated evidence.

#### Controlled comparisons use a stronger ResNet baseline

The more focused architecture studies compare HaloNet-50 with ResNet-50. HaloNet-50 keeps the ResNet layer allocation and channel widths, replacing the spatial convolutions with local attention. This creates a more controlled comparison than contrasting completely different backbone families.

The tuned ResNet-50 baseline reaches 77.6% accuracy in the paper’s ImageNet study. The authors contrast this with the 76.3% figure reported in the original ResNet work. The distinction is important: the attention results are not evaluated solely against an older, weaker training recipe.

HaloNet-50 has about 18.0 million parameters, while ResNet-50 has about 25.5 million. The study trains both for 150 epochs using 256×256 images. Its learning rate is 0.1. The usual HaloNet-50 attention setting uses b=8 and h=3, with 16 channels per head.

These experiments examine components rather than simply declaring a winner between architectures. The paper asks how regularization, activation functions, channel attention, resolution, positional encoding, and spatial neighborhoods change the results. That structure is what allows the later ablations to support design conclusions.

#### Regularization improves the attention comparison more

Label smoothing changes the training targets from a fully concentrated class assignment to a softened distribution. RandAugment varies training images through an augmentation policy. The paper evaluates their combined addition to the study baselines.

ImageNet classification study, top-1 accuracy gain from label smoothing and RandAugment The same regularization additions produce a larger gain for HaloNet.

**The numbers**

| System or setting | reported top-1 accuracy gain % |
| --- | --- |
| ResNet-50 | 0.8 |
| HaloNet-50 (this paper) | 1.3 |

The reported gain is 1.3% for HaloNet and 0.8% for ResNet. These are improvements within the component study, not the final absolute accuracies of the H-series family. They also describe the additions together, so the result does not separately quantify how much comes from label smoothing and how much comes from RandAugment.

The appendix adjusts weight decay according to whether RandAugment is used. It reports 0.00004 for the augmented settings and 0.00008 otherwise, noting that the latter value appeared harmful to ResNet-50 when combined with RandAugment. This detail shows why a fair baseline requires attention to interactions within the recipe.

#### Convolutional architecture additions transfer less strongly

The paper also adds Squeeze-and-Excitation and SiLU/Swish-1. Squeeze-and-Excitation supplies a channel-attention mechanism, while SiLU/Swish-1 is the activation discussed in the method study. Their combined contribution is markedly different from the regularization result.

ImageNet classification study, top-1 accuracy gain from SE and SiLU/Swish-1 These architectural additions help the convolutional comparison more than HaloNet.

**The numbers**

| System or setting | reported top-1 accuracy gain % |
| --- | --- |
| ResNet-50 | 1.3 |
| HaloNet-50 (this paper) | 0.4 |

HaloNet improves by 0.4%, whereas ResNet improves by 1.3%. The result is useful because the component pair had been developed and validated in convolutional settings. The paper does not assume that the same pair must offer equal benefit after the spatial primitive changes.

The authors interpret the smaller HaloNet gain as potentially reflecting overlap with interactions already present in attention. That explanation remains a hypothesis. The measured fact is the unequal contribution of the combined additions in the study.

#### Larger-dataset transfer

The transfer experiment pretrains a widened H4 architecture on ImageNet-21k and then performs [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) on ImageNet. ImageNet-21k contains 14.2 million annotated images and 21k labels in the paper’s description. This is a different experimental regime from training the main family directly on ImageNet.

The widened backbone uses a base width of 128. Its bottleneck setting changes from 3.0 to 4.0, the extra final 1×1 convolution is removed, and the second stage grows from 3 layers to 4. A hybrid counterpart uses convolutions in the early stages. For the comparison with BiT, those convolutional stages omit Squeeze-and-Excitation.

Pretraining runs for 90 epochs, using batches of 4096. The base learning rate is 0.16, with 2 warmup epochs followed by cosine decay. The paper reports weight decay of 0.00008 and Nesterov optimization. Pretraining images have spatial size 256×256.

Fine-tuning lasts 8 epochs with a batch size of 512. Its learning rate is 0.016, its warmup lasts 0.5 epochs, and label smoothing is 0.1. The class-related output parameters are initialized to zeros rather than transferred unchanged. Relative positional embeddings are adapted through linear interpolation when the attention geometry changes.

For pretraining, the attention settings are b=8 and h=2. At a fine-tuning resolution of 384×384, they become b=12 and h=2. At 512×512, they become b=16 and h=1. These choices show how the same pretrained system can be adapted to different spatial arrangements without replacing the main attention projections.

The authors report that widened H4 and its hybrid achieve better accuracy than the compared ViT and widened ResNet-152 systems, and faster inference on larger images. Exact accuracy and latency values for those rows are not stated in the text. The conclusion is therefore directional: the experiment supports favorable transfer tradeoffs under the reported protocol, without supplying enough numerical detail to reconstruct the entire comparison.

#### Detection and instance segmentation

The structured-prediction experiments use Mask R-CNN on [COCO](https://md.research.elamur.ai/free/en/papers/lin-2014-microsoft-coco-common-objects-context/). Detection evaluates object bounding boxes. Instance segmentation additionally evaluates object masks. The paper reports mean average precision, abbreviated mAP, separately for these tasks.

The authors use hybrid ResNet-50 and ResNet-101 backbones, introducing halo attention near the end rather than replacing the full hierarchy. The common local setting is b=8 with h=3. A ResNet-50 variant also uses b=32 and h=3 to investigate a larger attention extent.

Backbones are pretrained on 512×512 ImageNet images for 350 epochs with the specified regularization recipe. Detection training uses 1024×1024 images. The experiments use the Cloud TPU Detection Codebase, which the paper names as the implementation framework.

The reported attention variants improve bounding-box detection by at least 0.7 mAP and instance segmentation by at least 0.6 mAP over the authors’ strengthened convolutional baselines. The result matters because the baseline itself is better than the conventional comparison cited in the paper. The attention improvement is therefore measured after substantial baseline tuning.

With b=8, the paper says that attention closes half the detection mAP gap between the ResNet-50 and ResNet-101 baselines. For instance segmentation, it closes 70% of that gap. It does so while using less than a third of the corresponding wall-clock-time gap. These are the authors’ reported comparisons, not quantities reconstructed from unstated table entries.

The measurements remain specific to their scope. The speed caption measures the backbone without the feature pyramid network, using a batch size of 32 on 2 TPUv3 cores. Such a number describes part of the detection system under a particular execution setup. It is not an end-to-end latency guarantee for arbitrary deployment conditions.

### What the ablations show

#### Removing masks helps in this training regime

The centered-window comparison uses the same block and halo arrangement while changing whether attention masks enforce the individually centered neighborhood. HaloNet-50 with b=8 and h=3 performs better without those restrictions than the masked 7×7 configuration.

The accuracy separation becomes larger with stronger regularization. That observation supports the authors’ choice to use the unmasked operation in the scaled family. It also suggests that the effect of a structural prior can depend on the training procedure surrounding it.

The experiment changes more than an abstract symmetry property. Removing the mask also changes which spatial information is available to each query. Consequently, it cannot establish that translation equivariance is intrinsically harmful. It shows that the particular combination of centered restriction and smaller usable neighborhood loses to the unmasked alternative.

The authors propose that shifting and cropping augmentations make strict equivariance less necessary. This explanation is plausible within their account, but the paper does not isolate augmentation as the cause through a dedicated comparison that holds every other influence fixed.

#### Larger neighborhoods are a useful scaling direction

The neighborhood study varies the size of the region available to attention. Increasing it from 6×6 to 12×12 yields a reported 1.3% accuracy improvement. This supports the central argument that attention can use spatial extent as a scaling dimension without a comparable growth in projection parameters.

The distinction from ordinary convolution concerns the allocation of learned weights. The main attention transformations are reused regardless of how many spatial candidates are read. A larger region therefore gives the same projections more possible evidence to select from.

However, the paper’s figure caption says that the gains eventually level off. The supported lesson is not to increase the region without limit. Larger windows can improve accuracy within the tested range, while computation and memory continue to constrain the useful setting.

The image-resolution study points in the same direction. HaloNet improves as input images become larger, and its advantage over the ResNet comparison persists. Another figure describes the ResNet improvement as tapering off. The paper presents these as evidence that attention can make productive use of larger image inputs, rather than merely inheriting a benefit available equally to every backbone.

#### Block size and halo size play different roles

A shared source region can be produced using different combinations of query-block size and halo width. For a fixed source-window size, a smaller query block with a larger halo requires more memory than a larger query block with a smaller halo.

The reason is sharing. A larger query group reuses the gathered region across more outputs. A smaller group means that more separate regions must be prepared to cover the same feature map. This is an implementation distinction even when each query has access to a similarly sized collection of source positions.

The reported fixed-window comparisons show little sensitivity to the chosen query-block size. That gives an engineer room to choose a larger block for memory efficiency without an observed accuracy penalty in those experiments.

The result also demonstrates why “window size” alone is an incomplete specification. The spatial extent of the source region, the number of queries sharing it, and the way information crosses block boundaries all affect the operation. HaloNet exposes these as separate settings instead of hiding them behind a single local-attention label.

#### A halo matters beyond neighborhood area

Removing the halo makes attention operate on isolated, non-overlapping blocks. The paper reports that this can substantially reduce accuracy unless the blocks are sufficiently large.

Its concrete comparison uses b=4 with h=1 against b=8 with h=0. The configuration with a halo performs better even though its neighborhood is smaller. The observation indicates that the arrangement of accessible information matters, not only its total spatial extent.

An isolated block creates a hard boundary: adjacent image locations can fall into different groups and be unable to interact directly in that layer. A halo supplies context across that boundary. The improvement therefore gives empirical support to overlapping source regions as a useful compromise between independent chunks and unrestricted attention.

This does not prove that every layer requires the same halo. The architecture keeps these settings homogeneous for simplicity. The study establishes the value of cross-boundary context in the tested configurations, leaving more specialized per-stage choices open.

#### Relative position remains useful after relaxing symmetry

Giving up exact pixel-translation equivariance does not mean discarding geometry. HaloNet still uses relative position in its attention scores, and the appendix compares that choice with factorized absolute positional encodings added before each attention layer.

ImageNet HaloNet study, top-1 accuracy with different position encodings Relative positional information performs better in the reported comparison.

**The numbers**

| System or setting | top-1 accuracy % |
| --- | --- |
| Factorized absolute position encoding | 77.5 |
| Relative position encoding (this paper) | 78.6 |

The absolute-position setting reaches 77.5%, while the relative-position setting reaches 78.6%. These are results from the positional-encoding comparison, not H7’s final benchmark accuracy.

The experiment distinguishes two questions that can otherwise be conflated. Exact translation symmetry concerns how the operation behaves under a shifted input. Positional information concerns whether the operation knows how query and source locations are arranged. HaloNet relaxes the former while retaining a useful representation of the latter.

The result also limits an overly simple explanation of attention as purely content-driven pooling. In this backbone, the relation between content and spatial displacement contributes materially to recognition accuracy.

#### Regularization and architecture are not interchangeable

The regularization study is notable because HaloNet benefits more despite having fewer parameters than the ResNet comparison. The authors describe its parameter count as around 30% lower, yet the combined label-smoothing and RandAugment improvement is larger.

Their interpretation is that attention may need regularization associated with larger convolutional systems. Parameter count alone may therefore be a poor guide to the appropriate regularization strength when the primitive changes.

The architectural additions produce the opposite pattern. Squeeze-and-Excitation and SiLU/Swish-1 contribute less to HaloNet. The authors suggest that the gating and multiplication inherent in attention could make an additional gating mechanism less valuable.

The activation itself is defined as:

```
SiLU(x) = x × sigmoid(x)
```

The symbol x is the input activation, and sigmoid(x) is its sigmoid transformation. Multiplication gates the input by a value determined from that same input. The formula explains why the authors discuss these components in terms of multiplicative interactions.

The experiments test component pairs, so they do not isolate the contribution of each member. They support decisions about the combined recipes used in the study. More detailed claims about which individual mechanism accounts for the unequal gains would require additional comparisons.

#### Width and depth do not contribute equally

The appendix scales HaloNet-50 toward a parameter budget of 30 million by changing different architectural settings. Its stated conclusion favors increasing the value-related width and adding layers.

This analysis matters because attention contains several distinct channel dimensions. Increasing the representation used for values changes what can be carried into the output. Increasing other dimensions changes the machinery used to decide attention weights. Those choices need not have the same accuracy return for a given parameter budget.

The paper does not supply the numerical rows of the scaling table in its text. The supported conclusion is therefore the authors’ ranking of useful directions, rather than a precise gain for every width or depth change.

It also remains a local architecture study. A setting that is productive near HaloNet-50 is not thereby proven optimal for every larger member, image resolution, accelerator, or transfer task. The result motivates the family’s design without fully solving architecture search.

#### Early convolution improves the practical balance

The hybrid study replaces attention with convolution plus Squeeze-and-Excitation in selected stages of H7. The compared variants have about 67 million parameters, so the experiment focuses on where the spatial operation is placed rather than on a large change in storage budget.

Using convolution throughout the early stages and retaining attention only at the end yields the fastest variant, but costs 1% top-1 accuracy. A more limited replacement applies convolution to stages 1–2 and attention to stages 3–4, keeping accuracy closer to its original level while substantially shortening each training and inference step.

This supports a stage-dependent interpretation of attention’s value. At high resolution, its execution costs are harder to amortize. Later in the backbone, reduced spatial dimensions make attention more affordable while still allowing content-dependent mixing.

The discussion reports that these hybrids reach a speed–accuracy balance comparable to EfficientNet. Pure HaloNet does not yet achieve the same training-speed result. The hybrid finding is therefore central to the practical contribution, rather than a minor qualification attached to an otherwise uniform attention architecture.

#### Larger detection regions help different object sizes differently

In the detection study, b=32 performs similarly overall to b=8 but runs more slowly. Its larger attention extent does particularly well for small objects according to the paper.

For large-object localization, attention itself produces the largest improvement relative to the convolutional comparison. These observations indicate that a single aggregate mAP score does not describe every effect of the neighborhood geometry.

With b=32, the last attention layers become global because the feature map has been reduced to 32 positions along each spatial dimension. This gives the experiment a different interpretation from merely enlarging a local patch: late-stage queries can access the full remaining feature map.

The authors suggest combining the advantages of the settings in future work. They do not demonstrate such a combined detector. The result is an analysis of different attention extents, with benefits varying across object sizes and runtime conditions.

### Limitations

#### Limits the authors explicitly identify

The clearest practical limitation is training speed. The discussion states that pure HaloNet backbones train more slowly than corresponding EfficientNets. The paper optimizes an accuracy–parameter relationship, and it does not claim that the resulting architecture is always the fastest way to reach a given accuracy.

Its definition of pure attention also has a boundary. The stem remains convolutional. Attention replaces the subsequent spatial processing, but the system is not convolution-free. The implementation additionally uses convolutions for gathering neighborhoods, which is a separate computational role from learned spatial filtering in the backbone.

The authors leave several implementation improvements unfinished. They mention fused operations, improved memory management, and better coordination between memory movement and computation. Their measured results therefore describe a particular implementation state. The expectation that attention could become faster is a research direction, not an achieved outcome.

Architecture design remains provisional as well. HaloNet inherits much of its organization from ResNet, and its block and halo choices are kept uniform within an architecture. The authors explicitly suggest that structures designed around attention, or search tailored to a target accelerator, could be better.

The scale of the family is also limited. Training and evaluating larger HaloNet variants against larger EfficientNets is left for future work. The reported competitive curve does not establish an unrestricted scaling result beyond the tested range.

Transfer is described as preliminary. The experiments widen H4 and examine a hybrid, but they do not comprehensively explore larger attention backbones, broader pretraining regimes, or every downstream task. Their favorable comparison is evidence for the tested ImageNet-21k-to-ImageNet protocol.

For detection and segmentation, the authors explicitly defer a study of pure attention backbones. The reported systems introduce a small amount of attention near the end of convolutional hierarchies. They demonstrate the usefulness of those hybrids, not that full replacement would be superior.

#### Limits visible in the experimental setup

A careful reader should distinguish parameter efficiency from total resource efficiency. Enlarging the attention region has a small effect on learned parameters but a substantial effect on interactions and intermediate storage. As a result, the paper’s favorable parameter comparison cannot on its own establish lower energy use, lower deployment memory, or lower latency.

The runtime results are hardware- and batch-specific. Training-step measurements use TPUv3 conditions, while the detection speed measure covers only the backbone. A full application includes other processing, and different batch sizes or hardware could change the balance. The paper does not provide a universal deployment-speed result.

The causal interpretation of the equivariance experiment is limited. The unmasked setting changes both the symmetry and the information available to queries. Better accuracy supports that complete design choice. It does not isolate the independent value of abandoning equivariance while holding every other aspect of the receptive field constant.

The authors’ augmentation explanation is also not proven directly. Image shifts and crops may reduce dependence on an exact structural prior, but the reported comparison does not establish how much of the gain follows from that mechanism. Other consequences of the enlarged usable region remain involved.

The component experiments likewise group additions. Label smoothing and RandAugment are assessed together in the reported gain, as are Squeeze-and-Excitation and SiLU/Swish-1. The results cannot be divided into separate contributions without additional evidence.

Several tables are represented by captions without their numerical entries. This limits how precisely the complete family, transfer results, and detection submetrics can be described from the stated text. The paper supplies explicit headline values and directional comparisons, but not every number needed for a fully reconstructed benchmark account.

There are also reporting inconsistencies. The main classification section gives learning-rate settings that are not straightforwardly reconciled with the appendix’s classification description. Detection training is described using different TPU core counts in different places. The relative-embedding parameter discussion also uses a simplified main-text count and a different appendix expression. These issues call for care in reproducing the experiment; they should not be resolved by inventing missing qualifications.

The detection architecture description is similarly uneven about the number of replaced and remaining attention layers. The reliable conclusion is that attention is introduced near the end of otherwise convolutional backbones. The text does not support treating every layer-count statement as a fully consistent implementation specification.

Finally, the scope is visual recognition. The paper motivates attention partly through its success in language, but it does not test HaloNet on textual tasks. Neither its image accuracies nor its block-boundary results establish a benefit for language understanding, generation, or a small Rust language system. Such uses remain proposals requiring their own evidence.

### What came after

No later citing studies are available in the accompanying record, so a documented chain of follow-up results cannot be established here. The paper itself provides a research agenda, but proposed directions should remain distinct from subsequent achievements.

The most immediate direction is better implementation. HaloNet shows that neighborhood gathering and representation changes can determine whether local attention is practical. The authors identify fusion, memory handling, and coordination between data access and computation as remaining opportunities. A follow-up pursuing those ideas would need to show gains in measured execution, rather than relying only on a smaller arithmetic count.

Another direction is architecture designed specifically for attention. The residual hierarchy provides a useful starting point, but its inherited structure need not be optimal. The appendix’s width-and-depth study and the hybrid stage comparisons suggest that attention capacity, spatial resolution, and operation placement deserve joint study.

The structured-prediction experiments motivate a further distinction: testing whether attention helps within a convolutional backbone is different from testing a largely attention-based detector or segmenter. The paper establishes the former and leaves the latter open. Larger receptive fields, object-size effects, and hybrid allocation are concrete questions carried forward by that distinction.

The paper also discusses concurrent BoTNet work using global attention in residual hybrids. Concurrent work belongs to the surrounding research context; it is not evidence of later adoption of HaloNet. Similarly, the earlier work on [sparse attention](https://md.research.elamur.ai/free/en/papers/child-2019-generating-long-sequences-sparse-transformers/) represents another approach to restricting interactions, instead of a demonstrated descendant.

The lasting question posed by HaloNet is precise: how should local attention be organized so that its content-sensitive mixing and inexpensive parameter scaling translate into useful visual backbones? Its answer combines shared neighborhoods, relaxed masking, attention-based downsampling, persistent layouts, and selective use of convolution. The experiments establish that this combination can compete strongly under the tested conditions, while leaving implementation maturity and attention-specific architecture design as unfinished work.

## Cite

Cite as Ashish Vaswani, Prajit Ramachandran, Aravind Srinivas, Niki Parmar, Blake A. Hechtman and Jonathon Shlens. 2021. Scaling Local Self-Attention for Parameter Efficient Visual Backbones. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/cvpr46437.2021.01270](https://doi.org/10.1109/cvpr46437.2021.01270) · [arXiv 2103.12731](https://arxiv.org/abs/2103.12731)

```bibtex
@inproceedings{vaswani2021scaling,
  title = {{Scaling Local Self-Attention for Parameter Efficient Visual Backbones}},
  author = {Ashish Vaswani, Prajit Ramachandran, Aravind Srinivas, Niki Parmar, Blake A. Hechtman and Jonathon Shlens},
  booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01270},
  eprint = {2103.12731},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/cvpr46437.2021.01270}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
