Contrastive Touch-to-Touch Pretraining

Samanta Rodriguez, Yiming Dou, William van den Bogert, Miquel Oller, Kevin So, Andrew Owens, Nima Fazeli

TL;DR

Contrastive Touch-to-Touch Pretraining (CTTP) introduces a self-supervised framework that aligns entirely different tactile sensor modalities (like RGB-based GelSlim and depth-based Soft Bubble sensors) into a unified, shared embedding space. By learning to capture only the shared physical properties of a grasped object, CTTP enables "zero-shot" transfer of downstream robotic manipulation models from one sensor to another without any additional training or data collection.

What Problem Does This Paper Address?

Unlike computer vision and audio, which enjoy highly standardized data formats, robotic tactile sensing is a wild west of hardware designs. For example, a GelSlim sensor uses an internal RGB camera to track the color and surface deformation of an illuminated elastomer. In contrast, a Soft Bubble sensor utilizes an internal depth camera inside a flexible, air-filled membrane.

Because their raw outputs, compliance, and contact geometries are fundamentally different, an AI model trained to estimate object pose or classify a tool using a GelSlim sensor cannot function if deployed on a Soft Bubble sensor. This sensor-specificity creates a massive bottleneck, forcing researchers to laboriously re-collect datasets and retrain models from scratch for every new hardware iteration.

Methods

Inspired by the success of vision-language models like CLIP, the authors propose Contrastive Touch-to-Touch Pretraining (CTTP).

Overview of the CTTP framework showing data collection, embedding alignment, and downstream task deployment.

The core idea is to force different sensors to agree on the underlying physical reality of a grasp:

  1. Paired Data Collection: A robot grasps the same object in the exact same configuration using both a GelSlim and a Soft Bubble sensor.
  2. Contrastive Learning: These matching touch signals form a positive pair $(t_1, t_2)$. Touch signals from different objects or significantly different grasp configurations serve as negative pairs.
  3. Shared Latent Space: Standard ResNet-50 encoders map the tactile signatures into a 64-dimensional latent space. By optimizing the InfoNCE loss, the network minimizes the distance between positive pairs while pushing negative pairs apart, effectively stripping away sensor-specific artifacts.

Datasets

The authors collected a custom dataset using a robotic setup equipped with both pairs of tactile sensors. The dataset features a diverse set of objects (tools) varying in shape and size.

To rigorously test generalization, the data was split into two evaluation setups:

  • Unseen Grasps: Testing on novel grasp configurations of tools that were seen during representation learning.
  • Unseen Tools: Testing on entirely novel tools that were completely excluded from the pretraining phase.

Key Insights and Ideas

  • Sensor-Agnostic Representations: The paper proves that contrastive learning can successfully bridge completely disparate physical modalities (RGB vs. Depth) and mechanical properties (rigid elastomer vs. air-filled membrane).
  • The Batch Size Trade-off: The authors discovered a fascinating nuance in batch size selection. While increasing the batch size from 16 to 128 improves tool classification accuracy, pushing it further to 256 causes the sensors to lose alignment in the latent space. This happens because a larger batch size increases the ratio of negative-to-positive samples, causing the model to over-segregate tool classes at the expense of cross-sensor alignment.
t-SNE visualization demonstrating how CTTP clusters tools together while blending sensor modalities, alongside the impact of batch size.

Key Results

The learned embeddings were evaluated on two downstream tasks: tool classification and 3D in-hand pose estimation ($y, z, \theta$).

  • Zero-Shot Cross-Sensor Classification: When downstream models were trained on one sensor's embeddings and evaluated on the other, baseline models (like ImageNet-pretrained or T3 models) collapsed to near-random chance. CTTP, however, maintained a high accuracy of over 80%.
  • In-Hand Pose Estimation: In cross-sensor testing on unseen tools, CTTP maintained a tight orientation error ($\theta$) of $-0.01^\circ \pm 4.39^\circ$, whereas the best baseline suffered a massive error of $-2.67^\circ \pm 18.47^\circ$.
  • Real-World Peg Insertion: To prove practical viability, the authors trained a tool classification and pose estimation model purely on Soft Bubble data, but deployed it on a real robot using GelSlim sensors to perform an open-loop peg-in-hole task.
Real-world peg insertion task comparing CTTP against the T3 baseline.

CTTP achieved a 18/30 success rate, vastly outperforming the second-best baseline (T3), which only managed a 5/30 success rate.

Limitations and Future Work

While highly promising, the method currently has a few limitations:

  • Scale of Modalities: The framework was only validated on two vision-based tactile sensors. It remains to be seen how well it scales when aligning more than two sensors simultaneously, or when integrating non-vision tactile hardware (e.g., piezoresistive or capacitive arrays).
  • Data Collection Overhead: Generating the initial paired dataset requires precise robotic positioning to ensure the grasp configurations are truly identical across both sensors.

For future work, the authors suggest exploring cross-modal touch supervision (e.g., aligning touch directly with vision or language) and developing more advanced data augmentation strategies tailored for tactile data.

Summary updated

BibTeX
@inproceedings{rodriguez2025contrastive,
  author = {Samanta Rodriguez and Yiming Dou and William van den Bogert and Miquel Oller and Kevin So and Andrew Owens and Nima Fazeli},
  title = {{Contrastive Touch-to-Touch Pretraining}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  url = {https://openreview.net/forum?id=SZMlf338lC},
}
Figure