legolasflagstaff commited on
Commit
34cf76c
·
verified ·
1 Parent(s): 16d0595

Split perturbations into per-surrogate configs (Dataset Viewer split limit)

Browse files
Files changed (2) hide show
  1. README.md +391 -329
  2. scripts/make_card.py +45 -26
README.md CHANGED
@@ -31,64 +31,6 @@ configs:
31
  path: data/caltech101/common-*.parquet
32
  - split: random_linf_30
33
  path: data/caltech101/random_linf_30-*.parquet
34
- - split: clip_vitb16_l1_75
35
- path: data/caltech101/clip_vitb16_l1_75-*.parquet
36
- - split: clip_vitb16_l1_300
37
- path: data/caltech101/clip_vitb16_l1_300-*.parquet
38
- - split: clip_vitb16_l2_2
39
- path: data/caltech101/clip_vitb16_l2_2-*.parquet
40
- - split: clip_vitb16_l2_8
41
- path: data/caltech101/clip_vitb16_l2_8-*.parquet
42
- - split: clip_vitb16_linf_4
43
- path: data/caltech101/clip_vitb16_linf_4-*.parquet
44
- - split: clip_vitb16_linf_8
45
- path: data/caltech101/clip_vitb16_linf_8-*.parquet
46
- - split: clip_vitb16_linf_30
47
- path: data/caltech101/clip_vitb16_linf_30-*.parquet
48
- - split: clip_vith14_l1_75
49
- path: data/caltech101/clip_vith14_l1_75-*.parquet
50
- - split: clip_vith14_l1_300
51
- path: data/caltech101/clip_vith14_l1_300-*.parquet
52
- - split: clip_vith14_l2_2
53
- path: data/caltech101/clip_vith14_l2_2-*.parquet
54
- - split: clip_vith14_l2_8
55
- path: data/caltech101/clip_vith14_l2_8-*.parquet
56
- - split: clip_vith14_linf_4
57
- path: data/caltech101/clip_vith14_linf_4-*.parquet
58
- - split: clip_vith14_linf_8
59
- path: data/caltech101/clip_vith14_linf_8-*.parquet
60
- - split: clip_vith14_linf_30
61
- path: data/caltech101/clip_vith14_linf_30-*.parquet
62
- - split: metaclip_vith14_l1_75
63
- path: data/caltech101/metaclip_vith14_l1_75-*.parquet
64
- - split: metaclip_vith14_l1_300
65
- path: data/caltech101/metaclip_vith14_l1_300-*.parquet
66
- - split: metaclip_vith14_l2_2
67
- path: data/caltech101/metaclip_vith14_l2_2-*.parquet
68
- - split: metaclip_vith14_l2_8
69
- path: data/caltech101/metaclip_vith14_l2_8-*.parquet
70
- - split: metaclip_vith14_linf_4
71
- path: data/caltech101/metaclip_vith14_linf_4-*.parquet
72
- - split: metaclip_vith14_linf_8
73
- path: data/caltech101/metaclip_vith14_linf_8-*.parquet
74
- - split: metaclip_vith14_linf_30
75
- path: data/caltech101/metaclip_vith14_linf_30-*.parquet
76
- - split: siglip2_so400m_l1_75
77
- path: data/caltech101/siglip2_so400m_l1_75-*.parquet
78
- - split: siglip2_so400m_l1_300
79
- path: data/caltech101/siglip2_so400m_l1_300-*.parquet
80
- - split: siglip2_so400m_l2_2
81
- path: data/caltech101/siglip2_so400m_l2_2-*.parquet
82
- - split: siglip2_so400m_l2_8
83
- path: data/caltech101/siglip2_so400m_l2_8-*.parquet
84
- - split: siglip2_so400m_linf_4
85
- path: data/caltech101/siglip2_so400m_linf_4-*.parquet
86
- - split: siglip2_so400m_linf_8
87
- path: data/caltech101/siglip2_so400m_linf_8-*.parquet
88
- - split: siglip2_so400m_linf_30
89
- path: data/caltech101/siglip2_so400m_linf_30-*.parquet
90
- - split: siglip2_base_linf_30
91
- path: data/caltech101/siglip2_base_linf_30-*.parquet
92
  - config_name: fgvc-aircraft-2013b
93
  data_files:
94
  - split: train
@@ -101,50 +43,6 @@ configs:
101
  path: data/fgvc-aircraft-2013b/common-*.parquet
102
  - split: random_linf_30
103
  path: data/fgvc-aircraft-2013b/random_linf_30-*.parquet
104
- - split: clip_vitb16_l1_75
105
- path: data/fgvc-aircraft-2013b/clip_vitb16_l1_75-*.parquet
106
- - split: clip_vitb16_l1_300
107
- path: data/fgvc-aircraft-2013b/clip_vitb16_l1_300-*.parquet
108
- - split: clip_vitb16_l2_2
109
- path: data/fgvc-aircraft-2013b/clip_vitb16_l2_2-*.parquet
110
- - split: clip_vitb16_l2_8
111
- path: data/fgvc-aircraft-2013b/clip_vitb16_l2_8-*.parquet
112
- - split: clip_vitb16_linf_4
113
- path: data/fgvc-aircraft-2013b/clip_vitb16_linf_4-*.parquet
114
- - split: clip_vitb16_linf_8
115
- path: data/fgvc-aircraft-2013b/clip_vitb16_linf_8-*.parquet
116
- - split: clip_vitb16_linf_30
117
- path: data/fgvc-aircraft-2013b/clip_vitb16_linf_30-*.parquet
118
- - split: clip_vith14_l1_75
119
- path: data/fgvc-aircraft-2013b/clip_vith14_l1_75-*.parquet
120
- - split: clip_vith14_l1_300
121
- path: data/fgvc-aircraft-2013b/clip_vith14_l1_300-*.parquet
122
- - split: clip_vith14_l2_2
123
- path: data/fgvc-aircraft-2013b/clip_vith14_l2_2-*.parquet
124
- - split: clip_vith14_l2_8
125
- path: data/fgvc-aircraft-2013b/clip_vith14_l2_8-*.parquet
126
- - split: clip_vith14_linf_4
127
- path: data/fgvc-aircraft-2013b/clip_vith14_linf_4-*.parquet
128
- - split: clip_vith14_linf_8
129
- path: data/fgvc-aircraft-2013b/clip_vith14_linf_8-*.parquet
130
- - split: clip_vith14_linf_30
131
- path: data/fgvc-aircraft-2013b/clip_vith14_linf_30-*.parquet
132
- - split: metaclip_vith14_l1_75
133
- path: data/fgvc-aircraft-2013b/metaclip_vith14_l1_75-*.parquet
134
- - split: metaclip_vith14_l1_300
135
- path: data/fgvc-aircraft-2013b/metaclip_vith14_l1_300-*.parquet
136
- - split: metaclip_vith14_l2_2
137
- path: data/fgvc-aircraft-2013b/metaclip_vith14_l2_2-*.parquet
138
- - split: metaclip_vith14_l2_8
139
- path: data/fgvc-aircraft-2013b/metaclip_vith14_l2_8-*.parquet
140
- - split: metaclip_vith14_linf_4
141
- path: data/fgvc-aircraft-2013b/metaclip_vith14_linf_4-*.parquet
142
- - split: metaclip_vith14_linf_8
143
- path: data/fgvc-aircraft-2013b/metaclip_vith14_linf_8-*.parquet
144
- - split: metaclip_vith14_linf_30
145
- path: data/fgvc-aircraft-2013b/metaclip_vith14_linf_30-*.parquet
146
- - split: siglip2_base_linf_30
147
- path: data/fgvc-aircraft-2013b/siglip2_base_linf_30-*.parquet
148
  - config_name: flowers-102
149
  data_files:
150
  - split: train
@@ -157,64 +55,6 @@ configs:
157
  path: data/flowers-102/common-*.parquet
158
  - split: random_linf_30
159
  path: data/flowers-102/random_linf_30-*.parquet
160
- - split: clip_vitb16_l1_75
161
- path: data/flowers-102/clip_vitb16_l1_75-*.parquet
162
- - split: clip_vitb16_l1_300
163
- path: data/flowers-102/clip_vitb16_l1_300-*.parquet
164
- - split: clip_vitb16_l2_2
165
- path: data/flowers-102/clip_vitb16_l2_2-*.parquet
166
- - split: clip_vitb16_l2_8
167
- path: data/flowers-102/clip_vitb16_l2_8-*.parquet
168
- - split: clip_vitb16_linf_4
169
- path: data/flowers-102/clip_vitb16_linf_4-*.parquet
170
- - split: clip_vitb16_linf_8
171
- path: data/flowers-102/clip_vitb16_linf_8-*.parquet
172
- - split: clip_vitb16_linf_30
173
- path: data/flowers-102/clip_vitb16_linf_30-*.parquet
174
- - split: clip_vith14_l1_75
175
- path: data/flowers-102/clip_vith14_l1_75-*.parquet
176
- - split: clip_vith14_l1_300
177
- path: data/flowers-102/clip_vith14_l1_300-*.parquet
178
- - split: clip_vith14_l2_2
179
- path: data/flowers-102/clip_vith14_l2_2-*.parquet
180
- - split: clip_vith14_l2_8
181
- path: data/flowers-102/clip_vith14_l2_8-*.parquet
182
- - split: clip_vith14_linf_4
183
- path: data/flowers-102/clip_vith14_linf_4-*.parquet
184
- - split: clip_vith14_linf_8
185
- path: data/flowers-102/clip_vith14_linf_8-*.parquet
186
- - split: clip_vith14_linf_30
187
- path: data/flowers-102/clip_vith14_linf_30-*.parquet
188
- - split: metaclip_vith14_l1_75
189
- path: data/flowers-102/metaclip_vith14_l1_75-*.parquet
190
- - split: metaclip_vith14_l1_300
191
- path: data/flowers-102/metaclip_vith14_l1_300-*.parquet
192
- - split: metaclip_vith14_l2_2
193
- path: data/flowers-102/metaclip_vith14_l2_2-*.parquet
194
- - split: metaclip_vith14_l2_8
195
- path: data/flowers-102/metaclip_vith14_l2_8-*.parquet
196
- - split: metaclip_vith14_linf_4
197
- path: data/flowers-102/metaclip_vith14_linf_4-*.parquet
198
- - split: metaclip_vith14_linf_8
199
- path: data/flowers-102/metaclip_vith14_linf_8-*.parquet
200
- - split: metaclip_vith14_linf_30
201
- path: data/flowers-102/metaclip_vith14_linf_30-*.parquet
202
- - split: siglip2_so400m_l1_75
203
- path: data/flowers-102/siglip2_so400m_l1_75-*.parquet
204
- - split: siglip2_so400m_l1_300
205
- path: data/flowers-102/siglip2_so400m_l1_300-*.parquet
206
- - split: siglip2_so400m_l2_2
207
- path: data/flowers-102/siglip2_so400m_l2_2-*.parquet
208
- - split: siglip2_so400m_l2_8
209
- path: data/flowers-102/siglip2_so400m_l2_8-*.parquet
210
- - split: siglip2_so400m_linf_4
211
- path: data/flowers-102/siglip2_so400m_linf_4-*.parquet
212
- - split: siglip2_so400m_linf_8
213
- path: data/flowers-102/siglip2_so400m_linf_8-*.parquet
214
- - split: siglip2_so400m_linf_30
215
- path: data/flowers-102/siglip2_so400m_linf_30-*.parquet
216
- - split: siglip2_base_linf_30
217
- path: data/flowers-102/siglip2_base_linf_30-*.parquet
218
  - config_name: oxford-iiit-pet
219
  data_files:
220
  - split: train
@@ -227,50 +67,6 @@ configs:
227
  path: data/oxford-iiit-pet/common-*.parquet
228
  - split: random_linf_30
229
  path: data/oxford-iiit-pet/random_linf_30-*.parquet
230
- - split: clip_vitb16_l1_75
231
- path: data/oxford-iiit-pet/clip_vitb16_l1_75-*.parquet
232
- - split: clip_vitb16_l1_300
233
- path: data/oxford-iiit-pet/clip_vitb16_l1_300-*.parquet
234
- - split: clip_vitb16_l2_2
235
- path: data/oxford-iiit-pet/clip_vitb16_l2_2-*.parquet
236
- - split: clip_vitb16_l2_8
237
- path: data/oxford-iiit-pet/clip_vitb16_l2_8-*.parquet
238
- - split: clip_vitb16_linf_4
239
- path: data/oxford-iiit-pet/clip_vitb16_linf_4-*.parquet
240
- - split: clip_vitb16_linf_8
241
- path: data/oxford-iiit-pet/clip_vitb16_linf_8-*.parquet
242
- - split: clip_vitb16_linf_30
243
- path: data/oxford-iiit-pet/clip_vitb16_linf_30-*.parquet
244
- - split: clip_vith14_l1_75
245
- path: data/oxford-iiit-pet/clip_vith14_l1_75-*.parquet
246
- - split: clip_vith14_l1_300
247
- path: data/oxford-iiit-pet/clip_vith14_l1_300-*.parquet
248
- - split: clip_vith14_l2_2
249
- path: data/oxford-iiit-pet/clip_vith14_l2_2-*.parquet
250
- - split: clip_vith14_l2_8
251
- path: data/oxford-iiit-pet/clip_vith14_l2_8-*.parquet
252
- - split: clip_vith14_linf_4
253
- path: data/oxford-iiit-pet/clip_vith14_linf_4-*.parquet
254
- - split: clip_vith14_linf_8
255
- path: data/oxford-iiit-pet/clip_vith14_linf_8-*.parquet
256
- - split: clip_vith14_linf_30
257
- path: data/oxford-iiit-pet/clip_vith14_linf_30-*.parquet
258
- - split: metaclip_vith14_l1_75
259
- path: data/oxford-iiit-pet/metaclip_vith14_l1_75-*.parquet
260
- - split: metaclip_vith14_l1_300
261
- path: data/oxford-iiit-pet/metaclip_vith14_l1_300-*.parquet
262
- - split: metaclip_vith14_l2_2
263
- path: data/oxford-iiit-pet/metaclip_vith14_l2_2-*.parquet
264
- - split: metaclip_vith14_l2_8
265
- path: data/oxford-iiit-pet/metaclip_vith14_l2_8-*.parquet
266
- - split: metaclip_vith14_linf_4
267
- path: data/oxford-iiit-pet/metaclip_vith14_linf_4-*.parquet
268
- - split: metaclip_vith14_linf_8
269
- path: data/oxford-iiit-pet/metaclip_vith14_linf_8-*.parquet
270
- - split: metaclip_vith14_linf_30
271
- path: data/oxford-iiit-pet/metaclip_vith14_linf_30-*.parquet
272
- - split: siglip2_base_linf_30
273
- path: data/oxford-iiit-pet/siglip2_base_linf_30-*.parquet
274
  - config_name: stanford_cars
275
  data_files:
276
  - split: train
@@ -283,50 +79,6 @@ configs:
283
  path: data/stanford_cars/common-*.parquet
284
  - split: random_linf_30
285
  path: data/stanford_cars/random_linf_30-*.parquet
286
- - split: clip_vitb16_l1_75
287
- path: data/stanford_cars/clip_vitb16_l1_75-*.parquet
288
- - split: clip_vitb16_l1_300
289
- path: data/stanford_cars/clip_vitb16_l1_300-*.parquet
290
- - split: clip_vitb16_l2_2
291
- path: data/stanford_cars/clip_vitb16_l2_2-*.parquet
292
- - split: clip_vitb16_l2_8
293
- path: data/stanford_cars/clip_vitb16_l2_8-*.parquet
294
- - split: clip_vitb16_linf_4
295
- path: data/stanford_cars/clip_vitb16_linf_4-*.parquet
296
- - split: clip_vitb16_linf_8
297
- path: data/stanford_cars/clip_vitb16_linf_8-*.parquet
298
- - split: clip_vitb16_linf_30
299
- path: data/stanford_cars/clip_vitb16_linf_30-*.parquet
300
- - split: clip_vith14_l1_75
301
- path: data/stanford_cars/clip_vith14_l1_75-*.parquet
302
- - split: clip_vith14_l1_300
303
- path: data/stanford_cars/clip_vith14_l1_300-*.parquet
304
- - split: clip_vith14_l2_2
305
- path: data/stanford_cars/clip_vith14_l2_2-*.parquet
306
- - split: clip_vith14_l2_8
307
- path: data/stanford_cars/clip_vith14_l2_8-*.parquet
308
- - split: clip_vith14_linf_4
309
- path: data/stanford_cars/clip_vith14_linf_4-*.parquet
310
- - split: clip_vith14_linf_8
311
- path: data/stanford_cars/clip_vith14_linf_8-*.parquet
312
- - split: clip_vith14_linf_30
313
- path: data/stanford_cars/clip_vith14_linf_30-*.parquet
314
- - split: metaclip_vith14_l1_75
315
- path: data/stanford_cars/metaclip_vith14_l1_75-*.parquet
316
- - split: metaclip_vith14_l1_300
317
- path: data/stanford_cars/metaclip_vith14_l1_300-*.parquet
318
- - split: metaclip_vith14_l2_2
319
- path: data/stanford_cars/metaclip_vith14_l2_2-*.parquet
320
- - split: metaclip_vith14_l2_8
321
- path: data/stanford_cars/metaclip_vith14_l2_8-*.parquet
322
- - split: metaclip_vith14_linf_4
323
- path: data/stanford_cars/metaclip_vith14_linf_4-*.parquet
324
- - split: metaclip_vith14_linf_8
325
- path: data/stanford_cars/metaclip_vith14_linf_8-*.parquet
326
- - split: metaclip_vith14_linf_30
327
- path: data/stanford_cars/metaclip_vith14_linf_30-*.parquet
328
- - split: siglip2_base_linf_30
329
- path: data/stanford_cars/siglip2_base_linf_30-*.parquet
330
  - config_name: uc-merced-land-use-dataset
331
  data_files:
332
  - split: train
@@ -339,63 +91,365 @@ configs:
339
  path: data/uc-merced-land-use-dataset/common-*.parquet
340
  - split: random_linf_30
341
  path: data/uc-merced-land-use-dataset/random_linf_30-*.parquet
342
- - split: clip_vitb16_l1_75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  path: data/uc-merced-land-use-dataset/clip_vitb16_l1_75-*.parquet
344
- - split: clip_vitb16_l1_300
345
  path: data/uc-merced-land-use-dataset/clip_vitb16_l1_300-*.parquet
346
- - split: clip_vitb16_l2_2
347
  path: data/uc-merced-land-use-dataset/clip_vitb16_l2_2-*.parquet
348
- - split: clip_vitb16_l2_8
349
  path: data/uc-merced-land-use-dataset/clip_vitb16_l2_8-*.parquet
350
- - split: clip_vitb16_linf_4
351
  path: data/uc-merced-land-use-dataset/clip_vitb16_linf_4-*.parquet
352
- - split: clip_vitb16_linf_8
353
  path: data/uc-merced-land-use-dataset/clip_vitb16_linf_8-*.parquet
354
- - split: clip_vitb16_linf_30
355
  path: data/uc-merced-land-use-dataset/clip_vitb16_linf_30-*.parquet
356
- - split: clip_vith14_l1_75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  path: data/uc-merced-land-use-dataset/clip_vith14_l1_75-*.parquet
358
- - split: clip_vith14_l1_300
359
  path: data/uc-merced-land-use-dataset/clip_vith14_l1_300-*.parquet
360
- - split: clip_vith14_l2_2
361
  path: data/uc-merced-land-use-dataset/clip_vith14_l2_2-*.parquet
362
- - split: clip_vith14_l2_8
363
  path: data/uc-merced-land-use-dataset/clip_vith14_l2_8-*.parquet
364
- - split: clip_vith14_linf_4
365
  path: data/uc-merced-land-use-dataset/clip_vith14_linf_4-*.parquet
366
- - split: clip_vith14_linf_8
367
  path: data/uc-merced-land-use-dataset/clip_vith14_linf_8-*.parquet
368
- - split: clip_vith14_linf_30
369
  path: data/uc-merced-land-use-dataset/clip_vith14_linf_30-*.parquet
370
- - split: metaclip_vith14_l1_75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
371
  path: data/uc-merced-land-use-dataset/metaclip_vith14_l1_75-*.parquet
372
- - split: metaclip_vith14_l1_300
373
  path: data/uc-merced-land-use-dataset/metaclip_vith14_l1_300-*.parquet
374
- - split: metaclip_vith14_l2_2
375
  path: data/uc-merced-land-use-dataset/metaclip_vith14_l2_2-*.parquet
376
- - split: metaclip_vith14_l2_8
377
  path: data/uc-merced-land-use-dataset/metaclip_vith14_l2_8-*.parquet
378
- - split: metaclip_vith14_linf_4
379
  path: data/uc-merced-land-use-dataset/metaclip_vith14_linf_4-*.parquet
380
- - split: metaclip_vith14_linf_8
381
  path: data/uc-merced-land-use-dataset/metaclip_vith14_linf_8-*.parquet
382
- - split: metaclip_vith14_linf_30
383
  path: data/uc-merced-land-use-dataset/metaclip_vith14_linf_30-*.parquet
384
- - split: siglip2_so400m_l1_75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
  path: data/uc-merced-land-use-dataset/siglip2_so400m_l1_75-*.parquet
386
- - split: siglip2_so400m_l1_300
387
  path: data/uc-merced-land-use-dataset/siglip2_so400m_l1_300-*.parquet
388
- - split: siglip2_so400m_l2_2
389
  path: data/uc-merced-land-use-dataset/siglip2_so400m_l2_2-*.parquet
390
- - split: siglip2_so400m_l2_8
391
  path: data/uc-merced-land-use-dataset/siglip2_so400m_l2_8-*.parquet
392
- - split: siglip2_so400m_linf_4
393
  path: data/uc-merced-land-use-dataset/siglip2_so400m_linf_4-*.parquet
394
- - split: siglip2_so400m_linf_8
395
  path: data/uc-merced-land-use-dataset/siglip2_so400m_linf_8-*.parquet
396
- - split: siglip2_so400m_linf_30
397
  path: data/uc-merced-land-use-dataset/siglip2_so400m_linf_30-*.parquet
398
- - split: siglip2_base_linf_30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
399
  path: data/uc-merced-land-use-dataset/siglip2_base_linf_30-*.parquet
400
  ---
401
 
@@ -420,9 +474,14 @@ In total: 5,420 clean test images and 147,020 perturbed test images.
420
  ```python
421
  from datasets import load_dataset
422
 
423
- # One config per dataset; one split per perturbation setting.
424
- clean = load_dataset("legolasflagstaff/RobustGenBench", "uc-merced-land-use-dataset", split="test")
425
- adv = load_dataset("legolasflagstaff/RobustGenBench", "uc-merced-land-use-dataset", split="clip_vith14_linf_30")
 
 
 
 
 
426
 
427
  row = adv[0]
428
  row["image"] # PIL.Image, 224×224 RGB
@@ -433,18 +492,21 @@ row["image_id"] # aligns with the clean image of t
433
  Evaluate a classifier on every perturbation setting of one dataset:
434
 
435
  ```python
436
- from datasets import load_dataset, get_dataset_split_names
 
 
 
 
 
 
437
 
438
- repo, cfg = "legolasflagstaff/RobustGenBench", "flowers-102"
439
- for split in get_dataset_split_names(repo, cfg):
440
- if split in ("train", "validation"):
441
- continue
442
  ds = load_dataset(repo, cfg, split=split)
443
  acc = sum(predict(x["image"]) == x["label"] for x in ds) / len(ds) # your model here
444
- print(f"{split:24s} {acc:.3f}")
445
  ```
446
 
447
- Splits are aligned by `image_id`: row *i* of every perturbed split is a perturbed version of row *i* of `test`, with the same label.
448
 
449
  ## Datasets
450
 
@@ -459,17 +521,17 @@ Splits are aligned by `image_id`: row *i* of every perturbed split is a perturbe
459
 
460
  Test sets are standardized to at most 1,000 images by uniform sampling, preserving all classes. All images are resized to 224×224×3 and stored as lossless PNG.
461
 
462
- ## Splits
463
 
464
- Each config (dataset) contains the following splits.
 
 
 
 
 
 
465
 
466
- | Split | Content |
467
- |---|---|
468
- | `train`, `validation` | Clean images, for fine-tuning. |
469
- | `test` | Clean test images, the reference for all perturbed splits. |
470
- | `common` | Each test image with one of 11 common corruptions at severity 3 (column `corruption`). |
471
- | `random_linf_30` | Uniform random noise with $\lVert\delta\rVert_\infty \le 30/255$. |
472
- | `<surrogate>_<norm>_<eps>` | Transfer adversarial images, e.g. `clip_vitb16_linf_30`, `metaclip_vith14_l1_300`. |
473
 
474
  ### Common corruptions
475
 
@@ -479,7 +541,7 @@ Shot noise, impulse noise, defocus blur, motion blur, zoom blur, snow, brightnes
479
 
480
  Perturbations are crafted with the standard AutoAttack ensemble (APGD-CE, APGD-T, FAB-T, Square) against zero-shot surrogate classifiers. Each surrogate predicts the class whose text embedding (`"a photo of a {class}"`) is closest to the image embedding. AutoAttack only perturbs images the surrogate classifies correctly; other images are copied unchanged (`is_modified = false`).
481
 
482
- | Norm | Budgets $\epsilon$ | Split suffix |
483
  |---|---|---|
484
  | $\ell_1$ | 75, 300 | `l1_75`, `l1_300` |
485
  | $\ell_2$ | 2, 8 | `l2_2`, `l2_8` |
@@ -487,7 +549,7 @@ Perturbations are crafted with the standard AutoAttack ensemble (APGD-CE, APGD-T
487
 
488
  Budgets are expressed on pixel values in $[0, 1]$; the `epsilon` column stores the exact value (e.g. 0.1176 for 30/255).
489
 
490
- | Surrogate prefix | Model | Checkpoint |
491
  |---|---|---|
492
  | `clip_vitb16` | CLIP ViT-B/16 | open_clip `ViT-B-16` / `laion2b_s34b_b88k` |
493
  | `clip_vith14` | CLIP ViT-H/14 | open_clip `ViT-H-14` / `laion2b_s32b_b79k` |
@@ -499,37 +561,37 @@ Budgets are expressed on pixel values in $[0, 1]$; the `epsilon` column stores t
499
 
500
  SigLIP-family surrogates classify the fine-grained datasets poorly, and a surrogate that misclassifies the clean image provides no attack signal. SigLIP2 SO400M is therefore provided on the three coarse-grained datasets only. SigLIP2 base is provided at $\ell_\infty$ 30/255 only; on the fine-grained datasets it leaves most images unmodified (see `is_modified`).
501
 
502
- | Split | Caltech-101 | FGVC-Aircraft (2013b) | Oxford Flowers-102 | Oxford-IIIT Pet | Stanford Cars | UC Merced Land Use |
503
- |---|---|---|---|---|---|---|
504
- | `clip_vitb16_l1_75` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
505
- | `clip_vitb16_l1_300` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
506
- | `clip_vitb16_l2_2` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
507
- | `clip_vitb16_l2_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
508
- | `clip_vitb16_linf_4` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
509
- | `clip_vitb16_linf_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
510
- | `clip_vitb16_linf_30` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
511
- | `clip_vith14_l1_75` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
512
- | `clip_vith14_l1_300` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
513
- | `clip_vith14_l2_2` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
514
- | `clip_vith14_l2_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
515
- | `clip_vith14_linf_4` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
516
- | `clip_vith14_linf_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
517
- | `clip_vith14_linf_30` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
518
- | `metaclip_vith14_l1_75` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
519
- | `metaclip_vith14_l1_300` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
520
- | `metaclip_vith14_l2_2` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
521
- | `metaclip_vith14_l2_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
522
- | `metaclip_vith14_linf_4` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
523
- | `metaclip_vith14_linf_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
524
- | `metaclip_vith14_linf_30` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
525
- | `siglip2_so400m_l1_75` | ✓ | – | ✓ | – | – | ✓ |
526
- | `siglip2_so400m_l1_300` | ✓ | – | ✓ | – | – | ✓ |
527
- | `siglip2_so400m_l2_2` | ✓ | – | ✓ | – | – | ✓ |
528
- | `siglip2_so400m_l2_8` | ✓ | – | ✓ | – | – | ✓ |
529
- | `siglip2_so400m_linf_4` | ✓ | – | ✓ | – | – | ✓ |
530
- | `siglip2_so400m_linf_8` | ✓ | – | ✓ | – | – | ✓ |
531
- | `siglip2_so400m_linf_30` | ✓ | – | ✓ | – | – | ✓ |
532
- | `siglip2_base_linf_30` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
533
 
534
  ## Data fields
535
 
 
31
  path: data/caltech101/common-*.parquet
32
  - split: random_linf_30
33
  path: data/caltech101/random_linf_30-*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  - config_name: fgvc-aircraft-2013b
35
  data_files:
36
  - split: train
 
43
  path: data/fgvc-aircraft-2013b/common-*.parquet
44
  - split: random_linf_30
45
  path: data/fgvc-aircraft-2013b/random_linf_30-*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  - config_name: flowers-102
47
  data_files:
48
  - split: train
 
55
  path: data/flowers-102/common-*.parquet
56
  - split: random_linf_30
57
  path: data/flowers-102/random_linf_30-*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  - config_name: oxford-iiit-pet
59
  data_files:
60
  - split: train
 
67
  path: data/oxford-iiit-pet/common-*.parquet
68
  - split: random_linf_30
69
  path: data/oxford-iiit-pet/random_linf_30-*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  - config_name: stanford_cars
71
  data_files:
72
  - split: train
 
79
  path: data/stanford_cars/common-*.parquet
80
  - split: random_linf_30
81
  path: data/stanford_cars/random_linf_30-*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  - config_name: uc-merced-land-use-dataset
83
  data_files:
84
  - split: train
 
91
  path: data/uc-merced-land-use-dataset/common-*.parquet
92
  - split: random_linf_30
93
  path: data/uc-merced-land-use-dataset/random_linf_30-*.parquet
94
+ - config_name: caltech101-clip_vitb16
95
+ data_files:
96
+ - split: l1_75
97
+ path: data/caltech101/clip_vitb16_l1_75-*.parquet
98
+ - split: l1_300
99
+ path: data/caltech101/clip_vitb16_l1_300-*.parquet
100
+ - split: l2_2
101
+ path: data/caltech101/clip_vitb16_l2_2-*.parquet
102
+ - split: l2_8
103
+ path: data/caltech101/clip_vitb16_l2_8-*.parquet
104
+ - split: linf_4
105
+ path: data/caltech101/clip_vitb16_linf_4-*.parquet
106
+ - split: linf_8
107
+ path: data/caltech101/clip_vitb16_linf_8-*.parquet
108
+ - split: linf_30
109
+ path: data/caltech101/clip_vitb16_linf_30-*.parquet
110
+ - config_name: fgvc-aircraft-2013b-clip_vitb16
111
+ data_files:
112
+ - split: l1_75
113
+ path: data/fgvc-aircraft-2013b/clip_vitb16_l1_75-*.parquet
114
+ - split: l1_300
115
+ path: data/fgvc-aircraft-2013b/clip_vitb16_l1_300-*.parquet
116
+ - split: l2_2
117
+ path: data/fgvc-aircraft-2013b/clip_vitb16_l2_2-*.parquet
118
+ - split: l2_8
119
+ path: data/fgvc-aircraft-2013b/clip_vitb16_l2_8-*.parquet
120
+ - split: linf_4
121
+ path: data/fgvc-aircraft-2013b/clip_vitb16_linf_4-*.parquet
122
+ - split: linf_8
123
+ path: data/fgvc-aircraft-2013b/clip_vitb16_linf_8-*.parquet
124
+ - split: linf_30
125
+ path: data/fgvc-aircraft-2013b/clip_vitb16_linf_30-*.parquet
126
+ - config_name: flowers-102-clip_vitb16
127
+ data_files:
128
+ - split: l1_75
129
+ path: data/flowers-102/clip_vitb16_l1_75-*.parquet
130
+ - split: l1_300
131
+ path: data/flowers-102/clip_vitb16_l1_300-*.parquet
132
+ - split: l2_2
133
+ path: data/flowers-102/clip_vitb16_l2_2-*.parquet
134
+ - split: l2_8
135
+ path: data/flowers-102/clip_vitb16_l2_8-*.parquet
136
+ - split: linf_4
137
+ path: data/flowers-102/clip_vitb16_linf_4-*.parquet
138
+ - split: linf_8
139
+ path: data/flowers-102/clip_vitb16_linf_8-*.parquet
140
+ - split: linf_30
141
+ path: data/flowers-102/clip_vitb16_linf_30-*.parquet
142
+ - config_name: oxford-iiit-pet-clip_vitb16
143
+ data_files:
144
+ - split: l1_75
145
+ path: data/oxford-iiit-pet/clip_vitb16_l1_75-*.parquet
146
+ - split: l1_300
147
+ path: data/oxford-iiit-pet/clip_vitb16_l1_300-*.parquet
148
+ - split: l2_2
149
+ path: data/oxford-iiit-pet/clip_vitb16_l2_2-*.parquet
150
+ - split: l2_8
151
+ path: data/oxford-iiit-pet/clip_vitb16_l2_8-*.parquet
152
+ - split: linf_4
153
+ path: data/oxford-iiit-pet/clip_vitb16_linf_4-*.parquet
154
+ - split: linf_8
155
+ path: data/oxford-iiit-pet/clip_vitb16_linf_8-*.parquet
156
+ - split: linf_30
157
+ path: data/oxford-iiit-pet/clip_vitb16_linf_30-*.parquet
158
+ - config_name: stanford_cars-clip_vitb16
159
+ data_files:
160
+ - split: l1_75
161
+ path: data/stanford_cars/clip_vitb16_l1_75-*.parquet
162
+ - split: l1_300
163
+ path: data/stanford_cars/clip_vitb16_l1_300-*.parquet
164
+ - split: l2_2
165
+ path: data/stanford_cars/clip_vitb16_l2_2-*.parquet
166
+ - split: l2_8
167
+ path: data/stanford_cars/clip_vitb16_l2_8-*.parquet
168
+ - split: linf_4
169
+ path: data/stanford_cars/clip_vitb16_linf_4-*.parquet
170
+ - split: linf_8
171
+ path: data/stanford_cars/clip_vitb16_linf_8-*.parquet
172
+ - split: linf_30
173
+ path: data/stanford_cars/clip_vitb16_linf_30-*.parquet
174
+ - config_name: uc-merced-land-use-dataset-clip_vitb16
175
+ data_files:
176
+ - split: l1_75
177
  path: data/uc-merced-land-use-dataset/clip_vitb16_l1_75-*.parquet
178
+ - split: l1_300
179
  path: data/uc-merced-land-use-dataset/clip_vitb16_l1_300-*.parquet
180
+ - split: l2_2
181
  path: data/uc-merced-land-use-dataset/clip_vitb16_l2_2-*.parquet
182
+ - split: l2_8
183
  path: data/uc-merced-land-use-dataset/clip_vitb16_l2_8-*.parquet
184
+ - split: linf_4
185
  path: data/uc-merced-land-use-dataset/clip_vitb16_linf_4-*.parquet
186
+ - split: linf_8
187
  path: data/uc-merced-land-use-dataset/clip_vitb16_linf_8-*.parquet
188
+ - split: linf_30
189
  path: data/uc-merced-land-use-dataset/clip_vitb16_linf_30-*.parquet
190
+ - config_name: caltech101-clip_vith14
191
+ data_files:
192
+ - split: l1_75
193
+ path: data/caltech101/clip_vith14_l1_75-*.parquet
194
+ - split: l1_300
195
+ path: data/caltech101/clip_vith14_l1_300-*.parquet
196
+ - split: l2_2
197
+ path: data/caltech101/clip_vith14_l2_2-*.parquet
198
+ - split: l2_8
199
+ path: data/caltech101/clip_vith14_l2_8-*.parquet
200
+ - split: linf_4
201
+ path: data/caltech101/clip_vith14_linf_4-*.parquet
202
+ - split: linf_8
203
+ path: data/caltech101/clip_vith14_linf_8-*.parquet
204
+ - split: linf_30
205
+ path: data/caltech101/clip_vith14_linf_30-*.parquet
206
+ - config_name: fgvc-aircraft-2013b-clip_vith14
207
+ data_files:
208
+ - split: l1_75
209
+ path: data/fgvc-aircraft-2013b/clip_vith14_l1_75-*.parquet
210
+ - split: l1_300
211
+ path: data/fgvc-aircraft-2013b/clip_vith14_l1_300-*.parquet
212
+ - split: l2_2
213
+ path: data/fgvc-aircraft-2013b/clip_vith14_l2_2-*.parquet
214
+ - split: l2_8
215
+ path: data/fgvc-aircraft-2013b/clip_vith14_l2_8-*.parquet
216
+ - split: linf_4
217
+ path: data/fgvc-aircraft-2013b/clip_vith14_linf_4-*.parquet
218
+ - split: linf_8
219
+ path: data/fgvc-aircraft-2013b/clip_vith14_linf_8-*.parquet
220
+ - split: linf_30
221
+ path: data/fgvc-aircraft-2013b/clip_vith14_linf_30-*.parquet
222
+ - config_name: flowers-102-clip_vith14
223
+ data_files:
224
+ - split: l1_75
225
+ path: data/flowers-102/clip_vith14_l1_75-*.parquet
226
+ - split: l1_300
227
+ path: data/flowers-102/clip_vith14_l1_300-*.parquet
228
+ - split: l2_2
229
+ path: data/flowers-102/clip_vith14_l2_2-*.parquet
230
+ - split: l2_8
231
+ path: data/flowers-102/clip_vith14_l2_8-*.parquet
232
+ - split: linf_4
233
+ path: data/flowers-102/clip_vith14_linf_4-*.parquet
234
+ - split: linf_8
235
+ path: data/flowers-102/clip_vith14_linf_8-*.parquet
236
+ - split: linf_30
237
+ path: data/flowers-102/clip_vith14_linf_30-*.parquet
238
+ - config_name: oxford-iiit-pet-clip_vith14
239
+ data_files:
240
+ - split: l1_75
241
+ path: data/oxford-iiit-pet/clip_vith14_l1_75-*.parquet
242
+ - split: l1_300
243
+ path: data/oxford-iiit-pet/clip_vith14_l1_300-*.parquet
244
+ - split: l2_2
245
+ path: data/oxford-iiit-pet/clip_vith14_l2_2-*.parquet
246
+ - split: l2_8
247
+ path: data/oxford-iiit-pet/clip_vith14_l2_8-*.parquet
248
+ - split: linf_4
249
+ path: data/oxford-iiit-pet/clip_vith14_linf_4-*.parquet
250
+ - split: linf_8
251
+ path: data/oxford-iiit-pet/clip_vith14_linf_8-*.parquet
252
+ - split: linf_30
253
+ path: data/oxford-iiit-pet/clip_vith14_linf_30-*.parquet
254
+ - config_name: stanford_cars-clip_vith14
255
+ data_files:
256
+ - split: l1_75
257
+ path: data/stanford_cars/clip_vith14_l1_75-*.parquet
258
+ - split: l1_300
259
+ path: data/stanford_cars/clip_vith14_l1_300-*.parquet
260
+ - split: l2_2
261
+ path: data/stanford_cars/clip_vith14_l2_2-*.parquet
262
+ - split: l2_8
263
+ path: data/stanford_cars/clip_vith14_l2_8-*.parquet
264
+ - split: linf_4
265
+ path: data/stanford_cars/clip_vith14_linf_4-*.parquet
266
+ - split: linf_8
267
+ path: data/stanford_cars/clip_vith14_linf_8-*.parquet
268
+ - split: linf_30
269
+ path: data/stanford_cars/clip_vith14_linf_30-*.parquet
270
+ - config_name: uc-merced-land-use-dataset-clip_vith14
271
+ data_files:
272
+ - split: l1_75
273
  path: data/uc-merced-land-use-dataset/clip_vith14_l1_75-*.parquet
274
+ - split: l1_300
275
  path: data/uc-merced-land-use-dataset/clip_vith14_l1_300-*.parquet
276
+ - split: l2_2
277
  path: data/uc-merced-land-use-dataset/clip_vith14_l2_2-*.parquet
278
+ - split: l2_8
279
  path: data/uc-merced-land-use-dataset/clip_vith14_l2_8-*.parquet
280
+ - split: linf_4
281
  path: data/uc-merced-land-use-dataset/clip_vith14_linf_4-*.parquet
282
+ - split: linf_8
283
  path: data/uc-merced-land-use-dataset/clip_vith14_linf_8-*.parquet
284
+ - split: linf_30
285
  path: data/uc-merced-land-use-dataset/clip_vith14_linf_30-*.parquet
286
+ - config_name: caltech101-metaclip_vith14
287
+ data_files:
288
+ - split: l1_75
289
+ path: data/caltech101/metaclip_vith14_l1_75-*.parquet
290
+ - split: l1_300
291
+ path: data/caltech101/metaclip_vith14_l1_300-*.parquet
292
+ - split: l2_2
293
+ path: data/caltech101/metaclip_vith14_l2_2-*.parquet
294
+ - split: l2_8
295
+ path: data/caltech101/metaclip_vith14_l2_8-*.parquet
296
+ - split: linf_4
297
+ path: data/caltech101/metaclip_vith14_linf_4-*.parquet
298
+ - split: linf_8
299
+ path: data/caltech101/metaclip_vith14_linf_8-*.parquet
300
+ - split: linf_30
301
+ path: data/caltech101/metaclip_vith14_linf_30-*.parquet
302
+ - config_name: fgvc-aircraft-2013b-metaclip_vith14
303
+ data_files:
304
+ - split: l1_75
305
+ path: data/fgvc-aircraft-2013b/metaclip_vith14_l1_75-*.parquet
306
+ - split: l1_300
307
+ path: data/fgvc-aircraft-2013b/metaclip_vith14_l1_300-*.parquet
308
+ - split: l2_2
309
+ path: data/fgvc-aircraft-2013b/metaclip_vith14_l2_2-*.parquet
310
+ - split: l2_8
311
+ path: data/fgvc-aircraft-2013b/metaclip_vith14_l2_8-*.parquet
312
+ - split: linf_4
313
+ path: data/fgvc-aircraft-2013b/metaclip_vith14_linf_4-*.parquet
314
+ - split: linf_8
315
+ path: data/fgvc-aircraft-2013b/metaclip_vith14_linf_8-*.parquet
316
+ - split: linf_30
317
+ path: data/fgvc-aircraft-2013b/metaclip_vith14_linf_30-*.parquet
318
+ - config_name: flowers-102-metaclip_vith14
319
+ data_files:
320
+ - split: l1_75
321
+ path: data/flowers-102/metaclip_vith14_l1_75-*.parquet
322
+ - split: l1_300
323
+ path: data/flowers-102/metaclip_vith14_l1_300-*.parquet
324
+ - split: l2_2
325
+ path: data/flowers-102/metaclip_vith14_l2_2-*.parquet
326
+ - split: l2_8
327
+ path: data/flowers-102/metaclip_vith14_l2_8-*.parquet
328
+ - split: linf_4
329
+ path: data/flowers-102/metaclip_vith14_linf_4-*.parquet
330
+ - split: linf_8
331
+ path: data/flowers-102/metaclip_vith14_linf_8-*.parquet
332
+ - split: linf_30
333
+ path: data/flowers-102/metaclip_vith14_linf_30-*.parquet
334
+ - config_name: oxford-iiit-pet-metaclip_vith14
335
+ data_files:
336
+ - split: l1_75
337
+ path: data/oxford-iiit-pet/metaclip_vith14_l1_75-*.parquet
338
+ - split: l1_300
339
+ path: data/oxford-iiit-pet/metaclip_vith14_l1_300-*.parquet
340
+ - split: l2_2
341
+ path: data/oxford-iiit-pet/metaclip_vith14_l2_2-*.parquet
342
+ - split: l2_8
343
+ path: data/oxford-iiit-pet/metaclip_vith14_l2_8-*.parquet
344
+ - split: linf_4
345
+ path: data/oxford-iiit-pet/metaclip_vith14_linf_4-*.parquet
346
+ - split: linf_8
347
+ path: data/oxford-iiit-pet/metaclip_vith14_linf_8-*.parquet
348
+ - split: linf_30
349
+ path: data/oxford-iiit-pet/metaclip_vith14_linf_30-*.parquet
350
+ - config_name: stanford_cars-metaclip_vith14
351
+ data_files:
352
+ - split: l1_75
353
+ path: data/stanford_cars/metaclip_vith14_l1_75-*.parquet
354
+ - split: l1_300
355
+ path: data/stanford_cars/metaclip_vith14_l1_300-*.parquet
356
+ - split: l2_2
357
+ path: data/stanford_cars/metaclip_vith14_l2_2-*.parquet
358
+ - split: l2_8
359
+ path: data/stanford_cars/metaclip_vith14_l2_8-*.parquet
360
+ - split: linf_4
361
+ path: data/stanford_cars/metaclip_vith14_linf_4-*.parquet
362
+ - split: linf_8
363
+ path: data/stanford_cars/metaclip_vith14_linf_8-*.parquet
364
+ - split: linf_30
365
+ path: data/stanford_cars/metaclip_vith14_linf_30-*.parquet
366
+ - config_name: uc-merced-land-use-dataset-metaclip_vith14
367
+ data_files:
368
+ - split: l1_75
369
  path: data/uc-merced-land-use-dataset/metaclip_vith14_l1_75-*.parquet
370
+ - split: l1_300
371
  path: data/uc-merced-land-use-dataset/metaclip_vith14_l1_300-*.parquet
372
+ - split: l2_2
373
  path: data/uc-merced-land-use-dataset/metaclip_vith14_l2_2-*.parquet
374
+ - split: l2_8
375
  path: data/uc-merced-land-use-dataset/metaclip_vith14_l2_8-*.parquet
376
+ - split: linf_4
377
  path: data/uc-merced-land-use-dataset/metaclip_vith14_linf_4-*.parquet
378
+ - split: linf_8
379
  path: data/uc-merced-land-use-dataset/metaclip_vith14_linf_8-*.parquet
380
+ - split: linf_30
381
  path: data/uc-merced-land-use-dataset/metaclip_vith14_linf_30-*.parquet
382
+ - config_name: caltech101-siglip2_so400m
383
+ data_files:
384
+ - split: l1_75
385
+ path: data/caltech101/siglip2_so400m_l1_75-*.parquet
386
+ - split: l1_300
387
+ path: data/caltech101/siglip2_so400m_l1_300-*.parquet
388
+ - split: l2_2
389
+ path: data/caltech101/siglip2_so400m_l2_2-*.parquet
390
+ - split: l2_8
391
+ path: data/caltech101/siglip2_so400m_l2_8-*.parquet
392
+ - split: linf_4
393
+ path: data/caltech101/siglip2_so400m_linf_4-*.parquet
394
+ - split: linf_8
395
+ path: data/caltech101/siglip2_so400m_linf_8-*.parquet
396
+ - split: linf_30
397
+ path: data/caltech101/siglip2_so400m_linf_30-*.parquet
398
+ - config_name: flowers-102-siglip2_so400m
399
+ data_files:
400
+ - split: l1_75
401
+ path: data/flowers-102/siglip2_so400m_l1_75-*.parquet
402
+ - split: l1_300
403
+ path: data/flowers-102/siglip2_so400m_l1_300-*.parquet
404
+ - split: l2_2
405
+ path: data/flowers-102/siglip2_so400m_l2_2-*.parquet
406
+ - split: l2_8
407
+ path: data/flowers-102/siglip2_so400m_l2_8-*.parquet
408
+ - split: linf_4
409
+ path: data/flowers-102/siglip2_so400m_linf_4-*.parquet
410
+ - split: linf_8
411
+ path: data/flowers-102/siglip2_so400m_linf_8-*.parquet
412
+ - split: linf_30
413
+ path: data/flowers-102/siglip2_so400m_linf_30-*.parquet
414
+ - config_name: uc-merced-land-use-dataset-siglip2_so400m
415
+ data_files:
416
+ - split: l1_75
417
  path: data/uc-merced-land-use-dataset/siglip2_so400m_l1_75-*.parquet
418
+ - split: l1_300
419
  path: data/uc-merced-land-use-dataset/siglip2_so400m_l1_300-*.parquet
420
+ - split: l2_2
421
  path: data/uc-merced-land-use-dataset/siglip2_so400m_l2_2-*.parquet
422
+ - split: l2_8
423
  path: data/uc-merced-land-use-dataset/siglip2_so400m_l2_8-*.parquet
424
+ - split: linf_4
425
  path: data/uc-merced-land-use-dataset/siglip2_so400m_linf_4-*.parquet
426
+ - split: linf_8
427
  path: data/uc-merced-land-use-dataset/siglip2_so400m_linf_8-*.parquet
428
+ - split: linf_30
429
  path: data/uc-merced-land-use-dataset/siglip2_so400m_linf_30-*.parquet
430
+ - config_name: caltech101-siglip2_base
431
+ data_files:
432
+ - split: linf_30
433
+ path: data/caltech101/siglip2_base_linf_30-*.parquet
434
+ - config_name: fgvc-aircraft-2013b-siglip2_base
435
+ data_files:
436
+ - split: linf_30
437
+ path: data/fgvc-aircraft-2013b/siglip2_base_linf_30-*.parquet
438
+ - config_name: flowers-102-siglip2_base
439
+ data_files:
440
+ - split: linf_30
441
+ path: data/flowers-102/siglip2_base_linf_30-*.parquet
442
+ - config_name: oxford-iiit-pet-siglip2_base
443
+ data_files:
444
+ - split: linf_30
445
+ path: data/oxford-iiit-pet/siglip2_base_linf_30-*.parquet
446
+ - config_name: stanford_cars-siglip2_base
447
+ data_files:
448
+ - split: linf_30
449
+ path: data/stanford_cars/siglip2_base_linf_30-*.parquet
450
+ - config_name: uc-merced-land-use-dataset-siglip2_base
451
+ data_files:
452
+ - split: linf_30
453
  path: data/uc-merced-land-use-dataset/siglip2_base_linf_30-*.parquet
454
  ---
455
 
 
474
  ```python
475
  from datasets import load_dataset
476
 
477
+ repo = "legolasflagstaff/RobustGenBench"
478
+
479
+ # Clean and model-independent splits: config "<dataset>".
480
+ clean = load_dataset(repo, "uc-merced-land-use-dataset", split="test")
481
+ common = load_dataset(repo, "uc-merced-land-use-dataset", split="common")
482
+
483
+ # Transfer attacks: config "<dataset>-<surrogate>", one split per budget.
484
+ adv = load_dataset(repo, "uc-merced-land-use-dataset-clip_vith14", split="linf_30")
485
 
486
  row = adv[0]
487
  row["image"] # PIL.Image, 224×224 RGB
 
492
  Evaluate a classifier on every perturbation setting of one dataset:
493
 
494
  ```python
495
+ from datasets import load_dataset, get_dataset_config_names, get_dataset_split_names
496
+
497
+ repo, name = "legolasflagstaff/RobustGenBench", "flowers-102"
498
+ settings = [(name, s) for s in ("test", "common", "random_linf_30")]
499
+ for cfg in get_dataset_config_names(repo):
500
+ if cfg.startswith(name + "-"): # one config per surrogate
501
+ settings += [(cfg, s) for s in get_dataset_split_names(repo, cfg)]
502
 
503
+ for cfg, split in settings:
 
 
 
504
  ds = load_dataset(repo, cfg, split=split)
505
  acc = sum(predict(x["image"]) == x["label"] for x in ds) / len(ds) # your model here
506
+ print(f"{cfg:34s} {split:15s} {acc:.3f}")
507
  ```
508
 
509
+ All perturbed splits are aligned with `test` by `image_id`: row *i* of every perturbed split is a perturbed version of row *i* of `test`, with the same label.
510
 
511
  ## Datasets
512
 
 
521
 
522
  Test sets are standardized to at most 1,000 images by uniform sampling, preserving all classes. All images are resized to 224×224×3 and stored as lossless PNG.
523
 
524
+ ## Configs and splits
525
 
526
+ | Config | Split | Content |
527
+ |---|---|---|
528
+ | `<dataset>` | `train`, `validation` | Clean images, for fine-tuning. |
529
+ | `<dataset>` | `test` | Clean test images, the reference for all perturbed splits. |
530
+ | `<dataset>` | `common` | Each test image with one of 11 common corruptions at severity 3 (column `corruption`). |
531
+ | `<dataset>` | `random_linf_30` | Uniform random noise with $\lVert\delta\rVert_\infty \le 30/255$. |
532
+ | `<dataset>-<surrogate>` | `<norm>_<eps>` | Transfer adversarial images, e.g. config `flowers-102-clip_vitb16`, split `linf_30`. |
533
 
534
+ The Parquet files themselves live under `data/<dataset>/`.
 
 
 
 
 
 
535
 
536
  ### Common corruptions
537
 
 
541
 
542
  Perturbations are crafted with the standard AutoAttack ensemble (APGD-CE, APGD-T, FAB-T, Square) against zero-shot surrogate classifiers. Each surrogate predicts the class whose text embedding (`"a photo of a {class}"`) is closest to the image embedding. AutoAttack only perturbs images the surrogate classifies correctly; other images are copied unchanged (`is_modified = false`).
543
 
544
+ | Norm | Budgets $\epsilon$ | Splits |
545
  |---|---|---|
546
  | $\ell_1$ | 75, 300 | `l1_75`, `l1_300` |
547
  | $\ell_2$ | 2, 8 | `l2_2`, `l2_8` |
 
549
 
550
  Budgets are expressed on pixel values in $[0, 1]$; the `epsilon` column stores the exact value (e.g. 0.1176 for 30/255).
551
 
552
+ | Config suffix | Model | Checkpoint |
553
  |---|---|---|
554
  | `clip_vitb16` | CLIP ViT-B/16 | open_clip `ViT-B-16` / `laion2b_s34b_b88k` |
555
  | `clip_vith14` | CLIP ViT-H/14 | open_clip `ViT-H-14` / `laion2b_s32b_b79k` |
 
561
 
562
  SigLIP-family surrogates classify the fine-grained datasets poorly, and a surrogate that misclassifies the clean image provides no attack signal. SigLIP2 SO400M is therefore provided on the three coarse-grained datasets only. SigLIP2 base is provided at $\ell_\infty$ 30/255 only; on the fine-grained datasets it leaves most images unmodified (see `is_modified`).
563
 
564
+ | Surrogate | Split | Caltech-101 | FGVC-Aircraft (2013b) | Oxford Flowers-102 | Oxford-IIIT Pet | Stanford Cars | UC Merced Land Use |
565
+ |---|---|---|---|---|---|---|---|
566
+ | CLIP ViT-B/16 | `l1_75` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
567
+ | CLIP ViT-B/16 | `l1_300` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
568
+ | CLIP ViT-B/16 | `l2_2` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
569
+ | CLIP ViT-B/16 | `l2_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
570
+ | CLIP ViT-B/16 | `linf_4` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
571
+ | CLIP ViT-B/16 | `linf_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
572
+ | CLIP ViT-B/16 | `linf_30` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
573
+ | CLIP ViT-H/14 | `l1_75` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
574
+ | CLIP ViT-H/14 | `l1_300` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
575
+ | CLIP ViT-H/14 | `l2_2` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
576
+ | CLIP ViT-H/14 | `l2_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
577
+ | CLIP ViT-H/14 | `linf_4` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
578
+ | CLIP ViT-H/14 | `linf_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
579
+ | CLIP ViT-H/14 | `linf_30` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
580
+ | MetaCLIP ViT-H/14 | `l1_75` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
581
+ | MetaCLIP ViT-H/14 | `l1_300` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
582
+ | MetaCLIP ViT-H/14 | `l2_2` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
583
+ | MetaCLIP ViT-H/14 | `l2_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
584
+ | MetaCLIP ViT-H/14 | `linf_4` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
585
+ | MetaCLIP ViT-H/14 | `linf_8` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
586
+ | MetaCLIP ViT-H/14 | `linf_30` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
587
+ | SigLIP2 SO400M | `l1_75` | ✓ | – | ✓ | – | – | ✓ |
588
+ | SigLIP2 SO400M | `l1_300` | ✓ | – | ✓ | – | – | ✓ |
589
+ | SigLIP2 SO400M | `l2_2` | ✓ | – | ✓ | – | – | ✓ |
590
+ | SigLIP2 SO400M | `l2_8` | ✓ | – | ✓ | – | – | ✓ |
591
+ | SigLIP2 SO400M | `linf_4` | ✓ | – | ✓ | – | – | ✓ |
592
+ | SigLIP2 SO400M | `linf_8` | ✓ | – | ✓ | – | – | ✓ |
593
+ | SigLIP2 SO400M | `linf_30` | ✓ | – | ✓ | – | – | ✓ |
594
+ | SigLIP2 base | `linf_30` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
595
 
596
  ## Data fields
597
 
scripts/make_card.py CHANGED
@@ -39,21 +39,32 @@ y = ["---", "license: cc-by-nc-4.0", "language:", "- en", "pretty_name: RobustGe
39
  "- adversarial-robustness", "- common-corruptions", "- robustness",
40
  "- benchmark", "- transfer-attacks", "- vision-language-models", "- autoattack",
41
  "configs:"]
42
- for i, (cfg, *_rest) in enumerate(DATASETS):
 
 
 
43
  y += [f"- config_name: {cfg}"] + ([" default: true"] if cfg == "caltech101" else []) + [" data_files:"]
44
- for sp in [s for s in ORDER if s in man[cfg]["splits"]]:
45
  y += [f" - split: {sp}", f" path: data/{cfg}/{sp}-*.parquet"]
 
 
 
 
 
 
 
 
46
  y.append("---")
47
 
48
  # ── Coverage table ───────────────────────────────────────────────────────────
49
  def mark(cfg, sp): return "✓" if sp in man[cfg]["splits"] else "–"
50
- cov = ["| Split | " + " | ".join(d[1] for d in DATASETS) + " |",
51
- "|---|" + "---|" * len(DATASETS)]
52
  for s, disp, _ in SURR:
53
  for t, n, e in THREATS:
54
  sp = f"{s}_{t}"
55
  if any(sp in man[d[0]]["splits"] for d in DATASETS):
56
- cov.append(f"| `{sp}` | " + " | ".join(mark(d[0], sp) for d in DATASETS) + " |")
57
 
58
  ds_rows = "\n".join(
59
  f"| `{c}` | {disp} | {dom} | {gr} | {man[c]['num_classes']} | "
@@ -89,9 +100,14 @@ In total: {n_test:,} clean test images and {n_pert:,} perturbed test images.
89
  ```python
90
  from datasets import load_dataset
91
 
92
- # One config per dataset; one split per perturbation setting.
93
- clean = load_dataset("legolasflagstaff/RobustGenBench", "uc-merced-land-use-dataset", split="test")
94
- adv = load_dataset("legolasflagstaff/RobustGenBench", "uc-merced-land-use-dataset", split="clip_vith14_linf_30")
 
 
 
 
 
95
 
96
  row = adv[0]
97
  row["image"] # PIL.Image, 224×224 RGB
@@ -102,18 +118,21 @@ row["image_id"] # aligns with the clean image of t
102
  Evaluate a classifier on every perturbation setting of one dataset:
103
 
104
  ```python
105
- from datasets import load_dataset, get_dataset_split_names
106
 
107
- repo, cfg = "legolasflagstaff/RobustGenBench", "flowers-102"
108
- for split in get_dataset_split_names(repo, cfg):
109
- if split in ("train", "validation"):
110
- continue
 
 
 
111
  ds = load_dataset(repo, cfg, split=split)
112
  acc = sum(predict(x["image"]) == x["label"] for x in ds) / len(ds) # your model here
113
- print(f"{{split:24s}} {{acc:.3f}}")
114
  ```
115
 
116
- Splits are aligned by `image_id`: row *i* of every perturbed split is a perturbed version of row *i* of `test`, with the same label.
117
 
118
  ## Datasets
119
 
@@ -123,17 +142,17 @@ Splits are aligned by `image_id`: row *i* of every perturbed split is a perturbe
123
 
124
  Test sets are standardized to at most 1,000 images by uniform sampling, preserving all classes. All images are resized to 224×224×3 and stored as lossless PNG.
125
 
126
- ## Splits
127
 
128
- Each config (dataset) contains the following splits.
 
 
 
 
 
 
129
 
130
- | Split | Content |
131
- |---|---|
132
- | `train`, `validation` | Clean images, for fine-tuning. |
133
- | `test` | Clean test images, the reference for all perturbed splits. |
134
- | `common` | Each test image with one of 11 common corruptions at severity 3 (column `corruption`). |
135
- | `random_linf_30` | Uniform random noise with $\\lVert\\delta\\rVert_\\infty \\le 30/255$. |
136
- | `<surrogate>_<norm>_<eps>` | Transfer adversarial images, e.g. `clip_vitb16_linf_30`, `metaclip_vith14_l1_300`. |
137
 
138
  ### Common corruptions
139
 
@@ -143,7 +162,7 @@ Shot noise, impulse noise, defocus blur, motion blur, zoom blur, snow, brightnes
143
 
144
  Perturbations are crafted with the standard AutoAttack ensemble (APGD-CE, APGD-T, FAB-T, Square) against zero-shot surrogate classifiers. Each surrogate predicts the class whose text embedding (`"a photo of a {{class}}"`) is closest to the image embedding. AutoAttack only perturbs images the surrogate classifies correctly; other images are copied unchanged (`is_modified = false`).
145
 
146
- | Norm | Budgets $\\epsilon$ | Split suffix |
147
  |---|---|---|
148
  | $\\ell_1$ | 75, 300 | `l1_75`, `l1_300` |
149
  | $\\ell_2$ | 2, 8 | `l2_2`, `l2_8` |
@@ -151,7 +170,7 @@ Perturbations are crafted with the standard AutoAttack ensemble (APGD-CE, APGD-T
151
 
152
  Budgets are expressed on pixel values in $[0, 1]$; the `epsilon` column stores the exact value (e.g. 0.1176 for 30/255).
153
 
154
- | Surrogate prefix | Model | Checkpoint |
155
  |---|---|---|
156
  {surr_rows}
157
 
 
39
  "- adversarial-robustness", "- common-corruptions", "- robustness",
40
  "- benchmark", "- transfer-attacks", "- vision-language-models", "- autoattack",
41
  "configs:"]
42
+ # Configs: <dataset> (clean + model-independent splits) and <dataset>-<surrogate>
43
+ # (one split per budget). The Dataset Viewer caps the number of splits per config.
44
+ BASE_SPLITS = ["train", "validation", "test", "common", "random_linf_30"]
45
+ for cfg, *_rest in DATASETS:
46
  y += [f"- config_name: {cfg}"] + ([" default: true"] if cfg == "caltech101" else []) + [" data_files:"]
47
+ for sp in BASE_SPLITS:
48
  y += [f" - split: {sp}", f" path: data/{cfg}/{sp}-*.parquet"]
49
+ for s, _, _ in SURR:
50
+ for cfg, *_rest in DATASETS:
51
+ threats = [t for t, _, _ in THREATS if f"{s}_{t}" in man[cfg]["splits"]]
52
+ if not threats:
53
+ continue
54
+ y += [f"- config_name: {cfg}-{s}", " data_files:"]
55
+ for t in threats:
56
+ y += [f" - split: {t}", f" path: data/{cfg}/{s}_{t}-*.parquet"]
57
  y.append("---")
58
 
59
  # ── Coverage table ───────────────────────────────────────────────────────────
60
  def mark(cfg, sp): return "✓" if sp in man[cfg]["splits"] else "–"
61
+ cov = ["| Surrogate | Split | " + " | ".join(d[1] for d in DATASETS) + " |",
62
+ "|---|---|" + "---|" * len(DATASETS)]
63
  for s, disp, _ in SURR:
64
  for t, n, e in THREATS:
65
  sp = f"{s}_{t}"
66
  if any(sp in man[d[0]]["splits"] for d in DATASETS):
67
+ cov.append(f"| {disp} | `{t}` | " + " | ".join(mark(d[0], sp) for d in DATASETS) + " |")
68
 
69
  ds_rows = "\n".join(
70
  f"| `{c}` | {disp} | {dom} | {gr} | {man[c]['num_classes']} | "
 
100
  ```python
101
  from datasets import load_dataset
102
 
103
+ repo = "legolasflagstaff/RobustGenBench"
104
+
105
+ # Clean and model-independent splits: config "<dataset>".
106
+ clean = load_dataset(repo, "uc-merced-land-use-dataset", split="test")
107
+ common = load_dataset(repo, "uc-merced-land-use-dataset", split="common")
108
+
109
+ # Transfer attacks: config "<dataset>-<surrogate>", one split per budget.
110
+ adv = load_dataset(repo, "uc-merced-land-use-dataset-clip_vith14", split="linf_30")
111
 
112
  row = adv[0]
113
  row["image"] # PIL.Image, 224×224 RGB
 
118
  Evaluate a classifier on every perturbation setting of one dataset:
119
 
120
  ```python
121
+ from datasets import load_dataset, get_dataset_config_names, get_dataset_split_names
122
 
123
+ repo, name = "legolasflagstaff/RobustGenBench", "flowers-102"
124
+ settings = [(name, s) for s in ("test", "common", "random_linf_30")]
125
+ for cfg in get_dataset_config_names(repo):
126
+ if cfg.startswith(name + "-"): # one config per surrogate
127
+ settings += [(cfg, s) for s in get_dataset_split_names(repo, cfg)]
128
+
129
+ for cfg, split in settings:
130
  ds = load_dataset(repo, cfg, split=split)
131
  acc = sum(predict(x["image"]) == x["label"] for x in ds) / len(ds) # your model here
132
+ print(f"{{cfg:34s}} {{split:15s}} {{acc:.3f}}")
133
  ```
134
 
135
+ All perturbed splits are aligned with `test` by `image_id`: row *i* of every perturbed split is a perturbed version of row *i* of `test`, with the same label.
136
 
137
  ## Datasets
138
 
 
142
 
143
  Test sets are standardized to at most 1,000 images by uniform sampling, preserving all classes. All images are resized to 224×224×3 and stored as lossless PNG.
144
 
145
+ ## Configs and splits
146
 
147
+ | Config | Split | Content |
148
+ |---|---|---|
149
+ | `<dataset>` | `train`, `validation` | Clean images, for fine-tuning. |
150
+ | `<dataset>` | `test` | Clean test images, the reference for all perturbed splits. |
151
+ | `<dataset>` | `common` | Each test image with one of 11 common corruptions at severity 3 (column `corruption`). |
152
+ | `<dataset>` | `random_linf_30` | Uniform random noise with $\\lVert\\delta\\rVert_\\infty \\le 30/255$. |
153
+ | `<dataset>-<surrogate>` | `<norm>_<eps>` | Transfer adversarial images, e.g. config `flowers-102-clip_vitb16`, split `linf_30`. |
154
 
155
+ The Parquet files themselves live under `data/<dataset>/`.
 
 
 
 
 
 
156
 
157
  ### Common corruptions
158
 
 
162
 
163
  Perturbations are crafted with the standard AutoAttack ensemble (APGD-CE, APGD-T, FAB-T, Square) against zero-shot surrogate classifiers. Each surrogate predicts the class whose text embedding (`"a photo of a {{class}}"`) is closest to the image embedding. AutoAttack only perturbs images the surrogate classifies correctly; other images are copied unchanged (`is_modified = false`).
164
 
165
+ | Norm | Budgets $\\epsilon$ | Splits |
166
  |---|---|---|
167
  | $\\ell_1$ | 75, 300 | `l1_75`, `l1_300` |
168
  | $\\ell_2$ | 2, 8 | `l2_2`, `l2_8` |
 
170
 
171
  Budgets are expressed on pixel values in $[0, 1]$; the `epsilon` column stores the exact value (e.g. 0.1176 for 30/255).
172
 
173
+ | Config suffix | Model | Checkpoint |
174
  |---|---|---|
175
  {surr_rows}
176