ViTaPEs Lets Robots Feel Textures and Transfer Across Sensors Without Retraining
ViTaPEs introduces two-stage positional encodings for vision-touch transformers, achieving zero-shot generalization across sensors without relying on large pretrained vision-language models
ProTakeaways
- ViTaPEs is a new transformer architecture for fusing vision and tactile sensor data, published in TMLR.
- Its core innovation is a two-stage positional encoding: modality-specific local PEs within each stream, plus a shared global PE on the joint token sequence before attention.
- Achieves 80.1% category accuracy, 94.8% hardness, 89.7% texture on TAG dataset, outperforming all baselines including VLM-based methods.
- Zero-shot transfer to unseen tactile sensors scores 65.2%, beating UniTouch (33.2%) without relying on frozen VLM backbones.
- Grasp success prediction hits 70.7% on a ~10K sample dataset, outperforming all baselines including VLM-initialized models.
- Runs at 100 pairs/second on an RTX 4090; code and models coming soon at the project page.
Robots that can both see and feel their environment are far more capable than those relying on vision alone. Texture, surface compliance, and contact force are things cameras simply cannot measure. Yet fusing visual and tactile signals in a principled way has remained an open problem: most existing methods either freeze a pretrained vision model and bolt tactile data onto it, or train task-specific models that fail to generalize. A new paper published in Transactions on Machine Learning Research proposes a cleaner solution.
ViTaPEs (Visuotactile Positional Encodings) is a transformer-based architecture that learns joint representations from paired camera images and tactile sensor images. Its central insight is deceptively simple: where you inject positional information into a transformer matters as much as what positional encoding you use. By introducing a two-stage positional injection scheme, the model achieves state-of-the-art results on material recognition, object identification, and robotic grasp prediction, while also generalizing zero-shot to sensors it has never seen before.
Why existing approaches fall short
Tactile sensing provides local essential information complementary to visual perception, such as texture, compliance, and force. The challenge is that these two modalities live in very different spaces. A camera captures a global, scene-level view; a tactile sensor captures a tiny, high-resolution deformation map at the contact point. Naively concatenating their features and passing them through a transformer ignores this fundamental asymmetry.
Current research in this field often relies on large pretrained visual or vision-language models (VLMs), where the visual encoder is frozen and only the tactile encoder is trained to align with it. This can limit expressivity and assumes that visual representations are optimal for tactile alignment, hindering joint representation learning. Models like UniTouch and TVL follow this pattern. The result is a tactile encoder that is permanently constrained to live in a representational space designed for language and images, not touch.
A second, less-discussed problem is positional encoding. Standard transformers are permutation-equivariant, meaning they have no built-in sense of spatial order. Positional encodings fix this, but existing methods do not study positional encodings, thereby overlooking the multi-stage spatial reasoning needed to capture fine-grained visuotactile correlations.
The two-stage positional trick
ViTaPEs processes visual and tactile inputs as separate token streams, each divided into 16x16 patches (196 patches per modality at 224x224 resolution). The key innovation is a deliberate, two-stage injection of positional information:
- Local (modality-specific) positional encodings: Each stream gets its own learned positional encoding added to its tokens before any cross-modal mixing. This preserves the spatial geometry of each sensor independently. The visual PE learns a grid-like pattern matching camera-based spatial structure; the tactile PE learns higher-frequency patterns reflecting localized contact deformations.
- Global positional encoding: After the two token sequences are concatenated and passed through a shared non-linear projection head (a two-layer MLP with LeakyReLU), a single learned global PE is added to the joint sequence immediately before self-attention. This gives both modalities a shared positional vocabulary at the exact moment cross-modal interaction occurs.
The placement of the local PE before the non-linear projection head is structurally intentional. Injecting local PEs before the projection head allows the optimizer to decouple the learning of non-linear geometric spatial warping from the addition of shared positional signals on the joint sequence immediately before attention. Ablations confirm this: moving the local PE to after the projection head drops TAG Category accuracy from 75.9% to 71.3% and zero-shot transfer from 65.2% to 45.7%.

Once positionally encoded, the concatenated token sequence enters a standard ViT encoder. The self-attention mechanism naturally handles both within-modality and cross-modal interactions: visual tokens attend to tactile tokens and vice versa, all within a single forward pass. No separate cross-attention module is needed.
Benchmarks and what they reveal
The team evaluated ViTaPEs on four real-world datasets covering a range of tasks:
- Touch-and-Go (TAG): ~13,900 tactile interactions across 20 material categories, used for material category, hardness, and texture classification.
- ObjectFolder Real (OF-Real): 50 common household objects with GelSight tactile readings, used for object identification.
- YCB-Slide: 21 YCB objects with DIGIT sensor images under varying lighting, used as a cross-sensor transfer benchmark.
- Grasp dataset (Calandra et al.): ~10K parallel-jaw gripper trials with RGB + tactile data, used for grasp success prediction.
Under supervised training, ViTaPEs reaches 80.1% in Category, 94.8% in Hardness, and 89.7% in Texture, largely outperforming competing approaches. On object identification, it achieves 92.7% top-1 accuracy. On YCB-Slide, used as a cross-sensor transfer test, ViTaPEs attains 96.9% top-1 accuracy under SSL, outperforming the next-best method by over 5%.
The zero-shot and linear probe transfer results are where ViTaPEs really separates itself. Trained on TAG and evaluated directly on OF-Real without any fine-tuning, ViTaPEs reaches 68.1% linear and 65.2% zero-shot, outperforming UniTouch (61.2% / 33.2%) and other transformer baselines. This is a meaningful result because TAG and OF-Real use different tactile sensors with different gel materials and illumination conditions, creating a real domain shift.
For robotic grasping, ViTaPEs achieves the best performance across all reported settings, reaching 70.7% with SSL fine-tuning, 69.3% with linear probing, and 60.4% in the zero-shot transfer setting. These gains are especially notable because the grasp dataset only contains around 10K samples, a regime where strong inductive biases matter most.
What the ablations actually prove
The paper's ablation study is unusually thorough. The team tested every combination of learnable vs. sinusoidal PEs, with and without each PE stage, and with each modality removed. Key findings:
- Using sinusoidal (fixed) encodings instead of learned ones drops accuracy to 76.2-76.5%, versus 80.1% for fully learnable PEs.
- Removing either the local or global PE stage drops accuracy to 76.9-77.2%, confirming both stages contribute independently.
- Removing vision entirely drops accuracy to 70.5%; removing touch drops it to 63.8%. Both modalities are necessary.
- A linearized projection head (same parameter count, no activation) scores 72.4%, isolating the non-linearity as the source of gain, not just added capacity.
The model is also robust to missing tactile data at inference. ViTaPEs preserves near-optimal performance with up to 40% missing tactile input and retains a 1.4% margin over VTT and RoPE even when all tactile pixels are removed. This matters for deployment: tactile sensors can fail or lose contact, and a model that degrades gracefully is far more practical.
Practical scope and limitations
ViTaPEs runs at 10 ms per visual-tactile pair on an NVIDIA RTX 4090, equivalent to 100 pairs per second throughput. The balanced 30.6M parameter model used in the main experiments trains in 62.5 GPU-hours on an A100, comparable to VTT (58.9h) and faster than RoPE (66.9h). The architecture scales predictably: going from the minimal 6.7M variant to the extended 90.7M variant yields an 18% accuracy gain on TAG Category.
The practical use cases are clear. ViTaPEs is well-suited for:
- Robotic manipulation systems that need to distinguish material properties (hardness, texture, compliance) from a single grasp
- Quality inspection pipelines combining camera and tactile sensor data
- Any setting where a model trained on one tactile sensor hardware must transfer to a different one without retraining
- Low-data regimes where pretrained visuotactile representations can be fine-tuned with a small task-specific dataset
The main limitations are sensor scope and scale. The architecture's reliance on camera-based tactile sensors like GelSight and DIGIT introduces biases, potentially limiting generalizability to other platforms with different resolutions or properties. The scaling study is also capped at 90M parameters due to compute budget, leaving open questions about whether larger ViT variants (Base, Large) would further improve performance.
Code and model weights are listed as coming soon on the project page. The paper itself is published in TMLR and reviewed openly on OpenReview. For the broader field, ViTaPEs makes a compelling case that the right inductive bias, carefully placed positional signals rather than ever-larger pretrained backbones, can unlock cross-sensor generalization that VLM-based approaches still struggle to achieve.