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

Abstract

Visual Question Answering (VQA) models often suffer from catastrophic forgetting when sequentially learning new tasks or environments. Traditional continual learning methods rely on storing raw images or using generative models, which present privacy and memory challenges. This paper introduces Symbolic Replay: Scene Graph as Prompt (SGP), a framework that replays structured scene graphs instead of pixels. By leveraging a language model to generate these symbolic memories, SGP achieves state-of-the-art performance in data-free continual learning, offering a 100x reduction in memory usage while maintaining high reasoning accuracy.

Introduction

Modern VQA systems are typically trained on static datasets, failing to adapt to the dynamic nature of real-world deployment. When a model trained on one domain (e.g., household items) is fine-tuned on another (e.g., office equipment), it often loses its ability to perform on the original domain—a phenomenon known as catastrophic forgetting.

Existing solutions often involve "rehearsal," where a subset of old data is stored and interleaved with new data. However, storing raw images is memory-intensive and poses significant privacy risks. Generative approaches like GANs often fail to capture the complex spatial and logical relationships necessary for VQA. This research proposes that the "logic" of a scene, represented as a scene graph, is a more efficient and privacy-preserving medium for rehearsal.

Methods: Symbolic Replay (SGP)

The SGP framework shifts the focus from visual rehearsal to symbolic rehearsal. It consists of two primary modules:

  1. Symbolic Replay Model (SRM): A lightweight language model (DistilGPT2) fine-tuned to generate scene graphs. Instead of storing images, the system stores compact "prompts"—statistical representations of object relationships. During the replay phase, the SRM expands these prompts into full pseudo-scene graphs and associated question-answer pairs.
  2. UniVQA Learner: A unified transformer architecture that processes multi-modal inputs. It integrates object features, OCR tokens for scene text, and the symbolic scene graphs generated by the SRM. This allows the model to learn from current real-world images while simultaneously "remembering" past logic through symbolic replay.
The SGP framework addresses incremental learning by updating models for new demands and data, categorized into scene-incremental and function-incremental tasks.

The CLOVE Benchmark

To evaluate continual learning in VQA, the authors developed the CLOVE (Continual Learning On Visual quEstion answering) benchmark. CLOVE reorganizes data from GQA, CRIC, and TextVQA into two distinct settings:

  • CLOVE-scene: Evaluates adaptation to new environments, such as transitioning from "Shop" to "Workplace" or "Outdoors."
  • CLOVE-function: Evaluates the acquisition of new reasoning skills, moving through tasks like Attribute Recognition, Knowledge Reasoning, and Scene Text Recognition.
The CLOVE benchmark provides a structured evaluation for scene-incremental and function-incremental learning with diverse question types and balanced data distributions.

Key Results and Insights

The SGP framework demonstrates significant advantages over traditional data-free and rehearsal-based methods:

  • Performance: In the function-incremental setting, SGP achieved an average accuracy of approximately 43%, significantly outperforming other data-free methods like VQG (~31%).
  • Memory Efficiency: SGP is remarkably lightweight. While storing actual images for rehearsal required 60MB of storage, SGP achieved comparable performance using only 612KB for its symbolic prompts—a 100x improvement in efficiency.
  • Privacy: By replaying symbolic graphs rather than raw pixels, SGP avoids the risks associated with storing sensitive user images, making it highly suitable for privacy-conscious applications.

The study reveals that for VQA, replaying the relationships between objects is often more critical for maintaining performance than replaying the exact visual appearance. This suggests that "symbolic memory" can effectively bridge the gap between efficiency and accuracy in complex reasoning tasks.

Conclusion and Future Work

Symbolic Replay (SGP) provides a robust, efficient, and privacy-friendly solution to catastrophic forgetting in VQA. By treating scene graphs as prompts for a generative language model, the system maintains reasoning capabilities across diverse tasks without the overhead of raw image storage. Future research will focus on reducing the dependency on scene graph annotations through automated predictors and exploring more sophisticated sampling strategies for symbolic prompts.

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