{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,15]],"date-time":"2026-03-15T03:51:52Z","timestamp":1773546712405,"version":"3.50.1"},"reference-count":52,"publisher":"Association for Computing Machinery (ACM)","issue":"3","funder":[{"name":"Beijing Natural Science Foundation","award":["JQ23018, L252032, and L221004"],"award-info":[{"award-number":["JQ23018, L252032, and L221004"]}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"crossref","award":["U25B2076, 62522218, and 62276257"],"award-info":[{"award-number":["U25B2076, 62522218, and 62276257"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Multimedia Comput. Commun. Appl."],"published-print":{"date-parts":[[2026,3,31]]},"abstract":"<jats:p>Code-driven Large Language Models (LLMs) integrate both natural and formal languages, enhancing reasoning, precision, and interaction with execution environments, which in turn augments the capabilities of intelligent agents. Recent advancements in code-driven LLMs have proven pivotal for visual tasks, such as Visual Question Answering (VQA), a critical task at the intersection of computer vision and natural language processing. Despite significant progress, interpretability remains a challenge for VQA models, leading to the emergence of multimodal explanations for VQA. In this article, we propose the One-Shot and Training-Free Code-Driven LLM Agent (OneCoLA), a novel framework for Multimodal Explanatory Visual Question Answering (MEVQA). OneCoLA enables LLMs to generate multimodal explanations for the VQA task by utilizing a one-shot prompt to convert input questions into Python programs that model the reasoning process. The framework supports the flexible integration of open-world tools, ensuring adaptability to different problem contexts. During program execution, OneCoLA captures and preserves key execution data to enhance the interpretability of the results. Additionally, through further one-shot prompting, the framework generates multimodal explanations by combining execution outcomes with relevant visual content, providing both textual and visual context. Experimental results compared with state-of-the-art methods demonstrate the effectiveness of OneCoLA in generating accurate and interpretable multimodal explanations without the need for extensive training.<\/jats:p>","DOI":"10.1145\/3785327","type":"journal-article","created":{"date-parts":[[2025,12,16]],"date-time":"2025-12-16T14:48:18Z","timestamp":1765896498000},"page":"1-16","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Code-Driven LLM Agent for One-Shot Explanatory Visual Question Answering"],"prefix":"10.1145","volume":"22","author":[{"ORCID":"https:\/\/orcid.org\/0009-0008-0306-8461","authenticated-orcid":false,"given":"Zuyi","family":"Zhou","sequence":"first","affiliation":[{"name":"Institute of Automation, Chinese Academy of Sciences, China and University of Chinese Academy of Sciences, Beijing, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0173-1556","authenticated-orcid":false,"given":"Dizhan","family":"Xue","sequence":"additional","affiliation":[{"name":"Institute of Automation, Chinese Academy of Sciences, China and University of Chinese Academy of Sciences, Beijing, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0008-5856-4817","authenticated-orcid":false,"given":"Baoyuan","family":"Qi","sequence":"additional","affiliation":[{"name":"Algorithm Department, Xiaomi Inc., Beijing, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9488-2208","authenticated-orcid":false,"given":"Shengsheng","family":"Qian","sequence":"additional","affiliation":[{"name":"Institute of Automation, Chinese Academy of Sciences, China and University of Chinese Academy of Sciences, Beijing, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8343-9665","authenticated-orcid":false,"given":"Changsheng","family":"Xu","sequence":"additional","affiliation":[{"name":"Institute of Automation, Chinese Academy of Sciences, China University of Chinese Academy of Sciences, Beijing, China and Peng Cheng Laboratory, Shenzhen, China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2026,2,27]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-46454-1_24"},{"key":"e_1_3_1_3_2","article-title":"The Claude 3 model family: Opus, Sonnet, Haiku","volume":"1","author":"Anthropic A. I.","year":"2024","unstructured":"A. I. Anthropic. 2024. The Claude 3 model family: Opus, Sonnet, Haiku. Claude-3 Model Card 1 (2024). Retrieved from https:\/\/www-cdn.anthropic.com\/de8ba9b01c9ab7cbabf5c33b80b7bbc618857627\/Model_Card_Claude_3.pdf","journal-title":"Claude-3 Model Card"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICCV.2015.279"},{"key":"e_1_3_1_5_2","first-page":"65","volume-title":"Proceedings of the ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and\/or Summarization","author":"Banerjee Satanjeev","year":"2005","unstructured":"Satanjeev Banerjee and Alon Lavie. 2005. METEOR: An automatic metric for MT evaluation with improved correlation with human judgments. In Proceedings of the ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and\/or Summarization, 65\u201372."},{"key":"e_1_3_1_6_2","doi-asserted-by":"crossref","unstructured":"Maciej Besta Nils Blach Ales Kubicek Robert Gerstenberger Michal Podstawski Lukas Gianinazzi Joanna Gajda Tomasz Lehmann Hubert Niewiadomski Piotr Nyczyk and Torsten Hoefler. 2024. Graph of thoughts: Solving elaborate problems with large language models. Proceedings of the AAAI Conference on Artificial Intelligence 38 (Mar. 2024) 17682\u201317690.","DOI":"10.1609\/aaai.v38i16.29720"},{"key":"e_1_3_1_7_2","volume-title":"Proceedings of the AAAI Conference on Artificial Intelligence. arXiv:","author":"Bi Zhen","year":"2023","unstructured":"Zhen Bi, Ningyu Zhang, Yinuo Jiang, Shumin Deng, Guozhou Zheng, and Huajun Chen. 2023. When do program-of-thoughts work for reasoning? Proceedings of the AAAI Conference on Artificial Intelligence. arXiv:2308.15452. Retrieved from https:\/\/api.semanticscholar.org\/CorpusID:261277160"},{"key":"e_1_3_1_8_2","unstructured":"Tom B. Brown. 2020. Language models are few-shot learners. arXiv:2005.14165. Retrieved from https:\/\/arxiv.org\/abs\/2005.14165"},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR52688.2022.01514"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1609\/aaai.v38i2.27888"},{"key":"e_1_3_1_11_2","unstructured":"Yuhao Dong Zuyan Liu Hai-Long Sun Jingkang Yang Winston Hu Yongming Rao and Ziwei Liu. 2024. Insight-V: Exploring long-chain visual reasoning with multimodal large language models. arXiv:2411.14432. Retrieved from https:\/\/arxiv.org\/abs\/2411.14432"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR52729.2023.01436"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2019.00686"},{"key":"e_1_3_1_14_2","unstructured":"Aaron Hurst Adam Lerer Adam P. Goucher Adam Perelman Aditya Ramesh Aidan Clark A. J. Ostrow Akila Welihinda Alan Hayes Alec Radford et al. 2024. GPT-4o system card. arXiv:2410.21276. Retrieved from https:\/\/arxiv.org\/abs\/2410.21276"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2017.215"},{"key":"e_1_3_1_16_2","unstructured":"Liunian Harold Li Mark Yatskar Da Yin Cho-Jui Hsieh and Kai-Wei Chang. 2019. VisualBERT: A simple and performant baseline for vision and language. arXiv:1908.03557. Retrieved from https:\/\/arxiv.org\/abs\/1908.03557"},{"key":"e_1_3_1_17_2","unstructured":"Qing Li Jianlong Fu Dongfei Yu Tao Mei and Jiebo Luo. 2018. Tell-and-answer: Towards explainable visual question answering using attributes and captions. arXiv:1801.09041. Retrieved from https:\/\/arxiv.org\/abs\/1801.09041"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-01234-2_34"},{"key":"e_1_3_1_19_2","first-page":"74","article-title":"ROUGE: A package for automatic evaluation of summaries","author":"Lin Chin-Yew","year":"2004","unstructured":"Chin-Yew Lin. 2004. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out. Association for Computational Linguistics, Barcelona, Spain, 74\u201381.","journal-title":"Text Summarization Branches Out"},{"key":"e_1_3_1_20_2","first-page":"34892","article-title":"Visual instruction tuning","volume":"36","author":"Liu Haotian","year":"2023","unstructured":"Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2023. Visual instruction tuning. In Proceedings of the Advances in Neural Information Processing Systems, Vol. 36, 34892\u201334916.","journal-title":"Proceedings of the Advances in Neural Information Processing Systems"},{"key":"e_1_3_1_21_2","unstructured":"Jingming Liu Yumeng Li Boyuan Xiao Yichang Jian Ziang Qin Tianjia Shao Yao-Xiang Ding and Kun Zhou. 2024. Enhancing visual reasoning with autonomous imagination in multimodal large language models. arXiv:2411.18142. Retrieved from https:\/\/arxiv.org\/abs\/2411.18142"},{"key":"e_1_3_1_22_2","unstructured":"Zuyan Liu Yuhao Dong Ziwei Liu Winston Hu Jiwen Lu and Yongming Rao. 2024. Oryx MLLM: On-demand spatial-temporal understanding at arbitrary resolution. arXiv:2409.12961. Retrieved from https:\/\/arxiv.org\/abs\/2409.12961"},{"key":"e_1_3_1_23_2","first-page":"2507","article-title":"Learn to explain: Multimodal reasoning via thought chains for science question answering","volume":"35","author":"Lu Pan","year":"2022","unstructured":"Pan Lu, Swaroop Mishra, Tanglin Xia, Liang Qiu, Kai-Wei Chang, Song-Chun Zhu, Oyvind Tafjord, Peter Clark, and Ashwin Kalyan. 2022. Learn to explain: Multimodal reasoning via thought chains for science question answering. In Proceedings of the Advances in Neural Information Processing Systems, Vol. 35, 2507\u20132521.","journal-title":"Proceedings of the Advances in Neural Information Processing Systems"},{"key":"e_1_3_1_24_2","article-title":"Chameleon: Plug-and-play compositional reasoning with large language models","volume":"36","author":"Lu Pan","year":"2024","unstructured":"Pan Lu, Baolin Peng, Hao Cheng, Michel Galley, Kai-Wei Chang, Ying Nian Wu, Song-Chun Zhu, and Jianfeng Gao. 2024. Chameleon: Plug-and-play compositional reasoning with large language models. In Proceedings of the Advances in Neural Information Processing Systems, Vol. 36.","journal-title":"Proceedings of the Advances in Neural Information Processing Systems"},{"key":"e_1_3_1_25_2","doi-asserted-by":"crossref","unstructured":"Ana Marasovi\u0107 Chandra Bhagavatula Jae Sung Park Ronan Le Bras Noah A. Smith and Yejin Choi. 2020. Natural language rationales with full-stack visual reasoning: From pixels to semantic frames to commonsense graphs. arXiv:2010.07526. Retrieved from https:\/\/arxiv.org\/abs\/2010.07526","DOI":"10.18653\/v1\/2020.findings-emnlp.253"},{"key":"e_1_3_1_26_2","unstructured":"OpenAI. 2023. GPT-4 technical report. arXiv:2303.08774. Retrieved from https:\/\/arxiv.org\/abs\/2303.08774"},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/3487042"},{"key":"e_1_3_1_28_2","first-page":"311","volume-title":"Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics","author":"Papineni Kishore","year":"2002","unstructured":"Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. BLEU: A method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, 311\u2013318."},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2018.00915"},{"key":"e_1_3_1_30_2","unstructured":"Shengsheng Qian Zuyi Zhou Dizhan Xue Bing Wang and Changsheng Xu. 2024. From linguistic giants to sensory maestros: A survey on cross-modal reasoning with large language models. arXiv:2409.18996. Retrieved from https:\/\/arxiv.org\/abs\/2409.18996"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.1109\/TPAMI.2016.2577031"},{"key":"e_1_3_1_32_2","article-title":"HuggingGPT: Solving AI tasks with ChatGPT and its friends in Hugging Face","volume":"36","author":"Shen Yongliang","year":"2024","unstructured":"Yongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu, and Yueting Zhuang. 2024. HuggingGPT: Solving AI tasks with ChatGPT and its friends in Hugging Face. In Proceedings of the Advances in Neural Information Processing Systems, Vol. 36.","journal-title":"Proceedings of the Advances in Neural Information Processing Systems"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2019.00857"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICRA48891.2023.10161317"},{"key":"e_1_3_1_35_2","doi-asserted-by":"crossref","unstructured":"D\u00eddac Sur\u00eds Sachit Menon and Carl Vondrick. 2023. ViperGPT: Visual inference via Python execution for reasoning. arXiv:2303.08128. Retrieved from https:\/\/arxiv.org\/abs\/2303.08128","DOI":"10.1109\/ICCV51070.2023.01092"},{"key":"e_1_3_1_36_2","unstructured":"Hao Tan and Mohit Bansal. 2019. LXMERT: Learning cross-modality encoder representations from transformers. arXiv:1908.07490. Retrieved from https:\/\/arxiv.org\/abs\/1908.07490"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.1145\/3605781"},{"key":"e_1_3_1_38_2","unstructured":"Gemini Team Rohan Anil Sebastian Borgeaud Yonghui Wu Jean-Baptiste Alayrac Jiahui Yu Radu Soricut Johan Schalkwyk Andrew M. Dai Anja Hauth et al. 2023. Gemini: A family of highly capable multimodal models. arXiv:2312.11805. Retrieved from https:\/\/arxiv.org\/abs\/2312.11805"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2015.7299087"},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","DOI":"10.1109\/TPAMI.2017.2754246"},{"key":"e_1_3_1_41_2","unstructured":"Xingyao Wang Yangyi Chen Lifan Yuan Yizhe Zhang Yunzhu Li Hao Peng and Heng Ji. 2024. Executable code actions elicit better LLM agents. arXiv:2402.01030. Retrieved from https:\/\/arxiv.org\/abs\/2402.01030"},{"issue":"3","key":"e_1_3_1_42_2","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3618301","article-title":"Cross-modality multiple relations learning for knowledge-based visual question answering","volume":"20","author":"Wang Yan","year":"2023","unstructured":"Yan Wang, Peize Li, Qingyi Si, Hanwen Zhang, Wenyu Zang, Zheng Lin, and Peng Fu. 2023. Cross-modality multiple relations learning for knowledge-based visual question answering. ACM Transactions on Multimedia Computing, Communications and Applications 20, 3 (2023), 1\u201322.","journal-title":"ACM Transactions on Multimedia Computing, Communications and Applications"},{"key":"e_1_3_1_43_2","unstructured":"Jialin Wu and Raymond J. Mooney. 2018. Faithful multimodal explanation for visual question answering. arXiv:1809.02805. Retrieved from https:\/\/arxiv.org\/abs\/1809.02805"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","DOI":"10.1109\/TMM.2024.3521709"},{"key":"e_1_3_1_45_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICCV51070.2023.00238"},{"key":"e_1_3_1_46_2","doi-asserted-by":"crossref","unstructured":"Dizhan Xue Shengsheng Qian and Changsheng Xu. 2024. Few-shot multimodal explanation for visual question answering. In Proceedings of the 32nd ACM International Conference on Multimedia.","DOI":"10.1145\/3664647.3681597"},{"key":"e_1_3_1_47_2","doi-asserted-by":"publisher","DOI":"10.1109\/TPAMI.2024.3398012"},{"key":"e_1_3_1_48_2","unstructured":"Dizhan Xue Shengsheng Qian Zuyi Zhou and Changsheng Xu. 2023. A survey on interpretable cross-modal reasoning. arXiv:2309.01955. Retrieved from https:\/\/arxiv.org\/abs\/2309.01955"},{"key":"e_1_3_1_49_2","unstructured":"Ke Yang Jiateng Liu John Wu Chaoqi Yang Yi. R. Fung Sha Li Zixuan Huang Xu Cao Xingyao Wang Yiquan Wang et al. 2024. If LLM is the wizard then code is the wand: A survey on how code empowers large language models to serve as intelligent agents. arXiv:2401.00812. Retrieved from https:\/\/arxiv.org\/abs\/2401.00812"},{"key":"e_1_3_1_50_2","unstructured":"Yao Yao Zuchao Li and Hai Zhao. 2023. Beyond chain-of-thought effective graph-of-thought reasoning in large language models. arXiv:2305.16582. Retrieved from https:\/\/arxiv.org\/abs\/2305.16582"},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","DOI":"10.1145\/3316767"},{"key":"e_1_3_1_52_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2019.00688"},{"key":"e_1_3_1_53_2","doi-asserted-by":"publisher","DOI":"10.1145\/3123266.3123335"}],"container-title":["ACM Transactions on Multimedia Computing, Communications, and Applications"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3785327","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,3,15]],"date-time":"2026-03-15T03:47:56Z","timestamp":1773546476000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3785327"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,2,27]]},"references-count":52,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2026,3,31]]}},"alternative-id":["10.1145\/3785327"],"URL":"https:\/\/doi.org\/10.1145\/3785327","relation":{},"ISSN":["1551-6857","1551-6865"],"issn-type":[{"value":"1551-6857","type":"print"},{"value":"1551-6865","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,2,27]]},"assertion":[{"value":"2025-07-16","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-12-02","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-02-27","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}