liveBook · Manning

Parameter efficiency

As explained in Transfer Learning for Natural Language Processing

Parameter efficiency is the goal of reducing a model’s number of parameters while preserving as much performance as possible.

Parameter efficiency means using as few model parameters as possible while minimizing the loss in performance. A smaller model is easier to store and can be easier to deploy on devices such as smartphones. The tradeoff is not just size: the model still needs to perform well enough for its task. section 9.0

One route to a smaller model is knowledge distillation. A smaller student model learns to mimic the output of a larger teacher model. Weight pruning and quantization are other model-compression methods. section 9.0

Compressing BERT

DistilBERT provides an example of knowledge distillation for BERT. Its implementation in the transformers library demonstrates that BERT model size can be more than halved. A useful comparison also considers any reduction in task performance; no numerical performance comparison is given here. section 11.1

Other adaptation strategies focus on effective transfer rather than directly reducing model size. Gradual unfreezing progressively unfreezes network sublayers for fine-tuning, while discriminative fine-tuning assigns different learning rates to different layers. Such strategies can help reach acceptable performance in difficult transfer cases. section 9.0

How Transfer Learning for Natural Language Processing covers it

How deep it goes
Defines the size–performance goal and outlines distillation and fine-tuning strategies, without giving a numerical performance comparison.
Examples
Uses DistilBERT to illustrate more than halving BERT model size and identifies smartphone deployment as a motivation.
What you can do after
Evaluate model-size and performance tradeoffs when considering compression for deployment.
How it connects
Connects parameter efficiency to transfer learning, knowledge distillation, model compression, gradual unfreezing, and discriminative fine-tuning.

This explainer was generated by Manning's knowledge graph from the text of Transfer Learning for Natural Language Processing. The section links point to the parts of the book it draws on.