ΟΔΗΓΟΣ Audio AI

Jukebox

Jukebox is a research model released by OpenAI on April 30, 2020 that generates songs, including rough singing, directly as raw audio, steered by genre, artist and lyrics.

Ακούστε αυτόν τον οδηγόαφήγηση με AI · ~7 min

Σε αυτήν τη σελίδα8 min read
  1. Επισκόπηση
  2. Βασικά takeaways
  3. Βαθιά κατάδυση
  4. Tracing how Jukebox turns one minute of music into tokens
  5. Υλοποίηση σε πραγματικό κόσμο
  6. Το μέλλον του Jukebox
  7. Κάνοντάς το στην πράξη
  8. Πηγές και περαιτέρω ανάγνωση
  9. Συνεχίστε την εξερεύνηση
  10. Συχνές ερωτήσεις

Επισκόπηση

It showed that compressing audio into discrete codes and modeling them with large Transformers could produce minutes of coherent music, but it took about nine hours of GPU time to render one minute.

Βασικά takeaways

  1. Jukebox is an OpenAI research model, released on April 30, 2020, that generates music with singing directly as raw audio.
  2. It compresses audio with three VQ-VAE levels at 8, 32 and 128 times compression, each with a 2,048-entry codebook.
  3. A 5-billion-parameter, 72-layer Transformer generates top-level codes, and two 1-billion-parameter upsamplers add detail.
  4. Jukebox was trained on about 1.2 million songs with lyrics and metadata, using hundreds of V100 GPUs for weeks.
  5. The paper reports about 9 hours of sampling per minute of music, and coherence mostly within a 24-second window.

Βαθιά κατάδυση

Jukebox is a neural network that generates music as raw audio, the actual waveform you hear, rather than as sheet music or MIDI note data. Given an artist, a genre and optionally lyrics, it produces a new song in that style, with instruments and a singing voice, at CD-quality sample rates. It was described in the paper Jukebox: A Generative Model for Music by Prafulla Dhariwal, Heewoo Jun, Christine Payne, Jong Wook Kim, Alec Radford and Ilya Sutskever of OpenAI, submitted to arXiv on April 30, 2020. It was a research release, not a product: OpenAI published the paper, code, model weights and thousands of uncurated samples.

The central difficulty is length. Audio at 44.1 kHz has 44,100 numbers per second, so a four-minute song is over 10 million values, far more than a Transformer can attend to at once. MIT Technology Review put it as millions of timesteps per song, against about a thousand for text in GPT-2. Jukebox's answer was to compress first and generate second. It uses a VQ-VAE, a vector-quantized variational autoencoder introduced by Aaron van den Oord and colleagues in 2017, which encodes a signal into a sequence of discrete codes, each code being the index of the nearest entry in a learned codebook, and a decoder that turns codes back into audio.

Jukebox trains three separate VQ-VAEs at different compression levels, with hop lengths of 8, 32 and 128, meaning one code per 8, 32 or 128 audio samples. Each has a codebook of 2,048 entries. The top level, at 128 times compression, keeps mostly melody, harmony and rhythm; the bottom level, at 8 times, keeps the detail needed for good audio quality. The authors trained the levels separately rather than as one hierarchy so the top level would carry real information, reset rarely used codebook entries to avoid codebook collapse, and added a spectral loss to preserve mid and high frequencies.

Generation then happens in three stages. A top-level prior, an autoregressive Transformer with about 5 billion parameters and 72 layers, generates the coarse codes one at a time, each conditioned on the previous ones and on artist, genre and timing information. Its context of 8,192 tokens covers about 24 seconds of music. Two upsamplers of about 1 billion parameters each then generate the middle and bottom codes, conditioned on the level above, with contexts covering about 6 and 1.5 seconds. Finally, the bottom-level VQ-VAE decoder converts codes to audio. For lyrics, the top-level prior adds an encoder for the lyric text and attention between music and lyric tokens; the training lyrics were aligned to audio by extracting vocals with the Spleeter separation tool and then running forced alignment.

The training effort was large. The dataset was about 1.2 million songs, roughly 600,000 of them in English, paired with lyrics and metadata such as artist, album, genre and year from LyricWiki. The VQ-VAE trained on 256 NVIDIA V100 GPUs for 3 days, the upsamplers on 128 V100s for 2 weeks, the top-level prior on 512 V100s for 4 weeks, and lyrics conditioning on 512 V100s for another 2 weeks. Sampling was very slow: the paper reports about 1 hour to generate one minute of top-level codes and about 8 hours to upsample them. The repository similarly estimates about 3 hours on a V100 to fully sample 20 seconds of music.

The results drew wide attention. MIT Technology Review's Will Douglas Heaven called them technically impressive but deep in the uncanny valley, and noted samples imitating Katy Perry, Elvis Presley and Nas. The paper claimed coherence over several minutes, recognizable artist and genre styles, and singing that often followed the given lyrics. Because it produced timbre and voice, not just notes, it demonstrated that the compress-then-model recipe could work for music at scale.

Its limitations were stated plainly by its authors. Musical coherence holds mainly within the top-level context of about 24 seconds, so songs lack long-term structure such as returning choruses or call-and-response melodies. Melodies were often less interesting than human ones. The audio has audible noise and scratchiness from the compression. Training data was mostly English. Linear alignment of lyrics struggled with fast genres such as hip hop. And the sampling time made interactive use impossible. Rights questions were also raised from the start: Technology Review linked the release to Jay-Z's legal action against deepfake recordings of his voice, and OpenAI said it planned research on intellectual property.

Later systems kept the core idea of discrete audio tokens but became far more practical. Google's MusicLM, posted in January 2023, generates 24 kHz music from text descriptions with consistency over several minutes using a hierarchical sequence-to-sequence approach, and released the MusicCaps dataset of 5,500 music-text pairs. Meta's MusicGen, posted in June 2023 and published at NeurIPS 2023, uses a single-stage Transformer over interleaved token streams, avoiding the cascade of upsamplers that made Jukebox slow, and accepts text or melody conditioning. Running Jukebox today means using its archived repository, which expects no updates and tunes its sampling settings for a 16 GB V100 GPU.

04Δουλευμένο παράδειγμα

Tracing how Jukebox turns one minute of music into tokens

  1. Start with one minute of 44.1 kHz audio, which is 2,646,000 samples.

  2. Divide by the bottom hop length of 8 to get about 330,750 bottom-level codes, each an index from 0 to 2,047.

  3. Divide by the middle hop length of 32 to get about 82,700 middle codes, and by 128 to get about 20,700 top codes.

  4. Compare the top count with the 8,192-token context to see that one context window covers roughly 24 seconds.

  5. Note that the top prior must sample about 20,700 codes one at a time, and the upsamplers must then sample about 413,000 more.

  6. Relate those counts to the paper's timing of about 1 hour for top codes and 8 hours for upsampling per minute.

Αυτό που δείχνει

A clear picture of why Jukebox was slow and why its structure fades after about 24 seconds. Check the arithmetic by confirming that each level's code count times its hop length returns to about 2.6 million samples.

Υλοποίηση σε πραγματικό κόσμο

Studying long-form raw audio generation with the released code and weights in the openai/jukebox repository, which offers 5b, 5b_lyrics and 1b_lyrics models under a noncommercial license.

Continuing an existing recording by priming Jukebox with the first seconds of a WAV file using the repository's primed mode, which MIT Technology Review described as autocompleting a song.

Generating a pastiche in the style of a named artist and genre with new lyrics, the use that drew coverage of Jukebox imitations of Katy Perry, Elvis Presley and Nas in May 2020.

Using Jukebox as a baseline or reference architecture in later music generation research, alongside newer systems such as Google's MusicLM and Meta's MusicGen published in 2023.

Listening to OpenAI's thousands of released non-cherry-picked samples to study typical failure modes such as noise, weak melodies and missing chorus structure.

Το μέλλον του Jukebox

Jukebox's 2020 paper set out problems that later work has addressed in part. Its authors identified slow sampling, lack of long-range structure beyond about 24 seconds, audio noise from compression and mostly English training data as the main limits. In 2023 Google's MusicLM reported text-conditioned music with consistency over several minutes, and Meta's MusicGen replaced Jukebox's three-stage cascade with a single Transformer over interleaved codec tokens, which made generation far faster. The approach of compressing audio into discrete tokens and modeling them with a language model, which Jukebox demonstrated at scale, remains common. Open questions concern training data and rights more than architecture: Jukebox trained on about 1.2 million web songs, and MIT Technology Review's 2020 coverage already raised voice imitation and intellectual property concerns, which remain unresolved for music generation broadly. Jukebox itself is archived and receives no updates.

Κάνοντάς το στην πράξη

Γιατί έχει σημασία

  • Πρόσβαση και προσέγγιση χρηστών. Βελτιώνει την προσβασιμότητα μέσω διασυνδέσεων μεταγραφής, αφήγησης και φωνής.
  • Κόστος και προϋπολογισμός. Οι ομάδες πολυμέσων μπορούν να αποστέλλουν γυαλισμένο ήχο πιο γρήγορα με μικρότερους προϋπολογισμούς.
  • Ταχύτητα και κλίμακα. Τα συστήματα που αντιμετωπίζουν πελάτες μπορούν να επεξεργάζονται προφορικές αλληλεπιδράσεις σε μεγαλύτερη κλίμακα.

Προσέξτε

  • Οι κίνδυνοι κατάχρησης φωνής και πλαστοπροσωπίας αυξάνονται όταν λείπει η συγκατάθεση.
  • Η ακρίβεια μπορεί να πέσει σε τόνους, διαλέκτους ή θορυβώδη περιβάλλοντα.
  • Ο συνθετικός ήχος μπορεί να εκληφθεί εσφαλμένα ως αυθεντική ομιλία χωρίς σαφή σήμανση.

Επόμενα βήματα

  1. Λάβετε ρητή συγκατάθεση για λήψη φωνής, κλωνοποίηση και επαναχρησιμοποίηση.
  2. Δοκιμάστε την ποιότητα σε διαφορετικά ηχεία και συνθήκες φόντου.
  3. Καθορίστε πότε ένας άνθρωπος πρέπει να επανεξετάσει ή να εγκρίνει τα αποτελέσματα.
  4. Επισημάνετε τον συνθετικό ήχο και κρατήστε αρχεία προέλευσης για υπευθυνότητα.

Πηγές και περαιτέρω ανάγνωση

  1. arXiv (OpenAI)Jukebox: A Generative Model for Music
  2. GitHub (OpenAI)openai/jukebox: Code for the paper Jukebox: A Generative Model for Music
  3. MIT Technology ReviewThese pop songs were written by OpenAI's deep-learning algorithm
  4. arXiv (NeurIPS 2017)Neural Discrete Representation Learning
  5. arXiv (Google)MusicLM: Generating Music From Text
  6. arXiv (NeurIPS 2023)Simple and Controllable Music Generation

Συνεχίστε την εξερεύνηση

Δωρεάν ενημερωτικό δελτίο

Λάβετε την καθημερινή ενημέρωση AI

Τρία επαληθευμένα νέα AI κάθε πρωί της εβδομάδας, γραμμένα σε απλή αγγλική. Δωρεάν για πάντα, χωρίς διαφημίσεις.

Ένα email κάθε εργάσιμη ημέρα. Κατάργηση συνδρομής με ένα κλικ. Δεν πουλάμε ή μοιραζόμαστε ποτέ τη διεύθυνσή σας.

Δοκιμάστε τον εαυτό σας

Take the Jukebox quiz

Άμεση ανάδραση σε κάθε απάντηση, και πιστοποιητικό με επαληθεύσιμο ID μόλις περάσετε το μάθημα.

Έναρξη κουίζ

Υποστηρίξτε τη δωρεάν εκπαίδευση AI. AI Understanding είναι μια μη κερδοσκοπική οργάνωση 501(c)(3) — χωρίς διαφημίσεις, χωρίς τοίχο πληρωμής, ποτέ. Κάντε μια δωρεά

Συχνές ερωτήσεις

What is Jukebox?

Jukebox is a research model released by OpenAI on April 30, 2020 that generates songs, including rough singing, directly as raw audio, steered by genre, artist and lyrics. It showed that compressing audio into discrete codes and modeling them with large Transformers could produce minutes of coherent music, but it took about nine hours of GPU time to render one minute.

Τι είναι αυτό που κάνει το Jukebox να διαφέρει από τα παλαιότερα συστήματα συμβολικής μουσικής όπως τα συστήματα τεχνητής νοημοσύνης που εξάγουν MIDI;

Το Jukebox μοντελοποιεί τον πραγματικό ήχο της μουσικής ως ακατέργαστο ήχο, ώστε να μπορεί να παράγει φωνητικά και ηχοχρώματα οργάνων, σε αντίθεση με τα συμβολικά συστήματα που παράγουν μόνο δεδομένα νότων.

Ποιος κυκλοφόρησε το Jukebox και περίπου πότε;

Ο OpenAI κυκλοφόρησε το Jukebox τον Απρίλιο του 2020 ως μοντέλο έρευνας για τη δημιουργία μουσικής με φωνητικά.

Ποιος ήταν ένας σημαντικός πρακτικός περιορισμός του Jukebox;

Επειδή αποκωδικοποιεί ακατέργαστο δείγμα ήχου ανά δείγμα, το Jukebox χρειάστηκε την τάξη των εννέα ωρών για να παράγει ένα λεπτό μουσικής, καθιστώντας το μη πρακτικό για χρήση σε πραγματικό χρόνο.

Ποια βασική τεχνική χρησιμοποιεί το Jukebox για να κάνει τον μακρύ ακατέργαστο ήχο διαχειρίσιμο για τους Transformers του;

Το Jukebox χρησιμοποιεί αυτόματους κωδικοποιητές VQ-VAE για να συμπιέσει την κυματομορφή σε διακριτά διακριτικά, τα οποία οι Transformers στη συνέχεια μοντελοποιούν αυτοπαλινδρομικά πριν αναβαθμίσουν το δείγμα πίσω στον ήχο.

Σε τι μπορείτε να ρυθμίσετε την έξοδο του Jukebox;

Το Jukebox δέχεται ένα είδος, έναν καλλιτέχνη προς μίμηση και στίχους και θα προσπαθήσει να τραγουδήσει αυτές τις λέξεις σε αυτό το στυλ.

Συνέχισε να μαθαίνεις

Σχετικοί οδηγοί

Επιλέχθηκαν περισσότεροι οδηγοί για αυτό το θέμα

Λάβετε ένα δωρεάν πιστοποιητικό AIΈνα σύντομο δωρεάν μάθημα και εξέταση. Χωρίς κόστος, χωρίς κάρτα. Περίπου 2,5 ώρες.Ξεκινήστε δωρεάν →