<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LLMs Derived Archives - ChoralSoft</title>
	<atom:link href="https://choralsoft.com/category/llms-derived/feed/" rel="self" type="application/rss+xml" />
	<link>https://choralsoft.com/category/llms-derived/</link>
	<description>Privacy-conscious apps, books and audiobooks</description>
	<lastBuildDate>Wed, 21 Oct 2026 15:45:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
<site xmlns="com-wordpress:feed-additions:1">214551553</site>	<item>
		<title>Speculative Decoding: Faster Generation Without Changing the Target</title>
		<link>https://choralsoft.com/2026/10/21/speculative-decoding-faster-generation-without-changing-the-target/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:43:56 +0000</pubDate>
				<category><![CDATA[LLMs Derived]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11044</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles Speculative decoding uses a faster draft model to propose several tokens, then asks the [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/speculative-decoding-faster-generation-without-changing-the-target/">Speculative Decoding: Faster Generation Without Changing the Target</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>Speculative decoding uses a faster draft model to propose several tokens, then asks the target model to evaluate those proposals together. A correction rule preserves the target distribution.</strong></p>
<h2>Draft and verify</h2>
<p>The draft model generates a short candidate continuation. The target model scores all proposed positions in one parallel pass. Tokens that pass an acceptance test are emitted; after a rejection, a corrected token is sampled and drafting begins again.</p>
<h2>Where speed comes from</h2>
<p>Ordinary autoregressive decoding invokes the large model once per token. Speculation can accept several draft tokens for one target-model pass. The gain is largest when the draft is cheap, its proposals often agree with the target, and verification uses hardware efficiently.</p>
<h2>Exactness needs the correction step</h2>
<p>Simply accepting matching argmax tokens changes sampling behavior. The acceptance probabilities and residual distribution are what make the resulting samples follow the target model. Performance claims should report acceptance rate, end-to-end latency, batch size, and hardware.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/llms-derived/"><em>LLMs Derived</em></a>.</p>
<hr>
<p><small>Adapted from <em>LLMs Derived</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/speculative-decoding-faster-generation-without-changing-the-target/">Speculative Decoding: Faster Generation Without Changing the Target</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11044</post-id>	</item>
		<item>
		<title>DPO: Preference Optimization Without a Reward Model Loop</title>
		<link>https://choralsoft.com/2026/10/21/dpo-preference-optimization-without-a-reward-model-loop/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:43:43 +0000</pubDate>
				<category><![CDATA[LLMs Derived]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11042</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles Direct Preference Optimization turns paired preferences into a classification-like objective. It increases the relative [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/dpo-preference-optimization-without-a-reward-model-loop/">DPO: Preference Optimization Without a Reward Model Loop</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>Direct Preference Optimization turns paired preferences into a classification-like objective. It increases the relative probability of a preferred response while controlling drift from a reference model.</strong></p>
<h2>The training signal</h2>
<p>Each example contains a prompt, a chosen response, and a rejected response. The objective compares how strongly the current policy favors the chosen response relative to how strongly the reference policy favors it.</p>
<h2>Why the reference matters</h2>
<p>Without a reference, optimization could improve the pairwise objective by moving too far from the pretrained behavior. The reference supplies an implicit regularizing anchor, while a temperature-like parameter controls the strength of the preference separation.</p>
<h2>Limits remain</h2>
<p>DPO inherits the quality and coverage of the preference data. Inconsistent labels, narrow prompts, length bias, and distribution shift can produce misleading gains. Evaluation should include held-out preferences, task performance, safety checks, and measures of unwanted behavioral drift.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/llms-derived/"><em>LLMs Derived</em></a>.</p>
<hr>
<p><small>Adapted from <em>LLMs Derived</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/dpo-preference-optimization-without-a-reward-model-loop/">DPO: Preference Optimization Without a Reward Model Loop</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11042</post-id>	</item>
		<item>
		<title>LoRA: Fine-Tuning Through a Low-Rank Update</title>
		<link>https://choralsoft.com/2026/10/21/lora-fine-tuning-through-a-low-rank-update/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:43:32 +0000</pubDate>
				<category><![CDATA[LLMs Derived]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11040</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles Low-rank adaptation, or LoRA, keeps a pretrained weight matrix fixed and learns a compact [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/lora-fine-tuning-through-a-low-rank-update/">LoRA: Fine-Tuning Through a Low-Rank Update</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>Low-rank adaptation, or LoRA, keeps a pretrained weight matrix fixed and learns a compact update expressed as the product of two smaller matrices.</strong></p>
<h2>The parameter reduction</h2>
<p>For a weight with shape m by n, full fine-tuning changes mn values. A rank-r update uses factors with roughly r times m plus n values. When r is much smaller than either dimension, the trainable parameter count drops sharply.</p>
<h2>Why it can work</h2>
<p>The method assumes that the task-specific change can be represented in a low-dimensional subspace even though the base model is large. The update is scaled and added during the forward pass; it can later be merged into the base weight for deployment.</p>
<h2>Practical choices</h2>
<p>Results depend on which modules receive adapters, the rank, scaling, dropout, data quality, and optimization settings. LoRA reduces trainable parameters and optimizer memory, but it does not eliminate the cost of running the frozen model itself.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/llms-derived/"><em>LLMs Derived</em></a>.</p>
<hr>
<p><small>Adapted from <em>LLMs Derived</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/lora-fine-tuning-through-a-low-rank-update/">LoRA: Fine-Tuning Through a Low-Rank Update</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11040</post-id>	</item>
		<item>
		<title>How to Count Transformer Parameters Without Guessing</title>
		<link>https://choralsoft.com/2026/10/21/how-to-count-transformer-parameters-without-guessing/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:43:20 +0000</pubDate>
				<category><![CDATA[LLMs Derived]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11038</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles Parameter counting reveals where model memory and compute are concentrated. The reliable method is [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/how-to-count-transformer-parameters-without-guessing/">How to Count Transformer Parameters Without Guessing</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>Parameter counting reveals where model memory and compute are concentrated. The reliable method is to count each matrix from its input and output dimensions, then add biases and normalization parameters if present.</strong></p>
<h2>Embeddings and attention</h2>
<p>A token embedding contains vocabulary size times model width parameters. A standard attention block has query, key, value, and output projections. When all are square model-width matrices, their leading contribution is four times width squared per layer.</p>
<h2>The feed-forward block</h2>
<p>A two-layer multilayer perceptron expands from model width to an intermediate width and projects back. Its leading count is twice the product of those widths. Gated variants add another input projection and therefore change the familiar shortcut formula.</p>
<h2>Avoid hidden assumptions</h2>
<p>Check whether input and output embeddings are tied, whether projections include biases, how many key-value heads are used, and which normalization is implemented. State the architecture first; then a parameter total becomes an auditable calculation rather than a memorized estimate.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/llms-derived/"><em>LLMs Derived</em></a>.</p>
<hr>
<p><small>Adapted from <em>LLMs Derived</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/how-to-count-transformer-parameters-without-guessing/">How to Count Transformer Parameters Without Guessing</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11038</post-id>	</item>
		<item>
		<title>Tokenization Changes What a Language Model Sees</title>
		<link>https://choralsoft.com/2026/10/21/tokenization-changes-what-a-language-model-sees/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:43:10 +0000</pubDate>
				<category><![CDATA[LLMs Derived]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11036</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles A language model does not receive words directly. It receives token identifiers produced by [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/tokenization-changes-what-a-language-model-sees/">Tokenization Changes What a Language Model Sees</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>A language model does not receive words directly. It receives token identifiers produced by a tokenizer, and that representation shapes sequence length, cost, and the patterns available to learn.</strong></p>
<h2>Vocabulary versus sequence length</h2>
<p>A larger vocabulary can represent common strings with fewer tokens but requires a larger embedding and output layer. A smaller vocabulary reuses pieces more widely but produces longer sequences. The best trade-off depends on languages, domains, and compute limits.</p>
<h2>Uneven treatment of text</h2>
<p>Names, source code, rare scripts, and morphologically rich languages may split into many pieces. Two sentences with similar character length can therefore consume very different context. Token-level metrics should be complemented with character-, byte-, or task-level analysis.</p>
<h2>Reproducibility requires the tokenizer</h2>
<p>Model weights alone are not enough. Normalization rules, special-token assignments, vocabulary files, and pre-tokenization behavior must match training. Changing them changes the input distribution even when the visible text looks identical.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/llms-derived/"><em>LLMs Derived</em></a>.</p>
<hr>
<p><small>Adapted from <em>LLMs Derived</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/tokenization-changes-what-a-language-model-sees/">Tokenization Changes What a Language Model Sees</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11036</post-id>	</item>
		<item>
		<title>Why Scaled Dot-Product Attention Divides by Square Root of d</title>
		<link>https://choralsoft.com/2026/10/21/why-scaled-dot-product-attention-divides-by-square-root-of-d/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:43:01 +0000</pubDate>
				<category><![CDATA[LLMs Derived]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11034</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles The scaling factor in attention is not decorative. It keeps dot products in a [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/why-scaled-dot-product-attention-divides-by-square-root-of-d/">Why Scaled Dot-Product Attention Divides by Square Root of d</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>The scaling factor in attention is not decorative. It keeps dot products in a range where the softmax remains responsive as vector dimension grows.</strong></p>
<h2>What grows with dimension</h2>
<p>If query and key components are roughly independent with mean zero and similar variance, their dot product sums d component-wise products. Its variance grows in proportion to d, so its typical magnitude grows like the square root of d.</p>
<h2>What softmax does with large scores</h2>
<p>Large-magnitude logits make softmax outputs extremely concentrated. In that saturated regime, most probabilities are near zero and gradients can become small or unstable. Dividing by the square root of d approximately normalizes the score scale.</p>
<h2>It is a modeling assumption</h2>
<p>Real learned vectors are not perfectly independent, but the derivation explains the design pressure. Implementations also subtract the maximum logit before exponentiation for numerical stability and apply masks before normalization.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/llms-derived/"><em>LLMs Derived</em></a>.</p>
<hr>
<p><small>Adapted from <em>LLMs Derived</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/why-scaled-dot-product-attention-divides-by-square-root-of-d/">Why Scaled Dot-Product Attention Divides by Square Root of d</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11034</post-id>	</item>
	</channel>
</rss>
