首页›Ahead of AI›文章

Language Models for Text Classification: From Bag-of-Words to Jev

Sebastian Raschka, PhD · 2026年9月29日

AI 摘要 AI 生成,可能有误

本文分析了最新发布的 Jev AI 模型,将其定位为一款快速且低成本的文本分类器,弥合了通用大语言模型(LLM)与狭窄的特定任务分类器之间的差距。为了揭开炒作的真相,作者追溯了用于文本分类的语言模型的历史:从采用朴素贝叶斯和逻辑回归等经典方法的词袋表示,到词嵌入和 LSTM 等循环神经网络,再到 Transformer 时代的方法。作者得出结论:虽然 Jev 本质上是一个文本分类器,但它比其简单的前身更加通用且能力更强,这解释了它近期走红的原因。

The recently released Jev AI model has been quite a cultural phenomenon in technical communities in the past 2 weeks.

While Jev aims to classify things, it’s easy to dismiss Jev as “just a classifier,” and my own view of Jev has evolved quite a bit over the past few days. In particular, my thoughts went from “classifiers used to be my bread & butter; I can easily build this myself” (more on this later) to “wow, this actually works better than I thought.”

Figure 1: Quick overview of the Jev API; more details on that later.
继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Ahead of AI

Understanding Positional Embeddings in Modern LLMs

AI 摘要This article is a detailed tutorial on how LLMs encode token position information, explaining why explicit positional signals are needed (beyond the implicit order given by causal attention masks) and walking through methods like GPT-2's learned absolute position embeddings, the original transformer's fixed sinusoidal encodings, and RoPE, illustrated with visuals, math, and PyTorch code. The author also previews which positional encoding approaches are used in 2026 open-weight model architectures. The article serves as a standalone foundational reference, motivated by reader requests for a RoPE tutorial and as preparation for an upcoming analysis of modern LLM architecture trends.

Building Reasoning Models from the Ground Up: A Full Video Course

AI 摘要The author announces an 11-hour, eight-video course that builds a reasoning model from scratch in Python and PyTorch, starting from a pre-trained Qwen3 model and covering evaluation with a math verifier, inference-time scaling techniques like sampling, self-consistency, and self-refinement, and reinforcement learning with verifiable rewards using GRPO. The videos accompany his book 'Build a Reasoning Model (From Scratch)' and require comfort with Python and PyTorch, with a GPU recommended for the training-focused later videos. He also explains that reasoning models act as the 'engine' inside agent harnesses, making them essential for understanding modern LLM-based agents.

GPT-6 Astra, Looped Transformers, and Hidden Reasoning

AI 摘要The article reviews OpenAI's newly released GPT-6 Astra, describing it as the best model the author has used, with standout performance in 3D rendering, animation, and computer-use tasks, and explaining how computer-use skills are trained via reinforcement learning in macOS environments. It then explains 'looped transformers' (recurrent depth), an architecture in which intermediate representations pass through the same transformer blocks multiple times with shared weights, an idea dating back to Universal Transformers (2018). Finally, it examines whether this looped design relates to rumors that Astra conceals its chain-of-thought reasoning trace.

How Claude Watermarks AI-Generated Text

AI 摘要The author expands on a popular social media post by creating a detailed 48-minute video lecture (with over 50 slides and a transcript) explaining how Anthropic's new watermarking for Claude-generated text works. The lecture first covers how LLM text generation functions under the hood—tokenization, score distributions, and next-token sampling—to show that watermarking is a minor tweak within the normal generation process. The goal is to help readers understand how the invisible watermark is embedded, why it can fail or be removed, and its pros and cons.

Building an AI Text Detector From Scratch

AI 摘要This article presents an educational tutorial on building an AI text detector from scratch by fine-tuning a DistilBERT classifier that outputs a 0-100 score estimating how likely a text is AI-generated, similar to the approach behind Substack's new AI detection feature. The detector also serves as a verifier to train a small language model to produce text that avoids detection, illustrating the cat-and-mouse nature of AI detection, its limitations such as false positives, and the broader concept of verifier-based LLM applications. The end-to-end project includes evaluation, training, and local deployment via an API and a user-friendly browser interface.