Code Monkey home page Code Monkey logo

codis's Introduction

logoCODIS: Benchmarking Context-Dependent Visual Comprehension for Multimodal Large Language Models

๐ŸŒ Homepage | ๐Ÿ“– arXiv | ๐Ÿค— Dataset

This repo contains the dataset and evaluation code for paper CODIS: Benchmarking Context-Dependent Visual Comprehension for Multimodal Large Language Models.

Introduction

In certain situations, images need to be interpreted within a broader context. We introduce a new benchmark, named as CODIS (COntext-Dependent Image diSambiguation), designed to assess the ability of models to use context provided in free-form text to enhance visual comprehension.

  • Each image in CODIS contains inherent ambiguity that can only be resolved with additional context.
  • The questions are deliberately designed to highlight these ambiguities, requiring external context for accurate interpretation.
  • For every image-question pair, we provide two contexts in a free-form text format.

taxonomy

Evaluation

Please organize outputs of your models as follows.

[
    {
        "id": "000",
        "output": {
            "output_1": "[YOUR OUTPUT TO CASE 000 GIVEN CONTEXT_1 HERE]",
            "output_2": "[YOUR OUTPUT TO CASE 000 GIVEN CONTEXT_2 HERE]"
        }
    },
    {
        "id": "001",
        "output": {
            "output_1": "[YOUR OUTPUT TO CASE 001 GIVEN CONTEXT_1 HERE]",
            "output_2": "[YOUR OUTPUT TO CASE 001 GIVEN CONTEXT_2 HERE]"
        }
    },
    ...
]

A complete example of output file can be found at data/output_example.json.

For evaluation, please run the following command to calculate Acc_p and Acc_q.

cd data

# your OpenAI API key
export OPENAI_API_KEY=[YOUR OPENAI API KEY HERE]
# path to "data.json"
export ANSWER_PATH=./data.json
# path to your output file
export OUTPUT_PATH=./output_example.json

python eval.py

Leaderboard

We report Acc_p scores based on human and GPT-4 evaluation. Models score only if their answers to a pair of queries are both correct.

Human Evaluation

Model Loc & Ori Temporal Cultural Attributes Relationships Average
Human 85.2 90.9 72.8 87.2 89.6 86.2
GPT-4V 33.3 28.4 25.5 26.7 51.9 32.3
Gemini 21.4 29.5 21.3 24.0 34.6 26.1
LLaVA-1.5-13B 6.0 4.2 10.6 14.7 13.5 9.1
BLIP-2-11B 6.0 8.4 4.3 6.7 11.5 7.4
InstructBLIP-13B 6.0 2.1 4.3 4.0 7.7 4.5
mPLUG-Owl-2-7B 13.1 9.5 6.4 12.0 19.2 11.9
MiniGPT4-7B 10.7 3.2 0.0 12.0 13.5 7.9
LLaVA-1.5-7B 11.9 5.3 4.3 9.3 7.7 7.9
InstructBLIP-7B 1.2 7.4 0.0 4.0 11.5 4.8
Otter-7B 2.4 5.3 4.3 0.0 5.8 3.4
LLaVA-7B 2.4 6.3 0.0 1.3 5.8 3.4
Qwen-VL-Chat 3.6 3.2 0.0 1.3 9.6 3.4
OpenFlamingo-7B 2.4 2.1 0.0 5.3 5.8 3.1
BLIP-2-6.7B 0.0 1.1 2.1 2.7 7.7 2.3

GPT-4 Evaluation

Model Loc & Ori Temporal Cultural Attributes Relationships Average
GPT-4V 33.3 28.4 21.3 25.3 50.0 31.2
Gemini 20.2 27.4 21.3 22.7 30.8 24.4
LLaVA-1.5-13B 6.0 3.2 12.8 13.3 11.5 8.5
BLIP-2-11B 6.0 10.5 4.3 6.7 11.5 8.0
InstructBLIP-13B 6.0 2.1 6.4 4.0 5.8 4.5
mPLUG-Owl-2-7B 13.1 9.5 4.3 9.3 11.5 9.9
MiniGPT4-7B 10.7 4.2 0.0 8.0 9.6 6.8
LLaVA-1.5-7B 8.3 1.1 2.1 9.3 7.7 5.7
InstructBLIP-7B 1.2 5.3 0.0 4.0 11.5 4.2
Otter-7B 2.4 3.2 0.0 1.3 5.8 2.5
LLaVA-7B 2.4 4.2 0.0 2.7 1.9 2.5
Qwen-VL-Chat 4.8 3.2 0.0 1.3 7.7 3.4
OpenFlamingo-7B 2.4 2.1 0.0 5.3 5.8 3.1
BLIP-2-6.7B 0.0 1.1 4.3 4.0 5.8 2.5

Citation

@article{luo2024codis,
  title={CODIS: Benchmarking Context-Dependent Visual Comprehension for Multimodal Large Language Models},
  author={Fuwen Luo and Chi Chen and Zihao Wan and Zhaolu Kang and Qidong Yan and Yingjie Li and Xiaolong Wang and Siyu Wang and Ziyue Wang and Xiaoyue Mi and Peng Li and Ning Ma and Maosong Sun and Yang Liu},
  journal={arXiv preprint arXiv:2402.13607},
  year={2024}
}

codis's People

Contributors

roufaen avatar

Stargazers

 avatar  avatar  avatar  avatar Fang Kechen avatar CarbonCoo avatar  avatar

Watchers

Jiacheng Zhang avatar  avatar CarbonCoo avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.