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) bridges the gap between heterogeneous tactile sensors by learning a shared, sensor-agnostic latent space directly from paired touch data. By training on identical object grasps captured with vastly different sensors (GelSlim and Soft Bubble), CTTP enables zero-shot cross-sensor transfer for downstream manipulation tasks like tool classification and in-hand pose estimation without requiring manual annotations.

What Problem Does This Paper Address?

Vision-based tactile sensors give robots a sense of touch, but their hardware designs vary dramatically. An elastomer-based sensor like GelSlim measures shear and high-resolution contact geometry using an RGB camera under directional LED lighting. In contrast, a compliant sensor like Soft Bubble uses an internal depth camera to measure large deformations of an air-filled membrane.

Because tactile signatures are tightly coupled to sensor mechanics, models trained on one sensor almost completely fail when deployed on another. Prior attempts to build universal representations have relied either on cross-modal vision-tactile alignment or heavy supervision (e.g., class labels and ground-truth 3D poses). This paper asks: Can we learn a shared tactile embedding across disparate touch sensors using self-supervised contrastive learning alone?

Methods

CTTP adapts contrastive learning (specifically the InfoNCE loss) directly to cross-sensor tactile pairs:

  • Positive Pairs: Tactile readings $(t_1, t_2)$ captured when two different sensors grasp the exact same object in identical workspace configurations.
  • Negative Pairs: Touch readings from different objects, or significantly different grasp poses of the same object.
  • Architecture & Training: Uses standard ResNet-50 backbones to encode each sensor's input into a 2048-dimensional feature vector, followed by a 2-layer MLP projection head mapping into a 64-dimensional latent space. Optimization uses Adam with a learning rate of $3 \times 10^{-4}$ and an optimal batch size of 128 for 100 epochs.

By pulling together positive cross-sensor pairs and pushing apart negatives, the encoders learn representations tied to the physical contact geometry and object identity rather than sensor-specific artifacts.

       [GelSlim Grasp A]  ──────> ResNet-50 ──> z_GelSlim
              │ (Positive Pair)                   │  Cosine Similarity / InfoNCE
       [SoftBubble Grasp A] ────> ResNet-50 ──> z_Bubble
              │
  (Different Grasps / Objects: Negatives)

Datasets

The authors leverage tactile data previously collected in the Touch2Touch benchmark:

  • Objects & Grasps: A diverse set of tools and objects systematically probed by a robotic arm equipped with GelSlim (photometric/elastomer) and Soft Bubble (depth/membrane) sensors at fixed poses.
  • Evaluation Splits:
  • Unseen Grasps: Grasps on the 9 training tools not seen during representation or downstream task training.
  • Unseen Tools: Grasps on 3 novel tool shapes never seen during representation learning.
  • Unseen GelSlim Variations: Hardware variations of GelSlim sensors featuring manufacturing imperfections, varying gel stiffness, and differing dot pattern markers.

Key Insights and Ideas

  • Touch-to-Touch vs. Vision-to-Touch: While vision-tactile alignment (like UniTouch or CLIP-based approaches) captures high-level semantics, it often misses subtle contact mechanics. CTTP directly preserves shared mechanical features (e.g., edges, contours, relative in-hand pose) invariant to whether they are measured via photometric gel illumination or depth membranes.
  • Batch Size Controls Alignment vs. Discrimination: Increasing batch size typically helps contrastive learning. However, the authors found that scaling from batch size 128 to 256 degraded cross-sensor alignment. Because the ratio of negative pairs exploded relative to positive pairs, the network prioritized intra-sensor tool differentiation over cross-sensor alignment.
  • Zero-Shot Sensor Swapping: A downstream model (e.g., a linear classifier or pose estimator) trained solely on Soft Bubble data can directly ingest GelSlim features at test time and perform reliably without fine-tuning.

Key Results

  • Cross-Sensor Tool Classification: When trained only on Soft Bubble embeddings and evaluated zero-shot on GelSlim images:
  • CTTP achieved 85.13% accuracy on seen GelSlim sensors and 79.00% on unseen physical GelSlim sensors (against an 11.11% random baseline).
  • All supervised and self-supervised baselines (ImageNet-pretrained ResNet, T3 autoencoders, and task-supervised models) degraded to near-random guessing ($11\text{--}15\%$) across sensors.
  • In-Hand 2D Pose Estimation ($y, z, \theta$):
  • Generalizing across sensors on unseen tools, CTTP restricted orientation error to $-0.01^\circ \pm 4.39^\circ$, while the second-best method (supervised T3 Class PT) suffered an error of $-2.67^\circ \pm 18.47^\circ$.
  • Translation errors were kept within $\pm 3\text{ mm}$, outperforming other baselines by at least $1\text{ mm}$.
  • Closed-Loop Real Robot Peg Insertion: Using a classifier and pose estimator trained purely on Soft Bubble data, a GelSlim-equipped robot successfully handed off, classified, aligned, and inserted unseen tools into matching peg holes in 18 out of 30 trials (compared to only 5/30 for T3).

Limitations and Future Work

  • Sensor Diversity: Experiments were conducted between two specific sensor designs (GelSlim and Soft Bubble). Extending CTTP simultaneously across 3+ sensor types (e.g., DIGIT, DenseTact, or magnetic skin arrays) remains untested.
  • Data Collection Bottleneck: Generating training pairs currently requires repeatably probing the exact same object in the same pose across physical sensor swaps.
  • Scaling & Synthesis: The authors suggest combining direct sensor-to-sensor contrastive objectives with large-scale tactile pretraining (such as Sparsh) and exploring synthetic cross-sensor data generation to minimize real-world data collection overhead.

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