人工智能 · 最新文章

今日新增 9 篇 · 共 776 篇 · 来自 22 个博客

Lil'Log·

The Transformer Family Version 2.0

AI 摘要This article presents a significantly revised and expanded version (2.0) of the author's 2020 overview post on Transformer architecture improvements, incorporating many new developments proposed over the past three years and roughly doubling in length. It begins by defining the mathematical notations used throughout, such as query, key, and value weight matrices, attention scores, and positional encodings. It then reviews Transformer basics, covering the vanilla encoder-decoder architecture from Vaswani et al. (2017) and simplified encoder-only (BERT) and decoder-only (GPT) variants used for language modeling.

Lil'Log·

Large Transformer Model Inference Optimization

AI 摘要The article discusses the challenges of running inference on large transformer models, which, despite achieving state-of-the-art results across many tasks, are extremely expensive to use in terms of both time and memory. This high inference cost is a major bottleneck for deploying powerful transformers on real-world tasks at scale. Beyond the growing size of these models, two main factors (per Pope et al. 2022) contribute to the inference difficulty, and the article was also updated to include a section on distillation.

Jay Alammar·

Remaking Old Computer Graphics With AI Image Generation

AI 摘要The author recounts using AI image generation tools—Stable Diffusion (via Dream Studio), Midjourney, and DALL-E—to recreate the intro cinematic of the 1987 MSX video game Nemesis 2 in higher-resolution graphics. He describes the prompting process and the challenges encountered, such as reproducing specific poses, consistent characters, and readable text, which he addressed through prompt engineering, in-painting, outpainting, and manual Photoshop edits. He concludes with a comparison of the three services, praising Dream Studio's workflow and API, Midjourney's superior image quality, and DALL-E's outpainting capabilities.

Jay Alammar·

The Illustrated Stable Diffusion

AI 摘要This article provides an illustrated, accessible explanation of how Stable Diffusion works, breaking down its three main components: a CLIP text encoder that converts prompts into token embeddings, a UNet + scheduler that gradually denoises information in latent space, and an autoencoder decoder that produces the final pixel image. It explains how diffusion models are trained to predict and remove noise, and how text conditioning allows users to control what images are generated. The article also highlights the speed benefit of running diffusion on compressed latent representations rather than raw pixels, and notes that larger language models improve generated image quality.

Lil'Log·

Some Math behind Neural Tangent Kernel

AI 摘要This article introduces the neural tangent kernel (NTK), a kernel that explains how neural networks evolve during training via gradient descent and provides insights into why over-parameterized networks with sufficient width consistently converge to a global minimum despite random initialization. The post presents a deep dive into the motivation and definition of NTK, and proves deterministic convergence at different initializations for infinitely wide neural networks by characterizing NTK in that setting.

Lil'Log·

Generalized Visual Language Models

AI 摘要Vision-language tasks such as image captioning and visual question-answering have traditionally relied on object detection networks to extract visual features, which a text decoder then converts into text. Rather than covering the broad literature on this topic, the article focuses on one specific approach: extending pre-trained generalized language models so they can directly consume and process visual signals.