Path-Conditioned Attention Mobility: From Depth to Execution Hubs in SegFormer
Abstract
Transformer compression often couples two distinct quantities: retained attention capacity and the number of sequential depths at which that capacity is executed. We study whether useful attention functions in a hierarchical vision transformer are locally mobile across depth. Using SegFormer-B5 for human segmentation, we find that some task-relevant attention heads can be relocated to nearby depths, but only when their computational context is respected. Head-only relocation is insufficient, while joint adaptation of the relocated head and surrounding representation boundary improves functional preservation; replacing donor-specific normalization and spatial-reduction preprocessing causes large degradation. We use this path-conditioned mobility to reorganize retained attention from depth into width. Starting from a fixed parent with 120 retained Stage-3 heads across 40 attention execution depths, we consolidate the same 120-head budget into 20 execution hubs. Under a layout-matched three-seed recovery control, K20 reaches 0.960686 +/- 0.000059 mIoU versus 0.960400 +/- 0.000074 for the corresponding State120 control. The paired point difference is +0.000285, while a paired image-bootstrap confidence interval includes zero; we therefore interpret the result as no measurable quality penalty rather than statistical superiority. For deployment, FOLDEDVEC preserves donor-specific paths while vectorizing their execution. Relative to the same 120-head State120 parent, it reduces end-to-end NVIDIA L4 latency by 5.28%, 3.15%, and 3.58% at batch sizes 1, 4, and 8. These results suggest that attention redundancy includes not only removable capacity but also execution-depth redundancy, provided that the computational path defining a relocated function is preserved.
Create a lesson
Metadata
- Comments
- 27 pages, 8 figures; includes supplementary material
Related papers
LiveVAE: Causal Window Attention Makes Efficient Streaming Video VAE
Shared title terminologycs.CVJiachen An, Sijie Zhao, Le Li et al.
DuCo: Exploiting Dual Cross-Layer Consistency for Sparse Geometric Attention
Shared title terminologycs.CVLiangyu Xiang, Junyu Gao, Xiaofeng Wang et al.
Physics-Guided Generative Modelling of Oxy-Combustion Flame Images: From Conditional LSGANs to Denoising Diffusion Models
Shared title terminologycs.CVImane Er-rabhi, Gorkem Oztarlik, Jean Caudal et al.
Score-based Black-box Attack via Adversarial Condition Guided Diffusion Model
Shared title terminologycs.CVYuhang Chen, Chih-Hong Cheng, Kurt Debattista et al.
CADENCE: Sensor-GroundedWorld-Consistent Gaussian SLAM for Collaborative Mobile Reconstruction
Shared title terminologycs.CVReshad Ul Karim, Abrar Samin, Md Rashad Al Hasan Rony
Most of the Way There: Turning a Strong Video Prior into an Action-Conditioned World Model
Shared title terminologycs.CVZanyi Wang, Xia Chen, Liu Liu et al.