Docsity

Language Models Lecture Notes, Lecture notes of Digital Marketing

Toggle sidebar
bg1
Language Models Notes
โ— Evolution: First came text analysis
โ—‹ Bag of words analysis
โ–  Parsing, tokenization/stemming and stop words
โ–  Sentiment coding
โ—‹ Topic Modeling (WordStat)
โ–  Rules based vs. machine learning
โ— Rules based (e.g., keyword search, Linguistic Inquiry and
Word Count (LIWC))
โ–  Latent Dirichlet Allocation (LDA) - generative statistical model based
on โ€œsegmentsโ€ of words
โ–  Dimension reduction modeling such as word embedding and
word2vec
โ—‹ Then came graphs
โ–  Co-occurrences
โ–  Networks
โ— Bipartite/Two-Mode Networks
โ—‹ What is a bipartite/two-mode network?
โ–  Finding common words between two different modes and comparing
โ—‹ Application to language
โ— Language Models
โ—‹ Masked language models
โ–  BERT (or Bidirectional Encoder Representation from Transformers)
โ— Google 2019
โ— Context dependent
โ— Pre-trained
โ—‹ 340 million parameter
โ—‹ Toronto BookCurpus (800M words)
โ—‹ English Wikipedia (2,500 words)
โ— Computes/predicts the probability of masked word or next
sentence
โ–  Example: โ€œI took my dog to the ___ when eh wasnโ€™t feeling well.โ€
โ—‹ Generative models
โ–  GPT (or generative pre-trained transformer)
โ–  Generates original content, pre-trained or document library
โ— Training data
โ—‹ GPT-3
โ–  8 million documents
โ–  10 billion words
โ–  175 billion parameters
โ–  Trained on 570 GB of datasets (webpages, books, others)
โ–  Data ends September 2021
โ–  Fine tuned by humans
โ—‹ GPT-4
โ–  Same training data
pf2

Partial preview of the text

Download Language Models Lecture Notes and more Lecture notes Digital Marketing in PDF only on Docsity!

Language Models Notes โ— Evolution: First came text analysis โ—‹ Bag of words analysis โ–  Parsing, tokenization/stemming and stop words โ–  Sentiment coding โ—‹ Topic Modeling (WordStat) โ–  Rules based vs. machine learning โ— Rules based (e.g., keyword search, Linguistic Inquiry and Word Count (LIWC)) โ–  Latent Dirichlet Allocation (LDA) - generative statistical model based on โ€œsegmentsโ€ of words โ–  Dimension reduction modeling such as word embedding and word2vec โ—‹ Then came graphs โ–  Co-occurrences โ–  Networks โ— Bipartite/Two-Mode Networks โ—‹ What is a bipartite/two-mode network? โ–  Finding common words between two different modes and comparing โ—‹ Application to language โ— Language Models โ—‹ Masked language models โ–  BERT (or Bidirectional Encoder Representation from Transformers) โ— Google 2019 โ— Context dependent โ— Pre-trained โ—‹ 340 million parameter โ—‹ Toronto BookCurpus (800M words) โ—‹ English Wikipedia (2,500 words) โ— Computes/predicts the probability of masked word or next sentence โ–  Example: โ€œI took my dog to the ___ when eh wasnโ€™t feeling well.โ€ โ—‹ Generative models โ–  GPT (or generative pre-trained transformer) โ–  Generates original content, pre-trained or document library โ— Training data โ—‹ GPT- โ–  8 million documents โ–  10 billion words โ–  175 billion parameters โ–  Trained on 570 GB of datasets (webpages, books, others) โ–  Data ends September 2021 โ–  Fine tuned by humans โ—‹ GPT- โ–  Same training data

โ–  1.76 trillion parameters โ— Language vs. Knowledge โ—‹ ChatGPT โ–  Language models just know what is the most probable next word is โ— It is not trained on facts so it doesnโ€™t have knowledge โ—‹ Bing Chat โ–  Has a knowledge graph from itโ€™s search engine โ–  Then uses words from language model to dress up the response โ—‹ Google Assistant โ–  These are trained on existing facts which is considered knowledge โ—‹ Alexa โ–  Coupling knowledge graph with a language AI graph to create responses that are more conversational โ— GenAI beyond text โ—‹ Dall-E โ—‹ Adobe Photoshop โ—‹ Copyrights? โ— Marketing Applications โ—‹ What can GPT do and what can it not do? โ–  GPT is a language model, not informational model โ–  Marketing research โ— Yes, but limited circumstances โ–  Customer service โ— Use to phrase in a specific way โ–  Marketing messaging โ— Yes, wording messages to target curtain customers โ–  Creativity/innovation โ— It cannot create truly creative and innovative responses โ—‹