CLOVA: A Closed-Loop Visual Assistant with Tool Usage and Update

Zhi Gao, Yuntao Du, Xintong Zhang, Xiaojian Ma, Wenjuan Han, Song-Chun Zhu, Qing Li

Abstract

CLOVA (Closed-LOop Visual Assistant) is a novel framework designed to overcome the limitations of static toolsets in AI visual assistants. While existing systems can orchestrate various computer vision tools to solve complex tasks, they typically rely on "frozen" models that cannot adapt to new concepts or correct internal errors. CLOVA introduces a continuous loop of inference, reflection, and learning, allowing the assistant to diagnose tool failures and update its capabilities dynamically through prompt tuning. Experimental results demonstrate significant performance gains in visual question answering, factual tagging, and image editing.

Introduction: The Knowledge Bottleneck

State-of-the-art visual assistants, such as VISPROG and ViperGPT, leverage Large Language Models (LLMs) to generate programs that call specialized computer vision tools (e.g., face detectors, classifiers). However, these systems face a significant bottleneck: the underlying tools are static. If a face recognition tool fails to identify a specific individual, or an object detector lacks the vocabulary for a rare species, the entire system fails.

There is currently no standard mechanism for these assistants to recognize their own knowledge gaps and fill them. This lack of continual learning limits their utility in real-world environments where new entities and concepts emerge constantly. CLOVA addresses this by treating failures as diagnostic opportunities, enabling the system to "fix" its tools without requiring full model retraining.

The CLOVA Framework

CLOVA operates through a three-phase closed loop that integrates task execution with self-improvement.

The CLOVA framework architecture, illustrating the closed-loop process of inference, reflection, and learning.

1. Inference

In the initial phase, the LLM receives a user instruction and generates a plan and a corresponding program. This program executes various visual tools—such as LOC for localization, VQA for question answering, or REPLACE for image editing—to produce a final result.

2. Reflection

When a result is deemed incorrect (via human feedback), CLOVA initiates a "multimodal global-local reflection." The system uses an LLM to analyze the entire execution trace. To bridge the gap between visual and textual modalities, intermediate visual results are converted into text descriptions using image captioning. The reflection process first looks at the overall logic (Global) and then inspects individual program steps (Local) to pinpoint whether the error stemmed from the LLM's planning or a specific tool's failure.

3. Learning

Once a faulty tool or missing concept is identified, CLOVA automatically retrieves relevant data from the internet or open-vocabulary datasets. It then employs training-validation prompt tuning. Instead of updating the entire neural network, CLOVA learns a small "prompt" vector that guides the tool to recognize the new concept. A validation step ensures that these updates improve performance on new data without causing "catastrophic forgetting" of the tool's original knowledge.

Experimental Evaluation

CLOVA was evaluated across several benchmarks, including GQA for compositional reasoning and NLVRv2 for multi-image tasks. Additionally, the authors curated new datasets for fine-grained factual tagging and image editing, focusing on entities that standard pre-trained models often overlook.

Examples of CLOVA updating various visual tools (CLASSIFY, REPLACE, LOC) and the LLM itself to correct initial failures.

Key Results

  • Visual Question Answering: CLOVA achieved a ~5% improvement over VISPROG on GQA and NLVRv2.
  • Knowledge Tagging: The system saw a 10% boost in identifying specific entities (e.g., identifying director Bong Joon-ho).
  • Image Editing: Success rates improved by 20%, as the system learned to identify and manipulate fine-grained objects that baseline models ignored.
  • Model Agnostic Benefits: Even when using smaller open-source models like LLaMA-2-7B, the CLOVA update process provided a 21% performance boost on GQA.

Conclusion and Future Directions

CLOVA represents a shift from static visual assistants to dynamic, self-improving systems. By treating tool failures as "bugs" to be debugged and patched via prompt tuning, it maintains high performance across evolving datasets.

Future work will focus on increasing the efficiency of the reflection-learning loop, potentially running updates as background processes. Additionally, the researchers aim to expand the toolkit to include more foundation models, such as the Segment Anything Model (SAM), and to handle more complex program structures involving loops and conditional logic.

Summary updated

BibTeX
@inproceedings{gao2023clova,
  author = {Zhi Gao and Yuntao Du and Xintong Zhang and Xiaojian Ma and Wenjuan Han and Song-Chun Zhu and Qing Li},
  title = {{CLOVA: A Closed-Loop Visual Assistant with Tool Usage and Update}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure