Integrating Language-Derived Appearance Elements With Visual Cues in Pedestrian Detection

Sungjune Park, Hyunjun Kim, Yong Man Ro

TL;DR

This paper introduces a novel framework that boosts pedestrian detection by injecting language-derived appearance knowledge from Large Language Models (LLMs) into standard vision models. Crucially, the approach distills millions of text descriptions into compact, task-tuned "appearance elements," providing rich semantic cues during training without requiring any text inputs or LLM processing during inference.

What Problem Does This Paper Address?

Pedestrian detection is a safety-critical task for autonomous driving and intelligent surveillance systems. However, purely visual models frequently struggle with the massive real-world variability of human appearances—ranging from diverse poses and clothing to severe occlusions. Furthermore, background objects (like a stack of tires or a dark sedan) can easily confuse a detector if they share similar colors or textures with humans.

While LLMs excel at understanding semantic and contextual appearance variations, directly deploying them inside real-time computer vision pipelines is computationally prohibitive. The authors address this challenge by finding a way to leverage LLM-generated semantic knowledge to guide visual feature learning without incurring inference-time language processing overhead.

Methods

The authors propose a multi-step framework to extract and integrate language knowledge into a vision detector:

  1. Appearance Description Corpus: The authors generate millions of diverse text descriptions. For pedestrians, they use templates augmented with fine-grained attributes (age, clothing, pose, action). For background objects, they use MS-COCO classes and the LAION dataset to capture extensive environmental contexts.
  2. Appearance Knowledge Centroids: These descriptions are converted into text embeddings using Sentence-T5. To make this massive dataset manageable, K-means clustering condenses the embeddings into $K$ representative "knowledge centroids."
  3. Task-Prompting: Because raw LLM embeddings suffer from a semantic gap when applied to downstream tasks, the authors introduce learnable "appearance prompts" paired with each centroid. These prompts are fine-tuned using a pedestrian classification loss, yielding optimized, task-relevant "Appearance Elements."
  4. Multi-Modality Integration: During detector training, an integration module uses cross-attention where visual region queries act as queries ($Q$), and the static appearance elements act as keys ($K$) and values ($V$). A custom reference loss ($L_{ref}$) forces pedestrian visual queries to attend to pedestrian-related language elements and vice versa.
Overview of the appearance element formulation pipeline
Integrating module using multi-modality cross-attention

Datasets

The framework was evaluated on two major public pedestrian detection benchmarks:

  • CrowdHuman: A highly crowded, challenging benchmark containing 15,000 training images, 4,370 validation images, and 5,000 test images. It features diverse real-world environments with heavily occluded human instances.
  • WiderPedestrian: A large-scale dataset focused on autonomous driving and surveillance scenarios, consisting of 11,500 training, 5,000 validation, and 3,500 testing images.

Key Insights and Ideas

  • Zero Inference Overhead: The most elegant aspect of this work is that the LLM is completely discarded at inference time. The "Appearance Elements" are pre-computed and frozen, acting as a static semantic lookup table that the vision model queries via cross-attention.
  • Bridging the Semantic Gap: Raw text embeddings from general LLMs aren't perfectly aligned with a binary classification task like pedestrian detection. The "task-prompting" phase acts as a crucial adapter, tuning the language features specifically to distinguish humans from background clutter.
  • Plug-and-Play Adaptability: Because the appearance elements are integrated via standard cross-attention, this method can be easily injected into various modern object detection architectures (e.g., Sparse R-CNN, Deformable DETR) without modifying their core backbones.

Key Results

The method achieved state-of-the-art results on both benchmarks across multiple base detectors:

  • CrowdHuman: Improved Sparse R-CNN by 1.9 AP (reaching 92.6%) and Deformable DETR (D-DETR) by 2.7 AP (reaching 94.2%). Combined with DDQ DETR, it achieved a top score of 95.4% AP.
  • WiderPedestrian: Noticeable gains were achieved across the board, boosting Sparse R-CNN by 1.7 AP and DDQ DETR to 86.4% AP.
  • Efficiency: These performance leaps come with a minimal parameter increase—only a 1.6% overhead for DDQ DETR and 5.6% for DDQ R-CNN.

Limitations and Future Work

  • Contextual False Positives: The model can still be fooled by human-like shapes in non-pedestrian contexts, such as portraits, posters, or statues, because it focuses heavily on fine-grained appearance rather than broader environmental context.
  • Future Directions: The authors suggest expanding the framework to incorporate environmental and situational context (the surroundings of the pedestrian) to help the model better differentiate between a real person on the street and a picture of a person on a billboard.

Summary updated

BibTeX
@article{park2024integrating,
  author = {Sungjune Park and Hyunjun Kim and Yong Man Ro},
  title = {{Integrating Language-Derived Appearance Elements With Visual Cues in Pedestrian Detection}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2024},
  url = {https://openreview.net/forum?id=LDyai9PnLg},
}
Figure