Upload folder using huggingface_hub
Browse files- LICENSE +23 -0
- README.md +101 -0
- factor_bench.json +0 -0
- factor_bench.jsonl +0 -0
LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FACTOR-Bench — License
|
| 2 |
+
|
| 3 |
+
ANNOTATIONS
|
| 4 |
+
-----------
|
| 5 |
+
The FACTOR-Bench annotations (captions, labels, oracle parses, and all metadata
|
| 6 |
+
in factor_bench.json / factor_bench.jsonl) are released under the
|
| 7 |
+
Creative Commons Attribution 4.0 International License (CC-BY-4.0):
|
| 8 |
+
|
| 9 |
+
https://creativecommons.org/licenses/by/4.0/
|
| 10 |
+
|
| 11 |
+
You are free to share and adapt the material for any purpose, provided you give
|
| 12 |
+
appropriate credit. Please cite the paper (see README.md / DATACARD.md).
|
| 13 |
+
|
| 14 |
+
IMAGES
|
| 15 |
+
------
|
| 16 |
+
FACTOR-Bench does NOT distribute images. It references images from the COCO
|
| 17 |
+
val2017 dataset by id and relative path (val2017/<id>.jpg). COCO images are
|
| 18 |
+
subject to the COCO terms of use and the Flickr terms of the underlying
|
| 19 |
+
photographs:
|
| 20 |
+
|
| 21 |
+
https://cocodataset.org/#termsofuse
|
| 22 |
+
|
| 23 |
+
Obtain images from https://cocodataset.org/#download .
|
README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: FACTOR-Bench
|
| 6 |
+
size_categories:
|
| 7 |
+
- 1K<n<10K
|
| 8 |
+
tags:
|
| 9 |
+
- benchmark
|
| 10 |
+
- vision-language
|
| 11 |
+
- clip
|
| 12 |
+
- compositionality
|
| 13 |
+
- negation
|
| 14 |
+
- boolean-operators
|
| 15 |
+
- image-text-matching
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: default
|
| 18 |
+
data_files:
|
| 19 |
+
- split: test
|
| 20 |
+
path: factor_bench.jsonl
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# FACTOR-Bench
|
| 24 |
+
|
| 25 |
+
A diagnostic benchmark that measures whether a vision-language scoring
|
| 26 |
+
interface executes **Boolean operators** (negation, conjunction, disjunction,
|
| 27 |
+
exclusion, NOR) or merely tracks which concepts are mentioned. It contains
|
| 28 |
+
1,695 image/caption-pair samples built from COCO val2017, all OWL-ViT-validated.
|
| 29 |
+
|
| 30 |
+
Introduced in *Similarity Is Not Logic: Factored Inference for Dual-Encoder
|
| 31 |
+
Vision-Language Models* (ICML 2026).
|
| 32 |
+
|
| 33 |
+
- **Project page:** https://sultanmo.github.io/factored-vlm/
|
| 34 |
+
- **Evaluation harness and reference results:** https://github.com/SultanMo/factored-vlm
|
| 35 |
+
|
| 36 |
+
## Usage
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
from datasets import load_dataset
|
| 40 |
+
ds = load_dataset("sulmo/FACTOR-Bench", split="test")
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
Each sample is a two-alternative forced choice: one image and two captions
|
| 44 |
+
that share the same concepts but differ in logical structure. Score both
|
| 45 |
+
captions and pick the higher; `correct` gives the answer.
|
| 46 |
+
|
| 47 |
+
```json
|
| 48 |
+
{
|
| 49 |
+
"sample_id": "not_explicit_0000",
|
| 50 |
+
"test_type": "operator",
|
| 51 |
+
"operator": "NOT",
|
| 52 |
+
"image_id": 233825,
|
| 53 |
+
"image": "val2017/000000233825.jpg",
|
| 54 |
+
"caption_a": "an orange",
|
| 55 |
+
"caption_b": "there is no orange",
|
| 56 |
+
"correct": "b",
|
| 57 |
+
"parse_a": {"concepts": [{"text": "orange", "is_negated": false}], "operator": "SINGLE"},
|
| 58 |
+
"parse_b": {"concepts": [{"text": "orange", "is_negated": true}], "operator": "SINGLE"},
|
| 59 |
+
"meta": {"difficulty": "easy", "position_swapped": true}
|
| 60 |
+
}
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
Oracle parses are embedded in every sample, so evaluation does not depend on
|
| 64 |
+
any text parser. Filter by `test_type` for the three splits:
|
| 65 |
+
|
| 66 |
+
- **operator** (1,100): NOT / AND / OR / BUT_NOT / NEITHER. The main accuracy metric, chance = 50%.
|
| 67 |
+
- **equivalence** (450): De Morgan / double negation / commutativity, `correct="both"`. Metric = score-consistency violation rate.
|
| 68 |
+
- **compound** (145): 3-4 concepts, mixed polarity.
|
| 69 |
+
|
| 70 |
+
## Images
|
| 71 |
+
|
| 72 |
+
The dataset distributes captions, labels, parses, and **COCO image IDs**, not
|
| 73 |
+
the images themselves. Download COCO val2017 (~1 GB) and resolve the `image`
|
| 74 |
+
field against it:
|
| 75 |
+
|
| 76 |
+
```bash
|
| 77 |
+
wget http://images.cocodataset.org/zips/val2017.zip && unzip val2017.zip -d coco
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
## Anti-shortcut design
|
| 81 |
+
|
| 82 |
+
Balanced answer positions (a/b about 50/50), balanced polarity on negation
|
| 83 |
+
(about half the correct answers are the negated caption), 5+ template
|
| 84 |
+
phrasings per operator, and OWL-ViT validation of every concept presence and
|
| 85 |
+
absence.
|
| 86 |
+
|
| 87 |
+
## License
|
| 88 |
+
|
| 89 |
+
Annotations: **CC-BY-4.0**. Images: COCO val2017 under its original terms
|
| 90 |
+
(not redistributed). See the LICENSE file.
|
| 91 |
+
|
| 92 |
+
## Citation
|
| 93 |
+
|
| 94 |
+
```bibtex
|
| 95 |
+
@inproceedings{alshehri2026similarity,
|
| 96 |
+
title = {Similarity Is Not Logic: Factored Inference for Dual-Encoder Vision-Language Models},
|
| 97 |
+
author = {Alshehri, Sultan and Yang, Zhantao and Zhang, Han and Savvides, Marios},
|
| 98 |
+
booktitle = {International Conference on Machine Learning (ICML)},
|
| 99 |
+
year = {2026}
|
| 100 |
+
}
|
| 101 |
+
```
|
factor_bench.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
factor_bench.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|