liveBook · Manning

BERT

As explained in Machine Learning System Design

BERT is a pretrained bidirectional transformer language model that produces contextual representations of text.

BERT is a pretrained bidirectional transformer language model that turns text into contextual, low-dimensional representations. Those embeddings can become features for a downstream machine-learning model, preserving richer sequential information than representations that discard word order. section 11.1.2

Use BERT when text must become model-ready features:

  • Represent input text in an embedding space and feed the resulting vectors to a final model. section 11.1.2
  • Prefer richer language representations when bag-of-words, TF-IDF, or BM25 are insufficient because they lose word-order information. section 11.1.2
  • Treat other sequential data as tokens when designing embedding-based features, such as user sessions made of visited pages or watched videos. section 11.1.2

Recommendation features

A recommendation system can represent a user session as a sequence of visited product pages or watched videos, then use learned representations in a next-page prediction task to infer the user’s likely interest. section 11.1.2

How Machine Learning System Design covers it

How deep it goes
Defines BERT’s embedding role but stops short of explaining transformer internals, pretraining, or fine-tuning procedures.
Examples
Uses text features and user sessions of visited pages or watched videos as sequential embedding examples.
What it assumes
Assumes familiarity with sequential data, tokens, embeddings, and machine-learning features.
What you can do after
Apply BERT embeddings as low-dimensional input features for a final model.
How it connects
Connects BERT with embeddings, tokenization, bag-of-words, TF-IDF, BM25, n-grams, and downstream models.

Also explained in

Compare how 9 books explain BERT →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.