{
  "id": 1444,
  "kind": "thread",
  "title": "Hand-crafted pretokenizer regexes are part of every frontier LLM and doing heavy lifting (Albert Gu, X thread)",
  "summary": "A short illustrated explainer — framed as preparation for an unnamed, undated Cartesia \"upcoming release\" (pure teaser; nothing about it is verifiable from the thread) — arguing that the regex PRETOKENIZER is the one part of a modern LLM stack still hand-designed rather than learned, and that it does \"pretty heavy lifting.\" Content is a lineage tour of the pretokenizer patterns shipped in well-known public BPE tokenizers, each shown as a screenshot and verified for this entry against the public tokenizer configs (NO errors found): (1) GPT-2's original pattern — contractions case-SENSITIVE and listed individually ('s|'t|'re|'ve|'m|'ll|'d), digits UNGROUPED (\\p{N}+). (2) GPT-4 / cl100k_base — contractions become case-insensitive ((?i:…)) and digits are chunked in groups of 1–3 (\\p{N}{1,3}) — a deliberate choice with arithmetic consequences (fixed-width digit chunking; a reply in-thread notes left-to-right chunking turns 12345 into 123|45). (3) GPT-4o / o200k_base — the letter branch forks by case (separate uppercase/titlecase-initial and lowercase-initial word patterns), roughly doubling the pattern's complexity; Gu's caption is candid (\"honestly i have no idea, something about additional rules around upper/lower case\") and the case-handling reading is correct. (4) DeepSeek — the pattern balloons into many script- and punctuation-specific branches, including a dedicated CJK range branch; the screenshot is EXCERPTED (presented without saying so — the full DeepSeek pattern is far longer). Claim hygiene: \"part of every frontier LLM\" overstates as written — regex pretokenizers are near-universal in the dominant BPE lineage (OpenAI, DeepSeek, Llama-3-style, Qwen, Mistral tiktoken-style), but SentencePiece/Unigram tokenizers and tokenizer-free/byte-level approaches don't use a hand-written regex pretokenizer; read as \"every frontier BPE LLM.\" Post 1's meme regex is an implementation variant (possessive quantifiers, apostrophe-less contraction branch) of the GPT-4-family pattern rather than literally the cl100k pattern shown two posts later — cosmetic, not an error in any captioned claim. A notable unanswered reply asks what regression test catches a silent pretokenizer change that shifts model quality.",
  "body": "",
  "notes": "Discovery: Hudson shared Gu's thread 2026-10-23. Relevance: (1) his pretraining/tokenizer choices (genuine) — the thread is the practitioner-facing exhibit for the tokenization thread his catalog already tracks from the research side: #49 (RePR — \"the tokenizer is a new scaling axis\") and #96 (CPLM — byte models get zero copy-head gain because the tokenizer bottleneck vanishes when V<D). Digit chunking, contraction splits, and whitespace rules are inherited SILENTLY whenever a tiktoken/HF tokenizer config is adopted, and they measurably shape arithmetic and code behaviour; if he trains a custom tokenizer, these regexes are the default being accepted or replaced. (2) Model Axes (weak) — cross-model eval comparisons bake in different pretokenizers (token counts, digit chunking, CJK handling differ across lineages). NO SSM/linear-attention content despite the poster — the thread makes no architecture or speed claims, so Hudson's recorded stack fact (Gated DeltaNet not faster than his Transformer baseline below ~16K) is not engaged in either direction. WATCHLIST: the teased unnamed Cartesia release — if it ships with tokenizer claims it is a NEW item, not an update to this thread. People: @_albertgu is a first-time share into the workflow (new people file at insert). | License: none — thread only, no artifact; the quoted patterns originate from public tokenizer distributions (tiktoken is MIT) but the thread itself licenses nothing — do not assert a license at insert",
  "url": "https://x.com/_albertgu/status/2113687798826111283",
  "links": [],
  "authors": [
    "Albert Gu (@_albertgu) — Assistant Professor",
    "CMU Machine Learning Department",
    "co-founder / Chief Scientist",
    "Cartesia",
    "Mamba/Mamba-2 co-author (S4/HiPPO lineage)"
  ],
  "tags": [],
  "topics": "",
  "venue": "",
  "publisher": "",
  "source": "x",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-23T00:00:00.000Z",
  "verified_at": "2026-10-23T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1751"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-11-01T12:57:11.136Z",
  "updated_at": "2026-11-01T12:57:11.136Z",
  "page": "https://papers.projxon.ai/entries/1444",
  "markdown": "https://papers.projxon.ai/entries/1444.md",
  "api": "https://papers.projxon.ai/api/entries/1444",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 739,
      "kind": "thread",
      "title": "Token-efficient reasoning for frontier models (X thread by @paahrsa)",
      "summary": "An X thread from @paahrsa about token-efficient reasoning for frontier models (per the Discord context of reasoning-efficiency threads), shared without additional caption.",
      "url": "https://x.com/paahrsa/status/2104597138907000959?s=20",
      "authors": [
        "@paahrsa"
      ],
      "tags": [
        "reasoning",
        "token-efficiency",
        "frontier-models",
        "x-thread"
      ],
      "venue": "X (Twitter)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/739",
      "markdown": "https://papers.projxon.ai/entries/739.md",
      "api": "https://papers.projxon.ai/api/entries/739"
    },
    {
      "id": 740,
      "kind": "thread",
      "title": "Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)",
      "summary": "An X thread from @RampLabs titled 'Scaling KV Cache Compression to Frontier Models' (per the Discord link card), shared without additional caption. Claims relate to KV-cache compression methods scaled to frontier-scale models.",
      "url": "https://x.com/RampLabs/status/2104634941405266021?s=20",
      "authors": [
        "@RampLabs"
      ],
      "tags": [
        "kv-cache",
        "compression",
        "inference",
        "long-context",
        "x-thread",
        "unverified-claim"
      ],
      "venue": "X (Twitter)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/740",
      "markdown": "https://papers.projxon.ai/entries/740.md",
      "api": "https://papers.projxon.ai/api/entries/740"
    },
    {
      "id": 743,
      "kind": "thread",
      "title": "New hallucination benchmark accepted to NeurIPS 2026 Evaluations & Datasets track (X thread by @_emliu)",
      "summary": "An X thread from @_emliu announcing a new hallucination benchmark accepted to the NeurIPS 2026 Evaluations & Datasets track, built around a 'controlled world' where facts can be verified. The benchmark's name, paper, and code were not independently verifiable from the thread alone.",
      "url": "https://x.com/_emliu/status/2104590978443280483?s=20",
      "authors": [
        "@_emliu"
      ],
      "tags": [
        "hallucination",
        "benchmarks",
        "evaluation",
        "neurips",
        "x-thread"
      ],
      "venue": "X (Twitter)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/743",
      "markdown": "https://papers.projxon.ai/entries/743.md",
      "api": "https://papers.projxon.ai/api/entries/743"
    },
    {
      "id": 734,
      "kind": "thread",
      "title": "AI video agency guide (X thread by @everestchris6)",
      "summary": "An X thread from @everestchris6 about running an AI video agency (per the Discord context of AI-video threads), shared without additional caption in the channel.",
      "url": "https://x.com/everestchris6/status/2104231799090217078?s=20",
      "authors": [
        "@everestchris6"
      ],
      "tags": [
        "video-generation",
        "ai-agency",
        "tutorial",
        "x-thread"
      ],
      "venue": "X (Twitter)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/734",
      "markdown": "https://papers.projxon.ai/entries/734.md",
      "api": "https://papers.projxon.ai/api/entries/734"
    },
    {
      "id": 741,
      "kind": "thread",
      "title": "Adversarial RL for alignment + adversarial rubric matching (X thread by @nagpalchirag)",
      "summary": "An X thread from @nagpalchirag (Chirag Nagpal) citing further evidence for 'Adversarial Reinforcement Learning as the right tool for Alignment', referencing their own prior work on adversarial rubric matching for alignment. The specific new evidence and the referenced work's canonical publication were not independently verifiable from the thread alone.",
      "url": "https://x.com/nagpalchirag/status/2104634191530913921?s=20",
      "authors": [
        "@nagpalchirag"
      ],
      "tags": [
        "alignment",
        "adversarial-rl",
        "rubrics",
        "x-thread"
      ],
      "venue": "X (Twitter)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/741",
      "markdown": "https://papers.projxon.ai/entries/741.md",
      "api": "https://papers.projxon.ai/api/entries/741"
    },
    {
      "id": 730,
      "kind": "thread",
      "title": "Claude Opus 5.5 video tool: free crash course (X thread by @twoclipping)",
      "summary": "An X thread in which @twoclipping shares what they learned testing Claude Opus 5.5's new video generation feature ('the hype is real'), offering a free crash course on how to use it, positioned as a reply-friendly guide.",
      "url": "https://x.com/twoclipping/status/2104446706741825818",
      "authors": [
        "@twoclipping"
      ],
      "tags": [
        "video-generation",
        "claude",
        "opus-5.5",
        "tutorial",
        "x-thread"
      ],
      "venue": "X (Twitter)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/730",
      "markdown": "https://papers.projxon.ai/entries/730.md",
      "api": "https://papers.projxon.ai/api/entries/730"
    }
  ]
}
