← Back to Multimodal Mind Map
👁️ MultimodalID: high-res-dynamic-token

High-Res & Dynamic Tokens

AnyRes 切块 / 动态 Token
🎯Core Definition
High-resolution input is the key to VLM performance on OCR, documents and small objects; two mainstream schemes: ① LLaVA-1.5/1.6 AnyRes — split the high-res image into an nh×nwn_h \times n_w grid of 336×336 cells, run each cell through the vision encoder for 576 tokens (ViT-14), and prepend a global thumbnail to preserve overall semantics; total tokens Ntokens≈(nh×nw+1)×576N_{\text{tokens}} \approx (n_h \times n_w + 1) \times 576; ② Qwen2-VL dynamic resolution — vision tokens are generated according to the native aspect ratio within the pixel range [256×28×28, 1280×28×28][256 \times 28 \times 28,\ 1280 \times 28 \times 28] (roughly 1 token per 28×2828 \times 28 pixels), i.e. 256 minimum and 1280 maximum tokens, with token count proportional to image area instead of fixed grids.
💡Use Cases
document understanding, OCR, screenshot QA, fine-grained visual grounding; interviews ask about the difference between AnyRes and dynamic tokens, and why high resolution boosts OCR.
⚡Key Problems Solved
resizing to 336×336 destroys small text/objects, while feeding full-resolution pixels explodes the token budget (a 4K image would cost tens of thousands of tokens, blowing the LLM context); grid patching controls cost without losing resolution — LLaVA-1.6 offers 1/2/4-grid tiers (about 672/1296/2304 tokens), and Qwen2-VL makes token count vary continuously with area, trading detail fidelity against context length in a configurable way; the resolution gain delivers double-digit improvements on OCR/document benchmarks (LLaVA-1.6 clearly beats 1.5 on TextVQA and similar).
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of High-Res & Dynamic Tokens.
Use Cases
In production engineering, what are the primary use cases for High-Res & Dynamic Tokens and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
How does AnyRes work? How are grids split and what does the global thumbnail do?
2
LLaVA-1.6 tiers (1/2/4 grids): how many visual tokens does each produce?
3
Qwen2-VL dynamic resolution vs AnyRes fixed grids: differences?
4
Why does high resolution drastically improve OCR/document ability? At what cost?
5
How does visual token count affect LLM attention cost (quadratic in sequence length)?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "High-Res & Dynamic Tokens"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardVLM Projector MLP/Q-FormerNext Card →Native Any-to-Any Multimodal

🔗 More Multimodal Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/Multimodal/card/high-res-dynamic-token
中文速览与面试要点

AnyRes 切块 / 动态 Token (High-Res & Dynamic Tokens)

定义: 高分辨率输入是 VLM 精读 OCR/文档/小物体的关键, 两种主流方案: ① LLaVA-1.5/1.6 的 AnyRes——把高分辨率图像按 336×336 切成 n_h n_w 个网格, 每个网格独立走视觉编码器各产出 576 个 token (ViT-14), 再拼接一个全局缩略图 (thumbnail) 保留整体语义, 总 token 数 N_ tokens (n_h n_w + 1) 576; ② Qwen2-VL 的动态分辨率——按原始宽高比在像素数区间 [256 28 28,\ 1280 28 28] 内动态生成视觉 token (每 28 28 像素 ≈ 1 个 token), 最少 256 / 最多 1280 个, token 数与图像面积成正比, 不再固定切块。 使用场景: 文档理解、OCR、截图问答、细粒度视觉定位; 面试常考「AnyRes 与动态 token 的区别」与「高分辨率为什么提升 OCR」。 解决的问题: 直接 resize 到 336×336 会丢失小字/小目标细节, 而固定超高分辨率又让 token 爆炸 (4K 图像全像素切块 token 上万, 远超 LLM 上下文); 切块方案在不损失分辨率的前提下控制成本——LLaVA-1.6 提供 1/2/4 网格档位 (约 672/1296/2304 token), Qwen2-VL 让 token 数随面积连续变化, 在细节保真与上下文长度之间做可配置权衡, 高分辨率带来 OCR/文档能力 10 个百分点级提升 (LLaVA-1.6 在 TextVQA 等基准上显著优于 1.5)。

核心要点

  • AnyRes 的原理?高分辨率图怎么切块、全局缩略图干什么用?
  • LLaVA-1.6 各档位 (1/2/4 网格) 各产生多少 visual token?
  • Qwen2-VL 动态分辨率与 AnyRes 固定切块的区别?
  • 为什么高分辨率能显著提升 OCR/文档能力?代价是什么?
  • 视觉 token 数如何影响 LLM 的 attention 成本 (随长度平方增长)?