What Varest is, in builder terms
Varest is an image-token compression method designed for multimodal models where images are converted to a sequence of tokens and then processed by a large language model (LLM) or decoder.
The constraint: you want to reduce the number of visual tokens to save compute, but not lose the semantics that matter for downstream tasks. Varest’s central idea is semantic fungibility:
Tokens inside a coherent semantic region (e.g., uniform background, a single object surface) can be merged into coarser representations, while object boundaries and literal text need fine-grained tokens [1].
Varest implements this with two stages:
- Pre-LLM semantic variable-resolution tokenization
Use object and text localizers to decide where you can safely merge tokens, and where you must keep high resolution [1].
- In-LLM relevance pruning via learned registers
Introduce special learned [REL] registers that, after some early decoder layers, decide which visual tokens can be dropped without significantly hurting performance [1].
The result: across three backbones and 13 benchmarks, Varest outperforms 15 baselines in mean performance retention at every evaluated budget, achieving 86.10–92.33% of full-token performance while using only 5.56% of the original layer-averaged image-token count [1].
For anyone building agentic systems around multimodal LLMs, Varest is essentially a recipe for slashing vision-side compute while preserving most capability, and doing it in a way that respects where the semantics actually live.
---
The core mechanisms, step by step
1. Semantic fungibility as a design principle
Most naive token compression methods treat all visual tokens equally: you downsample uniformly, cluster by similarity, or drop tokens based on simple attention statistics. Varest instead encodes two domain-specific observations about images [1]:
- Large areas within a single semantic region (like sky, wall, or a uniform object surface) don’t need per-patch tokens; you can summarize them.
- Object boundaries and text in the scene often carry the crucial information. Misrepresenting a boundary can merge two objects; losing text can destroy task performance.
Varest bakes this into both its tokenization and pruning:
- Inside regions: tokens are considered semantically fungible — safe to merge into fewer, coarser tokens.
- At boundaries and text: tokens are non-fungible — you keep more, finer tokens.
Everything else in the system is the machinery to enforce this bias under a compute budget.
2. Pre-LLM semantic variable-resolution tokenization
Before the image tokens ever reach the LLM or decoder, Varest reshapes the token grid [1].
Mechanism:
- Start from dense image tokens
Assume you have some backbone that turns an image into a dense grid or sequence of tokens. Varest is agnostic to the backbone, and is evaluated on three different ones [1]. The important point is: initially, you have a high token count.
- Run object and text localizers
Varest uses:
- An object localizer to find object regions.
- A text localizer to find regions with literal text (e.g., scene text) [1].
These localizers define a segmentation of the image into:
- Object regions.
- Text regions.
- Background / non-critical regions.
- Variable-resolution merging based on semantics
Using the localizer outputs, Varest merges tokens with two competing goals [1]:
- Preserve spatial coverage: all regions of the image should still be represented by some token(s).
- Preserve fine detail where needed:
- At object boundaries: avoid merging across boundary lines.
- In text regions: maintain higher resolution so individual characters and words remain legible to the model.
Practically, this implies:
- Aggressive merging (larger “super-tokens”) in uniform, interior parts of objects or background.
- Minimal or no merging near object edges and in text patches.
- Output: a variable-resolution token map
The result is a sequence of image tokens where:
- Some tokens correspond to larger spatial regions (background, object interiors).
- Others correspond to smaller regions (boundaries, text).
This pre-LLM compression directly reduces the length of the visual input sequence.
From an orchestration perspective, this is a front-end image-token adapter: you plug it between your image encoder and the multimodal decoder, and it changes the tokenization scheme to respect semantic structure.
3. In-LLM relevance pruning with [REL] registers
Even after smart tokenization, not all tokens remain relevant once the decoder has processed them for a few layers. Varest therefore adds a second compression stage inside the decoder [1].
Mechanism:
- Augment the model with learned
[REL]registers
Varest introduces dedicated learned registers, denoted [REL], that are trained to represent relevance information about visual tokens [1]. Conceptually:
- These registers live in the decoder.
- They interact with visual tokens during early layers.
- Early decoder processing
Varest lets image tokens and [REL] registers pass through some number of early decoder layers. During this phase, the model builds a joint representation where the registers can pick up signals about which visual tokens matter for the current context/task [1].
Key point: relevance isn’t determined purely from the image; it depends on how the decoder starts to process the multimodal input (image + text), which may include prompts or instructions.
- Relevance-based pruning of visual tokens
After this early processing:
- The model uses the
[REL]registers to prune visual tokens — dropping tokens deemed low relevance [1]. - Remaining tokens continue through the rest of the decoder layers.
- Layer-averaged token count reduction
Because tokens are only pruned after “early” layers, the layer-averaged number of image tokens is significantly reduced across the whole decoder. Varest reports only 5.56% of the original layer-averaged image-token count, while still retaining 86.10–92.33% of full-token performance across evaluated settings [1].
Operationally, these learned registers act as an internal, task-aware gate on visual context length, rather than a static heuristic.
4. Training across budgets: one checkpoint per backbone
A typical headache for token compression in production is managing multiple model variants for different cost/quality trade-offs.
Varest addresses this by training across budgets, enabling one checkpoint per backbone that works across multiple compression levels [1].
Mechanism, conceptually:
- During training, the model is exposed to multiple token budgets:
- Different levels of pre-LLM merging.
- Different levels of in-LLM pruning.
- The model learns to be robust to these variations and to make effective use of whatever budget is given at inference time.
- As a result, you don’t need separate models for each budget; you can run the same checkpoint and dial budget up or down within the trained range [1].
For orchestration, this means:
- The adapter + decoder form a single model per backbone.
- A runtime budget parameter controls how aggressively to merge/prune tokens.
- Your agentic system can adjust this based on task importance, latency constraints, or available hardware — without model-swapping.
---
How it fits into a multimodal stack
In a vision-language pipeline, Varest sits between your raw pixel inputs and the core decoding layers:
- Image input
Raw image from the user or environment.
- Backbone / visual encoder
Converts the image into dense feature tokens. Varest is evaluated on three different backbones, but the abstract does not name them [1].
- Varest pre-LLM module
- Runs object and text localizers.
- Applies semantic variable-resolution merging.
- Outputs a shorter sequence of image tokens with variable spatial granularity [1].
- Multimodal decoder (LLM)
- Takes text tokens plus compressed image tokens.
- Contains
[REL]registers that interact with image tokens in early layers [1].
- In-LLM pruning
- After a few early decoder layers, uses
[REL]registers to prune visual tokens [1]. - Remaining tokens continue normally.
- Text output or downstream actions
The final decoder output is used for answering questions, planning, or controlling agents.
Key integration points for a builder:
- Localizers: you need object and text localization components compatible with your backbone.
- Budget control: expose knobs for:
- Pre-LLM merge aggressiveness.
- In-LLM pruning thresholds.
- Checkpoint management: use a single Varest-style checkpoint per backbone, trained across budgets, and configure different runtime policies per agent or per task [1].
---
Why it matters for agentic systems
Varest’s numbers are stark: 5.56% of the original layer-averaged image-token count with 86.10–92.33% of full-token performance on 13 benchmarks, outperforming 15 baselines across all evaluated budgets [1].
For multimodal agents, this translates to:
- Lower per-call latency and cost
Vision tokens often dominate context length. Cutting them by ~20× at the layer-averaged level, while keeping most quality, directly reduces compute per step [1].
- More headroom for long-horizon workflows
If your agents do multi-step reflection, tool use, or recursive calls on visual data, every saved token compounds across calls.
- Better scaling on constrained hardware
Varest targets the hard constraint that verifiable or tool-heavy agents face: expensive model-generated “rollouts” in environments with images. Less vision compute means you can allocate more capacity to reasoning or memory.
- Graceful degradation across budgets
Because Varest is trained across budgets and uses semantics to decide what to keep, quality should degrade more gracefully than uniform downsampling as you squeeze the budget — though the exact degradation curves are not documented in the abstract [1].
From a systems perspective, the two-stage design is particularly attractive:
- Pre-LLM tokenization can be cached and reused if the same image is referenced multiple times by an agent.
- In-LLM pruning is context-sensitive, letting you drop tokens that turn out to be irrelevant for the particular instruction or follow-up question.
---
Failure modes and how to think about them
The abstract does not enumerate failure modes, but several are implied by the design:
- Localizer errors
- If the object or text localizers miss a region, Varest may over-merge those tokens, losing critical detail [1].
- In an agentic setting, this could manifest as systematically missing small objects or reading text incorrectly.
- Boundary sensitivity
- The method relies on preserving fine detail at object boundaries [1]. Poor boundary detection can cause merging across objects, conflating them in the representation.
- Task mismatch
- Varest is evaluated on 13 benchmarks, but these are not specified in the abstract [1]. Tasks that depend heavily on fine-grained textures or subtle geometric cues in non-text, non-boundary regions may be more sensitive to aggressive merging and pruning.
- Budget extrapolation
- The model is trained across some set of budgets [1]. Running it at more extreme compression than it saw during training is likely to fail sharply, since the behavior under those conditions is unconstrained by the training objective.
If you adapted similar ideas:
- Keep the ability to dynamically disable or relax compression for high-stakes queries.
- Monitor for systematic error patterns that correlate with specific visual features (small text, dense clutter, fine patterns).
---
What to watch next
Given only the abstract, several directions are particularly relevant for builders:
- Localizer quality vs. overhead
The trade-off between stronger localizers (better semantic maps, more accurate boundaries) and their compute cost is central to real-world deployment, but the abstract does not quantify this [1].
- Generalization across backbones and tasks
We know Varest works across three backbones and 13 benchmarks, beating 15 baselines [1]. The specific backbones, benchmark types, and where it gains or loses the most would inform whether it is safe for your use cases.
- Runtime budget control behaviors
Training across budgets and using one checkpoint per backbone is a strong systems advantage [1]. How finely you can tune the budget at inference and how monotonic the trade-off is are crucial practical questions.
- Combination with other efficiency methods
Varest focuses on image-token compression. The story when you combine it with attention sparsification, quantization, or KV-caching for recurrent visual reasoning isn’t documented but will matter in full-stack agents.
---
What is not documented
From the abstract of Varest [1], several important implementation and empirical details are not established:
- The specific architectures of the three backbones and the multimodal decoder.
- The types of benchmarks (e.g., which datasets or task categories) among the 13 used for evaluation.
- The nature of the 15 baselines Varest is compared against (what methods they implement).
- Exact latency or FLOP reductions and how they decompose between pre-LLM tokenization and in-LLM pruning.
- How object and text localizers are implemented, trained, or integrated (e.g., whether they are frozen or co-trained).
- The precise mechanism and architecture of the
[REL]registers inside the decoder, including how they score or filter tokens. - Detailed training protocol for “training across budgets”: what range of budgets is used, how budgets are sampled during training, and how budget is specified at inference.
- Any per-task breakdown of performance retention, robustness metrics, or failure analyses beyond the mean performance retention figures.
- How Varest behaves under distribution shift or on tasks that differ from the 13 benchmarks used for evaluation.
All quantitative and architectural details beyond what is stated in the abstract are unspecified and would require consulting the full paper.