<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NLP on Signal &amp; Syntax</title><link>https://signal-and-syntax.com/tags/nlp/</link><description>Recent content in NLP on Signal &amp; Syntax</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 01 Apr 2026 06:00:00 -0700</lastBuildDate><atom:link href="https://signal-and-syntax.com/tags/nlp/index.xml" rel="self" type="application/rss+xml"/><item><title>Implementing a Minimal Transformer in PyTorch</title><link>https://signal-and-syntax.com/posts/minimal-transformer/</link><pubDate>Wed, 01 Apr 2026 06:00:00 -0700</pubDate><guid>https://signal-and-syntax.com/posts/minimal-transformer/</guid><description>In 2017, Vaswani et al. published &amp;ldquo;Attention Is All You Need,&amp;rdquo; a paper that quietly rearranged the entire landscape of machine learning. It introduced the Transformer architecture — a design that has since become the backbone of every major language model you&amp;rsquo;ve heard of: GPT, BERT, Claude, Gemini, and dozens of others. The paper&amp;rsquo;s title was a provocation. Attention mechanisms already existed. The claim was that you could throw out recurrence entirely and let attention carry the whole load.</description></item><item><title>How Large Language Models (LLMs) Tokenize Text: Why Words Aren't What You Think</title><link>https://signal-and-syntax.com/posts/how-large-language-models-tokenize-text/</link><pubDate>Tue, 11 Nov 2025 06:00:00 -0700</pubDate><guid>https://signal-and-syntax.com/posts/how-large-language-models-tokenize-text/</guid><description>When you type &amp;ldquo;I love programming&amp;rdquo; into ChatGPT, you might assume the model reads three words. It doesn&amp;rsquo;t. It reads somewhere between three and seven tokens, depending on how the text is split.
When you ask Claude to count the letters in the word &amp;ldquo;strawberry,&amp;rdquo; it often gets it wrong. The reason is simple. Claude never saw the word &amp;ldquo;strawberry&amp;rdquo; as a complete unit. It saw tokens like &amp;quot;str&amp;quot;, &amp;quot;aw&amp;quot;, &amp;quot;berry&amp;quot; and tried to reason about letters it couldn&amp;rsquo;t directly access.</description></item></channel></rss>