OpenGVLab/V2PE

Model

[\[⭐️Project Page\]](https://zzdhybthu.github.io/V2PE.github.io) [\[📜 ArXiv Paper\]](https://arxiv.org/abs/2412.09616) [\[📂 GitHub\]](https://github.com/OpenGVLab/V2PE) [\[📖 HF Datasets\]](https://huggingface.co/datasets/OpenGVLab/V2PE-Data)

4

5 commits

1 linked in READMEs

updated Dec 13, 2024

See the code

README

V2PE

[⭐️Project Page] [📜 ArXiv Paper] [📂 GitHub] [📖 HF Datasets]

image/png

Introduction

Vision-Language Models (VLMs) have shown promising capabilities in handling various multimodal tasks, yet they struggle in long-context scenarios, particularly in tasks involving videos, high-resolution images, or lengthy image-text documents.

To address this issue, we propose Variable Visual Position Encoding (V2PE), a novel positional encoding approach that employs variable and smaller increments for visual tokens. Our experiments demonstrate the effectiveness of V2PE to enhances VLMs' ability to effectively understand and reason over long multimodal contexts. We further integrate V2PE with our augmented long-context multimodal datasets to finetune the open-source VLM, InternVL2-2B. The finetuned model achieves strong performance on both standard and long-context multimodal tasks. Notably, when the sequence length of the training dataset is increased to 256K tokens, the model is capable of processing multimodal sequences up to 1M tokens, highlighting its potential for real-world long-context applications.

This repository contains the instruction-tuned V2PE-32K-InternVL-2B model and V2PE-256K-InternVL-2B model, which have 1.8B activated parameters (3B in total) and are trained on V2PE-Data. It is built upon InternVL2-2B. For more details, please refer to our paper.

Performance

image/png

General MLLM Benchmarks

Model#ParamChartQADocVQAAI2DInfoVQASQAPOPEMMMUvalMMBenchENSEEDIAvg
InternVL2-2B2.0B71.786.974.158.994.185.236.373.470.972.4
DeepSeek-VL-1.3B2.0B47.4-51.5-68.485.933.866.466.0-
Qwen2-VL-2B2.0B73.590.174.765.5--41.174.9--
Aquila-VL-2B2.2B32.085.075.158.395.183.146.979.073.969.8
MiniCPM-V-22.8B55.671.962.9-80.786.338.264.167.1-
Vintern-3B-beta3.7B68.3-69.1-75.087.446.770.670.0-
Llama 3.2 11B11B83.488.491.1---50.768.0--
Qwen2-VL-72B73B88.396.588.184.591.287.264.586.977.985.0
GPT-4o-85.792.884.7-90.197.269.182.176.7-
InternVL2-V2PE-32K2.0B76.483.973.255.994.988.836.673.571.272.5

Long-Context MLLM Benchmarks

Model#ParamMM-NIAH/ImageMM-NIAH/TextMM-NIAH/AvgMilebench/TMilebench/SMilebench/NIMilebench/AvgVideoMMEMVBench
InternVL2-2B2.0B23.018.921.058.254.537.049.9--
Phi-3-Vision2.7B---46.950.0----
OmChat3.9B---51.452.0--45.950.2
LongLLaVA9B---47.346.8--43.749.1
LongLLaVA13B---52.752.1--51.654.6
VILA13B14.540.527.5------
Gemini-1.5-28.582.155.250.258.397.968.869.6-
GPT-4V--84.1-45.658.999.468.059.943.5
GPT-4o----56.263.5--64.7-
Claude3-Opus----37.448.185.356.959.7-
InternVL2-V2PE-32K2.0B78.185.781.865.556.497.272.550.765.6

Usage

Please refer to our GitHub Repo.

License

This project is released under the MIT License.

Citation

If you find this work helpful in your research, please consider citing:

@misc{ge2024v2peimprovingmultimodallongcontext,
      title={V2PE: Improving Multimodal Long-Context Capability of Vision-Language Models with Variable Visual Position Encoding}, 
      author={Junqi Ge and Ziyi Chen and Jintao Lin and Jinguo Zhu and Xihui Liu and Jifeng Dai and Xizhou Zhu},
      year={2024},
      eprint={2412.09616},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2412.09616}, 
}
endpoints_compatible
safetensors
transformers
V2PE

Contributors

Weiyun1025

4 commits

dreamerlin

1 commits

OpenGVLab/V2PE

Model

[\[⭐️Project Page\]](https://zzdhybthu.github.io/V2PE.github.io) [\[📜 ArXiv Paper\]](https://arxiv.org/abs/2412.09616) [\[📂 GitHub\]](https://github.com/OpenGVLab/V2PE) [\[📖 HF Datasets\]](https://huggingface.co/datasets/OpenGVLab/V2PE-Data)

4

5 commits

1 linked in READMEs

updated Dec 13, 2024

See the code

README

V2PE

[⭐️Project Page] [📜 ArXiv Paper] [📂 GitHub] [📖 HF Datasets]

image/png

Introduction

Vision-Language Models (VLMs) have shown promising capabilities in handling various multimodal tasks, yet they struggle in long-context scenarios, particularly in tasks involving videos, high-resolution images, or lengthy image-text documents.

To address this issue, we propose Variable Visual Position Encoding (V2PE), a novel positional encoding approach that employs variable and smaller increments for visual tokens. Our experiments demonstrate the effectiveness of V2PE to enhances VLMs' ability to effectively understand and reason over long multimodal contexts. We further integrate V2PE with our augmented long-context multimodal datasets to finetune the open-source VLM, InternVL2-2B. The finetuned model achieves strong performance on both standard and long-context multimodal tasks. Notably, when the sequence length of the training dataset is increased to 256K tokens, the model is capable of processing multimodal sequences up to 1M tokens, highlighting its potential for real-world long-context applications.

This repository contains the instruction-tuned V2PE-32K-InternVL-2B model and V2PE-256K-InternVL-2B model, which have 1.8B activated parameters (3B in total) and are trained on V2PE-Data. It is built upon InternVL2-2B. For more details, please refer to our paper.

Performance

image/png

General MLLM Benchmarks

Model#ParamChartQADocVQAAI2DInfoVQASQAPOPEMMMUvalMMBenchENSEEDIAvg
InternVL2-2B2.0B71.786.974.158.994.185.236.373.470.972.4
DeepSeek-VL-1.3B2.0B47.4-51.5-68.485.933.866.466.0-
Qwen2-VL-2B2.0B73.590.174.765.5--41.174.9--
Aquila-VL-2B2.2B32.085.075.158.395.183.146.979.073.969.8
MiniCPM-V-22.8B55.671.962.9-80.786.338.264.167.1-
Vintern-3B-beta3.7B68.3-69.1-75.087.446.770.670.0-
Llama 3.2 11B11B83.488.491.1---50.768.0--
Qwen2-VL-72B73B88.396.588.184.591.287.264.586.977.985.0
GPT-4o-85.792.884.7-90.197.269.182.176.7-
InternVL2-V2PE-32K2.0B76.483.973.255.994.988.836.673.571.272.5

Long-Context MLLM Benchmarks

Model#ParamMM-NIAH/ImageMM-NIAH/TextMM-NIAH/AvgMilebench/TMilebench/SMilebench/NIMilebench/AvgVideoMMEMVBench
InternVL2-2B2.0B23.018.921.058.254.537.049.9--
Phi-3-Vision2.7B---46.950.0----
OmChat3.9B---51.452.0--45.950.2
LongLLaVA9B---47.346.8--43.749.1
LongLLaVA13B---52.752.1--51.654.6
VILA13B14.540.527.5------
Gemini-1.5-28.582.155.250.258.397.968.869.6-
GPT-4V--84.1-45.658.999.468.059.943.5
GPT-4o----56.263.5--64.7-
Claude3-Opus----37.448.185.356.959.7-
InternVL2-V2PE-32K2.0B78.185.781.865.556.497.272.550.765.6

Usage

Please refer to our GitHub Repo.

License

This project is released under the MIT License.

Citation

If you find this work helpful in your research, please consider citing:

@misc{ge2024v2peimprovingmultimodallongcontext,
      title={V2PE: Improving Multimodal Long-Context Capability of Vision-Language Models with Variable Visual Position Encoding}, 
      author={Junqi Ge and Ziyi Chen and Jintao Lin and Jinguo Zhu and Xihui Liu and Jifeng Dai and Xizhou Zhu},
      year={2024},
      eprint={2412.09616},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2412.09616}, 
}
endpoints_compatible
safetensors
transformers
V2PE

Contributors

Weiyun1025

4 commits

dreamerlin

1 commits