NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Symbolic Replay: Scene Graph as Prompt for Continual Learning on VQA Task

Stan Weixian Lei, Difei Gao, Jay Zhangjie Wu, Yuxuan Wang, Wei Liu, Mengmi Zhang, Mike Zheng Shou · DOI

Introduction

Visual Question Answering (VQA) systems are typically trained on static datasets, assuming a fixed environment and set of skills. However, real-world AI must be dynamic, adapting to new scenes (e.g., moving from a shop to an office) or acquiring new functional capabilities (e.g., learning to recognize text). A major hurdle in this evolution is catastrophic forgetting, where learning new information overwrites previously acquired knowledge.

Standard solutions often rely on "experience replay," where models revisit old data. However, replaying raw images is problematic: it requires significant storage, raises privacy concerns in sensitive environments, and generating high-quality synthetic images for complex reasoning is computationally expensive. This paper introduces Symbolic Replay (SGP), a framework that replaces raw pixels with structured scene graphs as symbolic prompts to maintain model performance without the drawbacks of image storage.

Overview of scene-incremental and function-incremental learning tasks in VQA.

The SGP Framework

The core innovation of SGP is the use of abstract visual representations—scene graphs—to bridge the gap between vision and language during continual learning. The framework consists of two primary components:

1. Symbolic Replay Model (SRM)

Based on the DistilGPT2 architecture, the SRM learns the underlying patterns of visual scenes. Instead of storing images, the system stores a small "prompt" (a subset of relationships from a scene graph). During the replay phase, the SRM uses these prompts to autocomplete full pseudo-scene graphs and generate corresponding question-answer pairs. This allows the model to "remember" past tasks using only text-based symbols.

2. UniVQA (Unified VQA Transformer)

To process these symbolic inputs, the authors developed UniVQA, a flexible transformer backbone. Unlike standard VQA models that are hard-coded for image features, UniVQA can simultaneously process images, text-based scene graphs, OCR tokens, and external knowledge. This versatility allows it to be trained on a mixture of new real-world image data and replayed symbolic data from previous tasks.

The training and replay workflow using the Symbolic Replay Model (SRM) and UniVQA.

The CLOVE Benchmark

To rigorously test SGP, the authors introduced the CLOVE (Continual Learning On Visual quEstion answering) dataset, organized into two distinct streams:

  • CLOVE-scene: Evaluates adaptation across six environments, including Shop, Workplace, Home, Transportation, Sports, and Outdoors.
  • CLOVE-function: Evaluates the acquisition of six skills, ranging from basic object recognition to complex logic reasoning and scene text understanding.

Key Results and Insights

  • Performance Gains: SGP significantly outperformed other "data-free" continual learning methods (like EWC or MAS). On the CLOVE-function benchmark, SGP achieved an average accuracy of 42.01%, a substantial improvement over the 26.16% achieved by standard fine-tuning.
  • Storage Efficiency: SGP is remarkably lightweight. It achieved performance comparable to real-image replay while requiring only 612KB for symbolic prompts—a 100x reduction compared to the 60MB required for image storage.
  • Privacy and Reasoning: By replaying abstract relationships (e.g., "man holding ski poles") rather than actual photos, SGP offers a privacy-preserving alternative for AI deployment. The results suggest that for reasoning-heavy tasks, the structural relationship between objects is a more efficient "memory" than raw pixel data.

Conclusion and Future Work

Symbolic Replay demonstrates that structured scene graphs can effectively mitigate catastrophic forgetting in VQA. While SGP currently relies on high-quality scene graph annotations, it represents a major step toward private, storage-efficient continual learning. Future research will focus on narrowing the performance gap in tasks heavily dependent on fine-grained visual nuances that symbols may currently overlook.

Summary updated

BibTeX
@inproceedings{lei2023symbolic,
  author = {Stan Weixian Lei and Difei Gao and Jay Zhangjie Wu and Yuxuan Wang and Wei Liu and Mengmi Zhang and Mike Zheng Shou},
  title = {{Symbolic Replay: Scene Graph as Prompt for Continual Learning on VQA Task}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25208},
}
Figure