TokenSwap-Bench / README.md
dongx1997's picture
Use teaser GIF as README figure
226df68 verified
|
Raw History Blame Contribute Delete
7.15 kB
metadata
license: cc-by-4.0
language:
  - en
pretty_name: TokenSwap-Bench
size_categories:
  - 1K<n<10K
task_categories:
  - visual-question-answering
  - multiple-choice
tags:
  - multimodal
  - modality-gap
  - interleaved
  - mmlu
configs:
  - config_name: img
    data_files:
      - split: test
        path: img/test-*.parquet
  - config_name: text
    data_files:
      - split: test
        path: text/test-*.parquet

TokenSwap: Benchmarking and Reducing the Modality Gap in Multimodal LLMs

Andong Hua1, Colton Bishop2, Igor Mordatch2, Arian Hosseini2, Jindong Gu2, Aleksandra Faust2, Rebecca Roelofs2, Yao Qin1,2

1University of California, Santa Barbara    2Google DeepMind

NeurIPS 2026

Project Page Paper Code BibTeX


Same question as text vs. with images: the model answer flips from right to wrong

Across 42 MLLMs, we observe a pervasive modality gap, with performance decreasing by 4.2% to 47.4% when moving from text-only to image-interleaved inputs.


TokenSwap-Bench

TokenSwap operates at the concept level: it replaces individual textual concepts with semantically aligned natural images while preserving the surrounding context and structure. We apply TokenSwap to MMLU to construct TokenSwap-Bench, which contains 1,516 samples with 6,946 image replacements, averaging 4.58 replacements per sample.

Config Input
text Text-only (original MMLU)
img Image-interleaved

The two configs are paired by doc_id. Modality gap = Acc(text) − Acc(img).

from datasets import load_dataset

text = load_dataset("dongx1997/TokenSwap-Bench", "text", split="test")
img  = load_dataset("dongx1997/TokenSwap-Bench", "img",  split="test")
Field Description
question, choices In img, concepts are replaced by <image N> placeholders (in the question and/or the choices)
answer Index of the correct choice (0–3)
subject MMLU subject
doc_id Index in the MMLU test set
replaced_words img only: the original concept for <image 1>, <image 2>, …
image_1 … image_20 img only: image_N fills <image N>; unused slots are None

For evaluation with lmms-eval, see the code.


BibTeX

@inproceedings{hua2026tokenswap,
  title     = {TokenSwap: Benchmarking and Reducing the Modality Gap in Multimodal LLMs},
  author    = {Hua, Andong and Bishop, Colton and Mordatch, Igor and Hosseini, Arian and
               Gu, Jindong and Faust, Aleksandra and Roelofs, Rebecca and Qin, Yao},
  booktitle = {NeurIPS},
  year      = {2026}
}

License

This dataset is released under the Creative Commons Attribution 4.0 International (CC BY 4.0) license.