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%.

This publication has 13 references indexed in Scilit: