Robbyant/lingbot-touch

Learning Heterogeneous Tactile Representation for General Dexterous Manipulation

What LingBot-Touch is

LingBot-Touch is a pretrained AI model that turns raw touch-sensor data into a compact, reusable "representation" — a set of numbers that capture what is happening at each point on a robotic hand's fingers over time.

Robots use different kinds of touch sensors (magnetic, piezoresistive, camera-based). These sensors produce very different raw signals. LingBot-Touch is designed to learn a common way of representing touch across all of them, so that knowledge learned from one sensor type can be used with another.

It is built on a technique called JEPA (Joint Embedding Predictive Architecture): the model learns by predicting missing parts of the tactile signal in a latent (abstract) space, rather than by reconstructing raw sensor values. The architecture uses a shared Transformer (a standard neural-network building block) plus modality-specific "tokenizers" that convert each sensor's raw output into a common token format.

What the project actually provides

This repository is an inference release — it does not include training code. It provides:

  • A frozen encoder (the part of the model that converts input into representations) — you download the weights separately from Hugging Face or ModelScope.
  • Utilities for extracting token-level tactile features and their spatiotemporal addresses (which time step, which finger, which spatial position each token came from).
  • Data adapters for two specific sensor platforms (Sharpa and XHand), plus a general interface for new sensors.
  • Sample data and example scripts.

The four claimed properties

  1. Unified — Data from different sensor types mutually improve each other's representations inside one shared latent space.
  2. Transferable — A model pretrained on one sensor type can be applied to a different sensor or a real robotic hand with no additional training.
  3. Efficient — Even the smallest model variant ("Tiny") supports high-frequency inference with a lightweight architecture.
  4. Scalable — More training data keeps improving performance on both tactile tasks and real-world manipulation.

Supported sensor modalities

Three are supported: magnetic, piezoresistive, and visuotactile (camera-based touch sensing).

Model variants

Two pretrained checkpoints are available (each with a config.json and encoder.pt):

  • LingBot-Touch-Tiny
  • LingBot-Touch-Small

Both are downloadable from Hugging Face and ModelScope. You must place the files in a checkpoints/ folder matching the model name.

How to use it (high level)

The README gives a 6-step workflow:

  1. Download model weights and config.
  2. Align your data to the expected format.
  3. Normalize geometry (sensor point positions) and signal values.
  4. Optionally resample to a supported point count per finger.
  5. Select the sensing modality.
  6. Run inference to get representations.

Two worked examples are included:

  • Sharpa Wave → visuotactile branch: scalar touch values, 200 points per finger, no resampling needed.
  • XHand → magnetic branch: three-axis values, 120 points per finger, resampled to 96 points.

Both examples use the Tiny model and produce separate output files for left and right hands. The sample dataset contains 30 bilateral input pairs per platform (16 consecutive frames per hand), for 120 single-hand input files total.

What the output looks like

Running inference produces a file containing:

  • latent — token-level representations, shape [B, N, C] (batch, number of tokens, feature dimension).
  • time_id, finger_id, pos_xyz — for each token, which time step, which finger, and which 3D spatial position it corresponds to.

Important usage caveat

The README explicitly warns not to use simple per-token linear projections or mean/max pooling as the default readout. Because the model integrates spatiotemporal context through self-attention, each token contains information from other taxels (touch points) and time positions — not just its own measurement. The recommended approach is attention-based querying: use learnable or task-conditioned queries that attend to all output tokens via cross-attention.

Setup and environment

  • Python 3.12, PyTorch 2.11 (CUDA 13.0 wheel), installed via pip from the repository root.
  • The installed package is named lingbot-touch; Python imports use tactile_jepa_inference (encoder) and data_interfaces (sensor adapters).
  • Inference runs on CPU by default; use --device cuda:0 for a compatible NVIDIA GPU.

License

Apache License 2.0. Third-party components retain their own licenses (see THIRD_PARTY_NOTICES.md).

Bottom line

LingBot-Touch is a pretrained, sensor-agnostic touch-understanding model for robotic hands, released for inference with two model sizes, two example sensor adapters, and a clear data-interface guide. Its core value proposition is that one model can understand touch from very different hardware, transfer without retraining, run fast enough for real-time use, and improve with more data.

Related

  • Project
  • Project
  • Project
  • Project