Recasting Generic Pretrained Vision Transformers As Object-Centric Scene Encoders For Manipulation Policies

Jianing Qian, Anastasios Panagopoulos, Dinesh Jayaraman · DOI

Abstract

While generic Vision Transformers (ViTs) like DINOv2 serve as powerful foundation models for many vision tasks, they often struggle in robotics applications compared to specialized encoders trained on manipulation data. This paper introduces SOFT (Scene Objects From Transformers), a zero-training inference-time wrapper that extracts object-centric representations from generic ViTs. By leveraging internal attention mechanisms rather than final-layer activations, SOFT identifies and describes individual objects within a scene. Experiments across simulated and real-world tasks demonstrate that SOFT allows generic models to match or exceed the performance of state-of-the-art robotics-specific representations, suggesting that the perceived deficiency of generic models in robotics is primarily an interface problem rather than a lack of internal knowledge.

Introduction

In computer vision, "foundation models" such as CLIP or DINOv2 have become the gold standard, providing robust features across diverse tasks due to their massive pre-training datasets. However, in the field of robotics, these generic models often underperform. This has led the community to develop specialized encoders trained specifically on human manipulation videos. While effective, these robotics-specific models lack the data diversity and broad generalization capabilities of their generic counterparts.

This paper identifies a core structural issue: standard practice treats a ViT as a black box that outputs a single global activation vector. For manipulation tasks—such as picking up a specific cup in a cluttered environment—a global summary is insufficient. Robots require an object-centric view that identifies where objects are, what they look like, and how they relate to the environment. SOFT addresses this by demonstrating that the necessary object-level information is already present within generic transformers; it simply needs to be extracted correctly.

The SOFT Framework

SOFT (Scene Objects From Transformers) is an inference-time procedure that decomposes an image into a set of "slots" representing distinct objects without requiring any additional training. The pipeline consists of four primary stages:

  1. Attention Rollout: Rather than relying solely on the final layer, SOFT employs "attention rollout" to track the flow of information across all transformer layers. This process generates "input-wise attentions," which reveal semantic relationships between different image patches.
  2. Background Removal: To isolate manipulatable objects, SOFT uses a small set of reference frames from the task domain to identify and mask out static background elements, such as the floor or the robot's base.
  3. Spectral Clustering: The refined attention weights are treated as a similarity matrix. By applying spectral clustering, SOFT automatically groups image patches into a variable number of clusters, each representing a distinct object-like entity.
  4. Object Description: For each identified cluster, SOFT performs average-pooling on the transformer's internal features to create a "slot vector."

To integrate these slots into a control policy, the system uses Hungarian matching. This aligns the objects detected in the current frame with those in a reference demonstration, ensuring the policy receives a consistent and ordered input stream.

Experimental Evaluation

The authors evaluated SOFT across a diverse range of environments, encompassing both simulation and reality:

  • Shapestacks: A synthetic dataset focusing on the stability of geometric configurations.
  • RLBench (PickUpCup & PutRubbishInBin): Standardized tabletop manipulation tasks.
  • B&O: A real-world dataset involving the pushing of deformable toy objects.
  • Meta-World (MW-Hammer): A tool-use benchmark.
  • Real-Tabletop: A cluttered, real-world kitchen setting requiring the pick-and-place of toy fruits.

Key Results

The results indicate that SOFT significantly enhances the utility of generic models:

  • Performance Gains: In the RLB-PickUpCup task, a standard DINOv2 model using global features achieved a success rate of only 10-13%. By applying the SOFT wrapper to the same DINOv2 backbone, the success rate increased to 45%.
  • Competitive Benchmarking: SOFT(DINOv2) performed on par with specialized models like LIV (49.3%) and R3M (52.3%), despite the latter being trained for thousands of hours specifically on robotics data.
  • Sample Efficiency: Policies utilizing SOFT learned more rapidly, achieving higher success rates with fewer demonstrations than those using "flat" feature baselines.
  • Real-World Robustness: In cluttered real-world settings, SOFT achieved a 40% success rate, matching the performance of specialized robotics encoders.

Discussion and Insights

The success of SOFT yields several critical insights for robot learning:

  • Attentions vs. Activations: Internal attention weights contain rich, structural information about objects that is often discarded in final-layer activations. Recasting how we interpret transformer outputs can unlock object-centricity "for free."
  • Zero-Training Generalization: As a wrapper, SOFT inherits the generalization capabilities of its backbone (e.g., DINOv2). It functions out-of-the-box in unseen domains where specialized models often fail.
  • The Interface Problem: The performance gap between generic and robotics-specific models appears to be an interface issue. By providing the policy with object-level slots rather than global vectors, generic models become highly effective for manipulation.

Limitations and Future Work

SOFT currently relies on a small set of reference images (approximately 30) for effective background subtraction. Additionally, the reliance on Hungarian matching to a reference demonstration can introduce sensitivity to the choice of that reference. The computational overhead of spectral clustering and CRF refinement also adds latency compared to simple forward passes.

Future research may explore integrating SOFT into policy architectures that naturally handle unordered sets, such as Graph Neural Networks (GNNs) or specialized Transformers, potentially eliminating the need for explicit slot matching and further streamlining the pipeline.

Summary updated

BibTeX
@inproceedings{qian2024recasting,
  author = {Jianing Qian and Anastasios Panagopoulos and Dinesh Jayaraman},
  title = {{Recasting Generic Pretrained Vision Transformers As Object-Centric Scene Encoders For Manipulation Policies}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  doi = {10.1109/icra57147.2024.10610131},
}
Figure