<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Decoding on Nalar</title>
    <link>https://nalar.dev/tags/decoding/</link>
    <description>Recent content in Decoding on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 06 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/decoding/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Control LLM Repetition with Token Penalties</title>
      <link>https://nalar.dev/control-llm-repetition-with-token-penalties/</link>
      <pubDate>Sun, 06 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/control-llm-repetition-with-token-penalties/</guid>
      <description>&lt;p&gt;Language models sometimes repeat a phrase, return to the same point, or fall into a short loop even when the prompt asks for a concise answer. A common response is to increase randomness, but temperature changes the whole next-token distribution. That can reduce repetition while also making unrelated choices less predictable.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Token penalties&lt;/strong&gt; provide a more targeted control. They adjust the scores of tokens that have already appeared, making some repeated tokens less likely before the decoder chooses the next token. This can be useful for open-ended generation, but it is not a general quality switch: repeated tokens are often exactly what correct text requires.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Steer LLM Decoding with Token and Sequence Biases</title>
      <link>https://nalar.dev/steer-llm-decoding-with-token-and-sequence-biases/</link>
      <pubDate>Sun, 06 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/steer-llm-decoding-with-token-and-sequence-biases/</guid>
      <description>&lt;p&gt;Sometimes an LLM produces generally good text but makes one narrow decoding choice too often. Perhaps a domain-specific abbreviation should be preferred, a deprecated product name should be discouraged, or a particular token must not appear in generated text.&lt;/p&gt;&#xA;&lt;p&gt;Changing temperature is a poor fit for this problem because temperature affects the whole next-token distribution. Retraining a model is usually excessive when the desired change is local. &lt;strong&gt;Token and sequence biases&lt;/strong&gt; provide a narrower tool: modify selected prediction scores during decoding while leaving the model parameters unchanged.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
