<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Lucven AI</title><link>https://lakshaychhabra.github.io/</link><description>Recent content on Lucven AI</description><generator>Hugo -- 0.146.0</generator><language>en-us</language><lastBuildDate>Mon, 08 Sep 2025 00:10:39 +0530</lastBuildDate><atom:link href="https://lakshaychhabra.github.io/index.xml" rel="self" type="application/rss+xml"/><item><title>How Spacing and Capitalization Randomly Change Your Model's Entire Personality</title><link>https://lakshaychhabra.github.io/posts/tokenization/tokenization_personality_trigger/</link><pubDate>Mon, 08 Sep 2025 00:10:39 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/tokenization_personality_trigger/</guid><description>&lt;h1 id="how-spacing-and-capitalization-randomly-change-your-models-entire-personality">How Spacing and Capitalization Randomly Change Your Model&amp;rsquo;s Entire Personality&lt;/h1>
&lt;p>Add a space before your prompt and watch GPT become 30% dumber. Write in ALL CAPS and suddenly it&amp;rsquo;s aggressive. Use &amp;ldquo;pls&amp;rdquo; instead of &amp;ldquo;please&amp;rdquo; and it becomes casual. This isn&amp;rsquo;t personality, it&amp;rsquo;s tokenization chaos triggering different training data pockets.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR&lt;/strong>: &amp;quot; Hello&amp;quot; and &amp;ldquo;Hello&amp;rdquo; activate completely different neural pathways. &amp;ldquo;HELP&amp;rdquo; vs &amp;ldquo;help&amp;rdquo; vs &amp;ldquo;Help&amp;rdquo; pulls from different training contexts (emergency manuals vs casual chat vs formal documents). Your model doesn&amp;rsquo;t have moods, it has tokenization triggered personality disorders.&lt;/p></description></item><item><title>How Tokenization Murders Your Model's Ability to Do Basic Math</title><link>https://lakshaychhabra.github.io/posts/tokenization/tokenization_math/</link><pubDate>Sun, 07 Sep 2025 00:10:39 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/tokenization_math/</guid><description>&lt;h1 id="how-tokenization-murders-your-models-ability-to-do-basic-math">How Tokenization Murders Your Model&amp;rsquo;s Ability to Do Basic Math&lt;/h1>
&lt;p>GPT-4o can write Shakespeare but struggles with 4-digit multiplication. It&amp;rsquo;s not stupid, it literally can&amp;rsquo;t see numbers the way you do. &amp;ldquo;12345&amp;rdquo; might be [&amp;ldquo;123&amp;rdquo;, &amp;ldquo;45&amp;rdquo;] while &amp;ldquo;12346&amp;rdquo; is [&amp;ldquo;1&amp;rdquo;, &amp;ldquo;2346&amp;rdquo;]. Try doing math when numbers randomly shatter into chunks.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR&lt;/strong>: Tokenizers split numbers inconsistently, making arithmetic nearly impossible. &amp;ldquo;9.11&amp;rdquo; &amp;gt; &amp;ldquo;9.9&amp;rdquo; according to many models because &amp;ldquo;.11&amp;rdquo; and &amp;ldquo;.9&amp;rdquo; are different tokens. Your calculator app works. Your $100B language model doesn&amp;rsquo;t. This is why.&lt;/p></description></item><item><title>Why Your Vector Database Thinks $AAPL Means Polish Batteries</title><link>https://lakshaychhabra.github.io/posts/tokenization/tokenisation_limits/</link><pubDate>Sat, 06 Sep 2025 00:10:39 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/tokenisation_limits/</guid><description>&lt;h1 id="why-your-vector-database-thinks-aapl-means-polish-batteries">Why Your Vector Database Thinks $AAPL Means Polish Batteries&lt;/h1>
&lt;p>Your $50K vector database is returning garbage results because &amp;ldquo;$AAPL&amp;rdquo; tokenizes as [&amp;quot;$&amp;quot;, &amp;ldquo;AA&amp;rdquo;, &amp;ldquo;PL&amp;rdquo;] and now has the embedding of &amp;ldquo;dollar + AA batteries + Poland&amp;rdquo;. Your semantic search for &amp;ldquo;Apple stock&amp;rdquo; returns articles about Polish currency. This isn&amp;rsquo;t a retrieval problem, it&amp;rsquo;s tokenization murdering your embeddings.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR&lt;/strong>: Bad tokenization creates noisy embeddings. &amp;ldquo;COVID-19&amp;rdquo; split into [&amp;ldquo;CO&amp;rdquo;, &amp;ldquo;VID&amp;rdquo;, &amp;ldquo;-&amp;rdquo;, &amp;ldquo;19&amp;rdquo;] has embeddings mixing &amp;ldquo;Colorado&amp;rdquo;, &amp;ldquo;video&amp;rdquo;, &amp;ldquo;negative&amp;rdquo;, and &amp;ldquo;2019&amp;rdquo;. Your RAG pipeline is doomed before it starts. Fix tokenization or waste money on larger models trying to compensate.&lt;/p></description></item><item><title>Tokenization Forensics about Leaks</title><link>https://lakshaychhabra.github.io/posts/tokenization/forensics/</link><pubDate>Wed, 03 Sep 2025 00:10:39 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/forensics/</guid><description>&lt;h1 id="tokenization-leaks-the-training-set-the-forensics-goldmine">Tokenization Leaks the Training Set (The Forensics Goldmine)&lt;/h1>
&lt;p>Want to know if GPT-4 was trained on your company&amp;rsquo;s leaked data? Check if your internal codenames are single tokens. Want to detect if a model saw specific Reddit posts? The tokenizer already told you.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR&lt;/strong>: Tokenizers are accidental forensic evidence. If &lt;code>SolidGoldMagikarp&lt;/code> is a single token, that string appeared thousands of times in training. This is how researchers discovered GPT models trained on specific Reddit users, leaked databases, and private codebases.&lt;/p></description></item><item><title>Byte Level Tokenizer</title><link>https://lakshaychhabra.github.io/posts/tokenization/byte-level-tokenizer/</link><pubDate>Tue, 02 Sep 2025 00:10:39 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/byte-level-tokenizer/</guid><description>&lt;h1 id="byte-level-tokenizers-can-bloat-non-english-the-colonial-tax">Byte-Level Tokenizers Can Bloat Non-English (The Colonial Tax)&lt;/h1>
&lt;p>&lt;strong>Hook:&lt;/strong> Your Hindi users pay 17x more than English users for the same word. Your Arabic users&amp;rsquo; prompts fail because they hit token limits 8x faster. This isn&amp;rsquo;t a bug—it&amp;rsquo;s algorithmic colonialism baked into your tokenizer.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR&lt;/strong>: Tokenizers trained on English-heavy data punish non-Latin scripts with massive token inflation. &amp;ldquo;Internationalization&amp;rdquo; = 1 token in English, 17 tokens in Hindi. Your global users are subsidizing your English users, and they&amp;rsquo;re getting worse model performance too.&lt;/p></description></item><item><title>Tokenisation: Why 90% of LLM Failures Start Here</title><link>https://lakshaychhabra.github.io/posts/tokenization/tokenization/</link><pubDate>Mon, 01 Sep 2025 22:09:00 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/tokenization/</guid><description>&lt;h1 id="the-tokenization-papers-why-90-of-llm-failures-start-here">The Tokenization Papers: Why 90% of LLM Failures Start Here&lt;/h1>
&lt;h2 id="the-hidden-layer-that-controls-everything">The Hidden Layer That Controls Everything&lt;/h2>
&lt;p>Every prompt you send to GPT, Claude, or Gemini gets shredded into tokens before the model even &amp;ldquo;thinks.&amp;rdquo; These aren&amp;rsquo;t words — they&amp;rsquo;re &lt;strong>compression artifacts from 2021 web crawls&lt;/strong> that now dictate:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Your API bill&lt;/strong> (why Hindi costs 17x more than English)&lt;/li>
&lt;li>&lt;strong>Your model&amp;rsquo;s IQ&lt;/strong> (why it thinks 9.11 &amp;gt; 9.9)&lt;/li>
&lt;li>&lt;strong>Your RAG accuracy&lt;/strong> (why $AAPL returns articles about Polish batteries)&lt;/li>
&lt;/ul>
&lt;p>Tokenization is the silent killer of production AI systems. These papers expose the disasters hiding in plain sight.&lt;/p></description></item><item><title>The Tokenization Decision Tree: When to Train, When to Run, When to Cry</title><link>https://lakshaychhabra.github.io/posts/tokenization/training/</link><pubDate>Sun, 31 Aug 2025 22:09:00 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/training/</guid><description>&lt;h1 id="the-tokenization-decision-tree-when-to-train-when-to-run-when-to-cry">The Tokenization Decision Tree: When to Train, When to Run, When to Cry&lt;/h1>
&lt;p>&lt;strong>Hook:&lt;/strong> A biotech company spent $2M training a custom medical tokenizer for their revolutionary drug discovery model. Six months later, they switched to GPT-4 with a 500-line preprocessing script. It performed better. Their custom tokenizer? Now it&amp;rsquo;s a $2M reminder that sometimes the &amp;ldquo;right&amp;rdquo; solution is the wrong solution.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR&lt;/strong>: Training your own tokenizer means training your own model ($10M minimum). Extending tokenizers breaks everything. Most &amp;ldquo;tokenization problems&amp;rdquo; are solved better with preprocessing hacks than proper solutions. Here&amp;rsquo;s the decision tree that will save you millions and your sanity.&lt;/p></description></item><item><title>Tokens Aren't Meaning — They're Compression Hacks</title><link>https://lakshaychhabra.github.io/posts/tokenization/what_are_tokens/</link><pubDate>Sat, 30 Aug 2025 00:10:39 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/what_are_tokens/</guid><description>&lt;h1 id="tokens-arent-meaning--theyre-compression-hacks">Tokens Aren&amp;rsquo;t Meaning — They&amp;rsquo;re Compression Hacks&lt;/h1>
&lt;p>Everyone assumes tokens ≈ words. Wrong. They&amp;rsquo;re byte substrings glued by frequency, and this fundamental misunderstanding costs companies millions in inference costs and model failures.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR&lt;/strong>: Your tokenizer doesn&amp;rsquo;t understand language, it&amp;rsquo;s just compressing frequent byte sequences. A typo can cost you 33% more tokens. Your Arabic users pay 7x more than English users. And &amp;ldquo;Be accurate&amp;rdquo; works better than &amp;ldquo;Do not hallucinate&amp;rdquo; for both cost AND quality reasons.&lt;/p></description></item><item><title>Why Your Model Can't Learn New Concepts (Even with Perfect Data)</title><link>https://lakshaychhabra.github.io/posts/tokenization/learning_new_concepts/</link><pubDate>Tue, 05 Aug 2025 22:09:00 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/learning_new_concepts/</guid><description>&lt;h1 id="why-your-model-cant-learn-new-concepts-even-with-perfect-data">Why Your Model Can&amp;rsquo;t Learn New Concepts (Even with Perfect Data)&lt;/h1>
&lt;p>You just spent months annotating 50,000 examples of your proprietary concept &amp;ldquo;TurboIN&amp;rdquo; (your new indexing architecture for Indian markets). Your model still thinks it&amp;rsquo;s about turbochargers in Indiana. Not a data quality issue. Not a quantity issue. Your model literally cannot learn concepts that don&amp;rsquo;t exist in its tokenizer embedding space. You&amp;rsquo;re trying to teach calculus to someone who doesn&amp;rsquo;t have numbers.&lt;/p></description></item><item><title>10 Ways Tokenization Screws With Your Model (and Wallet)</title><link>https://lakshaychhabra.github.io/posts/tokenization/gems/</link><pubDate>Mon, 04 Aug 2025 22:09:00 +0530</pubDate><guid>https://lakshaychhabra.github.io/posts/tokenization/gems/</guid><description>&lt;h1 id="hidden-gems-of-tokenization-the-secrets-nobody-tells-you">Hidden GEMS of Tokenization: The Secrets Nobody Tells You&lt;/h1>
&lt;p>Your model just confused &amp;ldquo;therapist&amp;rdquo; with &amp;ldquo;the rapist&amp;rdquo; because someone added an invisible Unicode character. Your French bread neurons are firing when processing English medical &amp;ldquo;pain&amp;rdquo; terms. Your carefully tuned model got worse at processing currency because fine-tuning on &amp;ldquo;$AAPL&amp;rdquo; accidentally shifted what &amp;ldquo;$&amp;rdquo; means globally. Welcome to the tokenization secrets that aren&amp;rsquo;t in any documentation.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR&lt;/strong>: Beyond the obvious tokenization problems, there&amp;rsquo;s a shadow world of hidden disasters. Positional encodings break differently for fragmented tokens. Attention heads specialize wrong. Gradients flow differently. Your tokenizer might be fighting invisible Unicode duplicates. These aren&amp;rsquo;t edge cases, they&amp;rsquo;re actively destroying your model&amp;rsquo;s performance right now.&lt;/p></description></item></channel></rss>