---
title: 'YOLOv8-s: Lightweight Real-Time Detector'
url: https://www.emergentmind.com/topics/yolov8-small-variant
type: topic
---

# YOLOv8-s: Lightweight Real-Time Detector

YOLOv8 Small Variant

The YOLOv8 Small variant (YOLOv8-s or YOLOv8s) is a lightweight, single-stage, anchor-free object detector engineered for high throughput and solid accuracy in real-time detection scenarios, notably in edge deployment contexts. As a canonical trade-off model within the YOLOv8 family, it integrates Ultralytics’ C2f modules in a streamlined CSPDarknet backbone, a PAN-style neck, and decoupled prediction heads, achieving competitive results across benchmarks while maintaining a modest parameter and computational footprint. This variant is extensively applied in domains requiring fast inference, such as intelligent transportation systems, barcode/QR code recognition, UAV-based small-object detection, and civil infrastructure inspection [2512.16826][2511.22937][2501.06922][2408.04786][2507.20506][2509.22365][2408.15857][2407.02988][2503.04452].

## 1. Architectural Characteristics and Core Modules

YOLOv8-s follows a modular convolutional design built for parameter efficiency and multi-scale feature extraction.

- **Backbone:** The network backbone is based on modified CSPDarknet, with C2f (“Cross Stage Partial with fused layers”) modules providing channel-wise and spatial gradient flow for more efficient representation. The backbone stages typically downsample through 3×3 convolutions, yielding feature maps at progressively coarser spatial scales [2407.02988][2512.16826].

- **SPPF Layer:** A Spatial Pyramid Pooling—Fast layer sits at the bridge between the backbone and the neck, increasing the receptive field while exhibiting little computational overhead [2512.16826][2511.22937].

- **Neck:** Features from different backbone stages are fused via a PAN-style (Path Aggregation Network) or FPN/PAN hybrid neck, which, in the standard design, generates three main output scales (stride 8, 16, 32). Some derivative works replace PAN with BiFPN or Hierarchical feature fusion for enhanced multi-scale performance, particularly for small-object scenarios [2507.20506][2509.22365].

- **Detection Head:** The prediction head is anchor-free and operates with three scales. Each head is split/decoupled for independent regression and classification branches. Typical output shapes are (80×80×(C+5)), (40×40×(C+5)), and (20×20×(C+5)), where C is the number of classes [2512.16826][2407.02988].

- **Activation & Normalization:** SiLU activation (also known as Swish) is used throughout convolutional layers for smoother gradients, coupled with BatchNorm [2407.02988].

- **Parameter and FLOP Profile:** The model comprises 11.1–11.2 million parameters and 28.6 GFLOPs per 640×640 image [2512.16826][2407.02988][2501.06922].

## 2. Model Complexity and Scaling Trade-offs

YOLOv8-s stands as an intermediate point in the YOLOv8 family, optimized for cases where nano models underperform and medium/large models are resource-prohibitive.

| Variant         | Params (M) | FLOPs (G) | mAP@0.5 | Precision | Recall | File Size (MB) |
|-----------------|------------|-----------|---------|-----------|--------|---------------|
| YOLOv8-nano     | 3.0–3.2    | 8.7       | 0.811–0.918 | 0.964 (LPR) | 0.876–        | ~12           |
| YOLOv8-small    | 11.1–11.2  | 28.6      | 0.846–0.933 | 0.945 (LPR) | 0.874 (LPR) | ~45           |
| YOLOv8-medium   | 25.9       | 78.9      | 0.85–0.94   | 0.946 (LPR) | 0.912 (LPR) | ~90           |

*Values compiled from [2512.16826][2501.06922][2407.02988]. mAP@0.5 and precision/recall are dataset-dependent.*

YOLOv8-s achieves a significant increase in accuracy and recall over nano models for a ~3× computational and parameter cost, while medium models provide marginal accuracy gains at more than double the cost again. On tasks such as license plate recognition and crack detection, YOLOv8-s consistently achieves a favorable accuracy-speed-complexity balance [2512.16826][2501.06922].

## 3. Training Configuration and Loss Functions

- **Optimizers:** Training may use AdamW or SGD. Default schedules include:
  - AdamW: initial learning rate 0.01, momentum 0.937, weight decay 0.005, batch size 64 for 500 epochs [2512.16826].
  - SGD: initial learning rate 0.01, momentum 0.937, weight decay 0.0005, batch size 16 for 100–300 epochs [2501.06922][2407.02988].

- **Data Augmentation:** Typical augmentations include mosaic, mixup, color jitter (HSV), random flips, rotation, blur, cropping, and online geometric transforms, though specifics are dataset-dependent [2511.22937][2501.06922][2407.02988].

- **Loss Terms:** The objective is the sum of objectness, classification, and box regression losses:
  - $L_\text{total} = L_\text{obj} + L_\text{cls} + L_\text{box}$
  - Classification: Cross-entropy.
  - Box regression: MSE or CIoU/PIoU, depending on the variant. Decoupled heads may also employ dynamic label assignment and, in some works, CIoU is replaced with PIoU to mitigate anchor-box enlargement artifacts [2512.16826][2408.04786].

## 4. Detection Performance and Benchmarks

YOLOv8-s delivers real-time or near-real-time inference across multiple tasks and datasets, providing competitive accuracy.

- **License-Plate Recognition ([2512.16826]):**
  - Plate detection: Precision 0.945, Recall 0.874, mAP@0.5 0.933, mAP@0.5:0.95 0.683.
  - Character recognition: Precision 0.92, Recall 0.86, mAP@0.5 0.91, mAP@0.5:0.95 0.673.

- **Crack Detection ([2501.06922]):**
  - mAP@0.5 = 0.846, Precision = 0.862, Recall = 0.768, F1-score ≈ 0.812.
  - Inference throughput: ~120–140 FPS on NVIDIA V100/RTX 4070 GPUs.

- **Barcode/QR Detection ([2511.22937]):**
  - Accuracy: 97.10%, Precision: 85.41%, Recall: 88.11%.
  - mAP (overall): 89.67%. mAP@0.5: 59%. mAP@0.5:0.95: 53%.

- **COCO and Transfer Learning ([2408.15857][2407.02988]):**
  - COCO mAP@0.5 ≈ 58.5% for YOLOv8-s (varies by implementation and dataset splits).

Performance is robust relative to model size, and the mAP gap between small and larger YOLOv8 models is modest (often ≤5 pp) given the reduction in parameters and latency.

## 5. Application-Specific Variants and Small-Object Extensions

Multiple works derive from YOLOv8-s to target small-object detection and efficiency for edge scenarios.

- **SOD-YOLOv8:** Adds a fourth high-resolution detection head (stride 2) and replaces PANet with GFPN. Incorporates C2f-EMA attention and PIoU loss; measured recall and precision boosts from 40.1%→43.9% and 51.2%→53.9%, mAP0.5 from 40.6%→45.1% [2408.04786].

- **YOLOv8s-p2:** Integrates BiFPN with learnable weights and incorporates a stride-4 detection head, raising recall for tiny rice spikelets and improving mAP@0.5 by 3.1% over baseline [2507.20506].

- **HierLight-YOLO-S:** Substitutes C2f with IRDCB, standard downsampling with LDown, and replaces the PANet neck with a hierarchical feature fusion (HEPAN). Adds a P2 (160×160) detection head, reducing parameter count by ~30% and increasing small-object AP by +3.3 points [2509.22365].

- **FDM-YOLO:** Removes the largest detection head and adds a high-resolution P2 head, introduces Fast-C2f modules (PConv-based), dynamic upsampling (Dysample), and lightweight EMA attention, reducing parameter count by 38% and improving mAP@0.5 from 38.4% to 42.5% on VisDrone [2503.04452].

These modifications typically target high recall and AP for objects <32 px, crucial in UAV, traffic, and field monitoring.

## 6. Edge Deployment and Practical Implications

Due to its parameter counts (11–11.2M), compute requirements (28.6 GFLOPs), and architecture, YOLOv8-s is well-suited for contemporary high-end and mid-tier edge devices.

- **Latency and Throughput:** YOLOv8-s achieves sub-millisecond to millisecond per-image inference on modern GPUs (e.g., A100, RTX 3090), and 15–60 FPS on Jetson Xavier/Orin, based on task and optimizations [2512.16826][2407.02988][2501.06922].
- **Resource Profile:** File size ≈45 MB (FP32); quantization or pruning can reduce this further.
- **Suitability:** Recommended for deployment scenarios balancing moderate-to-high accuracy with strict latency and resource constraints—including ITS (Intelligent Transportation Systems), mobile device vision, video analytics, real-time industrial inspection, and on-device inference pipelines.

A notable use case involves a pipeline where YOLOv8-nano detects candidate regions (e.g., license plates), passing the region to YOLOv8-s for fine-grained tasks such as character or small-object localization, leveraging the strengths of both model sizes [2512.16826].

## 7. Limitations and Comparative Positioning

YOLOv8-s, while effective, does exhibit certain limitations:

- **Extremely Small Objects/Occlusions:** Although competitive, baseline YOLOv8-s sometimes underperforms with extremely small or heavily occluded objects unless explicitly modified via high-resolution heads or advanced multi-scale fusion [2511.22937][2408.04786][2507.20506].
- **Inference Speed Reporting:** Some evaluation papers omit direct FPS throughput; inferences are generally extrapolated from FLOP counts or hardware reports.
- **Further Compression:** For ultra-constrained TinyML microcontrollers, YOLOv8-nano or special pruned/quantized variants are favored, though YOLOv8-s remains more robust for complex multi-class scenarios [2410.15602].
- **Absolute Accuracy Ceilings:** Larger YOLOv8 variants (medium, large) can yield slightly higher mAP at the cost of increased latency and size, suggesting use-case dependent model selection [2501.06922][2407.02988].

## References

- "Next-Generation License Plate Detection and Recognition System using YOLOv8" [2512.16826]
- "Barcode and QR Code Object Detection: An Experimental Study on YOLOv8 Models" [2511.22937]
- "Benchmarking YOLOv8 for Optimal Crack Detection in Civil Infrastructure" [2501.06922]
- "SOD-YOLOv8 -- Enhancing YOLOv8 for Small Object Detection in Traffic Scenes" [2408.04786]
- "An Improved YOLOv8 Approach for Small Target Detection of Rice Spikelet Flowering in Field Environments" [2507.20506]
- "HierLight-YOLO: A Hierarchical and Lightweight Object Detection Network for UAV Photography" [2509.22365]
- "What is YOLOv8: An In-Depth Exploration of the Internal Features of the Next-Generation Object Detector" [2408.15857]
- "YOLOv5, YOLOv8 and YOLOv10: The Go-To Detectors for Real-time Vision" [2407.02988]
- "A lightweight model FDM-YOLO for small target improvement based on YOLOv8" [2503.04452]
- "P-YOLOv8: Efficient and Accurate Real-Time Detection of Distracted Driving" [2410.15602]

Source: https://www.emergentmind.com/topics/yolov8-small-variant