Lunar Boom Learning

4.2 · Training From Scratch Versus Fine-Tuning

Section 4.2 of 4.6

Training From Scratch Versus Fine-Tuning

Choosing how much of the model should change

Compare training a music model from random initialisation with continued pretraining, full and partial fine-tuning, adapters, LoRA, new conditioning modules, and inference-only use.

About 15 minutes

Guiding question

When is training from scratch justified?

By the end, you’ll be able to
  • Distinguish training from scratch, continued pretraining, fine-tuning, parameter-efficient adaptation, and inference-only use.
  • Explain what is preserved and changed under each adaptation strategy.
  • Compare full fine-tuning, partial fine-tuning, adapter modules, and LoRA.
  • Explain how a new conditioning module can extend a pretrained music model.
  • Identify when an existing model is compatible with a new dataset, task, or control signal.
  • Evaluate adaptation strategies using data, compute, storage, rights, and deployment constraints.
  • Identify risks such as overfitting, catastrophic forgetting, architecture mismatch, and weak evaluation.

Section 1 explained the optimisation loop. The same loop can begin from two very different places.

A model can begin with randomly initialised parameters and learn the task from the available dataset. It can also begin with parameters that already encode useful musical and acoustic patterns.

The second option is usually called transfer learning or fine-tuning. Instead of relearning everything, the project adapts an existing model.

The practical decision is not simply train or do not train. There is a spectrum ranging from inference-only use to updating every model parameter.

The adaptation spectrum

Swipe sideways to view the full comparison

StrategyBase parametersNew trainable parametersTypical purpose
Inference onlyFrozenNoneUse the existing model through prompts and generation settings
Feature extraction or probingFrozenA small prediction headUse pretrained representations for a downstream task
New conditioning moduleUsually frozen or partly frozenA conditioner, projector, or fusion moduleAdd a new control signal or input modality
Adapter or LoRA tuningFrozenA small parameter-efficient updateAdapt behaviour while preserving and sharing the base model
Partial fine-tuningPartly frozenSelected existing layersAdapt a chosen region of the network
Full fine-tuningAll or nearly all updatedNo separate base requirement during useAdapt the complete model to a new distribution or task
Continued pretrainingAll or many updatedUsually no new task headContinue the original learning objective on new domain data
Training from scratchRandomly initialisedAll trainable componentsBuild a new model or representation without inherited generator weights

Training from scratch

Training from scratch gives the project control over the model architecture, tokenizer, objective, context length, and conditioning design.

It also removes the behavioural assumptions inherited from a generator checkpoint. This can matter when the existing model uses an unsuitable representation or cannot support the required output.

The cost is that the new model must learn basic musical, acoustic, and conditioning relationships before it can specialise. That normally requires more data, more optimiser steps, more compute, and more failed experiments than adapting a capable pretrained model.

What training from scratch requires

Swipe sideways to view the full comparison

RequirementWhy it mattersPossible failure
Large and relevant datasetThe model must learn both general patterns and project-specific behaviourWeak coverage or memorisation
Suitable representationThe tokenizer or latent space defines what the model predictsPoor reconstruction or impractical sequence length
Compute and memoryAll model parameters and optimiser states must be trainedThe model cannot reach a useful scale or training length
Stable training pipelineLong runs magnify data, numerical, and checkpointing errorsDivergence or wasted compute
Evaluation systemLoss alone cannot determine whether the music is usefulA technically trained model with weak musical output
Rights and documentationEvery training asset and model component must be accounted forA technically successful model that cannot be released safely

In practice

When training from scratch may be justified

A project may need a new model when existing systems use the wrong output representation, cannot support the desired duration or control architecture, have unsuitable usage terms, or perform poorly on a domain despite careful adaptation. The decision should follow evidence from smaller baselines rather than prestige.

Continued pretraining

Continued pretraining keeps the same general task but changes the data distribution.

For a MusicGen-style language model, this could mean continuing codec-token prediction on a new licensed music collection while preserving the existing text-to-music architecture.

This approach can teach the model more about a domain without inventing a new output task. However, a narrow dataset can pull the model away from earlier capabilities if it dominates the updates.

Full fine-tuning

Full fine-tuning gives the adaptation process access to the complete pretrained model. It can change low-level, middle-level, and high-level representations.

This flexibility can be valuable when the new domain differs substantially from the original training distribution.

It also requires storing gradients and optimiser state for the full trainable model. A small or repetitive adaptation dataset can overfit, narrow the model, or damage capabilities that were useful before adaptation.

Freezing more or less of the model

Swipe sideways to view the full comparison

ChoicePossible benefitPossible limitation
Freeze the complete baseLow training cost and strong preservation of the base checkpointThe new task must fit the existing representations
Train the final layersAllows some task-specific adaptationEarlier features remain fixed
Train selected blocksTargets a chosen part of the modelThe best layer choice is not obvious
Train the full modelMaximum adaptation capacityHighest memory cost and greater risk of disrupting earlier behaviour

Parameter-efficient adaptation

Large pretrained models are expensive to duplicate and update for every new task.

Parameter-efficient methods keep the base checkpoint shared and store a much smaller task-specific update. This reduces trainable parameter count and can reduce optimiser memory and checkpoint storage.

The smaller update is still capable of overfitting or learning the wrong behaviour. Parameter efficiency describes how much is trained, not whether the adaptation is correct.

Adapter modules

The original adapter approach inserts small trainable layers into a pretrained network. The base parameters remain fixed, while each downstream task receives its own adapter parameters.

Adapters can be swapped while sharing one base model. They can also introduce extra operations during inference because the audio or token representation passes through the added modules.

Adapter capacity and placement matter. A module that is too small may not express the required change, while an unnecessarily large adapter reduces the efficiency advantage.

Low-rank adaptation

LoRA represents the adaptation to a large weight matrix through two smaller trainable matrices.

The original weight remains frozen. During the forward pass, the base transformation and the low-rank update are combined.

After training, the update can often be stored separately or merged into the base weight for deployment. The rank controls the capacity and parameter count of the update.

Adapters and LoRA

Swipe sideways to view the full comparison

PropertyAdapter moduleLoRA
Where adaptation appearsNew layers or branches in the networkLow-rank updates to selected weight matrices
Base weightsUsually frozenFrozen
Stored adaptationAdapter parametersLow-rank matrices
Inference pathUsually passes through additional modulesUpdate can often be merged into the base weights
Capacity choiceAdapter size and placementRank, target modules, and scaling
Common riskAdapter is too weak or placed poorlyLow-rank update is too restrictive for the required change

In practice

Real-world example: music foundation models

A study of parameter-efficient transfer learning for music foundation models compared adapter-based, prompt-based, and reparameterisation-based methods. On the tested music-information tasks, parameter-efficient methods matched or exceeded full fine-tuning in several settings while training far fewer parameters. The result was task-dependent, and a small model trained from scratch remained competitive on some tasks.

Adding a new conditioning module

A pretrained generator may already produce suitable music but lack the required input control.

Instead of retraining the complete model, a project can add an encoder, projection, cross-attention branch, or fusion module that translates the new input into features the generator can use.

The base model may remain frozen, or selected parts may be fine-tuned jointly with the new module. This strategy is useful when the desired change is mainly about how the model is controlled rather than what representation it generates.

Examples in practice

Real-world example: Audio Prompt Adapter

Audio Prompt Adapter adds audio-input conditioning to a pretrained AudioLDM2 system. It uses a pretrained audio feature extractor and attention-based adapters, with 22 million trainable parameters reported in the paper, to support timbre transfer, genre transfer, and accompaniment generation without fully retraining the base generator.

Real-world example: MusicGen-Style

MusicGen-Style explored two audio-conditioning strategies. Textual inversion mapped audio into the embedding space of a pretrained text-to-music model without training the complete generator from scratch. A second strategy trained a music model jointly with a text conditioner and a quantised audio feature extractor.

Real-world example: JASCO

JASCO was designed for global text control together with local symbolic and audio controls such as chords, melody, drums, and full-mix references. It illustrates how a new architecture and conditioning method may be preferable when the control requirements exceed the interface of an existing checkpoint.

Inference-only use

Many projects do not need adaptation.

Prompts, melodies, reference inputs, decoding settings, candidate ranking, editing tools, and post-processing may already provide enough control.

Inference-only use avoids training cost and preserves the released checkpoint exactly. It cannot teach the model a genuinely new output representation or reliably add behaviour that the model and its interface do not support.

Try inference before adaptation

Swipe sideways to view the full comparison

NeedPossible inference-only responseWhen training may still be needed
Better prompt adherenceRewrite prompts, generate candidates, adjust guidanceThe base model consistently ignores the attribute
A narrower genreUse precise descriptions and reference controlsThe genre is poorly represented by the base model
Longer outputsUse continuation or structured assemblyThe architecture cannot maintain the required duration
A new control inputTranslate the input into supported text or melodyThe lost information requires a dedicated conditioner
Consistent production styleUse style references and post-processingThe model cannot reproduce the required acoustic characteristics

Check compatibility before loading a checkpoint

A checkpoint contains parameter tensors with expected shapes and names. It is not a generic package that can initialise any new architecture.

Changing the model width, number of layers, conditioner, codec codebooks, vocabulary, or output representation can create incompatible parameters.

Meta's AudioCraft fine-tuning documentation warns that the configuration is not inherited automatically and that changed model layers require manual checkpoint handling.

Adaptation can weaken earlier abilities

Updating a model on a new task can reduce performance on capabilities learned before adaptation. This is commonly called catastrophic forgetting or catastrophic interference.

For music generation, a model adapted aggressively to one narrow collection might improve on that style while becoming less diverse, less responsive to other prompts, or less stable outside the adaptation domain.

The risk depends on the data, update size, strategy, and how much of the model is changed.

Reducing adaptation damage

  1. Establish a base-model evaluation

    Measure the original checkpoint on both target-domain and general prompts.

  2. Keep validation data outside the adaptation set

    Test whether the apparent improvement transfers beyond the training examples.

  3. Use conservative updates

    Begin with a suitable learning rate, limited steps, or a smaller trainable parameter set.

  4. Retain broader data when permitted

    Mix or rehearse examples representing capabilities that should remain stable.

  5. Compare against inference-only and smaller baselines

    Confirm that training adds value beyond prompting, retrieval, or a simpler model.

  6. Save and evaluate several checkpoints

    The final training step is not necessarily the best balance between adaptation and retention.

Choose an adaptation strategy

  1. Define the missing capability

    State whether the problem is domain knowledge, sound quality, output structure, prompt control, editing, or a new input modality.

  2. Test the base model

    Measure what prompting, references, decoding, and post-processing can already achieve.

  3. Check architecture compatibility

    Confirm that the representation, context length, output format, and model interface can support the goal.

  4. Audit rights and licences

    Verify permissions for the base model, training data, references, and intended release.

  5. Start with the smallest credible intervention

    Try inference-only use, a new head, an adapter, LoRA, or partial fine-tuning before full retraining.

  6. Evaluate retained capabilities

    Compare the adapted model with the base model on target and non-target tasks.

  7. Escalate only when evidence supports it

    Move toward full fine-tuning or training from scratch when smaller methods cannot express the required change.

Matching a strategy to a music project

Swipe sideways to view the full comparison

ScenarioLikely starting strategyReason
Generate from a supported genre with better promptsInference onlyNo evidence yet that parameter updates are necessary
Adapt a general model to a small licensed percussion collectionLoRA, adapter, or partial fine-tuningThe base model already knows music and audio generation
Improve the model's understanding of new caption vocabularyConditioner tuning or continued pretrainingThe output representation may already be suitable
Add audio-reference editing to a text-only generatorNew conditioning module or adapterThe missing capability is a new input pathway
Build a generator using a different codec and token structureTrain a new generator or perform substantial architectural adaptationExisting output layers may be incompatible
Create a frontier-scale general music modelTraining from scratch or large-scale continued pretrainingThe project requires broad capability and extensive control over architecture
Deploy several specialised styles from one shared baseSeparate adapters or LoRA checkpointsThe base can be reused while storing compact adaptations

Interactive lesson

Choose a Model Adaptation Strategy

Try it: Select a scenario and record the required output, available data, compute budget, rights status, and compatibility with the base model. Compare the recommended strategy with at least two alternatives, then inspect what is trained, stored, evaluated, and deployed.

Training from scratch updates newly initialised generator parameters. Full fine-tuning updates the complete pretrained model. Partial fine-tuning changes selected layers. Adapters and LoRA train compact updates while sharing a frozen base. New conditioning modules add control pathways, while inference-only use changes no parameters.

Test the decision on a small scale

Selecting a strategy is only the beginning. Before committing to a large training run, the project needs a small experiment with a clear hypothesis, controlled variables, a baseline, validation data, and stopping criteria.

The next section, Designing a Small Experiment, turns the selected adaptation strategy into a testable training plan.

Check your understanding

Ready for a quick check?

Test whether you can distinguish model adaptation strategies and select an approach that fits the data, architecture, compute, and control requirements.

Ready to continue?

Save this section to your account and continue from any device.

Checking your account…
Sources for this lesson (19)
  1. Transfer Learning for Computer Vision Tutorial — Sasank Chilamkurthy and PyTorch contributors
  2. A Gentle Introduction to torch.autograd — PyTorch contributors
  3. Getting Started with Fully Sharded Data Parallel — PyTorch contributors
  4. Parameter-Efficient Transfer Learning for NLP — Neil Houlsby et al. (2019)
  5. LoRA: Low-Rank Adaptation of Large Language Models — Edward J. Hu et al. (2022)
  6. Parameter-Efficient Fine-Tuning — Hugging Face contributors
  7. LoRA Conceptual Guide — Hugging Face contributors
  8. Simple and Controllable Music Generation — Jade Copet et al. (2023)
  9. MusicGen Documentation — Meta AI
  10. AudioCraft MusicGen Model API — Meta AI
  11. AudioCraft Training Documentation — Meta AI
  12. MAGNeT Training and Fine-Tuning Documentation — Meta AI
  13. Parameter-Efficient Transfer Learning for Music Foundation Models — Yiwei Ding and Alexander Lerch (2024)
  14. Exploring Adapter Design Tradeoffs for Low Resource Music Generation — Atharva Mehta, Shivam Chauhan, and Monojit Choudhury (2025)
  15. Audio Prompt Adapter: Unleashing Music Editing Abilities for Text-to-Music with Lightweight Finetuning — Fang-Duo Tsai et al. (2024)
  16. Audio Conditioning for Music Generation via Discrete Bottleneck Features — Simon Rouard et al. (2024)
  17. Joint Audio and Symbolic Conditioning for Temporally Controlled Text-to-Music Generation — Or Tal et al. (2024)
  18. Overcoming Catastrophic Forgetting in Neural Networks — James Kirkpatrick et al. (2017)
  19. Catastrophic Forgetting in the Context of Model Updates — Rich Harang and Hillary Sanders (2023)
Browse all contextual sources →