آڈیو AI گائیڈ

MusicLM: درجہ بندی سیمنٹک اور ایکوسٹک ٹوکن

MusicLM Google کا ٹیکسٹ ٹو میوزک ماڈل ہے جو موسیقی کے ڈھانچے کے لیے سیمنٹک ٹوکنز اور آواز کی تفصیل کے لیے صوتی ٹوکنز کے درجہ بندی کے ذریعے طویل شکل کا آڈیو تیار کرتا ہے۔

اس گائیڈ کو سنیں۔اے آئی نے بیان کیا۔ · ~7 min

اس صفحہ پر8 min read
  1. اہم نکات
  2. گہرا غوطہ
  3. Trace one prompt through MusicLM's stages
  4. حقیقی دنیا کا نفاذ
  5. دی فیوچر آف میوزک ایل ایم: ہائرارکیکل سیمینٹک اور ایکوسٹک ٹوکن
  6. اسے عملی جامہ پہنانا
  7. ذرائع اور مزید پڑھنا
  8. دریافت کرتے رہیں
  9. اکثر پوچھے گئے سوالات

اہم نکات

  1. MusicLM, posted by Google Research in January 2023, generates 24 kHz music from text that stays consistent over several minutes.
  2. It plans music with 25-per-second semantic tokens from w2v-BERT, then renders sound with 600-per-second acoustic tokens from the SoundStream codec.
  3. MuLan's shared music and text embedding lets MusicLM train on audio alone and accept text descriptions only at generation time.
  4. In 1,200 listening ratings MusicLM won 312 comparisons versus 158 for Riffusion and 97 for Mubert, while real recordings won 472.
  5. The paper found exact memorization below 0.2% but approximate matches for about 1% of examples, and the models were not released.

گہرا غوطہ

MusicLM is a generative model that writes music as audio, not as sheet music or MIDI notes. A user types a description of genre, mood, instruments and tempo, and the system produces a recording that tries to match it. The research paper, MusicLM: Generating Music From Text by Andrea Agostinelli, Timo Denk and eleven colleagues at Google Research, was posted on January 26, 2023. It reports music at a 24 kHz sample rate that remains coherent over several minutes, and it compares favorably with two earlier text-to-music systems, Mubert and Riffusion, on both audio quality and faithfulness to the text.

The central idea is to treat music like language. Raw audio has tens of thousands of samples per second, far too many for a model to predict one by one over minutes. MusicLM therefore converts audio into tokens, short discrete codes, at two levels of detail. Semantic tokens come from w2v-BERT, a 600-million-parameter self-supervised audio model; MusicLM takes embeddings from its seventh layer and maps each to the nearest of 1,024 clusters, giving 25 tokens per second that capture melody, rhythm and long-range structure. Acoustic tokens come from SoundStream, a neural audio codec that compresses 24 kHz audio into 50 frames per second, each described by 12 codes from a residual vector quantizer, which works out to 600 tokens per second and a bitrate of 6 kbps. Acoustic tokens preserve timbre and recording detail well enough to be decoded back into sound.

The third ingredient connects text to music. MuLan, a Google model described in August 2022, was trained on 44 million music recordings totaling 370,000 hours paired with loosely associated text, so that a clip and a description of it land near each other in a shared embedding space. This lets MusicLM train on audio alone: during training it conditions on the MuLan embedding of the music itself, and at generation time it swaps in the MuLan embedding of the user's text. That trick removes the need for millions of hand-written captions.

Generation then runs as a hierarchy of separate transformer models, each predicting the next token from the ones before it. The semantic stage reads the MuLan tokens and generates semantic tokens, which sketch the musical plan. The acoustic stage, split into a coarse model for the first four SoundStream quantizer levels and a fine model for the remaining eight, generates acoustic tokens conditioned on both the MuLan tokens and the semantic tokens. The SoundStream decoder finally turns acoustic tokens into a waveform. Each stage is a decoder-only transformer of 24 layers with about 430 million parameters, and sampling temperatures of 1.0, 0.95 and 0.4 for the semantic, coarse and fine stages trade variety against stability.

MusicLM builds directly on earlier Google work. SoundStream, the codec, appeared in July 2021. AudioLM, posted in September 2022, introduced the hybrid of semantic and acoustic tokens and showed it could continue speech and produce coherent piano music from raw audio alone. MuLan supplied the text link in August 2022. MusicLM combined the three in January 2023, added melody conditioning through a small vision-transformer-style model trained on mel spectrograms, and released the MusicCaps evaluation set. In May 2023 Google opened sign-ups for a public version in AI Test Kitchen.

The paper measures quality in three ways on MusicCaps captions. Frechet Audio Distance (FAD) compares statistics of generated and real audio, where lower is better; MusicLM scored 4.0 on the VGGish variant against 9.6 for Mubert and 13.4 for Riffusion. MuLan Cycle Consistency, which checks how well the generated audio matches the text in MuLan's embedding space, was 0.51 for MusicLM versus 0.32 and 0.34 for the baselines. In 1,200 pairwise listening ratings, MusicLM won 312 comparisons, Riffusion 158 and Mubert 97, while the real reference recordings won 472, showing a clear remaining gap to human-made music. Compared with Riffusion, which fine-tunes an image diffusion model on spectrograms, and Mubert, which assembles pre-recorded sounds, MusicLM generates the audio itself. Compared with later single-stage models such as MusicGen, its cascade of several models is more complex to train and run.

The authors document several limits. Training data shapes the output, so music from cultures underrepresented in the data may be poorly served, and the paper raises concerns about cultural appropriation. Lyrics, vocal quality and song structure such as verse and chorus are all listed as future work. To test copying, the team measured memorization: exact matches stayed below 0.2% even with a ten-second prompt, but for about 1% of examples they found an approximate match to training audio. Because of the risk of misappropriating creative content, the paper states that the team had no plans to release the models at that point, so MusicLM itself is not available as open weights.

In practice, MusicLM is expensive to reproduce. The semantic and acoustic stages were trained on about five million audio clips, roughly 280,000 hours of music, and three 430-million-parameter transformers plus w2v-BERT, SoundStream and MuLan must run in sequence to produce a clip. For most people, the realistic ways to engage with the work are listening to the official examples page, using MusicCaps to evaluate other models, or experimenting with openly released successors that adopt similar token-based ideas.

03کام کی مثال

Trace one prompt through MusicLM's stages

  1. Start with a caption such as 'Hip hop song with violin solo' and pass it through MuLan's text encoder to get an embedding, which is quantized into MuLan tokens.

  2. Run the semantic transformer to generate 25 semantic tokens per second; for a 10-second clip that is 250 tokens describing melody, rhythm and structure.

  3. Run the coarse acoustic transformer to predict the first four SoundStream codebook levels for 50 frames per second, conditioned on the MuLan and semantic tokens.

  4. Run the fine acoustic transformer to predict the remaining eight codebook levels, bringing the total to 600 acoustic tokens per second, or 6,000 for 10 seconds.

  5. Feed the acoustic tokens to the SoundStream decoder to produce a 24 kHz waveform.

  6. Compare the result with the official examples page and score your own judgment against the caption, noting where instruments or mood differ.

جو یہ دکھاتا ہے۔

The learner ends up with a step-by-step token budget for a 10-second clip, 250 semantic and 6,000 acoustic tokens, and a clear picture of why the hierarchy exists: planning happens on a short sequence, and detail is added only after the structure is set. The arithmetic can be checked against the token rates stated in the paper.

حقیقی دنیا کا نفاذ

Public demo: from May 10, 2023, Google let people sign up to try MusicLM in AI Test Kitchen on the web, Android and iOS, where each text prompt returned two versions of a track to compare.

Humming to arrangement: the MusicLM paper shows a melody-conditioning mode that takes a whistled or hummed tune and renders it in the style named by a text caption, such as an orchestral or jazz arrangement.

Research benchmark: MusicCaps, released with the paper under a CC BY-SA 4.0 license, provides 5,521 ten-second clips from AudioSet, each with a free-text caption and a list of musical aspects written by professional musicians.

Model comparisons: later systems, such as Meta's MusicGen published at NeurIPS 2023, evaluate on MusicCaps and contrast their single-stage design with cascaded, multi-model pipelines like MusicLM's.

دی فیوچر آف میوزک ایل ایم: ہائرارکیکل سیمینٹک اور ایکوسٹک ٹوکن

The MusicLM paper names its own next steps: lyrics generation, better text conditioning and vocal quality, modeling high-level song structure such as introduction, verse and chorus, and generating at a higher sample rate than 24 kHz. Research since 2023 has pursued simpler architectures as well. Meta's MusicGen, published at NeurIPS 2023, uses a single-stage transformer with interleaved codec tokens instead of a cascade and released code and models through its AudioCraft repository, which made comparisons on the MusicCaps benchmark easier for other groups. Evaluation remains an open problem, because metrics such as Frechet Audio Distance capture audio statistics rather than musicality, and MusicLM's own listening test showed real recordings still preferred. The legal and ethical questions raised in the paper are also unresolved: training data provenance, the roughly 1% of examples with approximate matches to training audio, and the effect of generated music on working musicians and on cultures underrepresented in training sets. How music generators are licensed, labeled and compensated will shape which research systems become products.

اسے عملی جامہ پہنانا

یہ کیوں اہمیت رکھتا ہے۔

  • رسائی اور رسائی. یہ نقل، بیان اور صوتی انٹرفیس کے ذریعے رسائی کو بہتر بناتا ہے۔
  • لاگت اور بجٹ. میڈیا ٹیمیں چھوٹے بجٹ کے ساتھ پالش آڈیو کو تیزی سے بھیج سکتی ہیں۔
  • رفتار اور پیمانہ. کسٹمر کا سامنا کرنے والے نظام بڑے پیمانے پر بولی جانے والی بات چیت پر کارروائی کر سکتے ہیں۔

پر نگاہ رکھیں

  • رضامندی غائب ہونے پر آواز کے غلط استعمال اور نقالی کے خطرات بڑھ جاتے ہیں۔
  • درستگی لہجوں، بولیوں، یا شور والے ماحول میں گر سکتی ہے۔
  • واضح لیبلنگ کے بغیر مصنوعی آڈیو کو مستند تقریر کے لیے غلط سمجھا جا سکتا ہے۔

اگلے اقدامات

  1. آواز کی گرفتاری، کلوننگ اور دوبارہ استعمال کے لیے واضح رضامندی حاصل کریں۔
  2. متنوع اسپیکرز اور پس منظر کے حالات میں معیار کی جانچ کریں۔
  3. وضاحت کریں کہ جب ایک انسان کو آؤٹ پٹس کا جائزہ لینا یا منظور کرنا ضروری ہے۔
  4. مصنوعی آڈیو کو لیبل کریں اور جوابدہی کے لیے پرووینس ریکارڈ رکھیں۔

ذرائع اور مزید پڑھنا

  1. arXiv (Agostinelli et al., Google Research, 2023)MusicLM: Generating Music From Text
  2. Google ResearchMusicLM examples
  3. arXiv (Borsos et al., 2022)AudioLM: a Language Modeling Approach to Audio Generation
  4. arXiv (Zeghidour et al., 2021)SoundStream: ایک اینڈ-ٹو-اینڈ نیورل آڈیو کوڈک
  5. arXiv (Huang et al., 2022)MuLan: A Joint Embedding of Music Audio and Natural Language
  6. Google on Hugging Facegoogle/MusicCaps
  7. GoogleHow to try MusicLM from Google's AI Test Kitchen
  8. arXiv / NeurIPS 2023 (Copet et al.)سادہ اور قابل کنٹرول موسیقی تخلیق

دریافت کرتے رہیں

مفت نیوز لیٹر

روزانہ AI بریفنگ حاصل کریں

ہر ہفتے کے دن صبح تین تصدیق شدہ AI کہانیاں، سادہ انگریزی میں لکھی گئیں۔ ہمیشہ کے لیے مفت، کوئی اشتہار نہیں۔

ہر ہفتے کے دن ایک ای میل۔ ایک کلک میں ان سبسکرائب کریں۔ ہم کبھی بھی آپ کا پتہ فروخت یا شیئر نہیں کرتے۔

اپنے آپ کو جانچیں۔

Take the MusicLM: Hierarchical Semantic and Acoustic Tokens quiz

ہر جواب پر فوری فیڈبیک، اور کورس پاس کرنے کے بعد قابلِ تصدیق ID کے ساتھ شیئر کرنے کے قابل سرٹیفکیٹ۔

کوئز شروع کریں۔

مفت AI تعلیم کی حمایت کریں۔ AI Understanding ایک 501(c)(3) غیر منافع بخش ادارہ ہے — کوئی اشتہار نہیں، کوئی پے وال نہیں، کبھی نہیں۔ عطیہ کریں۔

اکثر پوچھے گئے سوالات

MusicLM کیا ہے: درجہ بندی سیمنٹک اور ایکوسٹک ٹوکن؟

MusicLM Google کا ٹیکسٹ ٹو میوزک ماڈل ہے جو موسیقی کے ڈھانچے کے لیے سیمنٹک ٹوکنز اور آواز کی تفصیل کے لیے صوتی ٹوکنز کے درجہ بندی کے ذریعے طویل شکل کا آڈیو تیار کرتا ہے۔

How does MusicLM formulate conditional music generation?

The paper casts conditional music generation as hierarchical sequence-to-sequence modeling, generating semantic and acoustic token sequences.

MusicLM میں سیمنٹک ٹوکنز کا کیا کردار ہے؟

سیمینٹک ٹوکنز (w2v-BERT سے) موٹے، آہستہ بدلنے والے ڈھانچے کو پکڑتے ہیں جیسے کہ راگ اور تال طویل عرصے میں۔

کون سا جزو ٹھیک صوتی تفصیلات فراہم کرتا ہے جیسے ٹمبر اور ساخت؟

صوتی ٹوکن ساؤنڈ اسٹریم نیورل کوڈیک سے آتے ہیں اور عمدہ تفصیلات جیسے ٹمبر اور ٹیکسچر کو انکوڈ کرتے ہیں۔

میوزک ایل ایم ٹیکسٹ پرامپٹ کو میوزیکل آڈیو سے کیسے جوڑتا ہے؟

MuLan کو تربیت دی جاتی ہے تاکہ متن کی تفصیل اور آڈیو نقشے کو ایک مشترکہ ایمبیڈنگ اسپیس میں قریبی پوائنٹس سے ملایا جا سکے، جس سے ٹیکسٹ کنڈیشنگ کو فعال کیا جا سکے۔

درجہ بندی، مرحلہ وار ڈیزائن طویل فاصلے کے ڈھانچے میں کیوں مدد کرتا ہے؟

اسپارس سیمنٹک ٹوکن آہستہ آہستہ تبدیل ہوتے ہیں، اس لیے ایک ٹرانسفارمر گھنے صوتی تفصیل کے بھرنے سے پہلے طویل مدتی فارم کو موثر انداز میں ماڈل بنا سکتا ہے۔