Datasets:

ArXiv:
License:
Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    ArrowInvalid
Message:      JSON parse error: The document is empty.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 342, in _generate_tables
                  df = pandas_read_json(f)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
                  return pd.read_json(path_or_buf, **kwargs)
                         ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 815, in read_json
                  return json_reader.read()
                         ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1014, in read
                  obj = self._get_object_parser(self.data)
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
                  obj = FrameParser(json, **kwargs).parse()
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1176, in parse
                  self._parse()
                  ~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 1391, in _parse
                  self.obj = DataFrame(
                             ~~~~~~~~~^
                      ujson_loads(json, precise_float=self.precise_float), dtype=None
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/pandas/core/frame.py", line 782, in __init__
                  mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
                File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 503, in dict_to_mgr
                  return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
                File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 114, in arrays_to_mgr
                  index = _extract_index(arrays)
                File "/usr/local/lib/python3.14/site-packages/pandas/core/internals/construction.py", line 677, in _extract_index
                  raise ValueError("All arrays must be of the same length")
              ValueError: All arrays must be of the same length
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4645, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2866, in _head
                  return next(iter(self.iter(batch_size=n)))
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3073, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2581, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 558, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 345, in _generate_tables
                  raise e
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 291, in _generate_tables
                  pa_table = paj.read_json(
                      io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
                  )
                File "pyarrow/_json.pyx", line 364, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                  return check_status(status)
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: JSON parse error: The document is empty.

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.

CV & NLP Lab 5: unpaired alignment embeddings

Teaching data for Lab 5 of the MIT CV & NLP MicroMasters course (6.4600.5x), "Aligning Two Models That Never Met". Learners map image embeddings from DINOv2 into caption embeddings from MPNet without any image-caption pairs, and score the map on held-out pairs and on zero-shot CIFAR-10 classification. The bundle also holds the paired maps the lab compares against; learners fit every map without pairs themselves.

The files hold embeddings, caption text, object kinds and paired reference maps. They contain no images.

Files

File Holds
lab5_embeddings.npz DINOv2 ViT-B/14 image embeddings and MPNet caption embeddings, float16, 768 dimensions, as named arrays. Load with numpy.load(path, allow_pickle=False)
lab5_maps.npz three paired reference maps, float32, as named arrays. Load the same way
lab5_text.json for each of the 4,000 held-out images: its COCO image ID, every caption, and its kind; plus the CIFAR-10 class names
Arrays in lab5_embeddings.npz Rows Use
images, captions 20,000 each, from different COCO train images fitting maps with no pairs
pair_images, pair_captions 2,000, row-aligned the paired reference maps only
animals_images, animals_captions, indoor_images, indoor_captions 6,000 images and the captions of 6,000 other images, per kind the kind experiment
val_images, val_captions 4,000 COCO val images, row-aligned scoring only
val_animals_*, val_indoor_* 1,500 per kind, row-aligned scoring the kind experiment
cifar_images, cifar_labels, cifar_prompts 5,000 images, 10 class prompts zero-shot scoring
Arrays in lab5_maps.npz Shape What it is
pairs_50, pairs_100, pairs_200 768 x 768 orthogonal Procrustes maps fitted on the first 50, 100 and 200 rows of the true pairs

A map takes an image embedding x, centered on the unpaired images' mean and scaled to unit length, to xW in caption space.

Sources and licenses

  • Embeddings: a subset of schnaus/unpaired-rosetta-embeddings, released with Schnaus et al. (2026). That dataset is licensed "source-dataset-licenses": each source below keeps its own terms.
  • MS COCO 2014: the annotations, captions and object labels both, are CC BY 4.0. The images are under Flickr's terms of use and are not included; the image IDs link to cocodataset.org.
  • CIFAR-10: Krizhevsky (2009), distributed without a stated license.
  • DINOv2 (Meta AI) and all-mpnet-base-v2 (sentence-transformers): Apache 2.0.

How it was built

The subset is drawn with seed 6465 from the embeddings above. COCO 2014 rows are in image-ID order. An image's captions are averaged after each is normalized. CIFAR-10 images are drawn at random. An image's kind comes from its COCO object labels: animals if it shows an animal and nothing in the indoor, kitchen, food, furniture, appliance or electronic groups, indoor for the reverse, and other for everything else. The maps were fitted on an NVIDIA T4 by orthogonal Procrustes on true pairs.

Citations

@article{schnaus2026rosetta,
  title   = {Shared Geometry as a Rosetta Stone: Cross-Modal Alignment Without Paired Data},
  author  = {Schnaus, Dominik and Dag{\`e}s, Thomas and Cremers, Daniel and Wang, Xi and Isola, Phillip},
  journal = {arXiv preprint arXiv:2610.09411},
  year    = {2026}
}
@inproceedings{lin2014coco,
  title     = {Microsoft {COCO}: Common Objects in Context},
  author    = {Lin, Tsung-Yi and others},
  booktitle = {European Conference on Computer Vision (ECCV)},
  year      = {2014}
}
@techreport{krizhevsky2009cifar,
  title       = {Learning Multiple Layers of Features from Tiny Images},
  author      = {Krizhevsky, Alex},
  institution = {University of Toronto},
  year        = {2009}
}
@article{oquab2024dinov2,
  title   = {{DINOv2}: Learning Robust Visual Features without Supervision},
  author  = {Oquab, Maxime and others},
  journal = {Transactions on Machine Learning Research},
  year    = {2024}
}
@inproceedings{song2020mpnet,
  title     = {{MPNet}: Masked and Permuted Pre-training for Language Understanding},
  author    = {Song, Kaitao and Tan, Xu and Qin, Tao and Lu, Jianfeng and Liu, Tie-Yan},
  booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
  year      = {2020}
}
Downloads last month
24

Paper for MIT-OL-AI-D/cv-nlp-lab5