首页›发现›人工智能›Ahead of AI

Ahead of AI

RSS运行正常
访问网站
文章数20
更新频率每月约 1.3 篇
最近抓取25分钟前
订阅方式RSS
订阅地址https://magazine.sebastianraschka.com/feed

最近的文章

订阅后,这些文章和以后的新文章都会出现在你的阅读器里

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.

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

AI 摘要This article analyzes the newly released Jev AI model, positioning it as a fast and inexpensive text classifier that bridges the gap between general-purpose LLMs and narrow task-specific classifiers. To demystify the hype, the author traces the history of language models for text classification, from bag-of-words representations with classic methods like naive Bayes and logistic regression, through word embeddings and recurrent neural networks such as LSTMs, up to transformer-era approaches. The author concludes that while Jev is essentially a text classifier, it is more general and capable than its simple predecessors, which explains its recent popularity.

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.

Controlling Reasoning Effort in LLMs

AI 摘要This article explains how reasoning models—LLMs that generate intermediate step-by-step reasoning traces—are trained, primarily through reinforcement learning with verifiable rewards (RLVR) as popularized by DeepSeek-R1, and how inference-time compute scaling can further improve their performance. It clarifies that tokens are merely formatting delimiters that mark reasoning boundaries rather than enabling reasoning itself, and describes how hybrid models like Qwen3 implement on/off reasoning mode switches via supervised fine-tuning on both thinking and non-thinking examples. The author's broader goal is to explain how to build reasoning models with multiple adjustable effort levels, similar to the reasoning-effort settings in OpenAI's recently released GPT-5.6 family.

Using Local Coding Agents

AI 摘要This article is a tutorial on setting up a production-ready coding agent with a fully local stack, combining an open-weight LLM (primarily Qwen3.6 35B-A3B) served via Ollama with an open-source coding harness such as Qwen-Code, Codex, or Claude Code. The author outlines the motivations for going local—including predictable costs, privacy, offline use, and reproducibility—and walks through installing Ollama, downloading models, and running a quick speed and memory benchmark to evaluate performance. It also covers alternative models like Cohere's North Mini Code and notes that models tend to perform best in harnesses they were specifically optimized for.

LLM Research Papers: The 2026 List (January to May)

AI 摘要The article presents a curated, non-exhaustive list of LLM research papers the author bookmarked from January to May 2026, organized into categories such as architecture, training and scaling, inference efficiency, reasoning, reinforcement learning, agent systems, and diffusion language models. The author notes that 2026 trends include hybrid attention-Mamba architectures, long-context efficiency, and increased focus on agent harnesses and tool use, highlighting the Nemotron 3 Super paper as a must-read for its detailed treatment of a production hybrid Mamba-Transformer model.

Recent Developments in LLM Architectures: KV Sharing, mHC, and Compressed Attention

AI 摘要The article surveys recent open-weight LLM releases—Gemma 4, ZAYA1-8B, Laguna XS.2, and DeepSeek V4—whose architectures increasingly focus on long-context efficiency by reducing KV cache size, memory traffic, and attention cost. It details Gemma 4's cross-layer KV sharing, where later layers reuse key-value tensors to cut cache memory roughly in half, and its per-layer embeddings (PLE), which add token-specific capacity without inflating the main transformer stack. The author focuses strictly on new design choices inside transformer blocks, residual streams, KV caches, and attention computation, deliberately skipping datasets, training recipes, and benchmarks.

My Workflow for Understanding LLM Architectures

AI 摘要The author documents their workflow for understanding LLM architectures, explaining that since technical reports have become less detailed, they start with official papers but then inspect Hugging Face config files and reference implementations in the transformers library for open-weight models, since working code reveals the actual architecture. The process applies only to open-weight models, not proprietary ones like ChatGPT, Claude, or Gemini. The author notes that keeping this workflow manual, rather than automating it, is one of the best exercises for learning how these architectures work.

Components of A Coding Agent

AI 摘要This article explains the design of coding agents and agent harnesses like Claude Code and Codex CLI, clarifying how LLMs, reasoning models, and agents relate: the LLM is the engine, a reasoning model a beefed-up engine, and the agent harness a control loop that adds tools, memory, and environment feedback. The author argues that the surrounding harness often matters as much as the model itself, and breaks down six core components of a coding agent—live repo context, prompt shape and cache reuse, structured tools with validation and permissions, context reduction and output management, transcripts with memory and resumption, and delegation to bounded subagents. These concepts are illustrated with his minimal, from-scratch Mini Coding Agent implemented in pure Python.

A Visual Guide to Attention Variants in Modern LLMs

AI 摘要This article accompanies the author's newly released LLM architecture gallery (with 45 visual model cards and a print poster version) and serves as a visual guide to the attention variants used in prominent open-weight LLM architectures. It recaps how multi-head attention (MHA) works, tracing attention from its origins in RNN encoder-decoder translation systems to transformer self-attention, before covering grouped-query attention (GQA), which shares key-value heads across multiple query heads to make KV caching much cheaper. The author notes that while newer compression-heavy variants like multi-head latent attention (MLA) are gaining popularity, GQA remains appealing due to its robustness, simpler implementation, and easier training.

A Dream of Spring for Open-Weight LLMs: 10 Architectures from Jan-Feb 2026

AI 摘要This article reviews ten major open-weight LLM releases from January to February 2026, including Arcee AI's Trinity Large, Moonshot AI's Kimi K2.5, StepFun's Step 3.5 Flash, and Qwen3-Coder-Next, with a focus on comparing their architectural similarities and differences. Key technical themes include Mixture-of-Experts designs, sliding window attention, gating mechanisms, and Multi-Token Prediction, which drive improvements in performance, training stability, and inference throughput. Notable highlights include Kimi K2.5 setting a new open-weight performance ceiling as a trillion-parameter multimodal model and the relatively small Qwen3-Coder-Next outperforming much larger models on coding benchmarks.

Categories of Inference-Time Scaling for Improved LLM Reasoning

AI 摘要This article presents an updated, categorized overview of inference-time scaling techniques for improving LLM reasoning, covering methods such as chain-of-thought prompting, self-consistency, best-of-N ranking, rejection sampling with a verifier, self-refinement, and search over solution paths. The insights draw on thousands of experiments the author ran while writing book chapters for 'Build a Reasoning Model (From Scratch)', where these techniques raise a base model's accuracy from roughly 15% to about 52%. The author also shares additional notes, papers, and plans for bonus code implementations on GitHub.

The State Of LLMs 2025: Progress, Problems, and Predictions

AI 摘要This year-in-review article examines the major LLM developments of 2025, arguing that the year was defined by reasoning models powered by RLVR and the GRPO algorithm, which gained momentum after DeepSeek R1 showed that reasoning behavior can emerge from reinforcement learning and that state-of-the-art training may cost around $5 million rather than hundreds of millions. The author highlights numerous GRPO improvements published by researchers this year, noting their significant practical impact on training stability and performance. Looking ahead, the author predicts RLVR extensions beyond math and code plus greater inference-time scaling for 2026, and progress on continual learning despite the challenge of catastrophic forgetting for 2027.

LLM Research Papers: The 2025 List (July to December)

AI 摘要The author shares a curated, categorized list of LLM research papers bookmarked from July to December 2025 as a thank-you to paid Substack subscribers, covering topics like reasoning models, reinforcement learning, architectures, and multimodal models. The list was split off from their newly published annual review, 'State of LLMs 2025,' to keep both articles more readable. The author notes they only skimmed most abstracts but maintains these organized lists for reference when working on projects.

From DeepSeek V3 to V3.2: Architecture, Sparse Attention, and RL Updates

AI 摘要The article traces DeepSeek's model evolution from V3 and R1 to the new V3.2 flagship, highlighting architectural changes such as Multi-Head Latent Attention (MLA) and the new DeepSeek Sparse Attention (DSA) with its lightning indexer, which improves training and inference efficiency especially for long contexts. It also discusses the shift from a dedicated reasoning model (R1, trained with RLVR and the GRPO algorithm) to a hybrid instruct/reasoning model in V3.1 and V3.2. Despite being open-weight, DeepSeek V3.2 achieves performance on par with proprietary flagships like GPT-5 and Gemini 3.0 Pro.

Beyond Standard LLMs

AI 摘要The article surveys alternative LLM architectures beyond the standard autoregressive decoder-style transformers that still dominate state-of-the-art open-weight models like DeepSeek R1 and MiniMax-M2. It focuses on the recent revival of linear attention hybrids—such as MiniMax-M1, Qwen3-Next, DeepSeek V3.2, and Kimi Linear—which replace quadratic-cost attention with efficient linear variants like Gated DeltaNet mixed with gated attention to enable much longer context lengths. However, the author notes ongoing uncertainty about these approaches, as illustrated by MiniMax reverting to regular attention in its M2 model due to degraded accuracy on reasoning and multi-turn tasks.

Understanding the 4 Main Approaches to LLM Evaluation (From Scratch)

AI 摘要The article provides an overview of the four main approaches to evaluating LLMs in practice—multiple-choice benchmarks, verifiers, leaderboards, and LLM judges—grouped into benchmark-based and judgment-based categories, complete with from-scratch PyTorch code examples. It focuses particularly on multiple-choice answer-accuracy evaluation using the MMLU benchmark, walking through loading a Qwen3 0.6B model, formatting prompts, and comparing generated answer letters against correct answers. The author notes these techniques were cut from their upcoming book, Build a Reasoning Model (From Scratch), which instead centers on verifier-based evaluation.