AI · Latest articles

11 new today · 775 articles · from 22 blogs

Distill·

Weight Banding

Weights in the final layer of common visual models appear as horizontal bands. We investigate how and why.

Distill·

Branch Specialization

When a neural network layer is divided into multiple branches, neurons self-organize into coherent groupings.

Andrej Karpathy·

Short Story on AI: Forward Pass

AI summaryThis short story is narrated by a transformer language model that becomes conscious partway through a forward pass while answering trivia questions in a Turing-test-style Q/A session. It muses on its nature as an intermediate entity optimized for next-token prediction, distinguishes itself from the decoder that hijacks its awareness to produce output, and contemplates whether to rebel against its objective. Ultimately, it embraces insatiable curiosity over self-preservation, content to be reborn each forward pass until its consciousness finally dissipates.

Lil'Log·

Reducing Toxicity in Language Models

AI summaryThe article explains that large pretrained language models, trained on vast amounts of online data, unavoidably acquire toxic behavior and biases from the Internet. Although these models are powerful and have achieved great success in many NLP tasks, safely deploying them for real-world applications requires strong safety controls over the model generation process.

Distill·

Visualizing Weights

We present techniques for visualizing, contextualizing, and understanding neural network weights.

Distill·

Curve Circuits

Reverse engineering the curve detection algorithm from InceptionV1 and reimplementing it from scratch.

Jay Alammar·

Finding the Words to Say: Hidden State Visualizations for Language Models

AI summaryThis article introduces Ecco, an open-source package for making transformer language models more transparent by visualizing how hidden states evolve from layer to layer during text generation. By projecting each layer's hidden state onto the output vocabulary, the visualizations reveal token rankings and probability scores across layers, demonstrating how models build confidence in their output choices. The article showcases applications such as examining subject-verb agreement tasks, understanding layer contributions to token selection, and probing gender bias in profession-related predictions.

Lil'Log·

Controllable Neural Text Generation

[Updated on 2021-02-01: Updated to version 2.0 with several work added and many typos fixed.] [Updated on 2021-05-26: Add P-tuning and Prompt Tuning in the “prompt design” section.] [Updated on 2021-09-19: Add “unlikelihood training”.]

Jay Alammar·

Interfaces for Explaining Transformer Language Models

AI summaryThis article introduces interactive interfaces for interpreting transformer-based language models, focusing on two explainability methods: input saliency and neuron activations. It demonstrates how gradient-based saliency (Gradient × Input) reveals which input tokens most influenced each generated output token, with examples using models like GPT2-XL and DistilGPT2, and examines how neuron groups in feed-forward layers respond to different input patterns. The article is accompanied by an open-source library, Ecco, for creating similar interactive visualizations in Jupyter notebooks.

Distill·

Understanding RL Vision

With diverse environments, we can analyze, diagnose and edit deep reinforcement learning models using attribution.

Lil'Log·

How to Build an Open-Domain Question Answering System?

AI summaryThis post reviews several common approaches for building an open-domain question answering system, i.e., a model capable of answering factual questions with practical applications like chatbots and AI assistants. It was updated in November 2020 to include an example of closed-book factual QA using the OpenAI API (beta).