<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Transformer on davethehuman.com</title><link>https://davethehuman.com/tags/transformer/</link><description>Recent content in Transformer on davethehuman.com</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 Dave the human</copyright><lastBuildDate>Mon, 17 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://davethehuman.com/tags/transformer/index.xml" rel="self" type="application/rss+xml"/><item><title>Attention Is All You Need</title><link>https://davethehuman.com/notes/attention-is-all-you-need/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/attention-is-all-you-need/</guid><description>&lt;p&gt;The &lt;a href="https://arxiv.org/pdf/1706.03762"&gt;paper&lt;/a&gt; that introduced the &lt;a href="https://davethehuman.com/notes/self-attention-mechanism/"&gt;self-attention mechanism&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>BERT</title><link>https://davethehuman.com/notes/bert/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/bert/</guid><description>&lt;p&gt;&lt;em&gt;BERT&lt;/em&gt; (&lt;em&gt;Bidirectional Encoder Representations from Transformer&lt;/em&gt;) is a variant of the &lt;a href="https://davethehuman.com/notes/transformer/"&gt;transformer&lt;/a&gt; architecture built upon the original &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;encoder&lt;/a&gt; submodule.
It specialises in masked word prediction and it is very strong in &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;classification&lt;/a&gt; tasks, like sentiment prediction and document categorization.&lt;/p&gt;</description></item><item><title>few-shot</title><link>https://davethehuman.com/notes/few-shot/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/few-shot/</guid><description>&lt;p&gt;&lt;em&gt;Few-shot&lt;/em&gt; refers to the ability of a model to learn from a minimal number of examples provided by a user as input.&lt;/p&gt;</description></item><item><title>GPT</title><link>https://davethehuman.com/notes/gpt/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/gpt/</guid><description>&lt;p&gt;&lt;em&gt;GPT&lt;/em&gt; (&lt;em&gt;Generative Pretrained Trasnsformer&lt;/em&gt;) is a variant of the &lt;a href="https://davethehuman.com/notes/transformer/"&gt;transformer&lt;/a&gt; architecture built upon the original &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;decoder&lt;/a&gt; submodule and is designed for generative tasks.
It was introduced by the paper &amp;ldquo;&lt;a href="https://davethehuman.com/notes/improving-language-understanding-by-generative-pre-training/"&gt;Improving Language Understanding by Generative Pre-Training&lt;/a&gt;&amp;rdquo; and specialises in generating texts and its application includes machine translation, text summarization, fiction writing, writing computer code, and more.&lt;/p&gt;
&lt;p&gt;This type of models were primarily designed and trained for text completion tasks but they showed very versatile capabilities, both with &lt;a href="https://davethehuman.com/notes/zero-shot/"&gt;zero-shot&lt;/a&gt; and &lt;a href="https://davethehuman.com/notes/few-shot/"&gt;few-shot&lt;/a&gt; learning tasks.&lt;/p&gt;</description></item><item><title>Improving Language Understanding by Generative Pre-Training</title><link>https://davethehuman.com/notes/improving-language-understanding-by-generative-pre-training/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/improving-language-understanding-by-generative-pre-training/</guid><description>&lt;p&gt;The &lt;a href="https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf"&gt;paper&lt;/a&gt; that introduced &lt;a href="https://davethehuman.com/notes/gpt/"&gt;GPT&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>self-attention mechanism</title><link>https://davethehuman.com/notes/self-attention-mechanism/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/self-attention-mechanism/</guid><description>&lt;p&gt;The &lt;em&gt;self-attention mechanism&lt;/em&gt; allows the model to weigh the importance of different words or &lt;a href="https://davethehuman.com/notes/token/"&gt;token&lt;/a&gt;s in a sequence relative to each other, allowing to capture contextual relationships and long-range dependencies within the input data.&lt;/p&gt;
&lt;p&gt;This weighting mechanism enhance the ability of the model to generate coherent and relevant output.&lt;/p&gt;</description></item><item><title>transformer</title><link>https://davethehuman.com/notes/transformer/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/transformer/</guid><description>&lt;p&gt;The &lt;em&gt;transformer&lt;/em&gt; architecture is a deep &lt;a href="https://davethehuman.com/notes/neural-network/"&gt;neural network&lt;/a&gt; architecture introduced in the 2017 paper &lt;a href="https://davethehuman.com/notes/attention-is-all-you-need/"&gt;Attention Is All You Need&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Originally, the transformer was developed for &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;machine tranlsation&lt;/a&gt;, specifically to translate English texts to German and French.
Its architecture consists of two submodules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;encoder&lt;/a&gt; (that performs the &lt;a href="https://davethehuman.com/notes/encoding/"&gt;encoding&lt;/a&gt; and produces an &lt;a href="https://davethehuman.com/notes/embedding/"&gt;embedding&lt;/a&gt; representation)&lt;/li&gt;
&lt;li&gt;the &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;decoder&lt;/a&gt; (that performs the &lt;a href="https://davethehuman.com/notes/decoding/"&gt;decoding&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both of them consist of many &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;layer&lt;/a&gt;s connected by the &lt;a href="https://davethehuman.com/notes/self-attention-mechanism/"&gt;self-attention mechanism&lt;/a&gt;.
Famous variants of the transformer architecture are &lt;a href="https://davethehuman.com/notes/bert/"&gt;BERT&lt;/a&gt; and &lt;a href="https://davethehuman.com/notes/gpt/"&gt;GPT&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>zero-shot</title><link>https://davethehuman.com/notes/zero-shot/</link><pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/zero-shot/</guid><description>&lt;p&gt;&lt;em&gt;Zero-shot&lt;/em&gt; refers to the ability of a model to generalise to completely unseen tasks without any prior specific example.&lt;/p&gt;</description></item></channel></rss>