Structure over Pixels: Learning Variable-Length Visual Programs

TL;DR

STROP improves structural scene representation by learning variable-length visual programs.

cs.CV 🔴 Advanced 2026-05-27 7 views
Piotr Wyrwiński Kacper Dobek Krzysztof Krawiec
visual programs discrete visual tokenizer structural representation deep learning computer vision

Key Findings

Methodology

STROP is a discrete visual tokenizer architecture that optimizes program length through a four-phase curriculum. It leverages frozen DINOv3 features for local rate-distortion probes, optimizing a length head to estimate active prefix length. By bypassing pixel-level reconstruction gradients, the codebook is shaped entirely by the quality of higher-level latent representations.

Key Results

  • STROP achieved a cosine similarity of 0.855 and R2 of 0.734 on the COCO dataset, aligning well with DINOv3 features.
  • On ImageNet, the STROP-M variant achieved a cosine similarity of 0.851 and R2 of 0.727, demonstrating excellent compression capability.
  • In semantic segmentation tasks, STROP achieved 67.5% mIoU on the PASCAL VOC 2012 dataset.

Significance

STROP provides a novel approach to scene structural representation by converting images into variable-length discrete code sequences. It optimizes high-level latent representation quality without relying on pixel-level reconstruction, addressing the issue of existing methods focusing on texture rather than structure.

Technical Contribution

STROP's technical contributions include its ability to generate variable-length visual programs, trained with frozen DINOv3 features to avoid pixel-level reconstruction loss. Its length head design allows for estimating program length in a single forward pass, significantly improving computational efficiency.

Novelty

STROP is the first to combine variable-length visual programs with structural scene representation, differing from previous fixed-length or post-hoc search-based tokenizers.

Limitations

  • STROP may face challenges in accurately estimating program length in highly complex scenes.
  • On certain datasets, code reuse rates are low, potentially affecting representation efficiency.

Future Work

Future research could explore STROP's application in more complex scenes and improve the accuracy of its program length estimation.

AI Executive Summary

In the field of computer vision, existing visual tokenizers often rely on fixed-length code sequences, which are inadequate for effectively representing the structure of complex scenes. STROP offers a new solution by learning variable-length visual programs. Its core technology includes training with frozen DINOv3 features and optimizing a program length estimation head, enabling the generation of high-quality structural representations without relying on pixel-level reconstruction.

Experimental results show that STROP achieves excellent performance across multiple datasets. For instance, it attained a cosine similarity of 0.855 and an R2 value of 0.734 on the COCO dataset, demonstrating outstanding compression capability and representation quality. Additionally, in semantic segmentation tasks, STROP achieved 67.5% mIoU on the PASCAL VOC 2012 dataset.

While STROP has made significant advancements in structural representation, the accuracy of program length estimation in highly complex scenes still needs improvement. Future research could further optimize its program length estimation methods and explore its application in more complex scenarios.

Deep Analysis

Background

The field of computer vision has been exploring how to more effectively represent and understand structural information in images. Traditional methods often rely on pixel-level reconstruction, which performs well in texture representation but lacks in structural representation. Recently, discrete visual tokenizers (DVTs) have provided a new method of converting images into discrete code sequences, offering new possibilities for structural representation.

Core Problem

Existing visual tokenizers often rely on fixed-length code sequences, unable to dynamically adjust according to scene complexity. This limitation leads to an inability to effectively represent structural information when handling complex scenes. Additionally, existing methods often emphasize pixel-level reconstruction, neglecting the expression of structural information.

Innovation

STROP addresses the limitations of fixed-length tokenizers by learning variable-length visual programs. Its innovations include training with frozen DINOv3 features and optimizing a program length estimation head, enabling the generation of high-quality structural representations without relying on pixel-level reconstruction.

Methodology

  • �� Train with frozen DINOv3 features to avoid pixel-level reconstruction loss.

  • �� Optimize program length estimation head through a four-phase curriculum.

  • �� Use a discrete visual tokenizer architecture to convert images into variable-length discrete code sequences.

Experiments

Experiments were conducted on multiple datasets, including COCO, ImageNet, and PASCAL VOC 2012, evaluating STROP's performance in semantic segmentation and structural representation tasks. Metrics used include cosine similarity, R2 value, and mIoU.

Results

STROP achieved a cosine similarity of 0.855 and R2 of 0.734 on the COCO dataset, demonstrating excellent compression capability. On the PASCAL VOC 2012 dataset, its semantic segmentation mIoU reached 67.5%.

Applications

STROP can be used in scenarios requiring efficient structural representation, such as autonomous driving, robotic navigation, and medical image analysis. Its ability to generate variable-length visual programs makes it particularly effective in complex scenes.

Limitations & Outlook

While STROP has made significant advancements in structural representation, the accuracy of program length estimation in highly complex scenes still needs improvement. Additionally, low code reuse rates may affect representation efficiency.

Plain Language Accessible to non-experts

Imagine you're cooking in a kitchen. Traditional visual tokenizers are like using a fixed number of ingredients for every dish, regardless of the type and complexity of the dish. STROP, on the other hand, is like a smart chef who adjusts the type and amount of ingredients based on each dish's needs. This approach not only enhances the flavor of the dishes but also saves on ingredient usage.

ELI14 Explained like you're 14

Imagine you're playing a game where you need to choose different weapons for different levels. Traditional methods are like using the same weapon for every level, while STROP is like a smart player who picks the most suitable weapon based on the level's difficulty and enemy type. This approach makes it easier to win and makes the game more fun!

Glossary

Discrete Visual Tokenizer (DVT)

A model that converts images into discrete code sequences, facilitating structural representation.

Used to generate variable-length visual programs.

DINOv3 Features

Frozen features used for image representation, providing high-level structural information.

Core features used to train STROP.

Cosine Similarity

A metric for measuring the similarity between two vectors, with higher values indicating greater similarity.

Used to evaluate STROP's alignment with DINOv3 features.

Program Length Estimation Head

A component in STROP used to estimate the length of visual programs.

Optimized through a four-phase curriculum.

Semantic Segmentation (mIoU)

A metric for evaluating the accuracy of image segmentation, with higher values indicating better segmentation performance.

Used to evaluate STROP's performance in segmentation tasks.

Open Questions Unanswered questions from this research

  • 1 How to improve the accuracy of program length estimation in highly complex scenes? Existing methods may not be precise enough for complex scenes.
  • 2 How to increase code reuse rates to improve representation efficiency?

Applications

Immediate Applications

Autonomous Driving

STROP can be used for scene recognition in autonomous driving, enhancing vehicles' understanding of complex environments.

Medical Image Analysis

In medical imaging, STROP can help identify complex structures, improving diagnostic accuracy.

Long-term Vision

Intelligent Robotics

STROP's structural representation capabilities can be used to develop smarter robots, enhancing their navigation and operation abilities in complex environments.

Abstract

Discrete visual tokenizers translate images into ordered sequences of codes, providing a natural representation for structural description of scenes. Yet existing adaptive tokenizers either require post-hoc search or select among a discrete set of pre-trained rates, rather than learning a continuous per-image sequence length coupled to the model and scene, and they typically train against pixel reconstruction, emphasizing texture rather than structure. We propose STROP, a discrete visual tokenizer architecture that forms structural scene representations and simultaneously learns how long an image's visual program should be. Using a four-phase curriculum supervised by local rate--distortion probes against frozen DINOv3 features, STROP optimizes a dedicated length head that estimates the active prefix length in a single forward pass. By bypassing pixel-level reconstruction gradients, the codebook is shaped entirely by the quality of higher-level latent representations. Program length grows with scene complexity, and signs of compositional structure emerge both in downstream dense-prediction transfer and in direct inspection of the learned code vocabulary.

cs.CV cs.LG