Modification of the YOLOv8 Detection Head for Nested Object Embeddings
- 1 August 2026
- journal article
- research article
- Published by Pleiades Publishing Ltd in Journal of Computer and Systems Sciences International
- Vol. 65 (4) , 617-627
Abstract
Local object embeddings extracted from neural network detectors are widely used in similar-object retrieval, fine-tuning, and active learning. However, their fixed dimensionality creates a trade-off between comparison speed and representation informativeness. This paper addresses the problem of obtaining a family of consistent embeddings of varying dimensionality within a single detector without degrading detection quality. To this end, a modification of the YOLOv8 detection head is proposed, training nested representations of different depths while preserving standard detector behavior at full depth. Local embeddings are extracted from intermediate feature maps via RoiAlign, and an interleaving method is proposed for combining features from multiple levels of the feature pyramid; the same structure can also be used to explain predictions through similar-object retrieval. Stabilization and acceleration mechanisms for training the multi-mode head are also described. Experiments on Pascal VOC, CrowdHuman, COCO2017, and ind_safety show that the proposed modification does not degrade detection quality relative to the original YOLOv8. Cascade search over nested embeddings is approximately 3 times faster than the standard approach with a recall drop of only 3%.Keywords
This publication has 13 references indexed in Scilit:
- Object Detection in 20 Years: A SurveyProceedings of the IEEE, 2023
- Dynamic Slimmable Network2021
- Universally Slimmable Networks and Improved Training Techniques2019
- Efficient and Robust Approximate Nearest Neighbor Search Using Hierarchical Navigable Small World GraphsIEEE Transactions on Pattern Analysis and Machine Intelligence, 2018
- Mask R-CNN2017
- Feature Pyramid Networks for Object Detection2017
- Deep learningNature, 2015
- The Pascal Visual Object Classes Challenge: A RetrospectiveInternational Journal of Computer Vision, 2014
- Microsoft COCO: Common Objects in Context2014
- Representation Learning: A Review and New PerspectivesIEEE Transactions on Pattern Analysis and Machine Intelligence, 2013