Learning the Residual Between Simulated and Recorded Impact Sounds

Physics simulators can produce the sound of any 3D object being struck, and they produce it with free, exact labels: material, strike location, and listener position. Yet models trained on these sounds transfer poorly to real microphones. RealImpact measured large spectral and perceptual gaps between modal simulators and recordings of 50 real objects, and The ObjectFolder Benchmark reports that a sim-to-real gap persists in its audio tasks. We propose to close this gap with a spectrogram generator. A spectrogram is the image-like picture of sound, with time on one axis and frequency on the other. Our generator does not create sound from scratch. It takes a simulated spectrogram and edits it toward what a real microphone would hear, while being penalized for moving the resonant frequencies that carry the labels. The edited sounds then serve as training data for real-world perception.

The case for this project rests on one observation. RealImpact recorded each real object at known strike points and known microphone positions, and simulators can be run on the same scanned meshes, so the field already has paired simulated and real spectrograms. Image-domain sim-to-real methods such as PixelDA had to work without pairs. Here, a conditional diffusion model can learn the mapping directly. A diffusion model is a generator that learns by gradually denoising random noise into samples. The central question is not whether such a translator can be trained, but whether it captures anything that a few fitted physical parameters would not. The design of the proposal is built around answering that question.

Core Claim

We hypothesize that the real-minus-simulated difference for rigid-body impact sound has two parts. The first is a structured, low-dimensional part: rescaled damping, slightly shifted modal frequencies, a microphone and support frequency response, and a spectral tilt. The second is a stochastic, high-dimensional residual: broadband contact transients at the attack, energy leaking into nonlinear or support modes, mode splitting from geometric imperfections, and a realistic noise floor. Domain randomization and parametric calibration can address the first part. Only a generative model can produce the second.

The claim is that a diffusion model trained on the residual left after parametric calibration, and constrained to preserve modal ridge locations, will make simulated training data more useful for real-world tasks than calibration alone. It will do so on objects it never saw paired. If calibration alone matches it downstream, that is itself the finding, and we will report it as the answer.

Relation to Prior Work

The closest existing work is The Sound of Simulation (MultiGen). MultiGen fine-tunes a video-to-audio diffusion model on real pouring videos and conditions it on segmentation masks of simulator frames. That approach replaces simulated audio entirely and sidesteps the acoustic gap rather than measuring it. It reports an error of 0.46 on its pouring task and a 23.3% error reduction from audio, but no spectral fidelity against real recordings. We take the opposite stance: we keep the physics simulator's output as the conditioning signal, so labels stay exact, and we measure acoustic fidelity directly.

Two papers supply the simulated side, and both motivate the proposal by showing what it leaves out. NeuralSound gives fast learned modal vibration and radiation, but it was validated only against numerical solvers. ObjectFolder 2.0 predicts modal gains for an oscillator bank.

ObjectFolder 2.0 also constrains our design. Its authors abandoned direct neural spectrogram prediction because it produced smearing and non-physical artifacts. We take that negative result seriously. Our generator edits a physically generated spectrogram rather than inventing one, and a ridge-preservation term penalizes exactly the frequency smearing they observed. Whether this is enough is an empirical question we test with mode-frequency error.

The generator technology comes from Auffusion and Diff-Foley. Both show that latent diffusion initialized from Stable Diffusion transfers to mel spectrograms: Auffusion reports a Fréchet distance of 21.99 on AudioCaps, and Diff-Foley reports an Inception Score of 62.37 on VGGSound. Neither was ever asked to stay faithful to a physical input.

The unpaired translation line motivates our strongest generative baseline. PixelDA reduced Synthetic-to-Real LineMod pose error to 23.5° against 56.58° for feature-level DANN, using a content loss that is uniform across pixels. CycleDRUMS and tactile real-to-sim translation show that cycle-consistent translation works on spectrograms and sensor images. However, CycleDRUMS also reports lost high-frequency detail, which matters for impact transients. Finally, SoundSpaces 2.0 is the existence proof that randomizing acoustic parameters helps transfer, reaching 12.48% word error rate in real far-field speech recognition. It addresses room propagation, not the source sound.

Research Program

The first stage builds the paired corpus. For each RealImpact object, we run NeuralSound and the ObjectFolder modal pipeline on the provided scan, using the recorded strike location and force profile. We render the result at the microphone positions RealImpact measured. Each pair becomes a log-magnitude spectrogram on a linear-frequency short-time Fourier transform, not a mel scale, because mel compression discards the high-frequency modes and transients that distinguish materials. Objects are split 35/5/10 into train, validation, and test.

The second stage fits a parametric calibration on training objects only. It has four components: per-material-class multipliers on modal damping, a small per-class frequency scaling, a global smooth frequency-response filter for the microphone and rig, and a broadband attack-noise burst with fitted level. This is the strongest simple model of the structured gap. By itself, it tells us how much of the gap is low-dimensional.

The third stage trains the generator. We fine-tune an Auffusion-style latent diffusion model, which inherits Stable Diffusion weights, to produce the real spectrogram given the calibrated simulated spectrogram as a spatially aligned conditioning channel. The model is trained so that it only has to supply what calibration missed. On top of the usual denoising objective, we add a ridge-preservation term:

$$\mathcal{L} = \mathcal{L}_{\text{denoise}} + \lambda \sum_{k} \min_{j} \left| f_k(\hat{S}) - f_j(S_{\text{sim}}) \right|$$

Here $\hat{S}$ is the generated spectrogram, $S_{\text{sim}}$ is the calibrated simulated one, $f_k(\cdot)$ is the frequency of the $k$-th detected spectral peak over the decay region, and $\lambda$ sets the strength. This term lets the model add energy, noise, and transients freely, but charges it for creating or moving resonant peaks. Such peaks are the "spurious features" that a downstream classifier would latch onto. The term is the time-frequency-specific content loss that PixelDA's uniform pixel loss lacks.

To convert back to waveforms, we use the simulator's own phase as the initialization for iterative phase retrieval. We compare this against a HiFi-GAN vocoder fine-tuned on RealImpact. Both options are reported, given the known limits of phase recovery studied in On Foundational Discretization Barriers in STFT Phase Retrieval.

The fourth stage applies the trained translator to the 1,000 simulated ObjectFolder 2.0 objects. It produces an adapted corpus with the original exact labels, which downstream models then train on.

Baselines

The naive reference point is training downstream models on raw simulated spectrograms from NeuralSound or ObjectFolder, with no adaptation. The ObjectFolder Benchmark reports that this kind of simulated pre-training already gives a 6% top-1 gain in real material classification. The file contains no absolute real-world accuracy for it, so we will measure that number ourselves on the same split. Every method must clear this floor.

The second baseline is domain randomization of modal parameters, in the spirit of SoundSpaces 2.0's acoustic randomization. We randomize damping, modal gains, small frequency jitter, frequency-response tilt, and additive noise over ranges set to cover the spread observed in the RealImpact training objects. It gets the same tuning budget as our method: the same number of validation-set evaluations for choosing ranges.

The third baseline is the parametric calibration from stage two, used alone. This is the strongest competitor, because if the gap is mostly low-dimensional, calibration closes it with no risk of hallucination. The file contains no reported result for parametric sim-to-real calibration of impact audio. Beating it means a statistically significant downstream gain on held-out real objects, not merely a lower spectral distance.

The fourth baseline is unpaired spectrogram translation. We train a CycleGAN in the CycleDRUMS style, and a PixelDA-style generator with its uniform content loss plus a task classifier, on the same simulated and real spectrograms with pairing information discarded. This tests whether pairing matters.

Three ablations isolate our ingredients: diffusion conditioned on the uncalibrated simulation, diffusion without the ridge-preservation term, and diffusion trained from scratch without the Stable Diffusion initialization. All generative models share a fixed GPU-hour budget and the same validation-based stopping rule.

On RealImpact's visual acoustic matching task, the reported average accuracy is 59.7% RealImpact. We treat this as the published reference and require our adapted-data model to exceed it on the held-out objects, after re-running the baseline on our split.

Why not just…?

Why not just randomize the simulator's parameters? Randomization widens the simulated distribution along the axes the simulator already has. It cannot produce attack transients, support-mode leakage, or mode splitting that the oscillator bank never emits. Work on simulated jet images (Jet substructure classification) shows classifiers keying on solver-specific artifacts that survive such variation. Still, SoundSpaces 2.0 shows randomization working well for room acoustics, so this is a real competitor. Our experiment settles it directly: if randomization matches our method on held-out real objects, the residual is not useful for these tasks.

Why not just fit a few physical correction parameters? This is the most serious threat, and the reason calibration is built into the method rather than argued away. If RealImpact's documented gap is mostly damping and frequency response, calibration will capture it. We will report how much spectral distance and downstream accuracy calibration recovers before any generative model is added. If the diffusion residual adds nothing on held-out objects, we will say so and recommend calibration.

Why not just align features with a domain-adversarial network instead of generating spectrograms? PixelDA's LineMod comparison (23.5° against 56.58° for DANN) suggests that adapting the input beats aligning features. That result comes from vision, not audio. We therefore include feature-adversarial training on raw simulated audio as a downstream baseline. Adapted data has a practical advantage: one translated corpus can be reused by every downstream task without retraining the adapter.

Why not just generate the sound from video or text, as MultiGen does? Generating from scratch discards the exact strike location and modal structure that make simulation valuable for labels. MultiGen also reports no spectral fidelity against real recordings. We run an Auffusion text-to-audio model prompted with material and object category as a baseline, and expect it to fail on contact localization, where the label lives in location-dependent modal gains.

Proposed Experiments

Fidelity is measured on the 10 held-out RealImpact objects. The metrics are log-spectral distance to the real recording, error in modal peak frequency, error in per-band decay time, and Fréchet distance between audio embeddings of generated and real sets. A paired listening test asks raters to judge which of two sounds is the real recording.

The first decisive check is a variance decomposition. We measure what fraction of the raw sim-to-real spectral distance calibration removes, and what fraction the diffusion residual removes after that.

The second decisive check is downstream. We train material classification and contact localization on adapted ObjectFolder 2.0 objects, then test on ObjectFolder Real without using any of its labels. We also train visual acoustic matching on adapted data and test on held-out RealImpact objects against the 59.7% reference.

ObjectFolder Real was recorded with a robot arm rather than RealImpact's hammer rig, so cross-rig transfer is a confound. We therefore also report a variant where the translator receives a few unpaired ObjectFolder Real clips for normalization only. This keeps "learned real acoustics" separate from "learned one rig."

The third check is a hallucination audit. A classifier trained only on raw simulation should predict the original material label of translated samples at least as accurately as on the raw samples. If accuracy drops, the translator is rewriting the content rather than the domain. The ridge-preservation ablation should show the largest drop.

The proposal succeeds if the full method beats calibration and randomization on held-out real-object tasks while passing the hallucination audit. It fails informatively if calibration explains nearly all of the gap.