MATA: A Trainable Hierarchical Automaton System for Multi-Agent Visual Reasoning
Zhixi Cai, Fucai Ke, Kevin Leo, Sukai Huang, Maria Garcia de la Banda, Peter J. Stuckey, Hamid Rezatofighi
TL;DR
MATA tackles the opaque and hallucination-prone reasoning of vision-language models by casting visual reasoning as a hierarchical finite-state automaton whose top-level transitions are learned by a trainable hyper agent. Each top-level state corresponds to a small, rule-based agent, enabling reliable micro-control, while a shared memory records an auditable execution history. The hyper agent is supervised via a transition-trajectory dataset (MATA-SFT-90K) derived from transition trees, enabling robust cross-task policy learning and generalization across GQA, OK-VQA, and referring expression benchmarks. Across multiple datasets, MATA achieves state-of-the-art performance by enabling collaboration and competition among complementary agents, reducing hallucinations and providing interpretable reasoning traces that can transfer across domains. The work advances interpretable, modular visual reasoning with practical efficiency by combining a learned high-level policy with deterministic, verifiable agent behavior, and provides datasets and code for further research.
Abstract
Recent vision-language models have strong perceptual ability but their implicit reasoning is hard to explain and easily generates hallucinations on complex queries. Compositional methods improve interpretability, but most rely on a single agent or hand-crafted pipeline and cannot decide when to collaborate across complementary agents or compete among overlapping ones. We introduce MATA (Multi-Agent hierarchical Trainable Automaton), a multi-agent system presented as a hierarchical finite-state automaton for visual reasoning whose top-level transitions are chosen by a trainable hyper agent. Each agent corresponds to a state in the hyper automaton, and runs a small rule-based sub-automaton for reliable micro-control. All agents read and write a shared memory, yielding transparent execution history. To supervise the hyper agent's transition policy, we build transition-trajectory trees and transform to memory-to-next-state pairs, forming the MATA-SFT-90K dataset for supervised finetuning (SFT). The finetuned LLM as the transition policy understands the query and the capacity of agents, and it can efficiently choose the optimal agent to solve the task. Across multiple visual reasoning benchmarks, MATA achieves the state-of-the-art results compared with monolithic and compositional baselines. The code and dataset are available at https://github.com/ControlNet/MATA.
