Mitigating Intra- and Inter-modal Forgetting in Continual Learning of Unified Multimodal Models
Paper
• 2512.03125 • Published
• 3
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'image', 'question_id'}) and 3 missing columns ({'image_tokens', 'image_path', 'tokens'}).
This happened while the json dataset builder was generating data using
hf://datasets/ChristinaW/MoDE-official/instructions/GQA/test.json (at revision a6d02a3fc002f4cd07c37eeadab9da0b8b37908b)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
question_id: string
image: string
text: string
answer: string
-- schema metadata --
pandas: '{"index_columns": [], "column_indexes": [], "columns": [{"name":' + 563
to
{'image_path': Value('string'), 'image_tokens': List(Value('int64')), 'text': Value('string'), 'answer': Value('string'), 'tokens': List(Value('int64'))}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1339, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 972, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'image', 'question_id'}) and 3 missing columns ({'image_tokens', 'image_path', 'tokens'}).
This happened while the json dataset builder was generating data using
hf://datasets/ChristinaW/MoDE-official/instructions/GQA/test.json (at revision a6d02a3fc002f4cd07c37eeadab9da0b8b37908b)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
image_path string | image_tokens list | text string | answer string | tokens list |
|---|---|---|---|---|
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2343296.jpg | [
970,
1018,
6248,
1967,
466,
2581,
2331,
7707,
588,
1825,
5476,
5984,
4670,
3980,
7830,
5953,
1444,
8047,
6949,
4379,
2284,
3275,
5581,
548,
5914,
1940,
7643,
1634,
3855,
1808,
6248,
181,
5588,
1233,
1879,
5785,
7048,
8090,
4754,
1839,
2... | <image>
Where is the person to the left of the knife sitting?.
Answer the question using a single word or phrase.<reserved08706>Restaurant | Restaurant | [
0,
8197,
974,
1022,
6252,
1971,
470,
2585,
2335,
7711,
592,
1829,
5480,
5988,
4674,
3984,
7834,
5957,
1448,
8051,
6953,
4383,
2288,
3279,
5585,
552,
5918,
1944,
7647,
1638,
3859,
1812,
6252,
185,
5592,
1237,
1883,
5789,
7052,
8094,
4758... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2319786.jpg | [
3825,
890,
1529,
5925,
2183,
1842,
5552,
5762,
35,
6774,
13,
7591,
3579,
3230,
1516,
7491,
486,
7879,
7591,
5509,
7234,
5985,
7525,
463,
1708,
2568,
5240,
7643,
1052,
4342,
1386,
5240,
4142,
4442,
3947,
2739,
4966,
5753,
3058,
6838,
558... | <image>
What do both the kitchen and the shirt have in common?
Answer the question using a single word or phrase.<reserved08706>Color | Color | [
0,
8197,
3829,
894,
1533,
5929,
2187,
1846,
5556,
5766,
39,
6778,
17,
7595,
3583,
3234,
1520,
7495,
490,
7883,
7595,
5513,
7238,
5989,
7529,
467,
1712,
2572,
5244,
7647,
1056,
4346,
1390,
5244,
4146,
4446,
3951,
2743,
4970,
5757,
3062,
... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2354615.jpg | [
2043,
1872,
4937,
3044,
1479,
3413,
4508,
3184,
2597,
8,
2084,
5743,
7292,
2336,
4333,
6535,
2008,
4857,
1233,
3910,
6109,
3864,
1737,
6134,
2597,
1702,
4039,
7344,
1052,
6105,
5365,
2042,
4742,
484,
4710,
5126,
7234,
7661,
5588,
3771,
... | <image>
What is the color of the man's hair?
Answer the question using a single word or phrase.<reserved08706>Brown | Brown | [
0,
8197,
2047,
1876,
4941,
3048,
1483,
3417,
4512,
3188,
2601,
12,
2088,
5747,
7296,
2340,
4337,
6539,
2012,
4861,
1237,
3914,
6113,
3868,
1741,
6138,
2601,
1706,
4043,
7348,
1056,
6109,
5369,
2046,
4746,
488,
4714,
5130,
7238,
7665,
55... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2338834.jpg | [
6070,
6682,
1736,
3570,
3843,
2739,
3264,
4050,
7811,
602,
600,
1052,
8017,
4004,
7924,
4233,
1199,
5230,
5167,
3896,
2597,
1586,
4002,
1816,
403,
3186,
407,
403,
4485,
2289,
5030,
5042,
4814,
5775,
3838,
8109,
2220,
6705,
7933,
4039,
5... | <image>
Is the cooking utensil that is to the left of the woman silver or brown?.
Answer the question using a single word or phrase.<reserved08706>Silver | Silver | [
0,
8197,
6074,
6686,
1740,
3574,
3847,
2743,
3268,
4054,
7815,
606,
604,
1056,
8021,
4008,
7928,
4237,
1203,
5234,
5171,
3900,
2601,
1590,
4006,
1820,
407,
3190,
411,
407,
4489,
2293,
5034,
5046,
4818,
5779,
3842,
8113,
2224,
6709,
7937... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2371712.jpg | [
4608,
5047,
3640,
647,
466,
4879,
3684,
2975,
3703,
3868,
4390,
8041,
6796,
2581,
685,
4703,
5201,
7645,
7202,
4209,
1574,
6379,
5198,
6087,
7043,
1527,
7952,
7988,
4187,
1093,
1653,
7146,
3746,
4270,
6269,
5477,
6838,
3352,
6971,
2042,
... | <image>
Are there any guys to the right of the girl in the center?.
Answer the question using a single word or phrase.<reserved08706>Yes | Yes | [
0,
8197,
4612,
5051,
3644,
651,
470,
4883,
3688,
2979,
3707,
3872,
4394,
8045,
6800,
2585,
689,
4707,
5205,
7649,
7206,
4213,
1578,
6383,
5202,
6091,
7047,
1531,
7956,
7992,
4191,
1097,
1657,
7150,
3750,
4274,
6273,
5481,
6842,
3356,
69... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2414530.jpg | [
2061,
3292,
7661,
1631,
7664,
1897,
5883,
8173,
1063,
3870,
155,
4209,
4788,
1030,
1288,
2957,
4716,
738,
1288,
1024,
1053,
7988,
7446,
416,
5267,
2263,
2630,
357,
4985,
4066,
4942,
3879,
351,
2211,
7918,
3151,
2581,
6797,
4442,
3272,
9... | <image>
Does the man appear to be sitting?.
Answer the question using a single word or phrase.<reserved08706>Yes | Yes | [
0,
8197,
2065,
3296,
7665,
1635,
7668,
1901,
5887,
8177,
1067,
3874,
159,
4213,
4792,
1034,
1292,
2961,
4720,
742,
1292,
1028,
1057,
7992,
7450,
420,
5271,
2267,
2634,
361,
4989,
4070,
4946,
3883,
355,
2215,
7922,
3155,
2585,
6801,
4446... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2322055.jpg | [
1931,
1896,
1737,
2412,
7428,
3395,
6938,
7834,
234,
4691,
4333,
8185,
377,
1272,
5862,
5647,
2439,
3804,
5958,
5983,
2450,
4833,
701,
2581,
8173,
4480,
5444,
681,
7988,
6949,
4458,
1194,
7359,
6115,
3171,
1554,
7316,
5474,
5895,
2774,
... | <image>
Who is wearing jeans?
Answer the question using a single word or phrase.<reserved08706>Man | Man | [
0,
8197,
1935,
1900,
1741,
2416,
7432,
3399,
6942,
7838,
238,
4695,
4337,
8189,
381,
1276,
5866,
5651,
2443,
3808,
5962,
5987,
2454,
4837,
705,
2585,
8177,
4484,
5448,
685,
7992,
6953,
4462,
1198,
7363,
6119,
3175,
1558,
7320,
5478,
589... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2402170.jpg | [
647,
6581,
2124,
3606,
588,
2124,
3644,
6103,
1030,
46,
6278,
2676,
658,
4923,
2313,
5047,
5509,
5969,
5726,
6199,
5460,
3257,
1160,
5893,
4250,
5687,
3827,
7860,
3104,
952,
7074,
5047,
1848,
8026,
2910,
4050,
8100,
3712,
3200,
2734,
12... | <image>
On which side of the image is the car?.
Answer the question using a single word or phrase.<reserved08706>Right | Right | [
0,
8197,
651,
6585,
2128,
3610,
592,
2128,
3648,
6107,
1034,
50,
6282,
2680,
662,
4927,
2317,
5051,
5513,
5973,
5730,
6203,
5464,
3261,
1164,
5897,
4254,
5691,
3831,
7864,
3108,
956,
7078,
5051,
1852,
8030,
2914,
4054,
8104,
3716,
3204,... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2371180.jpg | [
1882,
800,
5235,
2367,
3115,
3230,
6522,
3225,
5771,
7249,
6087,
3013,
6115,
7889,
4403,
3477,
1300,
4114,
3539,
5677,
1997,
858,
7330,
7587,
5584,
7622,
2891,
2553,
7345,
1198,
5771,
4480,
6458,
2937,
4964,
4699,
5719,
670,
4857,
8099,
... | <image>
On which side of the image is the pizza cutter?
Answer the question using a single word or phrase.<reserved08706>Right | Right | [
0,
8197,
1886,
804,
5239,
2371,
3119,
3234,
6526,
3229,
5775,
7253,
6091,
3017,
6119,
7893,
4407,
3481,
1304,
4118,
3543,
5681,
2001,
862,
7334,
7591,
5588,
7626,
2895,
2557,
7349,
1202,
5775,
4484,
6462,
2941,
4968,
4703,
5723,
674,
48... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2365480.jpg | [
7611,
3903,
8144,
1302,
7611,
5641,
4471,
3152,
7264,
5641,
6328,
2774,
3903,
4907,
5552,
7789,
5415,
7191,
7875,
4160,
6856,
7924,
7811,
7611,
1931,
7611,
6053,
3169,
8109,
3684,
4203,
5886,
1719,
4471,
4546,
4907,
5415,
4953,
4380,
4280... | <image>
What kind of furniture is to the left of the pillows?
Answer the question using a single word or phrase.<reserved08706>Dresser | Dresser | [
0,
8197,
7615,
3907,
8148,
1306,
7615,
5645,
4475,
3156,
7268,
5645,
6332,
2778,
3907,
4911,
5556,
7793,
5419,
7195,
7879,
4164,
6860,
7928,
7815,
7615,
1935,
7615,
6057,
3173,
8113,
3688,
4207,
5890,
1723,
4475,
4550,
4911,
5419,
4957,
... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2317221.jpg | [
1080,
5319,
4788,
2361,
7509,
5842,
6993,
794,
1787,
6571,
6886,
5477,
2286,
5415,
7395,
543,
562,
5531,
2780,
3606,
7234,
2051,
2434,
4515,
4180,
1177,
1289,
1269,
4379,
7032,
865,
1297,
6485,
940,
7524,
1502,
1466,
6758,
601,
1783,
56... | <image>
What is the bag on?.
Answer the question using a single word or phrase.<reserved08706>Bench | Bench | [
0,
8197,
1084,
5323,
4792,
2365,
7513,
5846,
6997,
798,
1791,
6575,
6890,
5481,
2290,
5419,
7399,
547,
566,
5535,
2784,
3610,
7238,
2055,
2438,
4519,
4184,
1181,
1293,
1273,
4383,
7036,
869,
1301,
6489,
944,
7528,
1506,
1470,
6762,
605,... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2389504.jpg | [
2284,
8185,
1806,
8044,
7059,
7680,
7189,
7908,
2727,
7867,
5299,
1180,
5087,
4714,
1426,
2996,
7022,
8123,
5560,
5263,
8124,
3856,
563,
284,
858,
3271,
927,
6961,
2486,
3001,
8078,
4721,
4192,
5046,
7988,
4086,
4533,
624,
3092,
1656,
1... | <image>
Are there either any mirrors or spray cans in the photograph?.
Answer the question using a single word or phrase.<reserved08706>Yes | Yes | [
0,
8197,
2288,
8189,
1810,
8048,
7063,
7684,
7193,
7912,
2731,
7871,
5303,
1184,
5091,
4718,
1430,
3000,
7026,
8127,
5564,
5267,
8128,
3860,
567,
288,
862,
3275,
931,
6965,
2490,
3005,
8082,
4725,
4196,
5050,
7992,
4090,
4537,
628,
3096... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2330673.jpg | [
6764,
3079,
7652,
4235,
1269,
2202,
7710,
4933,
1087,
1300,
2547,
7844,
2910,
4273,
6958,
4273,
6103,
3965,
1010,
6169,
6698,
6103,
562,
3968,
7652,
4887,
3171,
6958,
5595,
2923,
4038,
532,
4088,
1533,
1138,
4725,
7446,
4587,
3189,
5865,
... | <image>
What's the character on?.
Answer the question using a single word or phrase.<reserved08706>Heart | Heart | [
0,
8197,
6768,
3083,
7656,
4239,
1273,
2206,
7714,
4937,
1091,
1304,
2551,
7848,
2914,
4277,
6962,
4277,
6107,
3969,
1014,
6173,
6702,
6107,
566,
3972,
7656,
4891,
3175,
6962,
5599,
2927,
4042,
536,
4092,
1537,
1142,
4729,
7450,
4591,
3... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2406660.jpg | [
3606,
5057,
7415,
2319,
5615,
8100,
3238,
6522,
3686,
5635,
7771,
3618,
6302,
540,
4494,
2692,
1516,
1527,
3406,
6391,
2124,
591,
7967,
1808,
3137,
7431,
2109,
7209,
838,
3639,
6991,
969,
516,
1965,
6408,
472,
1233,
867,
463,
2869,
1269... | <image>
Are there cabinets in the photo?.
Answer the question using a single word or phrase.<reserved08706>No | No | [
0,
8197,
3610,
5061,
7419,
2323,
5619,
8104,
3242,
6526,
3690,
5639,
7775,
3622,
6306,
544,
4498,
2696,
1520,
1531,
3410,
6395,
2128,
595,
7971,
1812,
3141,
7435,
2113,
7213,
842,
3643,
6995,
973,
520,
1969,
6412,
476,
1237,
871,
467,
... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2338587.jpg | [
4082,
6052,
7226,
69,
1531,
2933,
1822,
7899,
5330,
3087,
4333,
3508,
7836,
387,
2430,
3943,
15,
4308,
3265,
2637,
6512,
2122,
7040,
6395,
1479,
2091,
3619,
6273,
7524,
3488,
2285,
3911,
1182,
4038,
5328,
5328,
4392,
3115,
7432,
4261,
6... | <image>
Do you see a towel that is not red?.
Answer the question using a single word or phrase.<reserved08706>Yes | Yes | [
0,
8197,
4086,
6056,
7230,
73,
1535,
2937,
1826,
7903,
5334,
3091,
4337,
3512,
7840,
391,
2434,
3947,
19,
4312,
3269,
2641,
6516,
2126,
7044,
6399,
1483,
2095,
3623,
6277,
7528,
3492,
2289,
3915,
1186,
4042,
5332,
5332,
4396,
3119,
7436... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2350113.jpg | [
4982,
6280,
5371,
2786,
7277,
1261,
1450,
5308,
1336,
650,
4815,
3523,
7225,
2988,
5070,
7485,
2333,
5304,
4727,
5770,
1598,
3455,
4218,
1704,
7316,
1411,
5363,
7688,
1502,
7462,
6256,
7223,
6482,
969,
1682,
2988,
6748,
1502,
3540,
6872,
... | <image>
Which side of the picture is the fork on?
Answer the question using a single word or phrase.<reserved08706>Right | Right | [
0,
8197,
4986,
6284,
5375,
2790,
7281,
1265,
1454,
5312,
1340,
654,
4819,
3527,
7229,
2992,
5074,
7489,
2337,
5308,
4731,
5774,
1602,
3459,
4222,
1708,
7320,
1415,
5367,
7692,
1506,
7466,
6260,
7227,
6486,
973,
1686,
2992,
6752,
1506,
3... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2412904.jpg | [
7569,
5531,
5479,
4966,
539,
1182,
4910,
277,
3703,
1153,
5767,
8061,
5985,
1897,
7518,
1259,
1101,
6705,
3508,
7040,
1516,
5595,
1319,
7504,
1597,
463,
4080,
3382,
4235,
4649,
7051,
2464,
3765,
1275,
2861,
6809,
3649,
6262,
2866,
6249,
... | <image>
What is the fruit on the full plate?.
Answer the question using a single word or phrase.<reserved08706>Orange | Orange | [
0,
8197,
7573,
5535,
5483,
4970,
543,
1186,
4914,
281,
3707,
1157,
5771,
8065,
5989,
1901,
7522,
1263,
1105,
6709,
3512,
7044,
1520,
5599,
1323,
7508,
1601,
467,
4084,
3386,
4239,
4653,
7055,
2468,
3769,
1279,
2865,
6813,
3653,
6266,
28... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2378590.jpg | [
5201,
2003,
555,
6107,
5415,
6872,
4185,
2743,
2021,
5159,
1018,
3471,
7875,
3185,
4833,
1708,
5925,
6082,
6750,
3154,
3282,
5907,
3482,
3610,
2868,
4303,
6778,
2313,
5156,
1628,
1209,
2026,
1592,
2286,
7744,
5308,
284,
4951,
3021,
5531,
... | <image>
Which color does the hallway have?
Answer the question using a single word or phrase.<reserved08706>White | White | [
0,
8197,
5205,
2007,
559,
6111,
5419,
6876,
4189,
2747,
2025,
5163,
1022,
3475,
7879,
3189,
4837,
1712,
5929,
6086,
6754,
3158,
3286,
5911,
3486,
3614,
2872,
4307,
6782,
2317,
5160,
1632,
1213,
2030,
1596,
2290,
7748,
5312,
288,
4955,
3... |
\/home\/xw6956\/CoIN\/cl_datasets\/GQA\/images\/2413944.jpg | [
7525,
7259,
5883,
6701,
6705,
7095,
4997,
1352,
4284,
1586,
7052,
8151,
1174,
6776,
4254,
86,
2864,
6949,
7513,
3525,
3732,
4857,
2491,
5087,
3080,
1990,
6244,
6488,
254,
6702,
1825,
7509,
1574,
6630,
4392,
1677,
4403,
1339,
5238,
7179,
... | <image>
Is the bus to the right or to the left of the plastic bag?
Answer the question using a single word or phrase.<reserved08706>Right | Right | [
0,
8197,
7529,
7263,
5887,
6705,
6709,
7099,
5001,
1356,
4288,
1590,
7056,
8155,
1178,
6780,
4258,
90,
2868,
6953,
7517,
3529,
3736,
4861,
2495,
5091,
3084,
1994,
6248,
6492,
258,
6706,
1829,
7513,
1578,
6634,
4396,
1681,
4407,
1343,
52... |
This repository accompanies the NeurIPS 2025 paper:
“Mitigating Intra- and Inter-modal Forgetting in Continual Learning of Unified Multimodal Models.”
📄 arXiv • 💻 GitHub
The MoDE dataset is adapted from the CoIN benchmark.
The repository includes:
data/ — Processed training and validation splits for all tasks instructions/ — Evaluation instructions and promptsPlease refer to the original CoIN dataset documentation to download the raw datasets:
🔗 https://github.com/zackschen/CoIN?tab=readme-ov-file#dataset
The tasks include:
If you use MoDE or its processed data in your research, please cite the associated NeurIPS 2025 paper.
@inproceedings{weimitigating,
title={Mitigating Intra-and Inter-modal Forgetting in Continual Learning of Unified Multimodal Models},
author={Wei, Xiwen and Munir, Mustafa and Marculescu, Radu},
booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems}
}