Object detection is essentially a highly sparse inverse problem: in a field of millions of spatial pixels, the bounding boxes of interesting targets typically occupy less than 1% of the frame. This post argues that the YOLO (You Only Look Once) family has repeatedly converged on the core mathematics of compressed sensing—projecting signals onto bases that make them maximally sparse—via four frequency-domain architectures.
The compressed sensing perspective
In classical compressed sensing (Candès, Tao), efficient reconstruction requires projecting a signal onto a basis \(\mathbf{\Psi}\) that makes it sparse:
- Traditional pixel-domain path: acquisition as dense RGB pixels → stacked sliding convolutions with downsampling → laborious stripping of background redundancy.
- Compressed-sensing path: project onto frequency/wavelet orthogonal bases → compact sparse feature tensors (low-frequency contours + key high-frequency edges) → lightweight networks lock onto boxes in milliseconds.
- The Focus space-to-depth operation (640×640×3 → 320×320×12, sampling every other pixel) is functionally equivalent to a first-order 2D discrete Haar wavelet transform: a 2×2 neighborhood [a, b; c, d] decomposes into LL (low-frequency mean), LH (horizontal high-freq), HL (vertical high-freq), and HH (diagonal high-freq) channels.
- Result: shallow-backbone FLOPs drop ~50% with zero information loss.
- Pain point: pipelines must run CPU-heavy IDCT to expand JPEG data into RGB before GPU inference.
- Approach: after entropy decoding only, DCT-YOLO feeds the 8×8 block DCT coefficients (Y, Cb, Cr — 192 frequency channels) directly into DarkNet, converting a 640×640×3 image into an 80×80×192 frequency tensor.
- Result: IDCT bottleneck eliminated; first-layer computation reduced 60–70%; end-to-end throughput on Raspberry Pi and automotive edge chips improves ~2×.
- Pain point: decoding H.264/H.265 streams to full RGB frames consumes over 80% of server CPU in surveillance scenarios.
- Approach: skip full decoding and extract three native structures from the bitstream: I-frame DCT low-frequency texture, P-frame motion vectors (naturally sparse optical flow computed by the encoder), and prediction residuals.
- Result: ~90% of decoding overhead removed; 300–400+ FPS multi-object tracking on a single mainstream GPU.
- Pain point: MaxPool and strided convolutions irreversibly destroy high-frequency detail, causing misses on small/tiny objects in aerial and remote-sensing imagery.
- Approach: replace downsampling in the FPN with Haar Wavelet Downsampling (HWD), explicitly splitting LL (low-frequency semantics) and LH/HL/HH (horizontal/vertical/diagonal edges), injecting high-frequency bands into the detection head via gating.
- Result: small-object \(mAP_{\text{small}}\) improves 3–5% on VisDrone and DOTA.
Four frequency-domain YOLO architectures
① YOLOv5 Focus layer — discrete Haar wavelet slicing
② DCT-YOLO — JPEG compressed-domain detection
③ MV-YOLO — motion-vector detection from video streams
④ WFD-YOLO — wavelet frequency-domain multi-scale detection
Comparison
| System | Basis Ψ | Input tensor | Key gain | Best scenario | | :--- | :--- | :--- | :--- | :--- | | YOLOv5 (Focus) | Discrete Haar wavelet | 320×320×12 folded | −50% shallow FLOPs, lossless | General detection | | DCT-YOLO | DCT | 80×80×192 | Skips IDCT, −60~70% first-layer compute | Embedded/IoT cameras | | MV-YOLO | Motion vectors + residuals | I-frame DCT + MV streams | −90% decoding, 300+ FPS | Surveillance, traffic analysis | | WFD-YOLO | Multi-scale Haar subbands | LL/LH/HL/HH streams | Small-object mAP +3~5% | Remote sensing, drone inspection |
Conclusion
The evolution confirms compressed sensing's core insight: system efficiency depends not on stacking compute in redundant high-dimensional spaces, but on making decisions on the most compact sparse basis. Frequency- and compressed-domain deep learning offers a path to extremely lean edge intelligence and massive real-time video analytics.
References
1. Redmon, J., et al. (2016). *You Only Look Once: Unified, Real-Time Object Detection*. IEEE CVPR 2016. 2. Jocher, G., et al. (2020). *ultralytics/yolov5: v3.0 - Focus Layer & Slicing Architecture*. GitHub. 3. Gueguen, L., et al. (2018). *Faster Neural Networks Straight from JPEG*. NeurIPS 2018, 31, 3933-3944. 4. Wu, C. Y., et al. (2018). *Compressed Video Action Recognition*. IEEE/CVF CVPR 2018, 6026-6035. 5. Xu, K., et al. (2020). *Learning in the Frequency Domain*. IEEE/CVF CVPR 2020 (Oral), 1740-1749. 6. Mallat, S. G. (1989). *A theory for multiresolution signal decomposition: the wavelet representation*. IEEE TPAMI, 11(7), 674-693. 7. Candès, E. J., & Wakin, M. B. (2008). *An introduction to compressive sampling*. IEEE Signal Processing Magazine, 25(2), 21-30.