SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Zhang_VQACL_A_Novel_Visual_Question_Answering_Continual_Learning_Setting_CVPR_2023_paper · CVPR · 2023

VQACL: A Novel Visual Question Answering Continual Learning Setting

Xi Zhang, Changsheng Xu, Feifei Zhang

Open in the Atlas

Code that ran

12 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 4 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/Zhang_VQACL_A_Novel_Visual_Question_Answering_Continual_Learning_Setting_CVPR_2023_paper.json · badge: /api/ran/Zhang_VQACL_A_Novel_Visual_Question_Answering_Continual_Learning_Setting_CVPR_2023_paper.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zhangxi1997/VQACL canonical (classifier label)
classifier basis: census
12 ran · 1 no recorded run
FunctionStatusWhere it lives
all_gather Ran
ran; our contract draft was wrong, not the code
zhangxi1997/VQACL/VL-T5/src/dist_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from vis-nlp/ChartQA, is pointer only (licence: GPL-3.0) · get_code("41c46b0d5713eb14")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from vis-nlp/ChartQA, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collate_fn Ran
ran; our contract draft was wrong, not the code
zhangxi1997/VQACL/feature_extraction/refcocog_mattnet.py
code served (permissive licence) · get_code("68e41c28a6dfe81d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a small batch of entries with the structure expected by collate_fn
batch = [
    {
        'img_id': 'img_001',
        'img': torch.randn(3, 32, 32),  # 3-channel image
        'boxes': torch.tensor([[10, 20, 30, 40], [50, 60, 70, 80]], dtype=torch.float32),  # 2 bounding boxes
        'captions': ['a dog', 'running']
    },
    {
        'img_id': 'img_002',
        'img': torch.randn(3, 32, 32),  # 3-channel image
        'boxes': torch.tensor([[5, 15, 25, 35]], dtype=torch.float32),  # 1 bounding box
        'captions': ['a cat']
    }
]

ARGS = {
    'batch': batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
do_nms Ran
ran; our contract draft was wrong, not the code
zhangxi1997/VQACL/VL-T5/inference/modeling_frcnn.py
pointer only (licence: MIT); the stored copy get_code serves, from vis-nlp/ChartQA, is pointer only (licence: GPL-3.0) · get_code("e21bb85b8e1b4836")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from vis-nlp/ChartQA, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate_metric Ran
ran on a synthesized input
zhangxi1997/VQACL/Question_type.py
code served (permissive licence) · get_code("67ceb2e69410e3aa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy

# Set up global _6Q_idx for the function
_6Q_idx = [1, 2]  # Indices to track for 6Q metric

# Create a small results dictionary
# The function expects a dict where:
# - keys are task identifiers
# - values are dicts mapping task pairs to accuracy scores
results = {
    'task_0': {
        'task_0': 0.95,
        'task_1': 0.85,
        'task_2': 0.75,
    },
    'task_1': {
        'task_0': 0.90,
        'task_1': 0.92,
        'task_2': 0.80,
    },
    'task_2': {
        'task_0': 0.88,
        'task_1': 0.87,
        'task_2': 0.91,
    },
}

ARGS = {
    'results': results,
    'start': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gather Ran
ran; our contract draft was wrong, not the code
zhangxi1997/VQACL/VL-T5/src/dist_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from vis-nlp/ChartQA, is pointer only (licence: GPL-3.0) · get_code("00a9f7918ac39329")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from vis-nlp/ChartQA, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_optimizer Ran
ran on a synthesized input
zhangxi1997/VQACL/VL-T5/src/param.py
code served (permissive licence) · get_code("144fc1d6887079d4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned type. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'optim': 'adam',
    'verbose': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
norm_box Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhangxi1997/VQACL/VL-T5/inference/modeling_frcnn.py
pointer only (licence: MIT); the stored copy get_code serves, from yfyuan01/mqc, is pointer only (licence: NONE) · get_code("16c0e181ff805fb7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from yfyuan01/mqc, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pad_list_tensors Ran
ran; our contract draft was wrong, not the code
zhangxi1997/VQACL/VL-T5/inference/modeling_frcnn.py
pointer only (licence: MIT); the stored copy get_code serves, from vis-nlp/ChartQA, is pointer only (licence: GPL-3.0) · get_code("54a2fff601881b32")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from vis-nlp/ChartQA, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_args Ran
ran on a synthesized input
zhangxi1997/VQACL/VL-T5/src/param.py
code served (permissive licence) · get_code("eac78a6534aa4c83")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Config. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import argparse
import random
import numpy as np

torch.manual_seed(0)
random.seed(66666)
np.random.seed(66666)

ARGS = {
    'ifseed': False,
    'seed': 66666,
    'train': 'train',
    'valid': 'valid',
    'test': None,
    'test_only': False,
    'submit': False,
    'train_topk': -1,
    'valid_topk': -1,
    'output': 'snap/test',
    'load': None,
    'from_scratch': False,
    'multiGPU': False,
    'fp16': False,
    'distributed': False,
    'num_workers': 0,
    'local_rank': -1,
    'backbone': 't5-base',
    'tokenizer': None,
    'feat_dim': 2048,
    'pos_dim': 4,
    'use_vision': True,
    'use_vis_order_embedding': True,
    'use_vis_layer_norm': True,
    'individual_vis_layer_norm': True,
    'share_vis_lang_layer_norm': False,
    'n_boxes': 36,
    'max_n_boxes': 36,
    'max_text_length': 20,
    'batch_size': 256,
    'valid_batch_size': None,
    'optim': 'adamw',
    'warmup_ratio': 0.05,
    'weight_decay': 0.01,
    'clip_grad_norm': -1.0,
    'gradient_accumulation_steps': 1,
    'lr': 0.0001,
    'adam_eps': 1e-06,
    'adam_beta1': 0.9,
    'adam_beta2': 0.999,
    'epochs': 12,
    'dropout': 0.1,
    'losses': 'lm,obj,attr,feat',
    'log_train_accuracy': False,
    'n_ground': 1,
    'word_mask_rate': 0.15,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Config — a Config output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Config output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
random_dic Ran
ran on a synthesized input
zhangxi1997/VQACL/Question_type.py
code served (permissive licence) · get_code("dce2908e44612518")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random

def random_dic(dicts):
    dict_key_ls = list(dicts.keys())
    random.shuffle(dict_key_ls)
    new_dict = {}
    for key in dict_key_ls:
        new_dict[key] = dicts.get(key)
    return new_dict

# The function takes a dictionary and returns a new dictionary with keys shuffled.
# It calls: .keys(), list(), random.shuffle(), .get()

# Create a simple dictionary with various types of values
ARGS = {
    "dicts": {
        "key_a": 42,
        "key_b": "value_b",
        "key_c": [1, 2, 3],
        "key_d": {"nested": True},
        "key_e": 3.14
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reduce_dict Ran
ran; our contract draft was wrong, not the code
zhangxi1997/VQACL/VL-T5/src/dist_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from vis-nlp/ChartQA, is pointer only (licence: GPL-3.0) · get_code("44f4152cc7eb1ddd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from vis-nlp/ChartQA, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

str2bool Ran
ran, violated the contract we drafted
zhangxi1997/VQACL/VL-T5/src/param.py
code served (permissive licence) · get_code("f017532fc389cbfe")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse

def str2bool(v):
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Setup code to construct valid arguments
ARGS = {
    'v': 'true'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Update_memory Not yet run
unverified (harvested, no recorded run)
zhangxi1997/VQACL/Question_type.py
code served (permissive licence) · get_code("54c5804a8fdbbc14")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 9 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 8 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
str2bool 82 other papers
59 dated earlier, 11 later, 12 same year, order not determinable
1510.03055 (2015-10)
A Diversity-Promoting Objective Function for Neural Conversation Models
1703.06490 (2017-03)
Generating Multi-label Discrete Patient Records using Generative Adversarial Networks
1710.10467 (2017-10)
Generalized End-to-End Loss for Speaker Verification
and 79 more not named here
all_gather 16 other papers
2 dated earlier, 4 later, 10 same year, order not determinable
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
136730727 (2022 (year only))
Self-Supervised Sparse Representation for Video Anomaly Detection
2023.findings-emnlp.644 (2023 (year only))
VIP5: Towards Multimodal Foundation Models for Recommendation
and 13 more not named here
gather 14 other papers
2 dated earlier, 4 later, 8 same year, order not determinable
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
136730727 (2022 (year only))
Self-Supervised Sparse Representation for Video Anomaly Detection
2023.findings-emnlp.644 (2023 (year only))
VIP5: Towards Multimodal Foundation Models for Recommendation
and 11 more not named here
do_nms 11 other papers
6 dated earlier, 2 later, 3 same year, order not determinable
2112.07566 (2021-12)
VALSE: A Task-Independent Benchmark for Vision and Language Models Centered on Linguistic Phenomena
2203.02013 (2022-03)
DIME: Fine-grained Interpretations of Multimodal Models via Disentangled Local Explanations
2204.03162 (2022-04)
Winoground: Probing Vision and Language Models for Visio-Linguistic Compositionality
and 8 more not named here
pad_list_tensors 10 other papers
5 dated earlier, 2 later, 3 same year, order not determinable
2203.02013 (2022-03)
DIME: Fine-grained Interpretations of Multimodal Models via Disentangled Local Explanations
2204.03162 (2022-04)
Winoground: Probing Vision and Language Models for Visio-Linguistic Compositionality
2205.00363 (2022-05)
Visual Spatial Reasoning
and 7 more not named here
reduce_dict 8 other papers
1 dated earlier, 2 later, 5 same year, order not determinable
2208.12306 (2022-08)
Multimedia Generative Script Learning for Task Planning
2023.findings-emnlp.644 (2023 (year only))
VIP5: Towards Multimodal Foundation Models for Recommendation
2303.16406 (2023-03)
Hierarchical Video-Moment Retrieval and Step-Captioning
and 5 more not named here
collate_fn 3 other papers
3 later
2402.07742 (2024-02)
Asking Multimodal Clarifying Questions in Mixed-Initiative Conversational Search
2402.09353 (2024-02)
DoRA: Weight-Decomposed Low-Rank Adaptation
2410.09437 (2024-10)
MTL-LoRA: Low-Rank Adaptation for Multi-Task Learning
get_optimizer 3 other papers
3 same year, order not determinable
2023.findings-emnlp.644 (2023 (year only))
VIP5: Towards Multimodal Foundation Models for Recommendation
2305.14302 (2023-05)
VIP5: Towards Multimodal Foundation Models for Recommendation
2306.11134 (2023-06)
OpenP5: An Open-Source Platform for Developing, Training, and Evaluating LLM-based Recommender Systems
norm_box 2 other papers
1 later, 1 same year, order not determinable
2306.16713 (2023-06)
Answer Mining from a Pool of Images: Towards Retrieval-Based Visual Question Answering
2402.07742 (2024-02)
Asking Multimodal Clarifying Questions in Mixed-Initiative Conversational Search

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Research on continual learning has recently led to a variety of work in unimodal community, however little attention has been paid to multimodal tasks like visual question answering (VQA). In this paper, we establish a novel VQA Continual Learning setting named VQACL, which contains two key components: a dual-level task sequence where visual and linguistic data are nested, and a novel composition testing containing new skill-concept combinations. The former devotes to simulating the ever-changing multimodal datastream in real world and the latter aims at measuring models' generalizability for cognitive reasoning. Based on our VQACL, we perform in-depth evaluations of five wellestablished continual learning methods, and observe that they suffer from catastrophic forgetting and have weak generalizability. To address above issues, we propose a novel representation learning method, which leverages a samplespecific and a sample-invariant feature to learn representations that are both discriminative and generalizable for VQA. Furthermore, by respectively extracting such representation for visual and textual input, our method can explicitly disentangle the skill and concept. Extensive experimental results illustrate that our method significantly outperforms existing models, demonstrating the effectiveness and compositionality of the proposed approach. The code is available at https://github.com/zhangxi1997/VQACL.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("Zhang_VQACL_A_Novel_Visual_Question_Answering_Continual_Learning_Setting_CVPR_2023_paper")
get_code_for_paper("Zhang_VQACL_A_Novel_Visual_Question_Answering_Continual_Learning_Setting_CVPR_2023_paper")
have("Zhang_VQACL_A_Novel_Visual_Question_Answering_Continual_Learning_Setting_CVPR_2023_paper")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/Zhang_VQACL_A_Novel_Visual_Question_Answering_Continual_Learning_Setting_CVPR_2023_paper.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/Zhang_VQACL_A_Novel_Visual_Question_Answering_Continual_Learning_Setting_CVPR_2023_paper.svg)](https://syntology.ai/paper/Zhang_VQACL_A_Novel_Visual_Question_Answering_Continual_Learning_Setting_CVPR_2023_paper)

Connect an agent — have() is free.