YOLO-RD: Introducing Relevant and Compact Explicit Knowledge to YOLO by Retriever-Dictionary
Hao-Tang Tsui, Chien-Yao Wang, Hong-Yuan Mark Liao
TL;DR
This work addresses the underutilization of dataset-wide information in real-time vision models by introducing the Retriever-Dictionary (RD) module, a lightweight plug-in that augments YOLO-based detectors with explicit knowledge from pre-built dictionaries. RD comprises a Coefficient Generator and a Global Information Exchanger that produce per-pixel coefficients to weight a dictionary of atoms, with outputs blended with input residuals and normalized via PN and WN operations, enabling efficient knowledge integration. Dictionary initialization leverages encoders from Vision Models, Vision-Language Models (CLIP), and Large Language Models (GPT prompts), followed by k-means selection and a SimCLR-based compression to keep the dictionary compact. Empirically, RD yields consistent mAP gains across 1-stage and 2-stage detectors, including Faster R-CNN and Deformable DETR, while also improving segmentation and classification, all with minimal parameter overhead and without requiring external loss terms. The results suggest RD’s potential to improve real-time vision systems by leveraging cross-modal and cross-domain knowledge in a scalable, efficient manner, with broad applicability to multiple architectures and tasks.
Abstract
Identifying and localizing objects within images is a fundamental challenge, and numerous efforts have been made to enhance model accuracy by experimenting with diverse architectures and refining training strategies. Nevertheless, a prevalent limitation in existing models is overemphasizing the current input while ignoring the information from the entire dataset. We introduce an innovative Retriever-Dictionary (RD) module to address this issue. This architecture enables YOLO-based models to efficiently retrieve features from a Dictionary that contains the insight of the dataset, which is built by the knowledge from Visual Models (VM), Large Language Models (LLM), or Visual Language Models (VLM). The flexible RD enables the model to incorporate such explicit knowledge that enhances the ability to benefit multiple tasks, specifically, segmentation, detection, and classification, from pixel to image level. The experiments show that using the RD significantly improves model performance, achieving more than a 3\% increase in mean Average Precision for object detection with less than a 1% increase in model parameters. Beyond 1-stage object detection models, the RD module improves the effectiveness of 2-stage models and DETR-based architectures, such as Faster R-CNN and Deformable DETR. Code is released at https://github.com/henrytsui000/YOLO.
