# A Stepwise Distillation Learning Strategy for Non-differentiable Visual Programming Frameworks on Visual Reasoning Tasks

Source: [A Stepwise Distillation Learning Strategy for Non-differentiable Visual Programming Frameworks on Visual Reasoning Tasks](<https://www.sota2.com/research/paper/68fa771e1e209131cea71290>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T04:10:55.533Z

Authors: Wentao Wan, Nan Kang, Zeqing Wang, Zhuojie Yang, Liang Lin, Keze Wang

Published: 2023-09-18T14:28:47.000Z

## Abstract

Recently, Visual Programming (VProg) has emerged as a significant framework for visual reasoning (VR) tasks due to its interpretability and cross-task generality. However, even with invoking powerful pre-trained Vision-Language models (VLMs) as visual sub-modules, the performance of VProg on specific VR tasks is markedly inferior compared to well-trained task-specific networks. Although invoking task-specific models can further enhance the performance of VProg on specific VR tasks, it greatly diminishes the cross-task generalization ability of VProg. Besides, the non-differentiable nature of VProg prevents direct fine-tuning on specific VR tasks for further performance improvement. Attempt to address these issues, we propose SDVP, a Stepwise Distillation learning strategy for non-differentiable VPorg across various VR tasks. Specifically, our SDVP stepwise distills the capabilities of existing, well-trained small task-specific models for decomposed visual sub-tasks in VProg into the much larger VLMs invoked by corresponding visual sub-modules. Besides, distilling the knowledge of little-size task-specific models into pre-trained larger VLMs rather than replacing them helps keep the cross-task abilities of VProgs. Extensive and comprehensive experimental results on different VProg frameworks demonstrate that our SDVP obtains significant performance gains on specific VR benchmarks, i.e., GQA (+2.4\\%) and NLVRv2 (+6.2\\%) for VisProg and GQA (+6.5\\%) and NLVRv2 (+4.0\\%) for ViperGPT, and also maintains a promising performance for VProg on unseen and previous VR tasks.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Visual Question Answering on Open Images cross-task (test)](<https://www.sota2.com/research/sota/visual-question-answering-on-open-images-cross-task-test.md>): Visual Question Answering; Open Images cross-task (test); Accuracy: 42.5.

- [Visual Reasoning on GQA balanced (test-dev)](<https://www.sota2.com/research/sota/visual-reasoning-on-gqa-balanced-test-dev.md>): Visual Reasoning; GQA balanced (test-dev); Accuracy: 50.4.

- [Visual Reasoning on NLVR2 (test)](<https://www.sota2.com/research/sota/visual-reasoning-on-nlvr2-test.md>): Visual Reasoning; NLVR2 (test); Accuracy: 75.2.

- [Visual Question Answering on GQA (Accuracy)](<https://www.sota2.com/research/sota/visual-question-answering-on-gqa-accuracy.md>): Visual Question Answering; GQA; Accuracy: 57.7.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2309.09809>)

[PDF](<https://arxiv.org/pdf/2309.09809.pdf>)
