Note 3: GPT

2020-07-12  本文已影响0人  qin7zhen

Improving Language Understanding by Generative Pre-Training

Radford et al., (2018)

  1. GPT (Generative Pre-Training) is semi-supervised approach for language understanding tasks using a combination of unsupervised pre-training and supervised fine-tuning.
    • Goal: It can learn a universal representation that transfers with little adaptation to a wide range of tasks.
    • Assumption: We have a large corpus of unlabeled text and several annotated training sets.

2. Two-stage training procedure

3. Unsupervised pre-training

Given an unsupervised corpus of tokens U=\{u_1, \ldots, u_n\}.

4. Supervised fine-tuning

Given a labeled dataset C where each instance is a sequence of input tokens [x^1, \ldots, x^m] along with a label y.

5. Task-specific input transformations

All following transformations include adding randomly initialized start and end tokens (\langle s \rangle, \langle e \rangle).

Radford et al., (2018)

Reference

Radford, A., Narasimhan, K., Salimans, T., & Sutskever, I. (2018). Improving language understanding by generative pre-training.
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., ... & Polosukhin, I. (2017). Attention is all you need. In Advances in neural information processing systems (pp. 5998-6008).

上一篇 下一篇

猜你喜欢

热点阅读