End-to-End Historical Music Restoration in Latent Space

Steven Cho, Junghyun Koo, Raphael Lafargue, Tushar Dhyani, Eloi Moliner, Yuki Mitsufuji

Restoring crackly orchestral recordings from the early 1900s so they sound clearer while keeping the original music intact.

About the paper

We built a system that cleans up early 20th-century orchestral recordings. No clean “before” version exists for any of these recordings, so we made our own training pairs. We took modern, high-quality recordings, damaged them on purpose in a realistic way, and then trained a model to undo the damage.

How it works

Our approach has two parts.

1. A realistic way to damage good recordings. If real damaged and clean pairs do not exist, you can make your own. We take modern orchestral recordings and put them through a simulated “old recording chain”. We built that chain in five stages around a Wiener–Hammerstein model, a standard engineering recipe that places a distortion step between two tone-shaping filters. On top of that we narrow the frequency range, the way old equipment did, and add gramophone noise such as hiss and clicks. Every setting is picked at random for each training example, so the model sees a wide range of damage, not one particular kind.

2. A model that learns to undo the damage. With pairs of damaged and clean audio in hand, we trained a model to go from one to the other. Two ideas need a short explanation:

  • Latent space. Raw audio is a very long list of numbers: 44,100 per second at the quality we used. Rather than work on that directly, we first pass the audio through an autoencoder, a neural network that compresses sound into a much shorter summary and can expand it back. That compressed summary is the “latent space”. Tools that compress and rebuild audio like this are often called neural codecs. We used SAME-L, the autoencoder from Stable Audio 3, after testing several codecs on how well they rebuilt degraded music.
  • Flow matching. This is a family of generative models closely related to diffusion models, the kind behind many image generators. Generation starts from random noise and moves it, step by step, toward a realistic result. Here each step is guided by the damaged recording, so the model produces a clean version of that recording, not just any music. When restoring a recording we use 10 steps.

The model itself is a transformer, the same broad architecture used in language models, which processes the compressed audio as a sequence of short pieces called tokens. It has about 40 million parameters. We call the full system SAMECFM.

For training we gathered about 6.82 hours of publicly available classical recordings (full orchestras plus brass, woodwind and string sections). For testing we put together a 9.3-hour set of real historical orchestral recordings from the Internet Archive, recorded and published in the United States between 1911 and 1925.

Results

We compared SAMECFM with existing restoration systems (BEHM-GAN, BABE2 and a denoiser), both in their original form and retrained on our data with our damage simulation.

  • Automatic quality score on real historical recordings. We used Audiobox Aesthetics Production Quality (AA-PQ), an automatic rating of how well-produced audio sounds; higher is better. SAMECFM scored 6.70 on full-orchestra and 6.86 on light-orchestra recordings. The untouched input scored 4.94 and 5.00, and the best existing system scored at most 5.95 and 6.17.
  • Listening tests. 22 listeners (out of 38; the rest failed screening checks) rated short clips from 1 to 5, comparing our system with BABE2, the most recent comparable generative method. On quality, SAMECFM averaged 3.89, compared with 3.52 for the original BABE2 and 1.17 for the unprocessed input. On preservation, meaning how faithfully the result keeps the melody, instruments and style of the original, SAMECFM averaged 4.32, the highest score.
  • The damage simulation matters. A version trained with only gramophone noise, without the other stages, did worse on both automatic and listening scores.
  • Small model. SAMECFM did this with the fewest parameters of the systems we compared (tied with BABE2).
  • A useful side result. Of the automatic scores we looked at, AA-PQ tracked the listeners’ quality ratings most closely (correlation r = 0.920 for full orchestra and 0.867 for light orchestra). That suggests it is a reasonable stand-in when no clean reference exists.

Limits and open questions

  • Some invention. Generative models can add detail that was never in the recording. On one measure comparing restored audio with the clean originals in our synthetic tests (MAD), SAMECFM ranked third, which suggests some “hallucination”. Reducing that is future work.
  • Quality versus faithfulness. We found a trade-off between sounding better and staying true to the original, and no single automatic score fully captures it.
  • Narrow scope. We only studied instrumental orchestral classical music. Music with singing, and other genres, are not covered yet.
  • Listening test size. The listening results come from 22 valid listeners and ten 5-second clips (88 ratings per system), so they are a useful signal, not a final verdict.

Aim and use case

Imagine finding a box of photographs from 1915. They are faded, scratched and grainy, and the person who took them is long gone, so there is no clean original to compare against. Any repair involves some guessing.

Old music recordings have the same problem. Before electrical recording became common in 1925, music was captured with equipment such as wax cylinders, 78-rpm shellac discs and gramophones. Those recordings hiss and crackle, lose the highest and lowest frequencies, and bend the sound in ways that depend on each machine. In our paper we call music published before 1926 “historical”.

Many important musicians of the era, Tchaikovsky and Debussy among them, made much of their recorded output on this kind of noisy, lossy equipment, so much of that work is damaged and underappreciated. The aim is to make these orchestral recordings easier to listen to without changing the music itself, so that these foundational works can be rediscovered and enjoyed. The released test set also gives other restoration researchers a shared benchmark to measure their methods against.

What is new

Most earlier work tackled narrower versions of this problem: one instrument, such as solo piano, or only putting back the missing high frequencies. The paper treats the general task of restoring full orchestral recordings, where many instruments play at once, and proposes three things:

  • A test set of real historical recordings. 149 orchestral pieces (9.3 hours) from 1911 to 1925, free of licence restrictions, which we are releasing. To our knowledge it is the first test set built for historical music restoration.
  • A more realistic damage simulation. The five-stage recording chain imitates old equipment more faithfully than earlier simulations. This turns a problem with no clean examples into one a model can learn from with ordinary before-and-after pairs.
  • Restoration in compressed audio form. We apply a flow-matching model that works in the latent space of an audio codec to orchestral restoration. It did clearly better than earlier music restoration systems in listening tests and on most automatic scores (not on every faithfulness measure; see the limits above).

← All research