1 of 36

The Era of Large Models

An Introduction to Large Foundation Models For Language and Bio

​

Kangjie Zheng

2 of 36

What is AI doing?

​

​

  • Let machines think like humans.
    • How should computers model and learn the human knowledge?

​

    • How to efficiently enable the model to complete the training process?

​

    • What kind of data should we provide for the model to learn?
      • Model (Learning Algorithm)
      • Computing Capability
      • Training Data

3 of 36

The history of AI

​

​

  • Three key factors:
    • Model
    • Computing Capability
    • Training Data

→ Larger Model

→ More Powerful Computing Capability

​

→ More Training Data

​

Larger Model

Computing Capability

More Data

4 of 36

The history of AI

​

​

  • AlexNet, 2012:
    • Model
      • From shallow neural network to deep neural network (DNN)
      • 1 or 2 Layers → 8 Layers (Parameters: less than 1M → 61.1M)
    • Computing Capability
      • From CPU to GPU: 2 GPU
    • Training Data
      • Dataset: ImageNet (1.2 million training images)
      • Before: MNIST (60,000 training images)
    • Big Success: First Place in ImageNet Large Scale Visual Recognition Challenge 2012

5 of 36

The history of AI

​

​

  • DNN is everywhere:
    • We can train a DNN for each different task.

​

MT DNN

I am very happy today

我今天很高兴

GEC DNN

I am very happily today

I am very happily happy today

​

SA DNN

I am very happy today

​

Positive

Machine Translation

Grammar Error Correction

Sentiment Analysis

6 of 36

The history of AI

​

​

  • DNN is everywhere:
    • For a new task
      • Collecting data
      • Train a DNN on a powerful GPU
  • Until one day…

Larger Model

Computing Capability

More Data

7 of 36

The history of AI

​

​

  • How much data do we really need ?
    • OpenAI’s experience (D: dataset size, N: model size):

​

    • For every 10 times increase in model size, the dataset size should increase by 5.5 times.

​

  • Data is always the most important issue:
    • For many tasks
      • Low data quality
      • The cost of collecting data is extremely high

So what’s the solution?

8 of 36

The history of AI

​

​

  • DNN is everywhere:
    • We can train a DNN for each different task.

​

MT DNN

I am very happy today

我今天很高兴

GEC DNN

I am very happily today

I am very happily happy today

​

SA DNN

I am very happy today

​

Positive

Machine Translation

Grammar Error Correction

Sentiment Analysis

different tasks can also have similarities.

9 of 36

The history of AI: Transfer Learning

​

​

​

MT DNN

GEC DNN

SA DNN

Machine Translation

Grammar Error Correction

Sentiment Analysis

A Foundation model which is proficient in languages

Knowledge Transfer

Knowledge Transfer

Knowledge Transfer

All we need is just lots of text data.

Large amount of text data

10 of 36

The history of AI: Transfer Learning

​

​

A Foundation model which is proficient in languages

Reading

Writing

BERT

Masked Language Model

I

am

[M]

today

happy

Auto-regressive Language Model

I

want

to

sleep

GPT

I

want

to

sleep

Pre-trained Model(预训练模型)

GPT

Generative Pre-trained Transformers

I

want

to

sleep

Large amount of text data

11 of 36

The history of AI

​

​

  • BERT, 2018:
    • Model
      • 24 Transformer Layers
      • Parameters: 340M
    • Computing Capability
      • 16 TPU × 4 days
    • Training Data
      • Dataset: BooksCorpus + Wikipedia (3300M Words)
    • Big Success: Achieve top performance on over 11 NLP tasks, and become a fundamental technology in NLP models.

12 of 36

The history of AI

​

​

  • We analyze the vector representations learned by BERT for the word “die”

Reif, Emily, et al. "Visualizing and measuring the geometry of BERT." Advances in Neural Information Processing Systems 32 (2019).

13 of 36

The history of AI

​

​

  • Pre-training and Fine-tuning:

Pre-trained Model

Task-specific but Small NN

I am very happy today

Positive

  • The large amount of knowledge can be transferred to downstream tasks.
  • To prevent overfitting, we can only train the task-specific network. (We have small tasks but big models !)
  • The lower the resource tasks, the greater the performance gain this method brings.

14 of 36

The history of AI

​

​

  • Pre-training and Fine-tuning:

15 of 36

The applications of Pre-training

​

​

  • Pre-training in Protein:
  • Why Protein: Proteins perform a vast array of functions within organisms.

16 of 36

The applications of Pre-training

​

​

  • Pre-training in Protein:
  • Similarities between proteins and languages
    • Discrete symbol sequences are very important information carriers
      • Similar modeling methods
      • Core problems are similar
    • Large scale and high-quality sequence data is easy to obtain

17 of 36

The applications of Pre-training

​

​

  • Pre-training in Protein:
    • ESM-2

Lin, Zeming, et al. Evolutionary-scale prediction of atomic-level protein structure with a language model. Science 379.6637 (2023): 1123-1130.

18 of 36

The applications of Pre-training

​

​

  • ESMFold VS AlphaFold2

​

    • ESMFold adopts pre-training techniques

​

    • AlphaFold2 uses MSA information
      • ESMFold is faster

19 of 36

The applications of Pre-training

​

​

  • Pre-training in genomic data: Genomic Pre-trained Network

Benegas, Gonzalo, Sanjit Singh Batra, and Yun S. Song. "DNA language models are powerful predictors of genome-wide variant effects." PNAS 2023.

20 of 36

Future Directions

Let’s go back to the future first !

以史为鉴,可以知兴替

——李世民

21 of 36

Back to the future

  • In fact, when we just reviewed the history of AI, we only looked back to 2018.
  • So what happened in AI research after 2018 ?
    • Large Language Model(大语言模型)
    • Multi-modal model (多模态模型)

22 of 36

Back to the future

  • Larger is better !
    • We need the largest model !

​

Larger Model

Computing Capability

More Data

23 of 36

Back to the future

  • What’s the best model for language ?
    • BERT or GPT ?

BERT: Reading

GPT: Writing

√

24 of 36

Back to the future

  • Generative pre-training is a more difficult and powerful training method.

Liu, Xiao, et al. "GPT Understands, Too." arXiv e-prints (2021): arXiv-2103.

25 of 36

Back to the future

  • Large Language Model
    • First proposed by OpenAI in 2020 (GPT-3).
    • Expanded the parameter size of GPT to 175 billion.

26 of 36

Back to the future

  • Large Language Model
    • First proposed by OpenAI in 2020 (GPT-3).
    • Expanded the parameter size of GPT to 175 billion.
      • Emergent Abilities(涌现能力)
        • Arithmetic
        • Multi-step reasoning

27 of 36

Back to the future

  • Large Language Model
    • First proposed by OpenAI in 2020 (GPT-3).
    • Expanded the parameter size of GPT to 175 billion.
      • Emergent Abilities(涌现能力)
        • Arithmetic
        • Multi-step reasoning
      • Significant improvement in zero-shot learning ability
        • It’s an ultimate pre-trained model

28 of 36

Back to the future

  • Expand model capabilities in more dimension
    • Now that the model language ability has reached an extreme?
    • What about vision ability?

Apple

29 of 36

Back to the future

  • Multi-modal model
    • Give a single model the ability to understand multiple types of information (Unified)
    • Influence: Make vision models smarter.

​

Apple

???

30 of 36

Back to the future

  • Multi-modal model
    • Give a single model the ability to understand multiple types of information (Unified)
    • Influence: Make vision models smater.

Apple

Red

Green

Green apple

31 of 36

Back to the future

  • Multi-modal model
    • Give a single model the ability to understand multiple types of information (Unified)
    • Influence: Make vision models smater.
    • Aligning information from different modalities can help each other learn more complete semantics

1 + 1 > 2

取长补短,相得益彰

32 of 36

Back to the future

  • Multi-modal model application: Stable Diffusion

33 of 36

Back to the future

  • Multi-modal model application: GPT-4v

34 of 36

Future Directions

  • Larger models require more data.
  • Key Points 1: More Data, More Modalities
    • Text, Images, Videos, Speech…
  • Key Points 2: Unification
    • Unification has always been an important pursuit of many researchers.
  • Integrating multi-modal data in biology (Unify everything !)
    • Biological data includes data in various modalities.

35 of 36

References

[1] Krizhevsky, Alex, Ilya Sutskever, and Geoffrey E. Hinton. "Imagenet classification with deep convolutional neural networks." Advances in neural information processing systems 25 (2012).

[2] Kaplan, Jared, et al. "Scaling laws for neural language models." arXiv preprint arXiv:2001.08361 (2020).

[3] Devlin, Jacob, et al. "Bert: Pre-training of deep bidirectional transformers for language understanding." arXiv preprint arXiv:1810.04805 (2018).

[4] Radford, Alec, et al. "Improving language understanding by generative pre-training." (2018).

[5] Radford, Alec, et al. "Language models are unsupervised multitask learners." OpenAI blog 1.8 (2019): 9.

[6] Brown, Tom, et al. "Language models are few-shot learners." Advances in neural information processing systems 33 (2020): 1877-1901.

[7] Rives, Alexander, et al. "Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences." Proceedings of the National Academy of Sciences 118.15 (2021): e2016239118.

[8] Lin, Zeming, et al. Evolutionary-scale prediction of atomic-level protein structure with a language model. Science 379.6637 (2023): 1123-1130.

[9] Jumper, John, et al. "Highly accurate protein structure prediction with AlphaFold." Nature 596.7873 (2021): 583-589.

[10] Zheng, Zaixiang, et al. "Structure-informed language models are protein designers." ICML (2023)

[11] Rao, Roshan, et al. "Transformer protein language models are unsupervised structure learners." Biorxiv (2020): 2020-12.

[12] Meier, Joshua, et al. "Language models enable zero-shot prediction of the effects of mutations on protein function." Advances in Neural Information Processing Systems 34 (2021): 29287-29303.

[13] Theodoris, Christina V., et al. "Transfer learning enables predictions in network biology." Nature (2023): 1-9.

[14] Benegas, Gonzalo, Sanjit Singh Batra, and Yun S. Song. "DNA language models are powerful predictors of genome-wide variant effects." PNAS 2023.

[15] Wei, Jason, et al. "Emergent abilities of large language models." arXiv preprint arXiv:2206.07682 (2022).

[16] Radford, Alec, et al. "Learning transferable visual models from natural language supervision." International conference on machine learning. PMLR, 2021.

[17] Gao, Bowen, et al. "DrugCLIP: Contrastive Protein-Molecule Representation Learning for Virtual Screening." NIPS 2023.

[18] Reif, Emily, et al. "Visualizing and measuring the geometry of BERT." Advances in Neural Information Processing Systems 32 (2019).

​

​

36 of 36

Thanks