Machine learning in bioinformatics

How do Transformers understand what's important in a sentence?

Image: Yuening Jia, CC BY-SA 3.0, via Wikimedia Commons

Machine learning in bioinformatics

How do Transformers understand what's important in a sentence?

Imagine you're trying to summarize a long article for a friend. You want to focus on the most important parts.

In Transformers, there's a special way to pick out the key parts of a sentence, like highlighting the most important words when summarizing an article.

Example

If the sentence is "The cat sat on the mat," the Transformer might highlight "cat" and "sat" as key parts.

Remember this

Self-attention weighting helps Transformers focus on the most important words in a sentence.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath