COMS E6998

Algorithms in Large Language Models (COMS E6998, Fall 2026)

Algorithms in Large Language Models
COMS E6998 · Fall 2026 · Columbia University

Class Description

This class covers algorithmic aspects of various parts of modern-day LLMs, with a focus on theoretically grounded ideas. The class will primarily cover the theoretical/formal computational frameworks within which one can reason about best algorithms for specific problems. Most of the class will be devoted to mathematical analysis of algorithms.

Large Language Models (LLMs) are built from a pipeline of stages: data collection and filtering, tokenization, retrieval, the transformer architecture itself (attention in particular), training via stochastic optimization, compression (quantization, sparsity), and inference under a memory/latency budget. Each stage hides one or more algorithmic problems. The focus of the class is on why, not what: not a catalog of the techniques currently used, but the fundamental reasons the good techniques look the way they do.

What the class is not about: while we will try to cover most stages of the LLM pipeline, the main focus is on stages where algorithms have theoretical underpinnings. There will be little emphasis on implementation/code (though it can appear in final projects). There is less emphasis on a pure Machine Learning perspective (e.g., generalization).

Lectures & Class Materials

Handouts: Course information • Self-evaluation test (solutions) • Scribes: LaTeX template (contains instructions for the lecture notes and additional chapter).

Class Calendar

Below is the schedule of lectures and assignments. Details on readings and lecture notes are updated periodically.

Lecture Date Topic Milestones & Due Dates
19/9Intro to LMs and Transformers
29/14Data, Tokenization
39/16Data, Tokenization
49/21Nearest Neighbor Search: Algorithms
59/23Nearest Neighbor Search: RAG (class notes)
69/28Attention Mechanism (class notes)
79/30Attention Mechanism (class notes)
810/5Randomized Linear Algebra
910/7Randomized Linear Algebra
1010/12Quantization
1110/14Quantization
1210/19Mixture of Experts
1310/21Mixture of Experts
1410/26OptimizationProject proposal due
1510/28Optimization
—11/2No Class: Academic Holiday
1611/4Expressivity: Transformers as a Computational Model
1711/9Expressivity: Transformers as a Computational Model
1811/11Alignment
1911/16Alignment
2011/18Privacy and ProvenanceProgress report due
2111/23Privacy and Provenance
—11/25No Class: Thanksgiving
2211/30TBD
2312/2TBD
2412/7TBD
2512/9Final Project Presentations / Posters
2612/14Final Project Presentations / Posters
—12/21Finals PeriodFinal project write-up due

Prerequisites

Mathematical maturity is a must: the class is based on theoretical ideas and is proof-heavy. You are expected to be able to read and write formal mathematical proofs. Some familiarity with algorithms and randomness will be assumed as well. COMS 4231 (Analysis of Algorithms) or equivalent is useful, but not required if you have a solid math background.

To check whether you have the necessary background, see the self-evaluation test (solutions): you are expected to be able to solve all of its problems.

Undergraduate students and students from other departments are welcome.

Evaluation & Grading

Course grades are based on three components (see course information for full policies):

  • Final Project (50%): Research/exploratory (theory) or implementation/empirical project in teams of 1–3 students comparing theoretical guarantees with practical heuristics.

  • Homework (30%): One problem set testing the formal frameworks from class, followed by a 10–15 minute individual meeting with a TA to walk through and explain your solutions.

  • Scribing (20%): A complete, self-contained LaTeX write-up of one lecture plus a 2–3 page extra chapter on a related result, lower bound, or practical connection using the scribe template.