<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Deeplearning on davethehuman.com</title><link>https://davethehuman.com/tags/deeplearning/</link><description>Recent content in Deeplearning on davethehuman.com</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 Dave the human</copyright><lastBuildDate>Mon, 28 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://davethehuman.com/tags/deeplearning/index.xml" rel="self" type="application/rss+xml"/><item><title>biases</title><link>https://davethehuman.com/notes/biases/</link><pubDate>Mon, 28 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/biases/</guid><description>&lt;p&gt;

&lt;em&gt;Biases&lt;/em&gt; $b$ are constant values added to the sum of inputs and &lt;a href="https://davethehuman.com/notes/weights/"&gt;weights&lt;/a&gt; before passing through an &lt;a href="https://davethehuman.com/notes/activation-function/"&gt;activation function&lt;/a&gt;. Mathematically, their function is the same as the &lt;a href="https://davethehuman.com/notes/intercept/"&gt;intercept&lt;/a&gt; for &lt;a href="https://davethehuman.com/notes/linear-regression/"&gt;Linear Regression&lt;/a&gt;, and in this case they shift the activation curve to help the model fit complex patterns even when input values are zero.&lt;/p&gt;
&lt;p&gt;Together with &lt;a href="https://davethehuman.com/notes/weights/"&gt;weights&lt;/a&gt;, they are the core parameters for &lt;a href="https://davethehuman.com/notes/neural-network/"&gt;neural networks&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;&lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="auto"
 alt="biases"
 width="2000"
 height="1360"
 src="https://davethehuman.com/attachments/neural-network-biases_hu_a55f0e66869bec5e.png"
 srcset="https://davethehuman.com/attachments/neural-network-biases_hu_a55f0e66869bec5e.png 800w, https://davethehuman.com/attachments/neural-network-biases_hu_c526bedd6e4ae00a.png 1280w"
 sizes="(min-width: 768px) 50vw, 65vw"
 data-zoom-src="https://davethehuman.com/attachments/neural-network-biases.png"&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;The difference between &lt;em&gt;bias&lt;/em&gt; and &lt;em&gt;intercept&lt;/em&gt; and the shift they cause is where the shift happens:&lt;/p&gt;</description></item><item><title>leaky ReLU</title><link>https://davethehuman.com/notes/leaky-relu/</link><pubDate>Mon, 28 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/leaky-relu/</guid><description>&lt;p&gt;&lt;em&gt;LeakyReLU&lt;/em&gt; is a variation of the &lt;a href="https://davethehuman.com/notes/relu/"&gt;ReLU&lt;/a&gt; &lt;a href="https://davethehuman.com/notes/activation-function/"&gt;activation function&lt;/a&gt;:&lt;/p&gt;
$$
f(x) = \max(\alpha x, x)
$$&lt;p&gt;&lt;figure&gt;&lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt="Human evolution illustration"
 src="attachments/leaky-ReLU.png"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;It leaves positive inputs unvaried while multiplying the negative ones by a small positive constant $\alpha$.
Unlike ReLU, which outputs zero for any negative input, Leaky ReLU keeps a small slope on the negative side, allowing &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;gradients&lt;/a&gt; to flow through &lt;a href="https://davethehuman.com/notes/neuron/"&gt;neurons&lt;/a&gt; with negative inputs during &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;backpropagation&lt;/a&gt;, and mitigating the &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;dying ReLU&lt;/a&gt; problem.&lt;/p&gt;
&lt;p&gt;In standard Leaky ReLU, $\alpha$ is a fixed &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;hyperparameter&lt;/a&gt;, while in [PReLU] it is learned during training.&lt;/p&gt;</description></item><item><title>weights</title><link>https://davethehuman.com/notes/weights/</link><pubDate>Mon, 28 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/weights/</guid><description>&lt;p&gt;

In &lt;a href="https://davethehuman.com/notes/neural-network/"&gt;neural networks&lt;/a&gt;, &lt;em&gt;Weights&lt;/em&gt; $W$ are numerical coefficients assigned to connections between &lt;a href="https://davethehuman.com/notes/neuron/"&gt;neurons&lt;/a&gt;. They determine how much influence one neuron has on the next; higher weights mean stronger connections and greater importance given to that signal.&lt;/p&gt;
&lt;p&gt;Together with &lt;a href="https://davethehuman.com/notes/biases/"&gt;biases&lt;/a&gt;, they are the core parameters for neural networks.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;&lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="auto"
 alt="weights"
 width="2000"
 height="1360"
 src="https://davethehuman.com/attachments/neural-network-weights_hu_28bf33f36e54897e.png"
 srcset="https://davethehuman.com/attachments/neural-network-weights_hu_28bf33f36e54897e.png 800w, https://davethehuman.com/attachments/neural-network-weights_hu_b71c45c83cc08923.png 1280w"
 sizes="(min-width: 768px) 50vw, 65vw"
 data-zoom-src="https://davethehuman.com/attachments/neural-network-weights.png"&gt;&lt;/figure&gt;
&lt;/p&gt;</description></item><item><title>activation function</title><link>https://davethehuman.com/notes/activation-function/</link><pubDate>Tue, 22 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/activation-function/</guid><description>&lt;p&gt;An &lt;em&gt;Activation Function&lt;/em&gt; is a mathematical operation applied to the linear output of a &lt;a href="https://davethehuman.com/notes/neuron/"&gt;neuron&lt;/a&gt; to introduce non-linearity into a &lt;a href="https://davethehuman.com/notes/neural-network/"&gt;neural network&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Without activation functions, a multi-layer neural network collapses into a single linear transformation (similar to &lt;a href="https://davethehuman.com/notes/linear-regression/"&gt;Linear Regression&lt;/a&gt;) regardless of its depth:&lt;/p&gt;
$$
W_2(W_1 x + b_1) + b_2 = (W_2 W_1)x + (W_2 b_1 + b_2) = W'x + b'
$$&lt;p&gt;&lt;strong&gt;Non-linear activations allow networks to learn complex, non-linear decision boundaries&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Common examples of activation functions used in neural networks are:&lt;/p&gt;</description></item><item><title>ReLU</title><link>https://davethehuman.com/notes/relu/</link><pubDate>Tue, 22 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/relu/</guid><description>&lt;p&gt;&lt;em&gt;ReLU (Rectified Linear Unit)&lt;/em&gt; is an &lt;a href="https://davethehuman.com/notes/activation-function/"&gt;activation function&lt;/a&gt; with formula:&lt;/p&gt;
$$
f(x) = \max(0, x)
$$&lt;p&gt;&lt;figure&gt;&lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="auto"
 alt="Human evolution illustration"
 width="1600"
 height="1100"
 src="https://davethehuman.com/attachments/ReLU_hu_28a8d9f66b312ef8.png"
 srcset="https://davethehuman.com/attachments/ReLU_hu_28a8d9f66b312ef8.png 800w, https://davethehuman.com/attachments/ReLU_hu_c3bc7cbf58118f9b.png 1280w"
 sizes="(min-width: 768px) 50vw, 65vw"
 data-zoom-src="https://davethehuman.com/attachments/ReLU.png"&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;It is the &lt;strong&gt;default activation function in the &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;hidden layers&lt;/a&gt;&lt;/strong&gt; of modern &lt;a href="https://davethehuman.com/notes/neural-network/"&gt;neural networks&lt;/a&gt;s (&lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;FNN&lt;/a&gt;, &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;CNN&lt;/a&gt;, etc.) and it just checks if a number is larger than zero, allowing for quick computation and fast &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;convergence&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Pros:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;it tackles the &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;vanishing gradient problem&lt;/a&gt;, keeping the &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;gradient&lt;/a&gt; flow strong during &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;backpropagation&lt;/a&gt; - this happens because its derivative (gradient) for any positive input is always &lt;strong&gt;exactly 1&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;it allows sparse activation, meaning that only relevant &lt;a href="https://davethehuman.com/notes/neuron/"&gt;neuron&lt;/a&gt;s fire, while negative inputs are zeroed out&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Cons:&lt;/p&gt;</description></item><item><title>neural network</title><link>https://davethehuman.com/notes/neural-network/</link><pubDate>Mon, 21 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/neural-network/</guid><description>&lt;p&gt;A &lt;em&gt;neural network&lt;/em&gt; is a computational model inspired by the biological brain structure, consisting of interconnected layers of &lt;a href="https://davethehuman.com/notes/neuron/"&gt;neuron&lt;/a&gt;s that map input features to target outputs.&lt;/p&gt;
&lt;p&gt;A standard &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;feedforward neural network&lt;/a&gt; (&lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;FNN&lt;/a&gt;) is organized into three main types of layers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Input Layer:&lt;/strong&gt; Receives the raw input vector \(x\).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hidden Layer(s):&lt;/strong&gt; Extracts latent representations using weighted sums and &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;activation function&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Output Layer:&lt;/strong&gt; Produces the final prediction \(\hat{y}\).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The core mechanism of the learning process of a neural network operates in a two-step feedback loop:&lt;/p&gt;</description></item><item><title>neuron</title><link>https://davethehuman.com/notes/neuron/</link><pubDate>Mon, 21 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/neuron/</guid><description>&lt;p&gt;In &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;deep learning&lt;/a&gt;, a &lt;em&gt;neuron&lt;/em&gt; is the foundational building block of a &lt;a href="https://davethehuman.com/notes/neural-network/"&gt;neural network&lt;/a&gt;.
It computes a scalar output from a vector of inputs.&lt;/p&gt;

&lt;h2 class="relative group"&gt;Formula
 &lt;div id="formula" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#formula" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Given an input vector \(\mathbf{x} = [x_1, x_2, \dots, x_n]\), a weight vector \(\mathbf{w} = [w_1, w_2, \dots, w_n]\), and a scalar bias \(b\):&lt;/p&gt;
$$
z = \mathbf{w}^T \mathbf{x} + b = \sum_{i=1}^{n} w_i x_i + b
$$&lt;p&gt;The final output \(a\) is obtained by applying an &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;activation function&lt;/a&gt; \(g(\cdot)\):&lt;/p&gt;</description></item><item><title>batch</title><link>https://davethehuman.com/notes/batch/</link><pubDate>Sun, 20 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/batch/</guid><description>&lt;p&gt;The &lt;a href="https://davethehuman.com/notes/batch/"&gt;batch&lt;/a&gt; is the sample used to perform a single &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;forward pass&lt;/a&gt; and &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;backward pass&lt;/a&gt; before the model updates its &lt;a href="https://davethehuman.com/notes/weights/"&gt;weights&lt;/a&gt;.
The model training is strongly influenced by the &lt;a href="https://davethehuman.com/notes/batch-size/"&gt;batch size&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>batch size</title><link>https://davethehuman.com/notes/batch-size/</link><pubDate>Sun, 20 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/batch-size/</guid><description>&lt;p&gt;&lt;em&gt;Batch size&lt;/em&gt; refers to the number of training examples processed in a &lt;a href="https://davethehuman.com/notes/batch/"&gt;batch&lt;/a&gt;, which corresponds to a single &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;forward pass&lt;/a&gt; and &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;backward pass&lt;/a&gt; before the model updates its &lt;a href="https://davethehuman.com/notes/weights/"&gt;weights&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For instance, if a dataset contains 10,000 images and the &lt;em&gt;batch size&lt;/em&gt; is set to 64, the model splits the dataset into subsets of 64 images, calculates the average error (&lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;loss&lt;/a&gt;) across those 64 samples, updates its weights, and then moves to the next batch.&lt;/p&gt;</description></item><item><title>intercept</title><link>https://davethehuman.com/notes/intercept/</link><pubDate>Sun, 20 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/intercept/</guid><description>&lt;p&gt;In &lt;a href="https://davethehuman.com/notes/linear-regression/"&gt;Linear Regression&lt;/a&gt;, the &lt;em&gt;intercept&lt;/em&gt; is the expected value of the &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;dependent variable&lt;/a&gt; $Y$ when all &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;independent variable&lt;/a&gt;s are equal to zero. Graphically, it is represented by the intersection point between the regression line and the Y axis on a chart; its value shift the regression line up and down without affecting its tilt or slope.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;&lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="auto"
 alt="intercept"
 width="2000"
 height="1300"
 src="https://davethehuman.com/attachments/intercept_hu_426627f0b6687085.png"
 srcset="https://davethehuman.com/attachments/intercept_hu_426627f0b6687085.png 800w, https://davethehuman.com/attachments/intercept_hu_bf603842d8e23f87.png 1280w"
 sizes="(min-width: 768px) 50vw, 65vw"
 data-zoom-src="https://davethehuman.com/attachments/intercept.png"&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;It can be interpreted as a &lt;strong&gt;baseline value&lt;/strong&gt;, since it acts as the starting point or baseline prediction for the linear regression model before any independent variables effect is added.&lt;/p&gt;</description></item><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><item><title>LLM training pipeline</title><link>https://davethehuman.com/notes/llm-training-pipeline/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/llm-training-pipeline/</guid><description>&lt;p&gt;Conventional &lt;a href="https://davethehuman.com/notes/llm/"&gt;LLM&lt;/a&gt; are typically trained in two stages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://davethehuman.com/notes/pre-training/"&gt;pre-training&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://davethehuman.com/notes/post-training/"&gt;post-training&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Some recent research also distinguish a &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;mid-training&lt;/a&gt; stage between them.&lt;/p&gt;</description></item><item><title>preference tuning</title><link>https://davethehuman.com/notes/preference-tuning/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/preference-tuning/</guid><description>&lt;p&gt;&lt;em&gt;Preference tuning&lt;/em&gt; is nowadays often performed through &lt;a href="https://davethehuman.com/notes/rlhf/"&gt;RLHF (Reinforcement Learning From Human Feedback)&lt;/a&gt;, which refines the &lt;a href="https://davethehuman.com/notes/supervised-fine-tuning/"&gt;supervised fine-tuning&lt;/a&gt; stage with preferred stylistic choices.&lt;/p&gt;</description></item><item><title>supervised fine-tuning</title><link>https://davethehuman.com/notes/supervised-fine-tuning/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/supervised-fine-tuning/</guid><description>&lt;p&gt;&lt;em&gt;Supervised fine-tuning&lt;/em&gt; (or &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;instruction tuning&lt;/a&gt;) improves an &lt;a href="https://davethehuman.com/notes/llm/"&gt;Large Language Model&lt;/a&gt; capabilities in question-answering, summarization, translation etc.
Later, the &lt;a href="https://davethehuman.com/notes/preference-tuning/"&gt;preference tuning&lt;/a&gt; refines these capabilities.&lt;/p&gt;</description></item><item><title>fine-tuning</title><link>https://davethehuman.com/notes/fine-tuning/</link><pubDate>Tue, 05 May 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/fine-tuning/</guid><description>&lt;p&gt;During &lt;em&gt;fine-tuning&lt;/em&gt; the &lt;a href="https://davethehuman.com/notes/llm/"&gt;Large Language Model&lt;/a&gt; undergoes a specialised training on curated datasets to follow specific instructions or perform niche tasks.&lt;/p&gt;
&lt;p&gt;There are two key fine-tuning techniques:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://davethehuman.com/notes/supervised-fine-tuning/"&gt;supervised fine-tuning&lt;/a&gt; or &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;SFT&lt;/a&gt; or &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;instruction tuning&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://davethehuman.com/notes/preference-tuning/"&gt;preference tuning&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>parameters</title><link>https://davethehuman.com/notes/parameters/</link><pubDate>Tue, 05 May 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/parameters/</guid><description>&lt;p&gt;&lt;em&gt;Parameters&lt;/em&gt; are the internal, learnable variables of a model that gets adjusted during &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;training&lt;/a&gt;.
In &lt;a href="https://davethehuman.com/notes/neural-network/"&gt;neural networks&lt;/a&gt;, these variables are the &lt;a href="https://davethehuman.com/notes/weights/"&gt;weights&lt;/a&gt; and &lt;a href="https://davethehuman.com/notes/biases/"&gt;biases&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>post-training</title><link>https://davethehuman.com/notes/post-training/</link><pubDate>Tue, 05 May 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/post-training/</guid><description>&lt;p&gt;During &lt;em&gt;post-training&lt;/em&gt;, the model trained during &lt;a href="https://davethehuman.com/notes/pre-training/"&gt;pre-training&lt;/a&gt; undergoes a specialised training stage to learn to respond to user queries.&lt;/p&gt;</description></item><item><title>pre-training</title><link>https://davethehuman.com/notes/pre-training/</link><pubDate>Tue, 05 May 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/pre-training/</guid><description>&lt;p&gt;During &lt;em&gt;pre-training&lt;/em&gt; the &lt;a href="https://davethehuman.com/notes/llm/"&gt;Large Language Model&lt;/a&gt; learns general patterns, grammar, and facts from the internet/books via &lt;a href="https://davethehuman.com/notes/self-supervised-learning/"&gt;self-supervised learning&lt;/a&gt;.
At this stage, the objective for the LLM is to learn to predict the next word (or &lt;a href="https://davethehuman.com/notes/token/"&gt;token&lt;/a&gt;) in these texts.&lt;/p&gt;
&lt;p&gt;We can think of this stage as &amp;ldquo;raw language prediction&amp;rdquo; that gives the LLM basic capabilities to produce coherent texts.&lt;/p&gt;
&lt;p&gt;A model that has completed the pre-training stage is often called a &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;base model&lt;/a&gt; or a &lt;a href="https://davethehuman.com/coming-soon/" rel="nofollow"&gt;foundation model&lt;/a&gt; and a typical example is the GPT-3 model.&lt;/p&gt;</description></item><item><title>LLM</title><link>https://davethehuman.com/notes/llm/</link><pubDate>Sat, 02 May 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/llm/</guid><description>&lt;p&gt;An &lt;em&gt;LLM (Large Language Model)&lt;/em&gt; is a type of artificial intelligence trained on humongous datasets of text to understand, generate, and manipulate human language.
They are built using &lt;a href="https://davethehuman.com/notes/transformer/"&gt;transformer&lt;/a&gt; architectures and function by predicting the next most likely &lt;a href="https://davethehuman.com/notes/token/"&gt;token&lt;/a&gt; (word or part of a word) in a sequence.&lt;/p&gt;
&lt;p&gt;The core technical concepts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;scale&lt;/strong&gt;: &amp;ldquo;Large&amp;rdquo; refers to both the training data (petabytes of text) and the &lt;a href="https://davethehuman.com/notes/parameters/"&gt;parameters&lt;/a&gt; count (billions)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://davethehuman.com/notes/llm-training-pipeline/"&gt;LLM training pipeline&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;context window&lt;/strong&gt;: the maximum amount of text the model can &amp;ldquo;hold in mind&amp;rdquo; at one time during a single conversation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The main capabilities:&lt;/p&gt;</description></item></channel></rss>