Tree-of-Mixed-Thought: Combining Fast and Slow Thinking for Multi-hop Visual Reasoning

Pengbo Hu*, Ji Qi*, Xingyu Li, Hong Li, Xinqi Wang, Bing Quan, Ruiyu Wang, Yi Zhou

arXiv 2023 · * Equal contribution

Tree-of-Mixed-Thought plans how to answer a visual question by combining quick proposals for several reasoning steps with depth-first search that checks and revises the plan.

Method

ToT-One-Stop

Propose all remaining steps at an eligible search node. If the plan fails validation, resume search one step at a time.

ToT-Block

Propose a fixed number of steps per node, reducing the depth of the search needed to build a complete plan.

Both methods check whether the proposed tools can run with the specified arguments and whether those arguments match objects and attributes in the scene graph.

Multi-hop reasoning benchmark

The benchmark groups nine question types from PTR and CLEVR by sequential reasoning, parallel reasoning, backtracking and multiple backtracks. It uses 100 test questions per type and provides scene-graph tools for object attributes, spatial relations and counting.

Four question structures with examples of their reasoning plans and the scene-graph tools available to the planner.
Benchmark structures and available tools from Figure 1.

Accuracy and search steps

Takeaway ToT-One-Stop used fewer search steps in all nine question types and improved accuracy in eight. On long spatial relations, accuracy fell from 56% to 53% as search steps dropped from 15.90 to 9.63.

Paper Table 1. Each cell shows accuracy and, where reported, mean search steps.
Question typeOne-StopTree-of-ThoughtToT-One-StopToT-Block
Short spatial relation39.33%52.66% · 5.4856.66% · 3.0459.33% · 3.30
Long spatial relation7.66%56.00% · 15.9053.00% · 9.6355.00% · 10.49
Sum86.00%98.66% · 6.39100.00% · 2.4793.44% · 3.22
Compare52.00%59.66% · 6.9163.00% · 2.3959.00% · 3.89
Logic31.00%65.00% · 12.8169.00% · 5.5070.66% · 7.67
Query part74.00%77.00% · 5.0678.66% · 2.0878.33% · 3.12
Exist53.00%82.00% · 7.5890.33% · 4.4086.33% · 5.25
Count72.66%85.66% · 8.2590.00% · 3.7792.00% · 5.13
Analogy70.33%89.66% · 8.5793.00% · 3.1292.33% · 4.37