Simplify subset descriptions and keep one download example
Browse filesSummarize the three subsets in one table, retain one CLIP/Qwen3 download example, and fold the full encoder catalog and dataset-source details. Use a vision-and-text page title; preserve all feature files and dataset configs.
- FILES.json +4 -4
- README.md +98 -251
- checksums.sha256 +1 -1
FILES.json
CHANGED
|
@@ -38,8 +38,8 @@
|
|
| 38 |
},
|
| 39 |
{
|
| 40 |
"path": "README.md",
|
| 41 |
-
"bytes":
|
| 42 |
-
"sha256": "
|
| 43 |
},
|
| 44 |
{
|
| 45 |
"path": "encoders.json",
|
|
@@ -5026,7 +5026,7 @@
|
|
| 5026 |
}
|
| 5027 |
],
|
| 5028 |
"total_files": 606,
|
| 5029 |
-
"total_bytes":
|
| 5030 |
"source_lcs_manifest_sha256": "bc439048824c510b471d4c8cf34b143471a49a50260906f210cb8a1723e971ed",
|
| 5031 |
"published_lcs_manifest_sha256": "f934b05aadf9b94039b207812033e48b1e2aefe43e0fd084b5508e6fd103dbed",
|
| 5032 |
"validation": {
|
|
@@ -5049,5 +5049,5 @@
|
|
| 5049 |
"text_file_hashes_match_original_audits": true
|
| 5050 |
},
|
| 5051 |
"lcs10000_prepared_at": "2026-10-06T13:21:01.351852+00:00",
|
| 5052 |
-
"documentation_updated_at_utc": "2026-10-07T04:
|
| 5053 |
}
|
|
|
|
| 38 |
},
|
| 39 |
{
|
| 40 |
"path": "README.md",
|
| 41 |
+
"bytes": 37503,
|
| 42 |
+
"sha256": "1c1b8143eb2af87e8989b952879eea7648125b85e59284793e5dcff79f2f072d"
|
| 43 |
},
|
| 44 |
{
|
| 45 |
"path": "encoders.json",
|
|
|
|
| 5026 |
}
|
| 5027 |
],
|
| 5028 |
"total_files": 606,
|
| 5029 |
+
"total_bytes": 717452449726,
|
| 5030 |
"source_lcs_manifest_sha256": "bc439048824c510b471d4c8cf34b143471a49a50260906f210cb8a1723e971ed",
|
| 5031 |
"published_lcs_manifest_sha256": "f934b05aadf9b94039b207812033e48b1e2aefe43e0fd084b5508e6fd103dbed",
|
| 5032 |
"validation": {
|
|
|
|
| 5049 |
"text_file_hashes_match_original_audits": true
|
| 5050 |
},
|
| 5051 |
"lcs10000_prepared_at": "2026-10-06T13:21:01.351852+00:00",
|
| 5052 |
+
"documentation_updated_at_utc": "2026-10-07T04:16:56.275968+00:00"
|
| 5053 |
}
|
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
pretty_name:
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
task_categories:
|
|
@@ -38,7 +38,7 @@ configs:
|
|
| 38 |
|
| 39 |
<h1 align="center">A Strong Baseline for Evaluating Vision Encoders<br>in Multimodal Large Language Models</h1>
|
| 40 |
|
| 41 |
-
<p align="center"><strong>
|
| 42 |
|
| 43 |
<p align="center">Yilin Yang · Jun-Tao Tang · Kengyi Wang<br>Siyuan Su · Gaoyong Luo · Mingda Chen</p>
|
| 44 |
|
|
@@ -52,273 +52,63 @@ configs:
|
|
| 52 |
|
| 53 |
## Dataset Summary
|
| 54 |
|
| 55 |
-
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
-
|
| 60 |
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
## Data requirements
|
| 66 |
-
|
| 67 |
-
This repository provides the three cached feature subsets listed below. Raw images, MLLM training data, evaluation benchmarks, and other baseline datasets are obtained separately.
|
| 68 |
-
|
| 69 |
-
### Data used by each method
|
| 70 |
-
|
| 71 |
-
| Method | Data needed | Available here / source |
|
| 72 |
-
|---|---|---|
|
| 73 |
-
| RAVEL | Paired LCS-558K image patches and text features | `lcs-1k/` and `lcs-10k/` |
|
| 74 |
-
| RSA, CCA, GW, MutualNN | Paired LCS-558K global image vectors and text features | Shared samples and text are included; prepare the required global image vectors separately |
|
| 75 |
-
| kNN | ImageNet training features, labels, and support/query split | `imagenet-200k/` |
|
| 76 |
-
| Linear probing | ImageNet train and validation images | [ImageNet](https://www.image-net.org/download.php); the released 200k cache contains training images only |
|
| 77 |
-
| Alignment probing | COCO Karpathy captions; DreamLIP CC3M for the cross-dataset variants | [COCO / Karpathy splits](https://cs.stanford.edu/people/karpathy/deepimagesent/) and [DreamLIP captions](https://huggingface.co/datasets/qidouxiong619/dreamlip_long_captions) |
|
| 78 |
-
| AC Policy / Law of Vision Representation | LCS-558K, Stage-1 projectors, and SPair-71k | [LLaVA-Pretrain](https://huggingface.co/datasets/liuhaotian/LLaVA-Pretrain), [Model Zoo](https://huggingface.co/336labs/VisionEncoder-to-MLLM-ModelZoo), and [SPair-71k](https://cvlab.postech.ac.kr/research/SPair-71k/index.html) |
|
| 79 |
-
| Mid-training loss | LCS-558K images/captions and projector-training logs | [LLaVA-Pretrain](https://huggingface.co/datasets/liuhaotian/LLaVA-Pretrain); training instructions in the [code repository](https://github.com/JuntaoTang/MLLM-VisionEncoder-Eval#running) |
|
| 80 |
-
| TokBench | Original images/annotations and matching tokenizer reconstructions | [TokBench](https://huggingface.co/datasets/Junfeng5/TokBench) |
|
| 81 |
-
| MLLM training / evaluation | Training: LCS-558K and filtered mix665k; evaluation: the 11 benchmarks below | [Model Zoo](https://huggingface.co/336labs/VisionEncoder-to-MLLM-ModelZoo) and the linked dataset sources |
|
| 82 |
-
|
| 83 |
-
ImageNet kNN features have class labels but no paired captions, so they cannot supply an alignment probe's image–text inputs on their own. A full linear-probe benchmark also needs independent validation data.
|
| 84 |
-
|
| 85 |
-
### Raw data folders
|
| 86 |
-
|
| 87 |
-
The following are example local folders. Keep the image subdirectories recorded in each dataset's annotations.
|
| 88 |
-
|
| 89 |
-
```text
|
| 90 |
-
data/
|
| 91 |
-
instructions/pretrain/blip_laion_cc_sbu_558k.json
|
| 92 |
-
instructions/finetune/llava_v1_5_mix665k_drop_ge8kchars.json
|
| 93 |
-
instructions/test/<dataset>.tsv
|
| 94 |
-
images/pretrain/
|
| 95 |
-
images/finetune/
|
| 96 |
-
images/test/
|
| 97 |
-
imagenet/{train,val}/
|
| 98 |
-
coco/
|
| 99 |
-
cc3m/
|
| 100 |
-
SPair-71k/
|
| 101 |
-
tokbench/
|
| 102 |
-
```
|
| 103 |
-
|
| 104 |
-
**MLLM pretraining:** obtain the JSON and `images.zip` from [LLaVA-Pretrain](https://huggingface.co/datasets/liuhaotian/LLaVA-Pretrain). Image names in the JSON are relative to `data/images/pretrain/`.
|
| 105 |
-
|
| 106 |
-
**MLLM finetuning:** obtain [mix665k](https://huggingface.co/datasets/liuhaotian/LLaVA-Instruct-150K/blob/main/llava_v1_5_mix665k.json) and its COCO, GQA, OCR-VQA, TextVQA, and Visual Genome images using the [LLaVA data preparation instructions](https://github.com/haotian-liu/LLaVA#visual-instruction-tuning). The project uses `llava_v1_5_mix665k_drop_ge8kchars.json`, which excludes 395 examples with at least 8,000 conversation-text characters. Image names in this JSON are relative to `data/images/finetune/`.
|
| 107 |
-
|
| 108 |
-
### Downstream MLLM benchmarks
|
| 109 |
-
|
| 110 |
-
Place the prepared benchmark TSVs in `data/instructions/test/`. Obtain the matching data from these sources:
|
| 111 |
|
| 112 |
-
|
| 113 |
-
|---|---|
|
| 114 |
-
| `MMMU_TEST.tsv` | [MMMU](https://huggingface.co/datasets/MMMU/MMMU), test split |
|
| 115 |
-
| `MMBench_TEST_EN_V11.tsv` | [MMBench](https://github.com/open-compass/MMBench), English test v1.1 |
|
| 116 |
-
| `VQAv2_VAL.tsv` | [VQA v2](https://visualqa.org/download.html), validation split |
|
| 117 |
-
| `ScienceQA_VAL.tsv` | [ScienceQA](https://github.com/lupantech/ScienceQA), validation split |
|
| 118 |
-
| `ChartQA_TEST.tsv` | [ChartQA](https://github.com/vis-nlp/ChartQA), test split |
|
| 119 |
-
| `DocVQA_VAL.tsv` | [DocVQA](https://www.docvqa.org/datasets/docvqa), validation split |
|
| 120 |
-
| `TextVQA_VAL.tsv` | [TextVQA](https://textvqa.org/), validation split |
|
| 121 |
-
| `POPE.tsv` | [POPE](https://github.com/RUCAIBox/POPE) |
|
| 122 |
-
| `GQA_TestDev_Balanced.tsv` | [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html), balanced test-dev split |
|
| 123 |
-
| `MSCOCO_KARPATHY_TEST.tsv` | [Karpathy splits](https://cs.stanford.edu/people/karpathy/deepimagesent/) and [COCO images](https://cocodataset.org/#download) |
|
| 124 |
-
| `FLICKR30K_KARPATHY_TEST.tsv` | [Karpathy splits](https://cs.stanford.edu/people/karpathy/deepimagesent/) and [Flickr30k images](https://shannon.cs.illinois.edu/DenotationGraph/) |
|
| 125 |
-
|
| 126 |
-
Prepare images referenced by the TSVs under `data/images/test/`. Folder names follow the benchmark loader: for example, MMBench v1.1 uses `MMBench_V11/`. TSVs with embedded images can be decoded by the loader. GQA also accepts the filename `GQA_TESTDEV_BALANCED.tsv`.
|
| 127 |
-
|
| 128 |
-
Use the [VLMEvalKit dataset loaders](https://github.com/open-compass/VLMEvalKit/tree/main/vlmeval/dataset) for benchmark preparation. Original dataset downloads must be converted to the required TSV format; changing a filename alone is insufficient. Configuration and experiment commands are in the code repository's [Setup](https://github.com/JuntaoTang/MLLM-VisionEncoder-Eval#setup) and [Running](https://github.com/JuntaoTang/MLLM-VisionEncoder-Eval#running) sections.
|
| 129 |
-
|
| 130 |
-
## Dataset Structure
|
| 131 |
-
|
| 132 |
-
| Component | Arrays | Shape | Storage dtype | Size (GiB) |
|
| 133 |
-
| --- | ---: | --- | --- | ---: |
|
| 134 |
-
| LCS-1000 visual patches | 70 | `[1000, T, D]` | float16 | 55.27 |
|
| 135 |
-
| Aligned LLM text vectors | 3 | `[1000, D]` | float32 | 0.02 |
|
| 136 |
-
| LCS-10000 visual patches (two blocks per encoder) | 140 | `[5000, T, D]` | float16 | 552.74 |
|
| 137 |
-
| LCS-10000 historical last-token text (two blocks per model) | 6 | `[5000, D]` | float32 | 0.21 |
|
| 138 |
-
| ImageNet200k pooled features | 70 | `[200000, D]` | float32 | 59.89 |
|
| 139 |
-
|
| 140 |
-
Total prepared contents, including shared metadata and protocols: approximately **668.18 GiB**. NumPy sizes include their headers; no extra precision conversion was applied.
|
| 141 |
|
| 142 |
```text
|
| 143 |
features/
|
| 144 |
lcs-1k/{vision,text,samples}/
|
| 145 |
lcs-10k/{vision,text,samples}/
|
| 146 |
-
imagenet-200k/
|
| 147 |
-
features/
|
| 148 |
-
metadata/
|
| 149 |
-
samples/
|
| 150 |
-
protocols/
|
| 151 |
-
labels.npy
|
| 152 |
-
source_indices.npy
|
| 153 |
encoders.json
|
| 154 |
FILES.json
|
| 155 |
checksums.sha256
|
| 156 |
```
|
| 157 |
|
| 158 |
-
##
|
| 159 |
-
|
| 160 |
-
The source is the `blip_laion_cc_sbu_558k.json` alignment annotation set from [LLaVA-Pretrain](https://huggingface.co/datasets/liuhaotian/LLaVA-Pretrain). The cached subset was sampled with `numpy.default_rng(42).choice`, without replacement, retaining the **unsorted sampled order**. The ordered manifest identifies the exact selected records; the original full-source annotation hash/revision is not recorded in every historical audit.
|
| 161 |
-
|
| 162 |
-
Each visual array has shape **`[1000, T, D]`**, stored as **float16**; patch count `T` and dimension `D` depend on the encoder. The text arrays are float32, with one vector per matching caption:
|
| 163 |
|
| 164 |
-
|
| 165 |
-
| --- | --- | --- | --- |
|
| 166 |
-
| `qwen25` | [Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) | `[1000, 1536]` | Penultimate hidden state, mean over valid tokens |
|
| 167 |
-
| `qwen3` | [Qwen3-1.7B](https://huggingface.co/Qwen/Qwen3-1.7B) | `[1000, 2048]` | Penultimate hidden state, mean over valid tokens |
|
| 168 |
-
| `smollm2` | [SmolLM2-1.7B-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-1.7B-Instruct) | `[1000, 2048]` | Penultimate hidden state, mean over valid tokens |
|
| 169 |
-
|
| 170 |
-
Text extraction uses layer `-2`, right padding, no truncation, bfloat16 inference, and float32 storage. The audits record pinned model revisions, file hashes, extraction settings, and software versions. These are the **mean-token** text features used by the current paper reproduction pipeline.
|
| 171 |
-
|
| 172 |
-
Row `i` in **every visual array and every text array** refers to row `i` of `samples/samples.jsonl`. Keep this order when comparing encoders. Fields are:
|
| 173 |
-
|
| 174 |
-
| Field | Meaning |
|
| 175 |
-
| --- | --- |
|
| 176 |
-
| `row_index` | Zero-based row in the released arrays |
|
| 177 |
-
| `source_index` | Record index in the original LCS alignment annotation list |
|
| 178 |
-
| `image_id` | Image path relative to the upstream image archive |
|
| 179 |
-
| `text_id` | Source text/example identifier |
|
| 180 |
-
| `text` | Caption used for text feature extraction |
|
| 181 |
-
|
| 182 |
-
The full manifest additionally retains the source conversation records and sampling information. Raw images are available from the upstream dataset.
|
| 183 |
-
|
| 184 |
-
### LCS-10k: 10,000 paired examples
|
| 185 |
-
|
| 186 |
-
This larger cache contains **70 encoders × 10,000 images** as raw float16 patch tokens, stored in **two ordered 5,000-row blocks per encoder**. The first block uses the fixed seed-42 sample; the second uses seed 43 after excluding the first block by source annotation index, image ID, text ID, and image-file content hash. The original first block contains 11 repeated image-content rows; the disjoint-content check applies between blocks and within the new block. The two blocks have matching patch shapes and storage dtypes for each encoder.
|
| 187 |
-
|
| 188 |
-
| Block | Combined rows | Visual array shape | Sample order |
|
| 189 |
-
| --- | --- | --- | --- |
|
| 190 |
-
| `part0_seed42` | `0:5000` | `[5000, T, D]` | Fixed seed-42 sample, unsorted |
|
| 191 |
-
| `part1_seed43_disjoint` | `5000:10000` | `[5000, T, D]` | Disjoint seed-43 complement, unsorted |
|
| 192 |
-
|
| 193 |
-
The combined sample table has **10,000 records**. `row_index` addresses the combined sample table; `block_index` and `block_row_index` address the stored feature array. `source_index` identifies the original LCS annotation record. The released `source_indices.npy` files are reconstructed from the canonical manifests. Historical `indices_n5000` / `indices_new5000` files contained only `0..4999` block row positions; those positions are not original annotation indices.
|
| 194 |
-
|
| 195 |
-
The paired text cache contains **Qwen2.5-1.5B-Instruct, Qwen3-1.7B, and SmolLM2-1.7B-Instruct**, each as two float32 arrays of `[5000, D]` (`D=1536, 2048, 2048`). These historical arrays use the **penultimate hidden state at the last non-padding token**. Their metadata retains the original extraction audit and manifest hashes. Exact historical model revisions are absent from these audits.
|
| 196 |
-
|
| 197 |
-
Use [feature_manifest.json](lcs-10k/feature_manifest.json), the block sample manifests, and [index_semantics.json](lcs-10k/samples/index_semantics.json) when loading the arrays. No visual pooling, PCA, whitening, or precision conversion was applied to these blocks.
|
| 198 |
-
|
| 199 |
-
### ImageNet-200k: 200,000 training examples
|
| 200 |
-
|
| 201 |
-
The subset contains **200 examples per class**, across **1,000 classes**, from the official ImageNet-1K training split. The export records a **support-sampling seed of 0**; the exact selected examples are given by `source_indices.npy`. All 70 arrays have shape **`[200000, D]`** and are stored as **float32**. Shared `source_indices.npy` is strictly increasing in the original train-index order; `labels.npy` contains integer class IDs `0–999`.
|
| 202 |
-
|
| 203 |
-
The sample table contains `row_index`, `source_index`, and `label`. Each array's readout is recorded in its metadata: for example, CLIP uses its final post-LayerNorm CLS before the visual projection, while the DINO readout concatenates normalized CLS and mean patch features. **Use the per-encoder representation description when interpreting dimensions.** These pooled/readout arrays have different semantics from the LCS patch-token arrays.
|
| 204 |
-
|
| 205 |
-
`protocols/knn_seed42.json` provides the existing deterministic **195-example training pool / 5-example query split per class**, with nested training subsets of **5, 10, 20, 45, 95, and 195** examples per class. Protocol indices address the **released 200,000-row arrays**; source indices identify examples in the original training split. The query split consists of held-out examples from that training subset. Full ImageNet training and validation features are outside this release.
|
| 206 |
-
|
| 207 |
-
## Download and Use
|
| 208 |
-
|
| 209 |
-
Download into `features/` and keep the repository subfolders. File paths in `encoders.json` and `FILES.json` are relative to this folder. Install `huggingface_hub` and `numpy`; install `datasets` to load the sample tables.
|
| 210 |
-
|
| 211 |
-
### Download one encoder with aligned text features
|
| 212 |
|
| 213 |
```python
|
| 214 |
-
import json
|
| 215 |
-
from pathlib import Path
|
| 216 |
-
import numpy as np
|
| 217 |
from huggingface_hub import snapshot_download
|
| 218 |
-
|
| 219 |
-
root = Path(snapshot_download(
|
| 220 |
-
repo_id="336labs/VisionEncoder-Features",
|
| 221 |
-
repo_type="dataset",
|
| 222 |
-
allow_patterns=[
|
| 223 |
-
"encoders.json", "README.md", "LICENSES.md",
|
| 224 |
-
"lcs-1k/samples/**",
|
| 225 |
-
"lcs-1k/vision/clip_openai__l14*",
|
| 226 |
-
"lcs-1k/text/qwen3*",
|
| 227 |
-
],
|
| 228 |
-
local_dir="features",
|
| 229 |
-
))
|
| 230 |
-
base = root / "lcs-1k"
|
| 231 |
-
vision = np.load(base / "vision/clip_openai__l14_patch_n1000_seed42.npy",
|
| 232 |
-
mmap_mode="r", allow_pickle=False)
|
| 233 |
-
text = np.load(base / "text/qwen3_penultimate_mean_n1000_seed42.npy",
|
| 234 |
-
mmap_mode="r", allow_pickle=False)
|
| 235 |
-
samples = json.loads((base / "samples/manifest.json").read_text())["records"]
|
| 236 |
-
assert vision.shape[0] == text.shape[0] == len(samples) == 1000
|
| 237 |
-
```
|
| 238 |
-
|
| 239 |
-
### Download one encoder from the 10,000-sample cache
|
| 240 |
-
|
| 241 |
-
```python
|
| 242 |
-
import json
|
| 243 |
-
from pathlib import Path
|
| 244 |
import numpy as np
|
| 245 |
-
from huggingface_hub import snapshot_download
|
| 246 |
|
| 247 |
-
root =
|
| 248 |
repo_id="336labs/VisionEncoder-Features",
|
| 249 |
repo_type="dataset",
|
| 250 |
-
allow_patterns=[
|
| 251 |
-
"encoders.json", "README.md", "LICENSES.md",
|
| 252 |
-
"lcs-10k/feature_manifest.json",
|
| 253 |
-
"lcs-10k/samples/**",
|
| 254 |
-
"lcs-10k/vision/clip_openai__l14/**",
|
| 255 |
-
"lcs-10k/text/qwen3/**",
|
| 256 |
-
],
|
| 257 |
local_dir="features",
|
| 258 |
-
))
|
| 259 |
-
base = root / "lcs-10k"
|
| 260 |
-
blocks = ["part0_seed42", "part1_seed43_disjoint"]
|
| 261 |
-
vision_parts = [np.load(base / f"vision/clip_openai__l14/{part}.npy",
|
| 262 |
-
mmap_mode="r", allow_pickle=False) for part in blocks]
|
| 263 |
-
text_parts = [np.load(base / f"text/qwen3/{part}_penultimate_lasttok.npy",
|
| 264 |
-
mmap_mode="r", allow_pickle=False) for part in blocks]
|
| 265 |
-
samples = json.loads((base / "samples/manifest.json").read_text())["records"]
|
| 266 |
-
assert len(samples) == sum(x.shape[0] for x in vision_parts) == 10000
|
| 267 |
-
for block_index in range(2):
|
| 268 |
-
assert vision_parts[block_index].shape[0] == text_parts[block_index].shape[0] == 5000
|
| 269 |
-
# A combined row r maps to vision_parts[r // 5000][r % 5000].
|
| 270 |
-
# Process the blocks in order to avoid allocating a full concatenated array.
|
| 271 |
-
```
|
| 272 |
-
|
| 273 |
-
### Download pooled ImageNet features
|
| 274 |
-
|
| 275 |
-
```python
|
| 276 |
-
import json
|
| 277 |
-
from pathlib import Path
|
| 278 |
-
import numpy as np
|
| 279 |
-
from huggingface_hub import snapshot_download
|
| 280 |
-
|
| 281 |
-
root = Path(snapshot_download(
|
| 282 |
-
repo_id="336labs/VisionEncoder-Features",
|
| 283 |
-
repo_type="dataset",
|
| 284 |
allow_patterns=[
|
| 285 |
-
"encoders.json",
|
| 286 |
-
"
|
| 287 |
-
"
|
| 288 |
-
"
|
| 289 |
-
"imagenet-200k/source_indices.npy",
|
| 290 |
-
"imagenet-200k/samples/**",
|
| 291 |
-
"imagenet-200k/protocols/**",
|
| 292 |
],
|
| 293 |
-
|
| 294 |
-
)
|
| 295 |
-
|
| 296 |
-
features = np.load(base / "features/001_clip_openai__l14.npy",
|
| 297 |
-
mmap_mode="r", allow_pickle=False)
|
| 298 |
-
labels = np.load(base / "labels.npy", allow_pickle=False)
|
| 299 |
-
protocol = json.loads((base / "protocols/knn_seed42.json").read_text())
|
| 300 |
-
train_rows = np.asarray(protocol["train_indices_by_shot"]["20"])
|
| 301 |
-
query_rows = np.asarray(protocol["query_indices"])
|
| 302 |
-
```
|
| 303 |
-
|
| 304 |
-
### Load the sample tables with Hugging Face Datasets
|
| 305 |
-
|
| 306 |
-
```python
|
| 307 |
-
from datasets import load_dataset
|
| 308 |
-
|
| 309 |
-
lcs_samples = load_dataset("336labs/VisionEncoder-Features",
|
| 310 |
-
"lcs-1k", split="train")
|
| 311 |
-
lcs10k_samples = load_dataset("336labs/VisionEncoder-Features",
|
| 312 |
-
"lcs-10k", split="train")
|
| 313 |
-
imagenet_samples = load_dataset("336labs/VisionEncoder-Features",
|
| 314 |
-
"imagenet-200k", split="train")
|
| 315 |
```
|
| 316 |
|
| 317 |
-
|
| 318 |
|
| 319 |
## Encoder Catalog
|
| 320 |
|
| 321 |
-
|
|
|
|
|
|
|
|
|
|
| 322 |
|
| 323 |
| Tokenizer ID | Family | LCS `[T, D]` | ImageNet `D` | Feature files |
|
| 324 |
| --- | --- | --- | ---: | --- |
|
|
@@ -393,26 +183,83 @@ The three dataset configurations expose **sample metadata tables** in the Datase
|
|
| 393 |
| [`webssl_mae300m_full2b_224`](https://huggingface.co/facebook/webssl-mae300m-full2b-224) | SSL | `[196, 1024]` | 1024 | [patches](lcs-1k/vision/webssl_mae300m_full2b_224_patch_n1000_seed42.npy) · [pooled](imagenet-200k/features/069_webssl_mae300m_full2b_224.npy) · [10k blocks](https://huggingface.co/datasets/336labs/VisionEncoder-Features/tree/main/lcs-10k/vision/webssl_mae300m_full2b_224) |
|
| 394 |
| [`webssl_mae3b_full2b_224`](https://huggingface.co/facebook/webssl-mae3b-full2b-224) | SSL | `[256, 3072]` | 3072 | [patches](lcs-1k/vision/webssl_mae3b_full2b_224_patch_n1000_seed42.npy) · [pooled](imagenet-200k/features/070_webssl_mae3b_full2b_224.npy) · [10k blocks](https://huggingface.co/datasets/336labs/VisionEncoder-Features/tree/main/lcs-10k/vision/webssl_mae3b_full2b_224) |
|
| 395 |
|
| 396 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 397 |
|
| 398 |
-
|
| 399 |
|
| 400 |
-
|
| 401 |
|
| 402 |
-
|
| 403 |
|
| 404 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 405 |
|
| 406 |
-
|
| 407 |
|
| 408 |
-
##
|
| 409 |
|
| 410 |
-
|
| 411 |
-
- **kNN and linear probes:** use ImageNet pooled features with shared labels and the provided split. A full ImageNet linear-probe benchmark additionally requires the appropriate training and validation data.
|
| 412 |
-
- **Historical patch provenance:** the original visual audits do not record a uniform feature-layer specification. Missing extraction-layer, processor, or weight-revision fields remain explicitly unverified in this release. The arrays should be interpreted using available per-encoder metadata and the extraction code, rather than assuming a common layer/readout.
|
| 413 |
-
- **UniAR correction (LCS-1000 only):** the published LCS-1000 UniAR array uses the documented legacy BSQ deepstack concatenation. One NaN at `[630, 295, 1051]` was replaced by `1.7109375`, obtained by re-extraction with the official model. Its metadata retains original/repaired hashes, pinned model/source revisions, weight hash, and verification of the remaining 1,151 components in that BSQ vector.
|
| 414 |
-
- **Coverage and bias:** LCS-1000 and LCS-10000 are captioned-image samples; ImageNet200k is a class-balanced training subset. Findings depend on these data sources and selected encoders. Features inherit the content and representation biases of the upstream datasets and models.
|
| 415 |
-
- **Scope:** this release contains the three feature subsets described above. Obtain raw images and encoder weights from the upstream sources, and MLLM checkpoints from the Model Zoo. Derived PCA/distance caches and additional experiments beyond the documented subsets are outside the current release.
|
| 416 |
|
| 417 |
## Licensing and Attribution
|
| 418 |
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: Vision and Text Evaluation Features
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
task_categories:
|
|
|
|
| 38 |
|
| 39 |
<h1 align="center">A Strong Baseline for Evaluating Vision Encoders<br>in Multimodal Large Language Models</h1>
|
| 40 |
|
| 41 |
+
<p align="center"><strong>Precomputed Vision and Text Features</strong></p>
|
| 42 |
|
| 43 |
<p align="center">Yilin Yang · Jun-Tao Tang · Kengyi Wang<br>Siyuan Su · Gaoyong Luo · Mingda Chen</p>
|
| 44 |
|
|
|
|
| 52 |
|
| 53 |
## Dataset Summary
|
| 54 |
|
| 55 |
+
Precomputed **vision and text features** for the evaluations in [A Strong Baseline for Evaluating Vision Encoders in Multimodal Large Language Models](https://arxiv.org/abs/2610.05413). The release covers **70 vision encoders** (43 language-supervised, 22 self-supervised, and 5 discrete), text features from **three language models**, and shared sample metadata.
|
| 56 |
|
| 57 |
+
**Resources:** [Paper](https://arxiv.org/abs/2610.05413) · [Code](https://github.com/JuntaoTang/MLLM-VisionEncoder-Eval) · [MLLM checkpoints and encoder weights](https://huggingface.co/336labs/VisionEncoder-to-MLLM-ModelZoo) · [Encoder catalog](encoders.json)
|
| 58 |
|
| 59 |
+
## Subsets
|
| 60 |
|
| 61 |
+
| Subset | Samples | Contents | Size |
|
| 62 |
+
|---|---:|---|---:|
|
| 63 |
+
| [`lcs-1k`](https://huggingface.co/datasets/336labs/VisionEncoder-Features/tree/main/lcs-1k) | 1,000 | LCS-558K image patch features, text features, and captions | 55.3 GiB |
|
| 64 |
+
| [`lcs-10k`](https://huggingface.co/datasets/336labs/VisionEncoder-Features/tree/main/lcs-10k) | 10,000 | LCS-558K image patch features, text features, and captions | 553.0 GiB |
|
| 65 |
+
| [`imagenet-200k`](https://huggingface.co/datasets/336labs/VisionEncoder-Features/tree/main/imagenet-200k) | 200,000 | ImageNet-1K pooled features, class labels, and kNN split | 59.9 GiB |
|
| 66 |
|
| 67 |
+
Each subset includes features for all 70 vision encoders. The LCS subsets also include text features from [Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct), [Qwen3-1.7B](https://huggingface.co/Qwen/Qwen3-1.7B), and [SmolLM2-1.7B-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-1.7B-Instruct). The 10k arrays are stored in two 5k blocks per encoder/model.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
+
Keep the shared sample row order when loading features. Shapes, extraction settings, and sampling details are recorded in the per-file metadata and sample manifests.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
```text
|
| 72 |
features/
|
| 73 |
lcs-1k/{vision,text,samples}/
|
| 74 |
lcs-10k/{vision,text,samples}/
|
| 75 |
+
imagenet-200k/{features,metadata,samples,protocols}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
encoders.json
|
| 77 |
FILES.json
|
| 78 |
checksums.sha256
|
| 79 |
```
|
| 80 |
|
| 81 |
+
## Download
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
+
Example: download the CLIP ViT-L/14 image features and matching Qwen3 text features from `lcs-1k` into `features/`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
```python
|
|
|
|
|
|
|
|
|
|
| 86 |
from huggingface_hub import snapshot_download
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
import numpy as np
|
|
|
|
| 88 |
|
| 89 |
+
root = snapshot_download(
|
| 90 |
repo_id="336labs/VisionEncoder-Features",
|
| 91 |
repo_type="dataset",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
local_dir="features",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
allow_patterns=[
|
| 94 |
+
"encoders.json",
|
| 95 |
+
"lcs-1k/vision/clip_openai__l14*",
|
| 96 |
+
"lcs-1k/text/qwen3*",
|
| 97 |
+
"lcs-1k/samples/**",
|
|
|
|
|
|
|
|
|
|
| 98 |
],
|
| 99 |
+
)
|
| 100 |
+
vision = np.load(f"{root}/lcs-1k/vision/clip_openai__l14_patch_n1000_seed42.npy", mmap_mode="r")
|
| 101 |
+
text = np.load(f"{root}/lcs-1k/text/qwen3_penultimate_mean_n1000_seed42.npy", mmap_mode="r")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
```
|
| 103 |
|
| 104 |
+
Use the paths in the encoder catalog below to select other features. The HF Dataset Viewer displays sample metadata; the feature arrays are separate `.npy` files. Raw images are available from the linked source datasets.
|
| 105 |
|
| 106 |
## Encoder Catalog
|
| 107 |
|
| 108 |
+
[encoders.json](encoders.json) lists feature paths, shapes, metadata, and upstream encoder sources for all 70 encoders.
|
| 109 |
+
|
| 110 |
+
<details>
|
| 111 |
+
<summary>Browse all encoders and feature download links</summary>
|
| 112 |
|
| 113 |
| Tokenizer ID | Family | LCS `[T, D]` | ImageNet `D` | Feature files |
|
| 114 |
| --- | --- | --- | ---: | --- |
|
|
|
|
| 183 |
| [`webssl_mae300m_full2b_224`](https://huggingface.co/facebook/webssl-mae300m-full2b-224) | SSL | `[196, 1024]` | 1024 | [patches](lcs-1k/vision/webssl_mae300m_full2b_224_patch_n1000_seed42.npy) · [pooled](imagenet-200k/features/069_webssl_mae300m_full2b_224.npy) · [10k blocks](https://huggingface.co/datasets/336labs/VisionEncoder-Features/tree/main/lcs-10k/vision/webssl_mae300m_full2b_224) |
|
| 184 |
| [`webssl_mae3b_full2b_224`](https://huggingface.co/facebook/webssl-mae3b-full2b-224) | SSL | `[256, 3072]` | 3072 | [patches](lcs-1k/vision/webssl_mae3b_full2b_224_patch_n1000_seed42.npy) · [pooled](imagenet-200k/features/070_webssl_mae3b_full2b_224.npy) · [10k blocks](https://huggingface.co/datasets/336labs/VisionEncoder-Features/tree/main/lcs-10k/vision/webssl_mae3b_full2b_224) |
|
| 185 |
|
| 186 |
+
</details>
|
| 187 |
+
|
| 188 |
+
<a id="datasets-required-by-the-evaluation-pipelines"></a>
|
| 189 |
+
|
| 190 |
+
## Data Sources
|
| 191 |
+
|
| 192 |
+
<details>
|
| 193 |
+
<summary>MLLM training, evaluation benchmarks, and baseline datasets</summary>
|
| 194 |
+
|
| 195 |
+
This repository provides the three cached feature subsets listed below. Raw images, MLLM training data, evaluation benchmarks, and other baseline datasets are obtained separately.
|
| 196 |
+
|
| 197 |
+
### Data used by each method
|
| 198 |
+
|
| 199 |
+
| Method | Data needed | Available here / source |
|
| 200 |
+
|---|---|---|
|
| 201 |
+
| RAVEL | Paired LCS-558K image patches and text features | `lcs-1k/` and `lcs-10k/` |
|
| 202 |
+
| RSA, CCA, GW, MutualNN | Paired LCS-558K global image vectors and text features | Shared samples and text are included; prepare the required global image vectors separately |
|
| 203 |
+
| kNN | ImageNet training features, labels, and support/query split | `imagenet-200k/` |
|
| 204 |
+
| Linear probing | ImageNet train and validation images | [ImageNet](https://www.image-net.org/download.php); the released 200k cache contains training images only |
|
| 205 |
+
| Alignment probing | COCO Karpathy captions; DreamLIP CC3M for the cross-dataset variants | [COCO / Karpathy splits](https://cs.stanford.edu/people/karpathy/deepimagesent/) and [DreamLIP captions](https://huggingface.co/datasets/qidouxiong619/dreamlip_long_captions) |
|
| 206 |
+
| AC Policy / Law of Vision Representation | LCS-558K, Stage-1 projectors, and SPair-71k | [LLaVA-Pretrain](https://huggingface.co/datasets/liuhaotian/LLaVA-Pretrain), [Model Zoo](https://huggingface.co/336labs/VisionEncoder-to-MLLM-ModelZoo), and [SPair-71k](https://cvlab.postech.ac.kr/research/SPair-71k/index.html) |
|
| 207 |
+
| Mid-training loss | LCS-558K images/captions and projector-training logs | [LLaVA-Pretrain](https://huggingface.co/datasets/liuhaotian/LLaVA-Pretrain); training instructions in the [code repository](https://github.com/JuntaoTang/MLLM-VisionEncoder-Eval#running) |
|
| 208 |
+
| TokBench | Original images/annotations and matching tokenizer reconstructions | [TokBench](https://huggingface.co/datasets/Junfeng5/TokBench) |
|
| 209 |
+
| MLLM training / evaluation | Training: LCS-558K and filtered mix665k; evaluation: the 11 benchmarks below | [Model Zoo](https://huggingface.co/336labs/VisionEncoder-to-MLLM-ModelZoo) and the linked dataset sources |
|
| 210 |
+
|
| 211 |
+
ImageNet kNN features have class labels but no paired captions, so they cannot supply an alignment probe's image–text inputs on their own. A full linear-probe benchmark also needs independent validation data.
|
| 212 |
+
|
| 213 |
+
### Raw data folders
|
| 214 |
+
|
| 215 |
+
The following are example local folders. Keep the image subdirectories recorded in each dataset's annotations.
|
| 216 |
+
|
| 217 |
+
```text
|
| 218 |
+
data/
|
| 219 |
+
instructions/pretrain/blip_laion_cc_sbu_558k.json
|
| 220 |
+
instructions/finetune/llava_v1_5_mix665k_drop_ge8kchars.json
|
| 221 |
+
instructions/test/<dataset>.tsv
|
| 222 |
+
images/pretrain/
|
| 223 |
+
images/finetune/
|
| 224 |
+
images/test/
|
| 225 |
+
imagenet/{train,val}/
|
| 226 |
+
coco/
|
| 227 |
+
cc3m/
|
| 228 |
+
SPair-71k/
|
| 229 |
+
tokbench/
|
| 230 |
+
```
|
| 231 |
+
|
| 232 |
+
**MLLM pretraining:** obtain the JSON and `images.zip` from [LLaVA-Pretrain](https://huggingface.co/datasets/liuhaotian/LLaVA-Pretrain). Image names in the JSON are relative to `data/images/pretrain/`.
|
| 233 |
|
| 234 |
+
**MLLM finetuning:** obtain [mix665k](https://huggingface.co/datasets/liuhaotian/LLaVA-Instruct-150K/blob/main/llava_v1_5_mix665k.json) and its COCO, GQA, OCR-VQA, TextVQA, and Visual Genome images using the [LLaVA data preparation instructions](https://github.com/haotian-liu/LLaVA#visual-instruction-tuning). The project uses `llava_v1_5_mix665k_drop_ge8kchars.json`, which excludes 395 examples with at least 8,000 conversation-text characters. Image names in this JSON are relative to `data/images/finetune/`.
|
| 235 |
|
| 236 |
+
### Downstream MLLM benchmarks
|
| 237 |
|
| 238 |
+
Place the prepared benchmark TSVs in `data/instructions/test/`. Obtain the matching data from these sources:
|
| 239 |
|
| 240 |
+
| Benchmark / required TSV | Source |
|
| 241 |
+
|---|---|
|
| 242 |
+
| `MMMU_TEST.tsv` | [MMMU](https://huggingface.co/datasets/MMMU/MMMU), test split |
|
| 243 |
+
| `MMBench_TEST_EN_V11.tsv` | [MMBench](https://github.com/open-compass/MMBench), English test v1.1 |
|
| 244 |
+
| `VQAv2_VAL.tsv` | [VQA v2](https://visualqa.org/download.html), validation split |
|
| 245 |
+
| `ScienceQA_VAL.tsv` | [ScienceQA](https://github.com/lupantech/ScienceQA), validation split |
|
| 246 |
+
| `ChartQA_TEST.tsv` | [ChartQA](https://github.com/vis-nlp/ChartQA), test split |
|
| 247 |
+
| `DocVQA_VAL.tsv` | [DocVQA](https://www.docvqa.org/datasets/docvqa), validation split |
|
| 248 |
+
| `TextVQA_VAL.tsv` | [TextVQA](https://textvqa.org/), validation split |
|
| 249 |
+
| `POPE.tsv` | [POPE](https://github.com/RUCAIBox/POPE) |
|
| 250 |
+
| `GQA_TestDev_Balanced.tsv` | [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html), balanced test-dev split |
|
| 251 |
+
| `MSCOCO_KARPATHY_TEST.tsv` | [Karpathy splits](https://cs.stanford.edu/people/karpathy/deepimagesent/) and [COCO images](https://cocodataset.org/#download) |
|
| 252 |
+
| `FLICKR30K_KARPATHY_TEST.tsv` | [Karpathy splits](https://cs.stanford.edu/people/karpathy/deepimagesent/) and [Flickr30k images](https://shannon.cs.illinois.edu/DenotationGraph/) |
|
| 253 |
+
|
| 254 |
+
Prepare images referenced by the TSVs under `data/images/test/`. Folder names follow the benchmark loader: for example, MMBench v1.1 uses `MMBench_V11/`. TSVs with embedded images can be decoded by the loader. GQA also accepts the filename `GQA_TESTDEV_BALANCED.tsv`.
|
| 255 |
+
|
| 256 |
+
Use the [VLMEvalKit dataset loaders](https://github.com/open-compass/VLMEvalKit/tree/main/vlmeval/dataset) for benchmark preparation. Original dataset downloads must be converted to the required TSV format; changing a filename alone is insufficient. Configuration and experiment commands are in the code repository's [Setup](https://github.com/JuntaoTang/MLLM-VisionEncoder-Eval#setup) and [Running](https://github.com/JuntaoTang/MLLM-VisionEncoder-Eval#running) sections.
|
| 257 |
|
| 258 |
+
</details>
|
| 259 |
|
| 260 |
+
## Metadata and Integrity
|
| 261 |
|
| 262 |
+
The released arrays retain their original storage precision. Per-file metadata and sample manifests record available extraction and sampling information. [FILES.json](FILES.json) and [checksums.sha256](checksums.sha256) provide file sizes and SHA-256 checksums.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
|
| 264 |
## Licensing and Attribution
|
| 265 |
|
checksums.sha256
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
d9d3820e2ad8c5692d2d4f33db110efeafe31a97b1172de592ad9743b6e8d1e4 .gitattributes
|
| 2 |
da50ab668f491868ce523b2d62fdd65de12e047163150a11f2bd5ba05857ed38 LICENSES.md
|
| 3 |
-
|
| 4 |
46e6a9a7cc6cde8ed94431c91dce1b389e7477a03de2f6626efa9a5d80833e8e encoders.json
|
| 5 |
55cd1a3a1469b858ac539851c34d2f88b5e2cda5737998154a658120820ddcd9 imagenet-200k/export_manifest.json
|
| 6 |
c0f64e28098e460ee5cd5716fefd2b1577c54755c5c3ea80dda9a843182ec9fd imagenet-200k/features/001_clip_openai__l14.npy
|
|
|
|
| 1 |
d9d3820e2ad8c5692d2d4f33db110efeafe31a97b1172de592ad9743b6e8d1e4 .gitattributes
|
| 2 |
da50ab668f491868ce523b2d62fdd65de12e047163150a11f2bd5ba05857ed38 LICENSES.md
|
| 3 |
+
1c1b8143eb2af87e8989b952879eea7648125b85e59284793e5dcff79f2f072d README.md
|
| 4 |
46e6a9a7cc6cde8ed94431c91dce1b389e7477a03de2f6626efa9a5d80833e8e encoders.json
|
| 5 |
55cd1a3a1469b858ac539851c34d2f88b5e2cda5737998154a658120820ddcd9 imagenet-200k/export_manifest.json
|
| 6 |
c0f64e28098e460ee5cd5716fefd2b1577c54755c5c3ea80dda9a843182ec9fd imagenet-200k/features/001_clip_openai__l14.npy
|