Decomposing Visual Classification: Assessing Tree-Based Reasoning in VLMs

Sary Elmansoury, Islam Mesabah, Gerrit Großmann, Peter Neigel, Raj Bhalwankar, Daniel Kondermann, Sebastian J. Vollmer

TL;DR

While breaking down complex visual classification tasks into a hierarchical decision tree seems like a surefire way to improve both accuracy and interpretability in Vision-Language Models (VLMs), this paper reveals a surprising counter-trend. Through rigorous evaluation, the authors show that tree-based reasoning consistently underperforms standard zero-shot prompting due to severe error propagation and a fragility in high-level semantic reasoning.

What Problem Does This Paper Address?

Modern Vision-Language Models (VLMs) like GPT-4o and LLaVA excel at general, coarse-grained image classification (e.g., telling a car from an airplane). However, they frequently stumble on fine-grained classification tasks that require distinguishing subtle visual differences within a specialized domain, such as identifying specific traffic sign variants or medical subcategories.

Furthermore, VLMs operate as "black boxes." When a model misclassifies an image, it is incredibly difficult for engineers to diagnose the underlying reasoning pathway. To tackle both accuracy and interpretability, recent research has pointed toward structured, tree-based reasoning—decomposing a complex classification task into a series of simpler, sequential questions (e.g., "Is the sign a triangle?" $\rightarrow$ "Does it have a red border?"). This paper systematically investigates whether this intuitive, structured approach actually delivers on its promises when deployed with state-of-the-art VLMs.

Methods

The authors designed an empirical framework to compare standard zero-shot classification against hierarchical tree-based reasoning across multiple VLMs.

Figure 1: Experimental framework setup illustrating both zero-shot classification and hierarchical tree-based reasoning. It also shows the construction and use of decision trees for step-by-step visual classification.

The methodology consists of several key components:

  1. Tree Generation & Refinement: Initial decision trees were automatically generated using LLMs (DeepSeek and GPT-4), guided by class metadata, and subsequently refined by human annotators to ensure semantic consistency.
  2. Tree Traversal: The VLMs traverse the tree using a depth-first search (DFS) strategy, answering a specific question at each node until a leaf node (the final class) is reached.
  3. Prompting Variations: The authors tested three tree-based setups:
  4. Standard Tree-Based: The VLM only sees the current node's question and possible answers.
  5. Tree-Based with History: The prompt includes the history of previously traversed questions and answers.
  6. Tree-Based with Descriptions: The prompt is augmented with LLM-generated class descriptions and image captions to provide richer semantic grounding.
  7. Knowledge Verification: To isolate whether failures were due to a lack of visual knowledge or a failure in the tree structure, the authors ran a "verification mode" where the model was given the ground-truth label and asked to answer the path's questions sequentially.

Datasets

The framework was evaluated on two distinct benchmark datasets:

  • German Traffic Sign Recognition Benchmark (GTSRB): A fine-grained dataset featuring 43 traffic sign classes. The authors sampled 901 representative images from the training set to evaluate the models under noisy, real-world conditions.
  • CIFAR-10: A standard coarse-grained dataset featuring 10 general object classes (e.g., airplane, bird, cat), evaluated using 1,000 balanced samples.

Key Insights and Ideas

  • The Paradox of Knowledge vs. Execution: In verification mode, GPT-4o achieved an astonishing 98.2% average accuracy across the decision tree questions. This proves the VLM inherently possesses the fine-grained visual knowledge required; it simply fails to apply it reliably when navigating the tree dynamically.
  • Top-Level Fragility (Error Propagation): The hierarchical nature of decision trees means that an error at a root or high-level node (e.g., misidentifying a primary shape) completely derails the classification path, making recovery impossible.
  • The Perceptual vs. Semantic Gap: VLMs perform exceptionally well on low-level perceptual questions (detecting shapes or colors) but struggle significantly with abstract, high-level semantic queries (e.g., "What action is prohibited?").
  • Context Overload: Counterintuitively, appending the conversation history to the prompt degraded performance. The extra text diluted the visual features the VLM needed to focus on, aligning with the known "lost in the middle" phenomenon of long-context models.

Key Results

Across all models (GPT-4o, LLaMA-3.2 11B Vision Instruct, and Qwen-VL MAX) and both datasets, tree-based reasoning consistently underperformed the standard zero-shot baseline.

Figure 2: Distribution of zero-shot classification accuracy over 10 prompt variations, evaluated across all datasets.
  • GTSRB (Fine-Grained): GPT-4o achieved 65.78% accuracy in the zero-shot setting (at temperature 0) but plummeted to 52.05% when using the tree-based approach—a massive 13.7 percentage point drop. Qwen-VL showed a similar trend (40.18% zero-shot vs. 32.18% tree-based).
  • CIFAR-10 (Coarse-Grained): While overall numbers were higher, the performance gap remained. GPT-4o's zero-shot performance outperformed its tree-based counterpart by up to 14 percentage points.
  • Mitigation via Descriptions: Incorporating textual class descriptions and image captions helped narrow the performance gap for tree-based methods, but it was still insufficient to outperform direct zero-shot classification.

Limitations and Future Work

The authors note that tree-based reasoning is highly sensitive to exact question phrasing and the structural layout of the tree. A single sub-optimal parent-child node relationship can introduce systematic misclassifications.

To overcome these limitations, the authors propose several future directions:

  • Hybrid Architectures: Integrating zero-shot predictions directly into the tree pipeline (e.g., using the zero-shot label as an optional feature at decision nodes) to prevent early-stage error propagation.
  • Automated Tree Optimization: Utilizing reinforcement learning or iterative refinement techniques to let the system discover the most robust, VLM-friendly branching logic.
  • Shallow & Wide Structures: Shifting from deep hierarchical trees toward flatter, breadth-first structures that prioritize atomic visual primitives (color, texture) before attempting semantic interpretation.

Summary updated

BibTeX
@misc{elmansoury2025decomposing,
  author = {Sary Elmansoury and Islam Mesabah and Gerrit Großmann and Peter Neigel and Raj Bhalwankar and Daniel Kondermann and Sebastian J. Vollmer},
  title = {{Decomposing Visual Classification: Assessing Tree-Based Reasoning in VLMs}},
  year = {2025},
  eprint = {2509.09732},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.09732},
}
Figure