LSNet: See Large, Focus Small
- Publication
- CVPR 2025Conference
- First submitted to arXiv
- arXiv:2503.23135
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{lightweightlsnet2025,
title = {{LSNet: See Large, Focus Small}},
author = {Ao Wang and Hui Chen and Zijia Lin and Jungong Han and Guiguang Ding},
year = {2025},
eprint = {2503.23135},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2503.23135}
}
Spatial mixing in lightweight networks usually offers two choices. Self-attention sees widely but costs more; small kernels are cheap but see narrowly, and their weights stay fixed after training.
This paper comes from Tsinghua University. First author Ao Wang is also the first author of RepViT and YOLOv10. The inspiration comes from the retina's two kinds of photoreceptors. Rods are spread around the periphery, seeing broadly but coarsely; cones cluster in the center, seeing a smaller region in sharp detail. The title, See Large, Focus Small, describes this division of labor.
Defining the Problem
Perception and Aggregation
The authors divide token mixing—the exchange of spatial information—into two steps.
- Perception: determine which surrounding locations relate to the current one, and how strongly, by computing aggregation weights.
- Aggregation: use those weights to sum surrounding features.

Through this lens, both common token mixers have a problem.
Self-attention uses the same wide region for perception and aggregation. It compares a query with all positions, applies softmax, then forms a weighted sum over them all. A wider region costs more compute and often assigns many weights to uninformative areas such as background—the red cells in panel (a).
Convolution also uses the same region for perception and aggregation, only a small one. Aggregation weights are the kernel, based solely on relative position, shared across locations, and fixed after training. Lightweight networks usually have small kernels, limiting their view and preventing content-dependent adjustment.
Both aggregate over the region they see. The authors want to separate the two extents: wide perception, small-region aggregation.
Solving the Problem
LS Convolution

LS (Large-Small) convolution implements the idea in two parts:
- Large-kernel perception: a 1×1 convolution halves input channels, a depthwise convolution sees a broad neighborhood, and 1×1 convolutions produce weights for every location. The default is .
- Small-kernel aggregation: arrange the weights at each location into kernels of size , then form a weighted sum over a small local neighborhood. The default is , sharing one kernel among every 8 channels in a group.
Aggregation weights are dynamic and location-specific, decided after seeing a 7×7 region, while the values actually summed come from just 3×3 neighbors. Write it out and use gradients to see which inputs affect the center output:
import torch
import torch.nn as nn
import torch.nn.functional as F
torch.manual_seed(0)
C, H, W = 16, 15, 15
G, KL, KS = 2, 7, 3 # 2 groups; 7×7 for perception, 3×3 for aggregation
pw1 = nn.Conv2d(C, C // 2, 1)
dw = nn.Conv2d(C // 2, C // 2, KL, padding=KL // 2, groups=C // 2)
pw2 = nn.Conv2d(C // 2, G * KS * KS, 1)
def ls_conv(x, detach_weights=False):
w = pw2(dw(pw1(x))) # Large-kernel perception: a 3×3 kernel for each location and group
if detach_weights:
w = w.detach() # Keep only the path through values being summed
w = w.view(G, 1, KS * KS, H * W)
patches = F.unfold(x, KS, padding=KS // 2).view(G, C // G, KS * KS, H * W)
return (patches * w).sum(2).view(1, C, H, W) # Small-kernel aggregation: channels in one group share a kernel
def footprint(detach_weights):
x = torch.randn(1, C, H, W, requires_grad=True)
ls_conv(x, detach_weights)[0, :, H // 2, W // 2].sum().backward()
grid = x.grad[0].abs().sum(0) > 0
rows, cols = grid.nonzero().T
return f"{int(grid.sum())} positions, spanning {int(rows.max() - rows.min() + 1)}×{int(cols.max() - cols.min() + 1)}"
print("Inputs affecting the center output:", footprint(False))
print("Values actually summed:", footprint(True))
Inputs affecting the center output: 49 positions, spanning 7×7
Values actually summed: 9 positions, spanning 3×3
Forty-nine positions help determine weights; only 9 contribute values to the sum. That is See Large, Focus Small. The actual module also includes normalization and activation functions, omitted here.
This keeps compute low. The wide-region component uses only depthwise convolution, while the small-region component sums only 9 values. Overall cost scales linearly with resolution, rather than quadratically with the region size as in self-attention.
Building the Network
An LS block uses LS convolution for spatial mixing with a residual connection, adds a depthwise convolution and SE layer, and uses FFNs for channel mixing.
LSNet has four stages. The first three use LS blocks. At the last stage, resolution is just , and MSA blocks use multi-head self-attention. LSNet is therefore a hybrid, with attention in its final stage.
The three sizes, T, S, and B, take 0.3G, 0.5G, and 1.3G FLOPs. Blocks are concentrated in later stages because early, high-resolution stages cost more time.
Discussion
ImageNet
Throughput is measured on one RTX 3090, with batch size set to the largest power of two that fits in memory:
| Model | Parameters | FLOPs | Throughput (images/s) | top-1 |
|---|---|---|---|---|
| FasterNet-T0 | 3.9M | 0.3G | 14467 | 71.9% |
| EfficientViT-M3 | 6.9M | 0.3G | 14613 | 73.4% |
| StarNet-S1 | 2.9M | 0.4G | 5034 | 73.5% |
| LSNet-T | 11.4M | 0.3G | 14708 | 74.9% |
| UniRepLKNet-A | 4.4M | 0.6G | 3931 | 77.0% |
| RepViT-M0.9 | 5.1M | 0.8G | 4817 | 77.4% |
| SHViT-S3 | 14.2M | 0.6G | 8993 | 77.4% |
| LSNet-S | 16.1M | 0.5G | 9023 | 77.8% |
| FastViT-T12 | 6.8M | 1.4G | 2586 | 79.1% |
| RepViT-M1.1 | 8.2M | 1.3G | 3604 | 79.4% |
| LSNet-B | 23.2M | 1.3G | 3996 | 80.3% |
At similar FLOPs, LSNet ranks highly in both accuracy and throughput. LSNet-T beats StarNet-S1 by 1.4 percentage points with nearly three times the throughput; LSNet-B beats RepViT-M1.1 by 0.9 points. Distillation from RegNetY-16GF adds another 1.2 to 1.3 points across the three sizes.
Two things need to be considered alongside this.
First, parameters. LSNet-T takes only 0.3G FLOPs but has 11.4M parameters, four times StarNet-S1's count. LSNet-B has 23.2M. If model size or memory limits deployment, the ranking needs another look.
Second, the measurement protocol. The paper reports only large-batch throughput on an RTX 3090, with no phone or CPU latency. StarNet's strength is batch-1 latency on an iPhone. The two papers measure different things; the nearly threefold speedup in this table cannot simply be transferred to phones.
Ablation
These experiments train LSNet-T for only 100 epochs, with a 71.6% baseline:
| Change | top-1 |
|---|---|
| LS convolution (baseline) | 71.6% |
| Remove LS convolution | 69.3% |
| Remove large-kernel perception | 70.5% |
| Perception kernel from 7 to 3 | 70.9% |
| Perception kernel from 7 to 9 | 71.5% |
| Remove small-kernel aggregation (large kernel followed by ordinary small kernel) | 70.1% |
| Aggregation kernel from 3 to 1 | 69.6% |
| Aggregation kernel from 3 to 5 | 71.6% |
Start with two of the rows.
“Remove small-kernel aggregation” feeds the result of large-kernel perception directly into an ordinary static small kernel—the most intuitive way to combine large and small kernels. It reaches only 70.1%, 1.5 points below LS convolution. Using wide-region information to decide weights helps more than simply stacking the kernels.
Increasing aggregation size from 3 to 5 leaves accuracy unchanged while raising FLOPs from 0.31G to 0.34G. Increasing perception from 7 to 9 brings no improvement either. Seeing 7×7 and summing 3×3 is enough.
The authors also swap LS convolution into other networks. Replacing every ResNet-50 3×3 convolution cuts FLOPs from 4.1G to 2.6G and raises accuracy from 78.8% to 80.7%. Replacing DeiT-T's self-attention cuts FLOPs from 1.3G to 0.9G and raises accuracy from 72.2% to 73.0%.
Deployment
Small-kernel aggregation in LS convolution needs location-specific kernels, beyond PyTorch's built-in conv2d. The official code uses a dedicated GPU operator written in Triton. A GitHub user asks why built-in convolution is not used and mentions poor TensorRT conversion compatibility. Deployment to phones or other inference engines requires adapting this step, for example with unfold and elementwise multiplication, as in the demonstration above.
Conclusion
LSNet separates token mixing into perception and aggregation, giving each a different extent. A 7×7 depthwise convolution sees the neighborhood and decides each location's 3×3 weights; aggregation then sums just 9 weighted values. The ablations clearly show that wide-region information is more useful for determining weights than for simply stacking large and small kernels.
LS convolution transfers to other networks more readily than the whole LSNet does. It needs only depthwise convolution and location-wise weighted sums. Swapped into ResNet-50, it cuts FLOPs by nearly 40% while adding 1.9 percentage points of accuracy.