Official PyTorch implementation for the paper:
Towards top-down reasoning: An explainable multi-agent approach for visual question answering (TMM 2025).
Zeqing Wang, Wentao Wan, Qiqing Lao, Runmeng Chen, Minjie Lang, Xiao Wang, Keze Wang, Liang Lin.
Please refer to LAVIS. But do not use the official code, we modify the response function to obtain the confidence of the answer candidate. The source of LAVIS has been contained in this repo.
We provide a unify api toolkit in api_tools/request_api_zoo.py, which support:
- Official OpenAI's server
- Siliconflow
- Zhipu
Due to the update of LLM's API, we provide the middle results of the experiments we have conducted. You can download them from GoogleDriver
After setting the API key, or preparing the LLM results, you can run the framework via:
bash run_gpt.sh- We use a multi-process to speed up the LLM revoke, you can modify the num of process in 'step_eval_multi_process_api_zoo.py'
- Download corresponding datasets and set the path in: step_eval_mutil_process_api_zoo.py, test_for_integration_rights_alloction.py
Release main framework code based on LAVISRelease Corresponding middle results- A more clear codebase with running README.md
We heavily borrow the code from LAVIS, and LLaVA. Thanks for sharing their code.
If you find the code useful for your work, please star this repo and consider citing:
@misc{wang2025topdownreasoningexplainablemultiagent,
title={Towards Top-Down Reasoning: An Explainable Multi-Agent Approach for Visual Question Answering},
author={Zeqing Wang and Wentao Wan and Qiqing Lao and Runmeng Chen and Minjie Lang and Xiao Wang and Keze Wang and Liang Lin},
year={2025},
eprint={2311.17331},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2311.17331},
}