ICCV 2025 · MULTIMODAL LONG-CONTEXT LEARNING

More context.Less compromise.

A new perspective on visual position encoding. V2PE helps vision-language models see further, connecting images and language across sequences of up to one million tokens.

Explore the researchSCROLL TO DISCOVER
THE RESEARCHImproving Multimodal Long-Context Capability of Vision-Language Models with Variable Visual Position Encoding

Junqi Ge1,4*Ziyi Chen1,4*Jintao Lin3,4*Jinguo Zhu4*Xihui Liu3Jifeng Dai1,4Xizhou Zhu1,2,4†

1 Tsinghua University2 SenseTime Research3 University of Hong Kong4 Shanghai AI Laboratory
* Equal contribution † Corresponding author
1MTokens in long-context inference
256KTokens per training sample
2BParameters in the base model
01 / THE IDEA

A small shift in position. A much wider perspective.

Vision-language models understand increasingly complex combinations of images and text. Yet their performance degrades when a multimodal sequence extends beyond the context window encountered during training.

V2PE uses smaller, variable positional increments for visual tokens. Integrated with InternVL2-2B and augmented long-context training data, this design enables the model to process multimodal sequences up to 1M tokens, while training on sequences up to 256K.

02 / HOW IT WORKS

Make room for what matters.

Text and images share a sequence. They do not have to share the same positional increment.

01V2PE uses smaller and variable positional increments for visual tokens, while preserving textual position increments.
THE EXPERIMENTAL SETUP
ComponentConfigurationPurpose
Base modelInternVL2-2BMultimodal understanding
Training sequenceUp to 256K tokensLong-context adaptation
Inference sequenceUp to 1M tokensExtended multimodal context
Visual positionsSmaller, variable incrementsEfficient use of positional space

Configuration summary from the project. See the paper for complete training and evaluation details.

03 / THE EVIDENCE

Keep the bigger picture in view.

From million-token retrieval to positional increment ablations, explore how V2PE behaves as context grows.

Image retrieval at million-token scaleInternVL2-2B + V2PE (Ours)InternVL2-2B without V2PEGPT-4oImage retrieval at million-token scale025507510032K64K128K256K512K1MContext lengthPerformanceInternVL2-2B + V2PE (Ours) · 32K: 96.6InternVL2-2B + V2PE (Ours) · 64K: 97.1InternVL2-2B + V2PE (Ours) · 128K: 99.1InternVL2-2B + V2PE (Ours) · 256K: 95.7InternVL2-2B + V2PE (Ours) · 512K: 95.1InternVL2-2B + V2PE (Ours) · 1M: 64.5InternVL2-2B without V2PE · 32K: 96.6InternVL2-2B without V2PE · 64K: 93.1InternVL2-2B without V2PE · 128K: 56.1InternVL2-2B without V2PE · 256K: 3.7InternVL2-2B without V2PE · 512K: 10.8InternVL2-2B without V2PE · 1M: 0GPT-4o · 32K: 100GPT-4o · 64K: 92.7GPT-4o · 128K: 62.1GPT-4o · 256K: 60GPT-4o · 512K: 58.6

Values rounded to one decimal. GPT-4o has no reported point at 1M.

View data table
Image retrieval at million-token scale — data
Context lengthInternVL2-2B + V2PE (Ours)InternVL2-2B without V2PEGPT-4o
32K96.696.6100
64K97.193.192.7
128K99.156.162.1
256K95.73.760
512K95.110.858.6
1M64.50—
MM-NIAH · positional incrementsδ = 1/256δ = 1/16δ = 1linearNTKMM-NIAH · positional increments20406080100124812162432404864Token count (K)Performance32K training contextδ = 1/256 · 1: 96.7δ = 1/256 · 2: 93.9δ = 1/256 · 4: 95.5δ = 1/256 · 8: 93.3δ = 1/256 · 12: 97.2δ = 1/256 · 16: 94.2δ = 1/256 · 24: 93.5δ = 1/256 · 32: 86.6δ = 1/256 · 40: 80.5δ = 1/256 · 48: 68.2δ = 1/256 · 64: 53δ = 1/16 · 1: 94.9δ = 1/16 · 2: 95.8δ = 1/16 · 4: 92.8δ = 1/16 · 8: 92.6δ = 1/16 · 12: 94.9δ = 1/16 · 16: 91.8δ = 1/16 · 24: 90.9δ = 1/16 · 32: 87.8δ = 1/16 · 40: 82.8δ = 1/16 · 48: 66.6δ = 1/16 · 64: 57.9δ = 1 · 1: 80δ = 1 · 2: 81δ = 1 · 4: 78.5δ = 1 · 8: 78.4δ = 1 · 12: 75.2δ = 1 · 16: 68.7δ = 1 · 24: 52.8δ = 1 · 32: 38.8δ = 1 · 40: 30.8δ = 1 · 48: 27.1δ = 1 · 64: 27.6linear · 1: 85.2linear · 2: 85.1linear · 4: 82.8linear · 8: 78.7linear · 12: 77.7linear · 16: 76.1linear · 24: 64.1linear · 32: 56.7linear · 40: 46.8linear · 48: 38.5linear · 64: 34.8NTK · 1: 78.9NTK · 2: 80.6NTK · 4: 80.2NTK · 8: 79.2NTK · 12: 73.6NTK · 16: 70.8NTK · 24: 56NTK · 32: 40.8NTK · 40: 38.4NTK · 48: 26.2NTK · 64: 25.8Long-VQA · positional incrementsδ = 1/256δ = 1/16δ = 1linearNTKLong-VQA · positional increments2032.54557.570163240485664Token count (K)Performance32K training contextδ = 1/256 · 16: 58.2δ = 1/256 · 32: 52.8δ = 1/256 · 40: 48.1δ = 1/256 · 48: 45.4δ = 1/256 · 56: 43.8δ = 1/256 · 64: 40.3δ = 1/16 · 16: 62.9δ = 1/16 · 32: 55.6δ = 1/16 · 40: 51.2δ = 1/16 · 48: 48.3δ = 1/16 · 56: 47δ = 1/16 · 64: 42.5δ = 1 · 16: 62.3δ = 1 · 32: 49δ = 1 · 40: 30δ = 1 · 48: 26.5δ = 1 · 56: 27δ = 1 · 64: 25.9linear · 16: 62.5linear · 32: 51.3linear · 40: 42.1linear · 48: 34.7linear · 56: 31.4linear · 64: 25.9NTK · 16: 63.2NTK · 32: 54.2NTK · 40: 44.9NTK · 48: 41NTK · 56: 40.4NTK · 64: 34.3

Approximate digitized values; overlapping points may introduce uncertainty. Values rounded to one decimal.

View data table
Results — data
PanelCategorySeriesValue
MM-NIAH · positional increments1δ = 1/25696.7
MM-NIAH · positional increments1δ = 1/1694.9
MM-NIAH · positional increments1δ = 180
MM-NIAH · positional increments1linear85.2
MM-NIAH · positional increments1NTK78.9
MM-NIAH · positional increments2δ = 1/25693.9
MM-NIAH · positional increments2δ = 1/1695.8
MM-NIAH · positional increments2δ = 181
MM-NIAH · positional increments2linear85.1
MM-NIAH · positional increments2NTK80.6
MM-NIAH · positional increments4δ = 1/25695.5
MM-NIAH · positional increments4δ = 1/1692.8
MM-NIAH · positional increments4δ = 178.5
MM-NIAH · positional increments4linear82.8
MM-NIAH · positional increments4NTK80.2
MM-NIAH · positional increments8δ = 1/25693.3
MM-NIAH · positional increments8δ = 1/1692.6
MM-NIAH · positional increments8δ = 178.4
MM-NIAH · positional increments8linear78.7
MM-NIAH · positional increments8NTK79.2
MM-NIAH · positional increments12δ = 1/25697.2
MM-NIAH · positional increments12δ = 1/1694.9
MM-NIAH · positional increments12δ = 175.2
MM-NIAH · positional increments12linear77.7
MM-NIAH · positional increments12NTK73.6
MM-NIAH · positional increments16δ = 1/25694.2
MM-NIAH · positional increments16δ = 1/1691.8
MM-NIAH · positional increments16δ = 168.7
MM-NIAH · positional increments16linear76.1
MM-NIAH · positional increments16NTK70.8
MM-NIAH · positional increments24δ = 1/25693.5
MM-NIAH · positional increments24δ = 1/1690.9
MM-NIAH · positional increments24δ = 152.8
MM-NIAH · positional increments24linear64.1
MM-NIAH · positional increments24NTK56
MM-NIAH · positional increments32δ = 1/25686.6
MM-NIAH · positional increments32δ = 1/1687.8
MM-NIAH · positional increments32δ = 138.8
MM-NIAH · positional increments32linear56.7
MM-NIAH · positional increments32NTK40.8
MM-NIAH · positional increments40δ = 1/25680.5
MM-NIAH · positional increments40δ = 1/1682.8
MM-NIAH · positional increments40δ = 130.8
MM-NIAH · positional increments40linear46.8
MM-NIAH · positional increments40NTK38.4
MM-NIAH · positional increments48δ = 1/25668.2
MM-NIAH · positional increments48δ = 1/1666.6
MM-NIAH · positional increments48δ = 127.1
MM-NIAH · positional increments48linear38.5
MM-NIAH · positional increments48NTK26.2
MM-NIAH · positional increments64δ = 1/25653
MM-NIAH · positional increments64δ = 1/1657.9
MM-NIAH · positional increments64δ = 127.6
MM-NIAH · positional increments64linear34.8
MM-NIAH · positional increments64NTK25.8
Long-VQA · positional increments16δ = 1/25658.2
Long-VQA · positional increments16δ = 1/1662.9
Long-VQA · positional increments16δ = 162.3
Long-VQA · positional increments16linear62.5
Long-VQA · positional increments16NTK63.2
Long-VQA · positional increments32δ = 1/25652.8
Long-VQA · positional increments32δ = 1/1655.6
Long-VQA · positional increments32δ = 149
Long-VQA · positional increments32linear51.3
Long-VQA · positional increments32NTK54.2
Long-VQA · positional increments40δ = 1/25648.1
Long-VQA · positional increments40δ = 1/1651.2
Long-VQA · positional increments40δ = 130
Long-VQA · positional increments40linear42.1
Long-VQA · positional increments40NTK44.9
Long-VQA · positional increments48δ = 1/25645.4
Long-VQA · positional increments48δ = 1/1648.3
Long-VQA · positional increments48δ = 126.5
Long-VQA · positional increments48linear34.7
Long-VQA · positional increments48NTK41
Long-VQA · positional increments56δ = 1/25643.8
Long-VQA · positional increments56δ = 1/1647
Long-VQA · positional increments56δ = 127
Long-VQA · positional increments56linear31.4
Long-VQA · positional increments56NTK40.4
Long-VQA · positional increments64δ = 1/25640.3
Long-VQA · positional increments64δ = 1/1642.5
Long-VQA · positional increments64δ = 125.9
Long-VQA · positional increments64linear25.9
Long-VQA · positional increments64NTK34.3

The positional increment experiments compare different visual increments alongside linear interpolation and NTK-aware scaled RoPE. Explore individual data points, toggle series, or open the data table below each chart.

04 / BENCHMARKS

Beyond a single task.

Results on general and long-context multimodal benchmarks.

Table 4 · General multimodal benchmarks
Model#ParamChartQADocVQAAI2DInfoVQASQAPOPEMMMU (val)MMBench (EN)SEED (I)Avg
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.0B77.384.973.756.594.988.736.173.871.273.0

#Param denotes model parameters. — indicates an unreported score.

Table 5 · Long-context multimodal benchmarks
Model#ParamMM-NIAHMilebenchVideoMME
ImageTextAvgTSNIAvg
InternVL2-2B2.0B23.018.921.058.254.537.049.9—
Phi-3-Vision2.7B———46.950.0———
OmChat3.9B———51.452.0——45.9
LongLLaVA9B———47.346.8——43.7
LongLLaVA13B———52.752.1——51.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.9
GPT-4o————56.263.5——64.7
Claude3-Opus————37.448.185.356.959.7
InternVL2-V2PE-32K2.0B72.368.170.258.558.251.155.948.2

#Param denotes model parameters. — indicates an unreported score.

05 / THE DATA

A richer world to learn from.

Augmented long-context multimodal data connects document understanding, charts, and retrieval across longer sequences.

An overview of the components in our custom-made training dataset.

ClEVR1101001000100001000001525720.99IEdit11010010001000010000030611.0MMCoQA11010010001000010000028990.95MMQA11010010001000010000028990.95ObjInter11010010001000010000048250.99OCRVQA110100100010000100000200000.98Percept1101001000100001000008070.99SlideVQA11010010001000010000040070.98SpotDiff11010010001000010000042270.96Sta11010010001000010000050710.99Star110100100010000100000430030.99TQA11010010001000010000080280.99WebQA11010010001000010000018960.95Txt-Rtv110100100010000100000848130.690.31Txt-Cnt110100100010000100000702720.680.32Txt-Rsn110100100010000100000737790.690.31Img-Rtv110100100010000100000689540.610.39Img-Cnt110100100010000100000676040.660.34Img-Rsn110100100010000100000763030.550.45Rtv-Ex11010010001000010000033720.420.58Rtv-Hd11010010001000010000062470.420.58Rtv-Fk110100100010000100000671820.540.46Rtv-Hd11010010001000010000059980.99Rtv-Fk11010010001000010000049850.99Rtv-Ft11010010001000010000060000.99IRetEx11010010001000010000050000.99Deepform11010010001000010000033991.0DocVQA110100100010000100000394271.0InfoVQA110100100010000100000239341.0Kleister110100100010000100000133931.0SQA110100100010000100000101510.98VisMRC110100100010000100000158331.0ChartQA110100100010000100000401411.0DVQA1101001000100001000001500571.0Tabfact110100100010000100000915911.0WikitabQA110100100010000100000141481.0Clevr1101001000100001000001500191.0GQA1101001000100001000001500321.0OcrVQA1101001000100001000001500011.0OKVQA11010010001000010000090011.0TextCap1101001000100001000001097351.0TextVQA110100100010000100000565220.99Vizwiz110100100010000100000205171.0Long-MR (Image)Long-MR (Text)MM-NIAH (train)Milebench (Train)LongVQA (Pic)LongVQA (Tab)LongVQA (Chart)LongVQA (Doc)LegendAmount of dataImage ratioText ratio
07 / REFERENCE

If this work helps yours.

BIBTEX
@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}
}
A LONGER VIEW STARTS HERE

See further. Understand more.

Read the paperView the code

EXPANDED VIEW