Can a Second-View Image Be a Language? Geometric and Semantic Cross-Modal Reasoning for X-ray Prohibited Item Detection

Chuang Peng, Renshuai Tao, Zhongwei Ren, Xianglong Liu, Yunchao WeiarXiv 2025 · DOI

Abstract

Security inspection via X-ray imaging faces significant challenges due to object overlap and orientation ambiguities. While human inspectors utilize dual-view systems to resolve these issues, automated systems often struggle to integrate multi-view information effectively. This paper introduces the Geometric-Semantic Reasoner (GSR), a framework that treats the second view of an X-ray scan as a "language-like" constraint. By leveraging structured Chain-of-Thought (CoT) sequences and the new DualXrayBench dataset, GSR achieves state-of-the-art performance in prohibited item detection, demonstrating superior geometric and semantic reasoning capabilities.

Introduction

The detection of prohibited items in security settings is complicated by the semi-transparent nature of X-ray scans and the frequent occlusion of items. Traditional automated systems often suffer from limited generalization and poor performance when items are oriented unfavorably. While dual-view systems provide complementary information, effectively fusing these views remains a technical hurdle.

Comparison of different X-ray detection modalities, highlighting the advantages of dual-view vision and language integration.

Recent Vision-Language Models (VLMs) offer semantic reasoning but often lack the geometric "common sense" to correlate features across different viewpoints. The core innovation of this work is the realization that a second perspective can act as a "language-like" modality, providing a logical constraint that guides the model's reasoning process through structured sequences.

Methodology: The Geometric-Semantic Reasoner (GSR)

The proposed GSR framework moves beyond simple feature concatenation. It treats the second view as a structured input that forces the model to perform a hierarchical reasoning process.

The five-step pipeline for the Geometric-Semantic Reasoner (GSR), from metadata extraction to human verification.

Hierarchical Reasoning Tokens

GSR utilizes specific tags—<top>, <side>, and <conclusion>—to structure its internal logic. This "Chain-of-Thought" (CoT) approach requires the model to:

  1. Describe the top view in detail.
  2. Describe the side view, identifying complementary features.
  3. Synthesize a final conclusion based on the geometric and semantic alignment of both perspectives.

Architecture and Supervision

Built on the Qwen3-VL-MoE-8B foundation, GSR uses a shared-weight ViT-L/14 vision encoder to process both views independently. These views are then aligned into the language model's semantic space via a lightweight MLP. To supervise this learning, the authors developed the GSXray dataset, which provides fine-grained textual descriptions modeling the transition from geometric perception to high-level semantics.

Datasets and Benchmarking

The research introduces two major resources for the community:

  • DualXrayCap: A massive corpus of 45,613 dual-view image pairs across 12 categories (e.g., laptops, tablets, liquids, umbrellas), totaling nearly 140,000 annotated instances.
  • DualXrayBench: A first-of-its-kind benchmark with 1,594 expert-verified Q&A pairs. It evaluates models on eight tasks, including Spatial Distance (depth estimation), Contact-Occlusion (physical contact determination), and Placement Attributes (3D orientation).

Key Results and Insights

The GSR model sets a new state-of-the-art on the DualXrayBench, achieving an overall accuracy of 65.4%. This significantly outperforms general-purpose models such as GPT-4o (47.0%) and InternVL3.5-8B (45.4%).

Cross-Modal Synergy

A key insight is that framing the second view as a language constraint allows the model to leverage the reasoning power of Large Language Models (LLMs) for geometric problems. In tasks like Spatial Distance (SD), which are notoriously difficult for 2D models, GSR reached 61.0% accuracy, whereas most baselines struggled below 40%. Furthermore, GSR demonstrated strong generalization when tested on external datasets like STING-BEE, indicating robust reasoning capabilities across different scanning environments.

Conclusion and Future Work

The GSR framework represents a significant advancement in X-ray security inspection by integrating geometric correspondences with linguistic semantics. While currently focused on 12 common categories, future work aims to expand the "open-vocabulary" capabilities of the model to include a wider range of potential threats. Additionally, researchers are exploring the integration of more complex data types, such as CT scans, and optimizing the computational efficiency of the MoE architecture for real-time deployment.

Reference: Peng, C., et al. (2025). Can a Second-View Image Be a Language? Geometric and Semantic Cross-Modal Reasoning for X-ray Prohibited Item Detection. arXiv:2511.18385v1.

Summary updated

BibTeX
@misc{peng2025can,
  author = {Chuang Peng and Renshuai Tao and Zhongwei Ren and Xianglong Liu and Yunchao Wei},
  title = {{Can a Second-View Image Be a Language? Geometric and Semantic Cross-Modal Reasoning for X-ray Prohibited Item Detection}},
  year = {2025},
  eprint = {2511.18385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.18385},
}
Figure