Superpowering Open-Vocabulary Object Detectors for X-ray Vision

Pablo Garcia-Fernandez, Lorenzo Vaquero, Mingxuan Liu, Feng Xue, Daniel Cores, Nicu Sebe, Manuel Mucientes, Elisa Ricci · OpenReview

Abstract

Open-vocabulary object detection (OvOD) is set to revolutionize security screening by enabling systems to recognize any item in X-ray scans. However, developing effective OvOD models for X-ray imaging presents unique challenges due to data scarcity and the modality gap that prevents direct adoption of RGB-based solutions. To overcome these limitations, we propose RAXO, a training-free framework that repurposes off-the-shelf RGB OvOD detectors for robust X-ray detection. RAXO builds high-quality X-ray class descriptors using a dual-source retrieval strategy. It gathers relevant RGB images from the web and enriches them via a novel X-ray material transfer mechanism, eliminating the need for labeled databases. These visual descriptors replace text-based classification in OvOD, leveraging intra-modal feature distances for robust detection. Extensive experiments demonstrate that RAXO consistently improves OvOD performance, providing an average mAP increase of up to 17.0 points over base detectors. To further support research in this emerging field, we also introduce DET-COMPASS, a new benchmark featuring bounding box annotations for over 300 object categories, enabling large-scale evaluation of OvOD in X-ray.

Introduction

Automated security screening at airports and checkpoints currently relies on "closed-set" object detectors. These systems are typically trained on fewer than 20 prohibited items (like guns or knives) because X-ray data is expensive to acquire and requires expert annotation. In the real world, the list of potential threats and items of interest is virtually infinite.

While Open-Vocabulary Object Detection (OvOD) has revolutionized RGB image processing—allowing models to find arbitrary objects without specific training—these models often fail when applied to X-ray scans. This failure stems from the modality gap: X-rays visualize internal material density rather than surface light reflection. A "water bottle" in a photo looks nothing like its X-ray signature, breaking the text-to-visual alignment that models like CLIP rely on.

Overview of RAXO vs. current X-ray detectors and performance improvements across benchmarks.

The RAXO Framework

The authors propose RAXO (tRAining-free adaptation for X-ray OvOD), a "plug-and-play" module that works with any existing RGB detector (such as GroundingDINO or Detic). RAXO bypasses the modality gap by replacing text-based classification with robust visual descriptors. Its pipeline consists of three main stages:

  1. Visual Sample Acquisition: To represent a new category (e.g., "violin"), RAXO first looks for in-house X-ray samples. If none exist, it retrieves RGB images from the web. To bridge the modality gap, it uses a Material-Transfer Mechanism: an LLM identifies the primary material of the object (e.g., wood), and the system "inpaints" a synthetic X-ray appearance based on a pre-computed database of material densities.
  2. Class Descriptor Modeling: Instead of using a single text embedding, RAXO builds an ensemble of visual descriptors. It uses SAM 2 to segment the objects and extracts features using DINOv2. It creates "positive" prototypes for the object and "negative" prototypes for the background to improve discriminative power.
  3. Visual-based Classifier: At inference time, the standard text-based classifier of the OvOD model is discarded. Instead, the model compares the features of detected regions directly to the visual descriptors. This exploits intra-modal distances (comparing X-ray features to X-ray features), which are much more stable than matching X-ray features to text.
The three-stage RAXO pipeline: Visual Samples Acquisition, Class Descriptor Modeling, and Visual Classification.

Finally, a Descriptor Consistency Criterion (DCC) filters out low-confidence proposals by ensuring the detected object is significantly more similar to its predicted class than to others.

Benchmarking with DET-COMPASS

To support research in this field, the paper introduces DET-COMPASS, the most comprehensive benchmark for X-ray OvOD to date. Unlike previous standards that focused on roughly 20 categories, DET-COMPASS includes 370 distinct object classes. The dataset contains 1,928 image pairs featuring pixel-level alignment between RGB and X-ray modalities, along with "visibility" labels that note if an object leaves a discernible signature in the X-ray spectrum.

Key Results and Insights

RAXO consistently improves every base detector tested. On the DET-COMPASS benchmark, it boosted GroundingDINO's performance from 13.4 mAP to 47.9 mAP—a +34.5 point increase. Several key insights emerged from the evaluation:

  • Bypassing the Text-Alignment Problem: The core innovation is realizing that the visual backbone of RGB models still produces useful features for X-rays; it is the mapping to text that fails. By staying within the visual domain for classification, RAXO avoids this bottleneck.
  • Material over Style: Traditional style transfer fails because it ignores physics. RAXO’s material-transfer approach focuses on underlying material properties (metal vs. organic), mimicking how X-ray machines actually function.
  • Zero-Shot Success: Even in a setting where the model has zero real X-ray samples and relies entirely on web-retrieved synthetic ones, it still outperforms base RGB models.

Limitations and Future Work

While highly effective, RAXO has limitations. It struggles with objects that have generic shapes and limited X-ray signatures (e.g., certain plastic containers), where visual cues alone are insufficient. Additionally, RAXO replaces the classifier but still relies on the base model's region proposal network; if the base model fails to identify a region as an object in X-ray, RAXO cannot classify it. Future work may explore more sophisticated material modeling and extending the framework to other non-RGB modalities like thermal or infrared imaging.

Summary updated

Abstract

Open-vocabulary object detection (OvOD) is set to revolutionize security screening by enabling systems to recognize any item in X-ray scans. However, developing effective OvOD models for X-ray imaging presents unique challenges due to data scarcity and the modality gap that prevents direct adoption of RGB-based solutions. To overcome these limitations, we propose RAXO, a training-free framework that repurposes off-the-shelf RGB OvOD detectors for robust X-ray detection. RAXO builds high-quality X-ray class descriptors using a dual-source retrieval strategy. It gathers relevant RGB images from the web and enriches them via a novel X-ray material transfer mechanism, eliminating the need for labeled databases. These visual descriptors replace text-based classification in OvOD, leveraging intra-modal feature distances for robust detection. Extensive experiments demonstrate that RAXO consistently improves OvOD performance, providing an average mAP increase of up to 17.0 points over base detectors. To further support research in this emerging field, we also introduce DET-COMPASS, a new benchmark featuring bounding box annotations for over 300 object categories, enabling large-scale evaluation of OvOD in X-ray. Code and dataset available at: https://github.com/PAGF188/RAXO.
BibTeX
@inproceedings{garciafernandez2025superpowering,
  author = {Pablo Garcia-Fernandez and Lorenzo Vaquero and Mingxuan Liu and Feng Xue and Daniel Cores and Nicu Sebe and Manuel Mucientes and Elisa Ricci},
  title = {{Superpowering Open-Vocabulary Object Detectors for X-ray Vision}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure