Semantic Allocation in Ordered Bottlenecks: Predictive Residual Inference for Visual Representation Learning

Erik Ayari, Manuel Traub, Martin V. ButzarXiv 2026

TL;DR

PRIOR (Predictive Residual Inference for Ordered Representations) is a new framework for learning hierarchical visual codes where early tokens capture coarse structure and later tokens add fine-grained detail. By replacing traditional stochastic masking with an explicit hierarchical refinement objective, PRIOR achieves superior performance and more robust "ordered" behavior, particularly in challenging discrete and quantized representation settings.

What Problem Does This Paper Address?

Most deep learning models treat latent representations as fixed-size blocks. However, in real-world scenarios like mobile streaming or robotics, computational and communication resources vary. Ideally, a model should produce an "ordered" representation: a small prefix of the code should provide a useful coarse estimate, while additional tokens progressively refine the details.

Existing methods typically use Masking-Based Ordering Pressure (MBOP), such as "Tail Dropping," where the end of a token sequence is masked more frequently during training to force the model to put important information at the beginning. The authors identify three major flaws in this approach:

  1. Gradient Exposure: Later tokens are masked more often, meaning they receive fewer training updates, leading to diminishing returns as the budget increases.
  2. Implicit Ordering: MBOP lacks an explicit objective for refinement; it relies on gradient exposure as a proxy for importance.
  3. Brittleness: These methods struggle significantly with discrete or quantized tokens (like those used in VQ-VAEs), where gradient signals are already noisy.

Methods

The authors introduce PRIOR, which moves away from flat sequences and masking in favor of a pyramidal hierarchy.

  • Pyramidal Structure: The representation is decomposed into $L$ levels, where each level doubles the sequence length of the previous one.
  • Predictive Residual Inference: Instead of just masking tokens, PRIOR uses a series of predictor modules. Each level attempts to predict the features of the next, finer level. The encoder then only needs to store the residual error—the information that the coarser level couldn't predict.
  • Level-wise Objectives: Each level of the hierarchy is trained with its own downstream head (e.g., a contrastive loss or a decoder). A geometric weighting scheme ensures that even the finest levels receive a strong training signal, preventing the "gradient starvation" seen in MBOP.
Fig. 1. Visual summary of the three bottleneck architectures.

Datasets

The framework was evaluated on two distinct tasks:

  1. Contrastive Learning: Trained on MVImgNet2, a large-scale dataset of object tracks. The goal was to learn object representations that are useful for classification across different taxonomic levels (Coarse, Mid, Fine, and Class-level).
  2. Image Reconstruction: Trained on the FFHQ (Flickr-Faces-HQ) dataset using an autoencoding task to evaluate how well the ordered tokens reconstruct visual details.

Key Insights and Ideas

  • Separating Pressure from Exposure: PRIOR decouples the "pressure" to order information from the "exposure" to gradients. By giving every level a clear refinement task, the model avoids the underfitting common in the "tail" of MBOP sequences.
  • The Power of Residuals: By focusing each level on the unexplained information from the previous level, PRIOR naturally creates a coarse-to-fine progression. This mimics theories of human visual perception, where global structure is processed before local details.
  • Bridging the Discrete-Continuous Gap: One of the most striking findings is that PRIOR allows discrete (Categorical) and quantized (EMA-VQ) representations to perform nearly as well as continuous (Gaussian) ones. In MBOP, discrete tokens often fail to learn useful refinements at all.

Key Results

PRIOR consistently outperformed the MBOP baselines (Tail Dropping and Independent Tail-biased Dropout) across almost all metrics.

  • Classification Accuracy: In the contrastive task using Categorical tokens, PRIOR reached a peak class accuracy of 77.17%, compared to just 63.67% for the best MBOP baseline.
  • Robust Ordering: As shown in the budget-wise analysis, PRIOR's performance improves steadily and predictably as more levels are added. In contrast, MBOP models often saturate early or show inconsistent improvements.
  • Reconstruction Quality: On the FFHQ dataset, PRIOR showed visible detail improvements at every level. While MBOP-TD provided plausible low-budget reconstructions, it failed to add significant detail as the budget increased.
Fig. 2. Budget-wise linear-probe accuracy for class and coarse taxonomy levels. Shad- ing decomposes readout quality by utilized tokens up to the highest-performing prefix of the respective model; for PRIOR, a prefix corresponds to the first k concatenated levels.

Limitations and Future Work

While PRIOR shows great promise, the authors note a few areas for further exploration:

  • Architecture Scaling: The current study uses relatively small models (around 7-12 million parameters). Testing PRIOR in massive transformer architectures remains a next step.
  • Design Choices: The authors suggest that alternative weighting schemes for the level-wise losses or different per-level objectives could further optimize the hierarchy.
  • Hierarchical World Models: A promising direction is embedding PRIOR into world models for robotics, allowing agents to perform "task-adaptive perception"—using coarse representations for general navigation and requesting fine-grained details only when interacting with specific objects.

Summary updated

Abstract

Ordered bottlenecks aim to provide utility at flexible budgets by assigning coarse information to early tokens and task-relevant detail to later ones. Prior work, including tail dropping (TD), typically enforces ordering by means of a masking-based ordering pressure (MBOP): Late tokens are masked more frequently than early tokens and are therefore encouraged to store less essential fine details. We introduce predictive residual inference for ordered representations (PRIOR), a framework designed to address inherent weaknesses of MBOP. MBOP is prone to weak late-token utility because it lacks an explicit refinement objective and uses gradient exposure as a proxy for importance. Furthermore, representations may become particularly brittle in optimization-sensitive settings, such as when using discrete or quantized token representations. PRIOR replaces activation-rate control with log2-scaled levels and level-wise predictors. These predictors separate already explained from unexplained information, focusing each level on residual error. We compare PRIOR against MBOP-TD and independent tail-biased dropout (MBOP-ITD) in contrastive learning and image reconstruction tasks. Unlike the baselines, PRIOR learns well-ordered representations across experiments: low budgets provide coarse descriptors, while high budgets add refinements. Simultaneously, full-budget performance with PRIOR is higher in all but one experimental setting, where performance remains comparable. MBOP baselines are severely limited in discrete and quantized settings, while PRIOR approaches the performance of continuous counterparts. Taken together, these findings establish PRIOR as an effective framework for ordered representation learning.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Contrastive Learning of Ordered Object Codes (Categorical)PRIORclass accuracy77.17%+13.5 vs baselinelinear-probe · token-budget=63
Source quote
L296: 63 │ 86.07 │ 79.51 │ 68.43 │ 77.17\bestmark │ 78.89 │ 70.45 │ 56.59 │ 54.91 │ 79.45 │ 70.81 │ 57.88 │ 58.02
Contrastive Learning of Ordered Object Codes (EMA-VQ)PRIORclass accuracy69.42%+43.05 vs baselinelinear-probe · token-budget=127
Source quote
L305: 127 │ 81.57\bestmark │ 73.31\bestmark │ 61.86\bestmark │ 69.42\bestmark │ 67.33 │ 56.72 │ 37.05 │ 24.97 │ 66.75 │ 57.25 │ 35.63 │ 13.77
FFHQ · reconstructionPRIORSSIM0.7639+0.06 vs baselinesplit: val · token-budget=127
Source quote
L375: SSIM (\uparrow) │ PRIOR │ 0.5370 │ 0.6777 │ 0.7232 │ 0.7639
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
Contrastive Learning of Ordered Object Codes (Categorical)MBOP-TD baselineclass accuracy63.67%linear-probe · token-budget=127
Source quote
L297: 127 │ 88.01\bestmark │ 80.45\bestmark │ 70.37\bestmark │ 75.81 │ 81.73\secondmark │ 73.40\secondmark │ 60.97\secondmark │ 61.87 │ 79.73 │ 71.32 │ 58.51 │ 63.67\secondmark
Contrastive Learning of Ordered Object Codes (EMA-VQ)MBOP-ITD baselineclass accuracy26.37%linear-probe · token-budget=63
Source quote
L304: 63 │ 80.50 │ 70.98 │ 60.01 │ 64.63 │ 69.02\secondmark │ 58.56\secondmark │ 40.73\secondmark │ 26.37\secondmark │ 67.21 │ 54.57 │ 35.63 │ 14.91
FFHQ · reconstructionMBOP-ITD baselineSSIM0.6990split: val · token-budget=127
Source quote
L376: MBOP-ITD │ 0.4403 │ 0.6851 │ 0.6968 │ 0.6990
BibTeX
@misc{ayari2026semantic,
  author = {Erik Ayari and Manuel Traub and Martin V. Butz},
  title = {{Semantic Allocation in Ordered Bottlenecks: Predictive Residual Inference for Visual Representation Learning}},
  year = {2026},
  eprint = {2606.25232},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.25232},
}
Figure