Where to Generate Touch: Do Image Latents Preserve Material Recognition?
Generated touch could extend robot learning beyond recorded contacts. A tactile generator needs a latent space, and we choose one by testing whether a material classifier trained on real GelSight presses still works on encode-decode reconstructions from pretrained image models.
From the abstract. Our summary is in progress.
Full paper
Where to Generate Touch: Do Image Latents Preserve Material Recognition?
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.15834 (PDF).
Abstract
Generated touch could extend robot learning beyond recorded contacts. A tactile generator needs a latent space, and we choose one by testing whether a material classifier trained on real GelSight presses still works on encode–decode reconstructions from pretrained image models. On ObjectFolder Real, the classifier loses 6.5 to 9.7 points on reconstructions from three 16\times discrete tokenizers and 0.3 points on those from the Stable Diffusion VAE (SD-VAE). The 16\times tokenizers again lose far more on Touch and Go and on DIGIT object recognition (YCB-Slide). Retraining the classifier on reconstructions, with no new labels, narrows the discrete gap. SD-VAE reconstructions also keep object identity, with 76.7% object-matching accuracy against 78.9% for real touch and 67.0% for MAGVIT-v2. We therefore select SD-VAE latents and show a photo-to-touch generator trained in them. Code will be released upon acceptance.
1University of Maryland, College Park 2Carnegie Mellon University 3University of Alabama
4University of Washington 5Stanford University 6Texas A&M University [email protected]
1 Introduction
Tactile data are scarce because each recording requires physical contact (Wang et al. 2026). Generating touch from object photos could expand these data (Gungor, Eppinger, and Kovashka 2025; Ye et al. 2026), provided that synthetic touch works with models trained on real recordings. GelSight and DIGIT capture elastomer deformation as RGB images (Yuan, Dong, and Adelson 2017; Lambeta et al. 2020), so the continuous autoencoders (Rombach et al. 2022) and discrete tokenizers (Esser, Rombach, and Ommer 2021; Yu et al. 2024a) of image foundation models can serve as the latent space of a tactile generator. We compare these spaces through encode–decode round trips, before any generator is trained. The comparison also shows how tokenizers from vision foundation models fare on a new sensory modality.
\toreconstruction/reverse transfer, 90% family-bootstrap CIs (*: above zero). B4–B7 Probe retraining (solid) versus feature calibration (dashed), 95% CIs; TaG: Touch and Go.Beyond pixel fidelity (Ye et al. 2026), we test whether a material classifier trained on real touch still works on reconstructed presses. Continuous and discrete reconstructions both look close to the original (Figure 1, A2), yet across 71 objects the classifier loses 6.5 points on MAGVIT-v2 reconstructions and 0.3 on SD-VAE ones (A3; Figure 2, B3). Retraining the classifier on reconstructions then shows how much of this loss is a mismatch between real and reconstructed inputs.
On two GelSight datasets, real-trained classifiers lose a quarter to a half of their margin over chance on reconstructions from released 16\times discrete tokenizers and less than one point on SD-VAE reconstructions, and on DIGIT touch from YCB-Slide the discrete tokenizers lose 21 to 28 points of object-recognition accuracy against 1.2 for SD-VAE. SD-VAE reconstructions also retain high object-matching accuracy, and Section 4 shows a photo-to-touch generator trained in this compact space.
Our contributions are (1) a transfer test that ranks latent spaces for tactile generation with encode–decode passes and a lightweight classifier on frozen features; (2) a comparison of released and fine-tuned image tokenizers on three datasets from two sensor types, with grouped splits, several classifiers and bootstrap intervals; and (3) a matched comparison that separates quantization from downsampling, with classifier retraining that narrows the discrete gap without new labels.
Related work.
Tactile generators condition on local geometry (Bien et al. 2026; Bhouri et al. 2026), on a sensor-aligned view of the contact region (Li et al. 2019; Yang, Zhang, and Owens 2023; Dou et al. 2024) or on text (Tu et al. 2025). Recent tactile models generate with vector-quantized codes (Lyu et al. 2026; Huang et al. 2026; Tu et al. 2026), and TacGen predicts tactile latents from RGB (Ye et al. 2026). Our study complements these generators (Appendix I). It compares candidate latent spaces on the same presses with a downstream classifier, under splits that keep product families apart (Gungor, Eppinger, and Kovashka 2025). Foundation models for other sensors face the same choice of input representation. Time-series models reprogram signals into language-model inputs (Jin et al. 2024a) or encode them as images (Wang and Oates 2015), and language models answer questions about time series and reason over medical sensor data (Kong et al. 2025a; Langer et al. 2026). Surveys and position papers cover Transformers, large models and reasoning for time series (Wen et al. 2023; Jin et al. 2026; Jin et al. 2024b; Kong et al. 2025b).
2 Measuring Material-Recognition Transfer
Test.
For reconstruction R and a material classifier f trained on real presses, we measure \Delta_{R}=\mathrm{Acc}(f,x)-\mathrm{Acc}(f,R(x)) on held-out presses x, following synthetic-image evaluation (Shmelkov, Schmid, and Alahari 2018). We also retrain on reconstructions and test on real presses (Esteban, Hyland, and Rätsch 2017) and reconstructions to measure recovery. The test needs only encode–decode passes and a classifier on frozen features. We use this comparison to select a latent space that preserves material recognition before training a tactile generator.
Data and splits.
We use the 71 training and validation objects of ObjectFolder Real (OF-Real), with 2,093 GelSight presses and seven materials (Gao et al. 2023); A1 shows the robot and the frames of one press. The dataset contains size and color variants of the same product, so each product family is kept within one of five cross-validation folds (Gungor, Eppinger, and Kovashka 2025; Kapoor and Narayanan 2023; Roberts et al. 2017). From a single press of an unseen product, the classifier identifies the material with 34.0% accuracy, against 14.3% chance. Object folds raise it to 38.9% and the SD-VAE drop to 2.4 points; under every grouping the three 16\times discrete drops are significant and larger (Appendix A). The transfer tests follow two written protocols (Appendix B).
Classifiers and intervals.
The main classifier is a class-balanced logistic regression on frozen DINOv2-base features (Oquab et al. 2024); classifiers on CLIP (Radford et al. 2021) and Sparsh (Higuera et al. 2025) features serve as checks. We call a drop significant when the lower end of its 90% bootstrap interval over product families (recording days for Touch and Go) is above zero, a one-sided test at the 5% level (Efron and Tibshirani 1994). Other comparisons use 95% intervals.
Spaces.
The discrete candidates are the released MAGVIT-v2 and Janus-Pro tokenizers and the Cosmos DI tokenizers at 16\times and 8\times downsampling (Yu et al. 2024a; Chen et al. 2025; Sun et al. 2024; NVIDIA 2025). The continuous candidates are SD-VAE and the Cosmos CI tokenizers at 16\times and 8\times. We also fine-tune MAGVIT-v2 with and without a GAN loss (Isola et al. 2017), retrain its decoder alone, and include resizing as a control. All round trips run at 512 px; Appendix Table Where to Generate Touch: Do Image Latents Preserve Material Recognition? lists latent sizes and all drops.
3 Transfer, Probe Retraining and Selection
3.1 Released spaces
Released 16\times discrete tokenizers lower material accuracy by 6.5 (MAGVIT-v2), 9.7 (Janus-Pro) and 8.1 points (Cosmos), a third to a half of the classifier’s margin over chance. They keep most of the contact geometry, with median contact-map correlations of 0.87 to 0.91, against 0.98 for SD-VAE. Pixel fidelity and contact geometry (B1, B2) order the spaces much as the material drop does (Spearman \rho=-0.95 for PSNR). Among released spaces, the transfer test (B3) finds significant drops only for these three. Classifiers on CLIP and Sparsh features reproduce all three drops (Appendix D).
The released MAGVIT-v2 loses most on plastic, wood, iron and steel and gains on ceramic; fine-tuning lowers iron accuracy by 19.4 points (C5). Across the material examples (C1–C4), reconstruction PSNR is 34 to 37 dB for MAGVIT-v2 and 40 to 44 dB for SD-VAE.
On 3,082 touches of 14 materials from Touch and Go (Yang et al. 2022), with folds by recording day, the pattern repeats. The three 16\times discrete drops are 7.5, 8.4 and 11.8 points and the SD-VAE drop is 0.7. Cosmos DI 8\times and CI 16\times show small but significant drops of 2.0 and 1.5 points (Appendix F).
We repeat the test with a second sensor type on YCB-Slide (Suresh et al. 2022): 3,000 DIGIT frames from 50 sliding trajectories over 10 YCB objects, with object recognition as the task and folds by trajectory. The real-trained classifier reaches 77.3% (chance 10%). The three 16\times discrete tokenizers lower it by 21.1 to 28.0 points and SD-VAE by 1.2 points (90% CI [-0.4, 2.8]; D4). With contact-difference features alone, the drops are 25.2 to 31.0 points for the discrete tokenizers and 2.7 for SD-VAE (Appendix G).
PSNR does not settle close cases. On YCB-Slide, Cosmos CI 16\times has as many latent values as SD-VAE and a higher PSNR (41.9 versus 40.7 dB), yet its 2.5-point drop is significant and the 1.2 of SD-VAE is not; Cosmos DI 8\times reaches 40.5 dB and loses 5.6.
3.2 Tokenizer fine-tuning and downsampling
Fine-tuning MAGVIT-v2 on GelSight frames (39.3 dB), adding a GAN loss, or retraining only its decoder (39.4 dB) leaves significant drops of 4.0 to 5.1 points. The matched Cosmos pair separates quantization from downsampling. The discrete tokenizer loses 7.6 points more than its continuous counterpart at 16\times and 1.0 more at 8\times; on Touch and Go the differences are 10.3 and 1.2 points. With the main classifier, most of the 16\times loss therefore comes with quantization.
3.3 Probe retraining
Retraining the classifier narrows the discrete gap with no new labels and no change to the tokenizer. Retraining replaces a share of the real training presses with their reconstructions and keeps their labels, so the label budget stays fixed. For the released 16\times tokenizers on OF-Real, retrained classifiers reach 31.6 to 32.7%, against 34.0% on real touch (D2). On both datasets, replacing a quarter of the training presses gives most of the full-retraining gain (B4–B7), and on Touch and Go these gains are significant after multiplicity correction (Appendix Table 9).
Selection.
SD-VAE and Cosmos CI 8\times show no significant drop on any dataset with the main classifier and primary splits, and the upper 90% bounds of SD-VAE stay within a tenth of the margin over chance. SD-VAE uses four times fewer latent values (64^{2}{\times}4 versus 64^{2}{\times}16), so we select it (Rombach et al. 2022). With CLIP on Touch and Go, SD-VAE loses 13.0 points, the 16\times tokenizers 14.6 to 16.4 whether discrete or continuous, and Cosmos CI 8\times 5.0 (Appendix Figure 8); when the readout is unknown, Cosmos CI 8\times buys this robustness with four times more latent values.
4 Object Identity and a Generation Example
SD-VAE reconstructions also keep object identity. We match 535 real validation presses against galleries of the 18 validation objects, excluding each query’s contact site (Figure 4, D3). Object-averaged accuracy is 78.9% for real galleries, 76.7% for SD-VAE reconstructions and 67.0% for MAGVIT-v2 reconstructions (D1 shows one press). The SD-VAE gallery exceeds the MAGVIT-v2 gallery by 9.7 points (simultaneous 95% CI [3.5, 16.6]; Appendix J), and the Cosmos CI galleries reach 77.3% and 77.8%.
In the selected space, a conditional rectified-flow model (Liu, Gong, and Liu 2023; Lipman et al. 2023) generates eight-frame presses from an object photo, contact-site geometry and a fixed pressing policy (A4). It is trained on 44 objects from other product families (Appendix J), and A5 shows three unselected draws beside real touch.
5 Conclusion and Broader Impact
Our transfer test guides the choice of tactile generation space by measuring recognition accuracy on reconstructions. On three datasets and two sensor types, SD-VAE loses less than every released 16\times discrete tokenizer, shows no significant drop under the main classifier and primary splits, and keeps object identity. With the main classifier the 16\times loss comes mostly with quantization, and retraining the classifier narrows it without new labels. We therefore recommend SD-VAE latents for tactile generators used with real-trained models, and Cosmos CI 8\times when the readout is unknown. The test can be run on any sensor whose signals are rendered as images, such as time series (Wang and Oates 2015). Synthetic touch from photos and object geometry could let robots learn more from limited physical contact.
References
- Method
- Latent
- real\torec.
- rec.\toreal
- drop
- Resize only
- –
- 0.1 [-0.4, 0.7]
- 0.3 [-0.5, 1.1]
- 0.6
- [0.6pt/1.5pt] Discrete, pretrained
- MAGVIT-v2 16\times
- 32^{2}{\times}13 b
- 6.5 [2.9, 10.1]
- 2.8 [-0.3, 6.1]
- 7.5
- Janus-Pro 16\times
- 32^{2}{\times}14 b
- 9.7 [5.4, 14.1]
- 1.6 [-1.7, 4.9]
- 8.4
- Cosmos DI 16\times
- 32^{2}{\times}16 b
- 8.1 [4.0, 12.3]
- 2.4 [-1.6, 6.8]
- 11.8
- Cosmos DI 8\times
- 64^{2}{\times}16 b
- 0.8 [-0.8, 2.4]
- -1.4 [-3.9, 1.0]
- 2.0
- Discrete, fine-tuned (MAGVIT-v2 16\times)
- Fine-tuned
- 32^{2}{\times}13 b
- 5.1 [1.7, 8.7]
- -1.5 [-4.0, 0.8]
- –
- FT + GAN
- 32^{2}{\times}13 b
- 4.0 [1.1, 7.0]
- -0.2 [-3.1, 2.8]
- –
- Continuous, pretrained
- SD-VAE 8\times
- 64^{2}{\times}4 f
- 0.3 [-1.1, 1.9]
- 0.2 [-1.5, 2.1]
- 0.7
- Cosmos CI 16\times
- 32^{2}{\times}16 f
- 0.5 [-0.9, 1.9]
- 0.3 [-1.8, 2.4]
- 1.5
- Cosmos CI 8\times
- 64^{2}{\times}16 f
- -0.2 [-1.2, 0.7]
- -0.6 [-1.9, 0.7]
- 0.8