Skip to content

Zeqing-Wang/Towards-Top-Down-Reasoning

Repository files navigation

Towards Top Down Reasoning

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.

Environment Prepare

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.

LLM Results

New LLM or new vqa dataset

We provide a unify api toolkit in api_tools/request_api_zoo.py, which support:

Used LLM Results

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

Running

After setting the API key, or preparing the LLM results, you can run the framework via:

 bash run_gpt.sh

Other Setting

  • 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

TODO

  • Release main framework code based on LAVIS
  • Release Corresponding middle results
  • A more clear codebase with running README.md

Acknowledgement

We heavily borrow the code from LAVIS, and LLaVA. Thanks for sharing their code.

Citation

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}, 
}

About

[TMM 2025] Official Repository for the Paper: "Towards Top-Down Reasoning: An Explainable Multi-Agent Approach for Visual Question Answering"

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages