University of Waterloo · Computational Learning Theory Research Seminar
CS 886: Learning Theory for Modern AI
Transformers and Large Language Models
Course Overview and Logistics
Learning Theory for Modern AI is a graduate research seminar on the theoretical foundations of transformers and large language models. We study what these models can represent and compute, what computational resources they require, when their training dynamics are stable, how they learn and generalize from finite data, and why they fail. The course begins with an instructor-led case study in exact algorithmic learning, certification, and hardness.
After the opening case study, Module I moves from expressivity and computational complexity to trainability and finite-sample learning of attention. Module II studies statistical targets, optimization, and generalization in in-context learning. Module III studies autoregressive chain-of-thought, curricula, and length generalization. Module IV is devoted to student project presentations.
Recommended preparation. Students should have mathematical maturity and working knowledge of probability, linear algebra, optimization, algorithms, asymptotic notation, and introductory machine learning. Familiarity with reading proofs is expected. Prior coursework in computational complexity, statistical learning theory, or transformers is helpful but not required.
Required materials. No textbook is required, and all assigned papers are linked from this website.
Note for non-theory students. The course is open to students without a theory background. You can still gain substantial insight into how transformers work and use the course project to scrutinize existing theoretical claims through empirical evidence.
Preparatory Background
Students who need a refresher should review the following concepts before the corresponding modules. Short course notes or references will be posted before they are needed.
Algorithms and computational complexity. Asymptotic notation, reductions, randomized and conditional lower bounds, circuit classes such as AC0 and TC0, communication or parallel models.
Statistical learning theory. PAC learning, VC dimension, algorithmic stability, statistical-query learning, concentration, minimax rates, population versus empirical risk, and distribution shift.
Distinguish representation, computational-complexity, trainability, optimization, learnability, generalization, and certification claims for transformers and related neural models.
State and interpret principal theorems with their assumptions, quantifiers, and dependence on sample size, dimension, sequence length, width, depth, precision, conditioning, and task complexity.
Explain how differences in architecture, attention mechanism, precision, depth, recurrence, data-generating process, training rule, and evaluation criterion can produce apparently conflicting theoretical conclusions.
Explain and compare principal techniques used in modern transformer theory, including circuit and communication reductions, statistical-query lower bounds, kernel and mean-field limits, stability, concentration, margin arguments, and minimax analysis.
Assess how closely an idealized theoretical model corresponds to a modern transformer or large language model and identify which omitted features may materially affect the conclusion.
Develop a theoretical extension or design a reproducible empirical investigation that tests, verifies, stress-tests, or challenges a formal theoretical prediction.
Present technical research clearly in written and oral form and synthesize multiple papers into a coherent account of what is known, which assumptions matter, and which questions remain open.
Topics at a Glance
Tentative schedule: The current schedule is a work in progress. Topics, papers, and their order may change.
Week
Date
Topic
Central question
Instructor-led opening case studyExact Algorithmic Learning, Certification, and HardnessA motivating case study contrasting exact learning of discrete algorithms with statistical-query and certification hardness.
When can neural models learn discrete algorithms exactly from small structured samples, and when are exact learning or behavioral certification provably hard?
Module ITransformer Capacity, Computation, and LearningFrom representational power and formal limitations to computational resources, trainability, and finite-sample learning of attention.
How can Turing completeness coexist with exact formal-language and circuit upper bounds, and which assumptions about depth, precision, masking, recurrence, and positional information explain the difference?
How do depth, parallel communication, entry magnitudes, and approximation error determine what transformers and self-attention can compute efficiently?
How do layer normalization, residual structure, and depth determine whether transformer representations and gradients remain stable at initialization and during early training?
Why does self-attention favor sparse dependencies, and how does gradient descent select and learn task-relevant tokens?
Module IITheory of In-Context LearningStatistical targets and benchmarks, optimization and training dynamics, and finite-sample generalization with optimal rates.
When does next-token pretraining approximate Bayesian inference, how does its error scale with pretraining data and context length, and when is the resulting predictor statistically consistent from a frequentist viewpoint?
Which in-context algorithms minimize the pretraining objective, and under what assumptions does gradient-based pretraining converge to one-step or multi-step learned optimization rules?
Once pretraining has produced an in-context algorithm, how many tasks and prompt examples are needed for it to generalize and attain optimal statistical rates?
Module IIITheory of ReasoningLearning with autoregressive reasoning traces, followed by scratchpads, curricula, self-training, and length extrapolation.
How do observed or latent reasoning traces change the sample and computational complexity of learning, and when can they yield provable sample-efficiency gains?
Which forms of intermediate supervision, curriculum design, and self-training make compositional reasoning learnable and transferable to harder or longer instances?
Module IVProjects
11
November 27, 2026
Project Presentations I
12
December 4, 2026
Project Presentations II
Instructor-led opening case study
Exact Algorithmic Learning, Certification, and Hardness
A motivating case study contrasting exact learning of discrete algorithms with statistical-query and certification hardness.
Central question: When can neural models learn discrete algorithms exactly from small structured samples, and when are exact learning or behavioral certification provably hard?
Module I
Transformer Capacity, Computation, and Learning
From representational power and formal limitations to computational resources, trainability, and finite-sample learning of attention.
Central question: How can Turing completeness coexist with exact formal-language and circuit upper bounds, and which assumptions about depth, precision, masking, recurrence, and positional information explain the difference?
Central question: How do depth, parallel communication, entry magnitudes, and approximation error determine what transformers and self-attention can compute efficiently?
Central question: How do layer normalization, residual structure, and depth determine whether transformer representations and gradients remain stable at initialization and during early training?
Central question: When does next-token pretraining approximate Bayesian inference, how does its error scale with pretraining data and context length, and when is the resulting predictor statistically consistent from a frequentist viewpoint?
Central question: Which in-context algorithms minimize the pretraining objective, and under what assumptions does gradient-based pretraining converge to one-step or multi-step learned optimization rules?
Central question: Once pretraining has produced an in-context algorithm, how many tasks and prompt examples are needed for it to generalize and attain optimal statistical rates?
Module III
Theory of Reasoning
Learning with autoregressive reasoning traces, followed by scratchpads, curricula, self-training, and length extrapolation.
Central question: How do observed or latent reasoning traces change the sample and computational complexity of learning, and when can they yield provable sample-efficiency gains?
Central question: Which forms of intermediate supervision, curriculum design, and self-training make compositional reasoning learnable and transferable to harder or longer instances?
Module IV
Projects
Week 11November 27, 2026
Project Presentations I
Week 12December 4, 2026
Project Presentations II
Reading Expectations
For every scheduled paper, all students should read at least the abstract, introduction, formal setup, main theorem or principal result, and discussion or limitations. Before class, students should be able to identify the paper's result type and its decisive assumption. The two assigned presenters are jointly responsible for the proof details and supplementary material needed to explain the result accurately. Both presenters must understand the complete paper; their division of speaking roles does not divide responsibility for the paper. Other students are not expected to read every technical detail in the appendix.
Detailed Paper Schedule
Instructor-led opening case study
Exact Algorithmic Learning, Certification, and Hardness
A motivating case study contrasting exact learning of discrete algorithms with statistical-query and certification hardness.
Week 01 · September 11, 2026Exact Algorithmic Learning, Certification, and Hardness
Central question. When can neural models learn discrete algorithms exactly from small structured samples, and when are exact learning or behavioral certification provably hard?
How NTK-regime neural models can learn local update rules, arithmetic operations, and algorithmic instructions exactly from small structured training sets.
Artur Back de Luca, George Giapitzakis, and Kimon FountoulakisLearning to Add, Multiply, and Execute Algorithmic Instructions Exactly with Neural Networks. NeurIPS 2025. Theoretical focus: Proves that ensembles of infinite-width two-layer networks in the neural-tangent-kernel regime can exactly execute binary permutations, addition, multiplication, and a Turing-complete SBN instruction set with high probability from logarithmically many structured examples.
Muhammad Fetrat Qharabagh, Artur Back de Luca, George Giapitzakis, and Kimon FountoulakisLearning to Execute Graph Algorithms Exactly with Graph Neural Networks. ICML 2026 (Spotlight). Theoretical focus: Uses neural-tangent-kernel theory to learn local update instructions from a small training set and composes them in a graph neural network that exactly executes bounded-degree, finite-precision graph algorithms with high probability.
Part II: Hardness of exact learning and certification
Why exact transition behavior can be statistically hard to learn and why verifying exact behavior from examples can become exponentially hard after minimal overparameterization.
George Giapitzakis, Kimon Fountoulakis, Eshaan Nichani, and Jason D. LeeOn the Statistical Query Complexity of Learning Semiautomata: a Random Walk Approach. COLT 2026. Theoretical focus: Proves the first statistical-query hardness result for learning semiautomata under a uniform distribution over words and initial states, using random walks, Fourier analysis, representation theory, and spectral-gap bounds.
Artur Back de Luca and Kimon FountoulakisCertification from Examples is Hard for Circuits and Transformers under Minimal Overparametrization. Preprint 2026. Theoretical focus: Proves that one additional threshold gate can make behavioral certification from examples exponentially hard and gives an analogous lower bound for a specific log-precision transformer model under constant architectural overhead.
From representational power and formal limitations to computational resources, trainability, and finite-sample learning of attention.
Week 02 · September 18, 2026Computational Expressivity, Formal Languages, and Circuit Classes
Connection to the previous week. Week 1 showed that exact algorithmic behavior can be learned in carefully structured regimes. Week 2 steps back to ask what transformer architectures can compute at all, and why different assumptions yield Turing completeness or severe formal limitations.
Central question. How can Turing completeness coexist with exact formal-language and circuit upper bounds, and which assumptions about depth, precision, masking, recurrence, and positional information explain the difference?
Part I: Computational universality and exact language characterization
How hard-attention transformers can simulate general computation under one set of assumptions, while strictly masked hard attention without positional embeddings recognizes exactly the star-free languages under another.
Jorge Perez, Pablo Barcelo, and Javier MarinkovicAttention Is Turing Complete. JMLR 2021. Theoretical focus: Proves that hard-attention transformers are Turing complete through their ability to compute and access dense internal representations, under explicit architectural and precision assumptions.
Andy Yang, David Chiang, and Dana AngluinMasked Hard-Attention Transformers Recognize Exactly the Star-Free Languages. NeurIPS 2024. Theoretical focus: Proves that strictly masked hard-attention transformers without positional embeddings are equivalent to linear temporal logic and therefore recognize exactly the star-free languages, while analyzing how masking, position embeddings, and depth change expressivity.
Part II: Finite-precision circuit upper bounds
How saturated floating-point attention expands expressivity beyond unique hard attention while remaining simulable by constant-depth threshold circuits.
William Merrill, Ashish Sabharwal, and Noah A. SmithSaturated Transformers Are Constant-Depth Threshold Circuits. TACL 2022. Theoretical focus: Shows that saturated attention is more expressive than hard attention while proving that floating-point saturated transformers can be simulated by constant-depth threshold circuits, yielding TC0 as an upper bound.
Week 03 · September 25, 2026Parallel and Fine-Grained Complexity of Transformers
Connection to the previous week. Week 2 characterized transformer computational expressivity under different architectural and numerical assumptions. Week 3 asks what depth, parallel communication, and running time are required to realize those computations.
Central question. How do depth, parallel communication, entry magnitudes, and approximation error determine what transformers and self-attention can compute efficiently?
Part I: Parallel depth and communication
How transformer layers correspond to Massively Parallel Computation rounds and what logarithmic depth adds beyond constant-depth parallelism.
Clayton Sanford, Daniel Hsu, and Matus TelgarskyTransformers, Parallel Computation, and Logarithmic Depth. ICML 2024. Theoretical focus: Proves a two-way simulation between a constant number of self-attention layers and a constant number of Massively Parallel Computation rounds, and shows that logarithmic depth suffices for tasks beyond several sequence models and subquadratic transformer approximations.
Part II: Fine-grained complexity of attention
Why exact or approximate attention can require quadratic time and how bounded entries produce a sharp transition to almost-linear approximation.
Feyza Duman Keles, Pruthuvi Mahesakya Wijewardena, and Chinmay HegdeOn the Computational Complexity of Self-Attention. ALT 2023. Theoretical focus: Establishes SETH-based quadratic lower bounds for exact and approximate attention across several mechanisms and gives a finite-Taylor-series linear-time approximation with exponential dependence on the polynomial order.
Josh Alman and Zhao SongFast Attention Requires Bounded Entries. NeurIPS 2023. Theoretical focus: Proves a sharp transition for low-dimensional approximate softmax attention: sufficiently bounded entries permit almost-linear time, while larger entries yield a conditional truly-subquadratic lower bound under SETH.
Week 04 · October 2, 2026Transformer Trainability: Normalization, Depth, and Rank Collapse
Connection to the previous week. Efficiently representable transformer computations are useful only if training remains stable. Week 4 studies how normalization, residual structure, and depth govern representations and gradients.
Central question. How do layer normalization, residual structure, and depth determine whether transformer representations and gradients remain stable at initialization and during early training?
Part I: Normalization and depth-induced rank collapse
How normalization placement changes initial gradients and why repeated pure self-attention drives token representations toward rank one.
Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tie-Yan LiuOn Layer Normalization in the Transformer Architecture. ICML 2020. Theoretical focus: Uses mean-field analysis at initialization to show that Post-LN produces large expected gradients near the output while Pre-LN yields better-behaved initial gradients, providing a theoretical explanation for warmup sensitivity under the paper's model.
Yihe Dong, Jean-Baptiste Cordonnier, and Andreas LoukasAttention Is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depth. ICML 2021. Theoretical focus: Uses a path decomposition to prove that pure self-attention without residual connections or multilayer perceptrons converges doubly exponentially toward rank-one token representations and explains how those architectural components prevent degeneration.
Part II: Gradient consequences and residual scaling
How token-rank collapse causes query and key gradients to vanish and how depth-dependent residual scaling preserves signal propagation.
Lorenzo Noci, Sotiris Anagnostidis, Luca Biggio, Antonio Orvieto, Sidak Pal Singh, and Aurelien LucchiSignal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse. NeurIPS 2022. Theoretical focus: Proves that token-rank collapse causes query and key gradients to vanish at initialization, analyzes gradient imbalances across query, key, and value parameters, and derives depth-dependent residual scaling that preserves signal propagation.
Week 05 · October 9, 2026Sparse Structure and Token Selection in Self-Attention
Connection to the previous week. Stable signals and gradients do not guarantee that training discovers task-relevant structure. Week 5 studies the statistical and optimization biases that drive attention toward sparse, informative tokens.
Central question. Why does self-attention favor sparse dependencies, and how does gradient descent select and learn task-relevant tokens?
Part I: Statistical learnability and implicit bias
Why bounded-norm attention favors sparse dependencies and how gradient descent selects locally optimal tokens through a max-margin bias.
Benjamin L. Edelman, Surbhi Goel, Sham Kakade, and Cyril ZhangInductive Biases and Variable Creation in Self-Attention Mechanisms. ICML 2022. Theoretical focus: Proves norm-based sample-complexity guarantees showing that bounded-norm self-attention can learn sparse dependencies with only logarithmic dependence on context length.
Davoud Ataee Tarzanagh, Yingcong Li, Xuechen Zhang, and Samet OymakMax-Margin Token Selection in Attention Mechanism. NeurIPS 2023. Theoretical focus: Proves that gradient descent on the attention parameter converges in direction to a max-margin solution separating locally optimal tokens from non-optimal tokens, and gives conditions for corresponding margin behavior under joint optimization with the prediction head.
Part II: Provable token-selection learning and length generalization
When gradient descent trains a one-layer transformer to learn a sparse selector, separate from fully connected networks, and extrapolate to longer contexts.
Zixuan Wang, Stanley Wei, Daniel Hsu, and Jason D. LeeTransformers Provably Learn Sparse Token Selection While Fully-Connected Nets Cannot. ICML 2024. Theoretical focus: Proves that gradient descent trains a one-layer transformer to solve sparse token selection, establishes an average-case separation from fully connected networks, and obtains out-of-distribution length generalization.
Statistical targets and benchmarks, optimization and training dynamics, and finite-sample generalization with optimal rates.
Week 06 · October 23, 2026Bayesian and Frequentist Foundations of In-Context Prediction
Connection to the previous week. Week 5 studied how training organizes attention around informative tokens. Week 6 asks what statistical inference procedure emerges when those learned attention mechanisms operate over an entire prompt.
Central question. When does next-token pretraining approximate Bayesian inference, how does its error scale with pretraining data and context length, and when is the resulting predictor statistically consistent from a frequentist viewpoint?
Part I: Bayesian interpretation and information-theoretic rates
When next-token prediction approximates latent-task Bayesian inference and how meta-learning and within-task prediction errors decay with the number and length of training sequences.
Sang Michael Xie, Aditi Raghunathan, Percy Liang, and Tengyu MaAn Explanation of In-Context Learning as Implicit Bayesian Inference. ICLR 2022. Theoretical focus: Under a latent-concept mixture model, proves conditions under which next-token pretraining yields approximate Bayesian inference over concepts at test time despite a mismatch between pretraining sequences and in-context prompts.
Hong Jun Jeon, Jason D. Lee, Qi Lei, and Benjamin Van RoyAn Information-Theoretic Analysis of In-Context Learning. ICML 2024. Theoretical focus: Decomposes Bayes prediction error into meta-learning and within-task terms and derives how the error decreases with both the number of training sequences and their lengths without the mixing-time assumptions used by earlier analyses.
Part II: Frequentist consistency
How prior-data fitted predictors can be interpreted without assuming a Bayesian data-generating prior, and which variance and localization conditions are needed for consistency.
Thomas NaglerStatistical Foundations of Prior-Data Fitted Networks. ICML 2023. Theoretical focus: Develops a frequentist theory of prior-data fitted networks, separating variance reduction from localization bias and identifying conditions under which the pretrained predictor is statistically consistent.
Week 07 · October 30, 2026Optimization and Training Dynamics of In-Context Learning
Connection to the previous week. Week 6 identified Bayesian and frequentist target descriptions for prompt-conditioned prediction. Week 7 asks whether transformer pretraining reaches such predictors and which optimization dynamics produce them.
Central question. Which in-context algorithms minimize the pretraining objective, and under what assumptions does gradient-based pretraining converge to one-step or multi-step learned optimization rules?
Part I: One-step population optima and training
Which one-step gradient-like predictor minimizes the population objective and when gradient flow trains linear self-attention to implement a useful in-context predictor.
Ruiqi Zhang, Spencer Frei, and Peter L. BartlettTrained Transformers Learn Linear Models In-Context. JMLR 2024. Theoretical focus: Proves gradient-flow convergence for a one-layer linear transformer, derives controlled in-context prediction risk, and analyzes how the learned predictor behaves under distribution shift.
Part II: Multi-step learned optimization
How a looped transformer can learn a multi-step preconditioned gradient-descent procedure rather than merely represent one.
Khashayar Gatmiry, Nikunj Saunshi, Sashank J. Reddi, Stefanie Jegelka, and Sanjiv KumarCan Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning?. ICML 2024. Theoretical focus: Shows that the population optimum of a linear looped transformer implements multi-step preconditioned gradient descent and proves fast gradient-flow convergence through a gradient-dominance argument despite nonconvexity.
Week 08 · November 6, 2026Finite-Sample Generalization and Minimax Optimality of In-Context Learning
Connection to the previous week. Week 7 analyzed how training reaches in-context algorithms. Week 8 turns from optimization to finite-sample learnability, task transfer, stability, and minimax rates.
Central question. Once pretraining has produced an in-context algorithm, how many tasks and prompt examples are needed for it to generalize and attain optimal statistical rates?
Part I: Finite-sample learnability and stability
How finite pretraining-task counts, prompt examples, and algorithmic stability control generalization and transfer for frozen-weight in-context learners.
Noam Wies, Yoav Levine, and Amnon ShashuaThe Learnability of In-Context Learning. NeurIPS 2023. Theoretical focus: Introduces a PAC-style framework for pretraining followed by frozen-weight in-context adaptation and proves finite sample-complexity guarantees for latent-task mixtures.
Yingcong Li, M. Emrullah Ildiz, Dimitris Papailiopoulos, and Samet OymakTransformers as Algorithms: Generalization and Stability in In-Context Learning. ICML 2023. Theoretical focus: Treats the transformer as an algorithm operating on a prompt and derives excess-risk and task-transfer guarantees through algorithmic stability for independent examples and dynamical trajectories.
Part II: Minimax nonparametric rates
Whether transformer-based in-context learners can attain statistically optimal rates over rich nonparametric function classes.
Juno Kim, Tai Nakamaki, and Taiji SuzukiTransformers Are Minimax Optimal Nonparametric In-Context Learners. NeurIPS 2024. Theoretical focus: Derives approximation and generalization bounds for nonparametric in-context regression, separates pretraining and within-context generalization gaps, and establishes minimax-optimal rates over rich function classes.
Learning with autoregressive reasoning traces, followed by scratchpads, curricula, self-training, and length extrapolation.
Week 09 · November 13, 2026Sample Complexity of Autoregressive Chain-of-Thought
Connection to the previous week. Week 8 studied direct prompt-to-prediction generalization. Week 9 asks how the sample and computational complexity of learning change when the model generates intermediate reasoning traces autoregressively.
Central question. How do observed or latent reasoning traces change the sample and computational complexity of learning, and when can they yield provable sample-efficiency gains?
Part I: General framework and tight capacity bounds
A general learning model for observed and latent reasoning traces, followed by nearly matching transformer capacity and teacher-forced sample-complexity bounds.
Nirmit Joshi, Gal Vardi, Adam Block, Surbhi Goel, Zhiyuan Li, Theodor Misiakiewicz, and Nathan SrebroA Theory of Learning with Autoregressive Chain of Thought. COLT 2025. Theoretical focus: Formalizes learning with observed and latent chains of thought, derives sample and computational complexity from properties such as VC dimension, and shows how time invariance can remove dependence on chain length from sample complexity.
Chenxiao Yang, Nathan Srebro, and Zhiyuan LiTight Sample Complexity of Transformers. COLT 2026. Theoretical focus: Tightly characterizes the VC dimension and sample complexity of depth-L transformers, including teacher-forced chain-of-thought learning, with nearly matching upper and lower bounds.
Part II: Sample-efficiency gains from sparse reasoning traces
Revisiting Week 5's sparse-dependence theme, this paper shows in a concrete learning model how intermediate traces can convert an exponential sample requirement into a polynomial one.
Kaiyue Wen, Huaqing Zhang, Hongzhou Lin, and Jingzhao ZhangFrom Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiency. ICLR 2025. Theoretical focus: In a parity-learning model under the paper's training setup, proves that chain-of-thought enables polynomial-sample learning where direct prediction requires exponentially many samples and explains the gain through sparse sequential dependence and sparse attention.
Week 10 · November 20, 2026Curricula, Scratchpads, and Length Generalization for Reasoning
Connection to the previous week. Week 9 established how reasoning traces change sample complexity. Week 10 asks which scratchpads, curricula, and self-training procedures overcome barriers on harder or longer problems, returning to Week 1's contrast between structured positive results and learning hardness.
Central question. Which forms of intermediate supervision, curriculum design, and self-training make compositional reasoning learnable and transferable to harder or longer instances?
Part I: Learning barriers and easy-to-hard curriculum
Why direct or hard-only training can fail and how structured scratchpads or easy-to-hard examples overcome formal learning barriers.
Emmanuel Abbe, Samy Bengio, Aryo Lotfi, Colin Sandon, and Omid SaremiHow Far Can Transformers Reason? The Globality Barrier and Inductive Scratchpad. NeurIPS 2024. Theoretical focus: Formalizes a globality measure for reasoning tasks, develops learning barriers under the paper's stated assumptions, and analyzes how increasingly structured scratchpads can change the learnability of global functions.
Zixuan Wang, Eshaan Nichani, Alberto Bietti, Alex Damian, Daniel Hsu, Jason D. Lee, and Denny WuLearning Compositional Functions with Transformers from Easy-to-Hard Data. COLT 2025. Theoretical focus: Proves an exponential statistical-query lower bound for hard-only data and polynomial sample and runtime guarantees for gradient descent on an O(log k)-depth transformer under suitable easy-to-hard or mixed curricula.
Part II: Self-training and length generalization
How structured chain-of-thought training and recursive self-training support extrapolation beyond the original training lengths.
Yu Huang, Zixin Wen, Aarti Singh, Yuejie Chi, and Yuxin ChenTransformers Provably Learn Chain-of-Thought Reasoning with Length Generalization. NeurIPS 2025. Theoretical focus: Proves optimization and length-generalization guarantees for transformers trained on structured state-tracking tasks and analyzes attention concentration and recursive self-training beyond the original training lengths.
Week 1 is instructor-led: the instructor will present all four papers. Student paper presentations run from Week 2 through Week 10, with 3 papers each week. Every paper is presented jointly by 2 students. The meeting format below applies to the student-led meetings in Weeks 2–10.
Each of the 27 students will give 2 paired paper presentations on two different papers. Each student will normally work with a different partner for the two presentations. The two paper presentations are worth 20% each, for 40% of the final grade in total. The required project presentation is separate and does not count toward these paper presentations.
Paired Presentation Expectations
Each pair will prepare one coherent 44-minute presentation rather than two separate mini-presentations.
The pair should divide the speaking time and technical content approximately equally; each student will normally speak for about 22 minutes and must present a substantive technical part of the paper.
Both presenters are responsible for understanding the complete paper, including the formal problem, main theorem, assumptions, proof strategy, and limitations. Dividing the speaking roles does not divide responsibility for the paper.
Both presenters should be prepared to answer general questions about any part of the paper. One presenter may take the lead on a specialized question about the portion they studied most closely.
Each student receives an individual grade for each presentation. Organization and coherence may be assessed jointly, while technical understanding, delivery, contribution, and responses to questions are assessed individually.
Student-Presentation Meeting Format
110 minutes: Papers 1–2; each paper receives a 44-minute joint presentation by 2 students, 10 minutes of discussion and questions, and a 1-minute transition
5 minutes: Break
55 minutes: Paper 3; the paper receives a 44-minute joint presentation by 2 students, 10 minutes of discussion and questions, and a 1-minute transition
Presentation
State the formal problem, including the data-generating process, architecture or hypothesis class, loss, training rule, and evaluation criterion.
Classify the result as representation, computational complexity, trainability, optimization, learnability, generalization, or certification.
State the main theorem with its assumptions, quantifiers, and important dependence on sample size, dimension, sequence length, width, depth, precision, conditioning, or task complexity.
Explain the principal proof mechanism rather than only restating the theorem.
Identify the assumption that carries the result and explain how closely the formal model corresponds to a modern transformer or large language model.
Distinguish theorem-level conclusions from experimental evidence, conjectures, and informal interpretations.
Explain how the paper advances, limits, contrasts with, or changes the assumptions of the adjacent papers.
End with one precise limitation and one concrete theorem, counterexample, or experiment that would materially strengthen or challenge the result.
Required Course Project
The project accounts for 40% of the course grade. The topic must be discussed with and approved by the instructor.
Acceptable Project Forms
New theoretical contribution. Examples include a new theorem, proof, lower or upper bound, sharper rate, weaker assumption, impossibility result, counterexample, or extension of an existing result to a more realistic transformer or language-model setting.
Empirical validation or scrutiny of theory. The project may stress-test or challenge an existing theoretical claim.
Measuring whether the predicted dependence on sample size, sequence length, depth, width, number of heads, task diversity, or conditioning appears in finite models.
Checking how a theorem behaves when idealized assumptions such as linear attention, Gaussian data, population loss, infinite width, or realizability are relaxed.
Reproducing a paper's core theoretical experiment and identifying robustness or failure regimes.
Comparing a formal bound with observed behavior and explaining the gap.
Searching systematically for counterexamples to a conjectured extension or informal interpretation of a theorem.
A generic model comparison, benchmark leaderboard, prompt-engineering exercise, or systems implementation is not sufficient by itself.
Project Deliverables
A final written report that clearly separates known results from the student's contribution and provides sufficient technical detail to evaluate correctness.
For empirical projects, reproducible code and configurations.
An individual final presentation during Week 11 or Week 12. The project presentation is assessed as part of the project grade and is separate from the paired paper presentations.
Project Evaluation
Projects will be evaluated according to:
Relevance to the theoretical study of transformers or large language models, including representation, computational complexity, trainability, optimization, learnability, generalization, certification, or reasoning.
Precision and importance of the research question.
Technical correctness and depth.
Originality of a theoretical contribution, or rigor and informativeness of an empirical validation or scrutiny.
Understanding of assumptions, limitations, and related work.
Clarity of the written report and final presentation.
Reproducibility, where applicable.
A complete publishable theorem is not required. Careful negative results, counterexamples, unsuccessful proof attempts that isolate a genuine obstruction, and rigorous empirical audits can all constitute strong projects when the analysis is technically substantive and clearly documented.
Although publication is not required, the instructor is happy to help develop strong projects toward publication. A project from a previous offering of CS 886 was subsequently developed into a NeurIPS 2024 publication.
Project Milestones and Deadlines
Deliverable
Deadline
Details
Project topic approval
October 23, 2026
Submit an ungraded three-to-five-sentence description of the proposed contribution and, for empirical work, the principal experiment. This is an approval checkpoint rather than a separately graded proposal.
Final project report and reproducibility materials
November 26, 2026
The final report and any required code, configurations, data instructions, or other reproducibility materials are due before project presentations begin. This component is worth 30% of the final grade.
Final project presentation
November 27 or December 4, 2026
Each student gives an individual presentation during the assigned project-presentation meeting. The assigned date will be announced after project topics are confirmed. This component is worth 10% of the final grade.
Project Presentation Requirements
Weeks 11–12 are reserved for 27 individual project presentations. Week 11 will have 14 presentations, and Week 12 will have 13. Presentations will be approximately 12–13 minutes, including questions. The project presentation is separate from the two required paired paper presentations.
Every presentation should include:
The precise research question and its connection to the course.
The existing theoretical result, conjecture, or limitation being extended or examined.
The student's original contribution.
The methods, assumptions, and experimental or proof setup.
The main theorem, counterexample, quantitative finding, or negative result.
The strongest limitation and the most important next step.
For empirical projects, plots and tables should be chosen to test the stated theoretical prediction rather than merely summarize benchmark performance. For theoretical projects, the talk should state the result with its quantifiers and parameter dependence, and should explain the main proof idea or obstruction.
Assessment
The final grade consists of two paired paper presentations (20% each; 40% in total), the required course project (40%), and class participation (20%).
Use of Generative AI
Generative-AI tools may be used for coursework in this class.
Students remain fully responsible for the accuracy, originality, and integrity of all submitted work and must be able to explain every mathematical statement, proof step, citation, experimental result, and piece of code. Factual, mathematical, citation, experimental, or coding errors will be graded as errors regardless of whether AI was used.
Suggested Additional Readings and Project Starting Points
These readings include foundational representational, mechanistic, and adjacent theory papers that support the seminar's learning-theory core, as well as possible project starting points. They are not scheduled paper presentations.
Transformer Architecture, Expressivity, and Computation
Foundational or complementary papers on universal approximation, initialization, infinite-width limits, signal propagation, formal-language limitations, circuit and parallel complexity, automata shortcuts, and explicitly programmed transformer computation.
Xiao Shi Huang, Felipe Perez, Jimmy Ba, and Maksims VolkovsImproving Transformer Optimization Through Better Initialization. ICML 2020. Theoretical focus: Proposes T-Fixup using a simplified analysis of depth-dependent update scaling and validates that the initialization can train very deep encoder-decoder transformers without warmup or layer normalization. It is useful practical background for Week 4 but is not one of the core signal-propagation theorem papers.
Akhil Kedia, Mohd Abbas Zaidi, Sushil Khyalia, Jungho Jung, Harshith Goka, and Haejun LeeTransformers Get Stable: An End-to-End Signal Propagation Theory for Language Models. ICML 2024. Theoretical focus: Combines end-to-end forward and backward signal-moment calculations with the DeepScaleLM scaling prescription and extensive empirical validation for very deep language-model transformers. It complements Week 4's theorem-centered core with a broader theory-and-method treatment of stable scaling.
Jiri Hron, Yasaman Bahri, Jascha Sohl-Dickstein, and Roman NovakInfinite Attention: NNGP and NTK for Deep Attention Networks. ICML 2020. Theoretical focus: Establishes rigorous neural-network Gaussian-process and neural-tangent-kernel limits for deep attention networks, shows that standard single-head attention need not become Gaussian at infinite width while multi-head attention converges to a Gaussian process as the number of heads grows, and analyzes positional encodings and layer normalization.
Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi, and Sanjiv KumarAre Transformers Universal Approximators of Sequence-to-Sequence Functions?. ICLR 2020. Theoretical focus: Proves universal approximation of continuous permutation-equivariant sequence-to-sequence maps on compact domains without positional encodings and of arbitrary continuous sequence maps on compact domains with positional encodings.
Michael HahnTheoretical Limitations of Self-Attention in Neural Sequence Models. TACL 2020. Theoretical focus: A foundational formal-language lower-bound paper showing limitations of fixed-depth self-attention for periodic and hierarchical languages under its model assumptions. It supports Week 2, while the required schedule uses newer exact characterizations and circuit-class results.
William Merrill and Ashish SabharwalThe Parallelism Tradeoff: Limitations of Log-Precision Transformers. TACL 2023. Theoretical focus: Proves that log-precision transformers with suitably space-bounded feed-forward blocks can be simulated by constant-depth logspace-uniform threshold circuits and derives conditional computational limitations from standard complexity assumptions.
Bingbin Liu, Jordan T. Ash, Surbhi Goel, Akshay Krishnamurthy, and Cyril ZhangTransformers Learn Shortcuts to Automata. ICLR 2023 oral. Theoretical focus: Proves that transformers can exactly simulate any finite-state automaton using O(log T) depth and that broad algebraic classes admit constant-depth shortcut constructions; the claim that gradient-based training discovers these shortcuts is supported empirically rather than by a general optimization theorem.
Angeliki Giannou, Shashank Rajput, Jy-Yong Sohn, Kangwook Lee, Jason D. Lee, and Dimitris PapailiopoulosLooped Transformers as Programmable Computers. ICML 2023. Theoretical focus: Constructs explicit weights for a looped transformer that implements an explicit instruction-set architecture, memory access, branching, nonlinear operations, linear algebra, and backpropagation. It is a strong programmable-computation result but not a theorem that the program or weights are learned from data.
Attention, Memory, and In-Context-Learning Mechanisms
Complementary work on token-composition dynamics, generative self-attention, associative memory, induction mechanisms, Bayesian adaptation, optimization dynamics, algorithm selection, and reusable representations.
Yuandong Tian, Yiping Wang, Beidi Chen, and Simon S. DuScan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformer. NeurIPS 2023. Theoretical focus: Under no-positional-encoding, long-sequence, and decoder-timescale assumptions, rigorously analyzes SGD for one-layer next-token prediction and shows a scan-and-snap dynamic in which attention increasingly favors distinct, high-co-occurrence tokens while downweighting common or lower-co-occurrence tokens, then decelerates after a learning-rate-controlled phase transition, leaving an almost fixed rather than one-hot token mixture.
Muhammed Emrullah Ildiz, Yixiao Huang, Yingcong Li, Ankit Singh Rawat, and Samet OymakFrom Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformers. ICML 2024. Theoretical focus: Maps one-layer generative self-attention to a context-conditioned Markov chain, gives coverage conditions for consistent latent-model estimation and finite-sample guarantees under IID prompt-output data, and separately analyzes a single autoregressive trajectory, characterizing a winner-token distribution-collapse phenomenon. It is strong complementary theory, but its generative model-identification story is separate from Week 5's focused narrative on sparse token selection.
Hubert Ramsauer et al.Hopfield Networks Is All You Need. ICLR 2021. Theoretical focus: Foundational associative-memory theory: proves modern Hopfield retrieval and storage results and identifies the transformer attention update with a Hopfield retrieval step. It is useful background for Week 6 but is not a core statistical-learning paper about pretraining or generalization.
Alberto Bietti, Vivien Cabannes, Diane Bouchacourt, Herve Jegou, and Leon BottouBirth of a Transformer: A Memory Viewpoint. NeurIPS 2023. Theoretical focus: A mechanistic theory and empirical study of how a simplified transformer develops global bigram memories and an induction-head mechanism. Its supplement contains an idealized population-gradient result, but it does not establish general finite-sample or end-to-end training guarantees.
Ekin Akyurek, Dale Schuurmans, Jacob Andreas, Tengyu Ma, and Denny ZhouWhat Learning Algorithm Is In-Context Learning? Investigations with Linear Models. ICLR 2023. Theoretical focus: A foundational construction and empirical algorithm-identification paper: proves that transformers can represent several linear-learning procedures and shows that trained models resemble them, without proving that pretraining converges to those constructions.
Johannes Von Oswald, Eyvind Niklasson, Ettore Randazzo, Joao Sacramento, Alexander Mordvintsev, Andrey Zhmoginov, and Max VladymyrovTransformers Learn In-Context by Gradient Descent. ICML 2023. Theoretical focus: A foundational representational and mechanistic precursor: constructs linear self-attention weights that implement a gradient update and empirically compares trained transformers with that construction, but does not prove convergence of ordinary pretraining to it.
Yu Huang, Yuan Cheng, and Yingbin LiangIn-Context Convergence of Transformers. ICML 2024. Theoretical focus: Proves finite-time convergence of gradient descent for a one-layer softmax-attention model on structured in-context regression and characterizes stagewise learning when features occur at imbalanced frequencies.
Yu Bai, Fan Chen, Huan Wang, Caiming Xiong, and Song MeiTransformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection. NeurIPS 2023. Theoretical focus: Constructs transformers that implement regression and classification procedures, select among algorithms through in-context validation, and achieve formal statistical guarantees with polynomial pretraining requirements.
Nick Cannella, Anzo Teh, Yanjun Han, and Yury PolyanskiyUniversal Priors: Solving Empirical Bayes via Bayesian Inference and Pretraining. COLT 2026. Theoretical focus: For Poisson empirical Bayes, proves that universal pretraining priors achieve near-optimal regret uniformly over test distributions and explains length generalization through fractional-posterior inference.
Complementary theory on chain-of-thought expressivity, nonlinear transformer training for reasoning, adaptive curricula, and statistical-computational barriers in autoregressive learning.
Zhiyuan Li, Hong Liu, Denny Zhou, and Tengyu MaChain of Thought Empowers Transformers to Solve Inherently Serial Problems. ICLR 2024. Theoretical focus: Computational-expressivity theory showing how autoregressive reasoning tokens allow bounded-depth transformers to serialize circuit computation. It is valuable background for Weeks 9–10 but does not prove that gradient-based training learns the construction.
Hongkang Li, Songtao Lu, Pin-Yu Chen, Xiaodong Cui, and Meng WangTraining Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysis. ICLR 2025. Theoretical focus: Quantifies the samples and iterations needed to train nonlinear attention for chain-of-thought inference and proves generalization to unseen tasks under data shift and imperfect or noisy reasoning demonstrations.
Nived Rajaraman, Audrey Huang, Miro Dudik, Rob Schapire, Dylan Foster, and Akshay KrishnamurthyLearning to Reason with Curriculum I: Provable Benefits of Autocurriculum. COLT 2026. Theoretical focus: Proves that adaptive problem selection can require exponentially fewer supervised reasoning demonstrations than non-adaptive fine-tuning and can decouple reinforcement-learning compute from reference-model quality after a burn-in phase.
Theory of parameter-efficient adaptation, preference optimization, online data, coverage, and exploration with language-model policies.
Sadhika Malladi et al.A Kernel-Based View of Language Model Fine-Tuning. ICML 2023. Theoretical focus: Develops a kernel approximation for language-model fine-tuning and uses it to predict data and hyperparameter effects.
Yihan Wang, Jatin Chauhan, Wei Wang, and Cho-Jui HsiehUniversality and Limitations of Prompt Tuning. NeurIPS 2023. Theoretical focus: Proves universal approximation results for prompt tuning while deriving prompt-length and computational limitations.
Yuda Song, Gokul Swamy, Aarti Singh, J. Andrew Bagnell, and Wen SunThe Importance of Online Data: Understanding Preference Fine-Tuning via Coverage. NeurIPS 2024. Theoretical focus: Derives coverage conditions separating online and offline preference optimization and explains when offline data is fundamentally insufficient.
Reliability, Hallucination, and Provenance
Formal limitations on factual prediction and cryptographic methods for identifying generated text.
Adam Tauman Kalai and Santosh S. VempalaCalibrated Language Models Must Hallucinate. STOC 2024. Theoretical focus: Relates unavoidable hallucination on arbitrary rare facts to calibration and the Good-Turing missing mass.
Miranda Christ, Sam Gunn, and Or ZamirUndetectable Watermarks for Language Models. COLT 2024. Theoretical focus: Constructs secret-key watermarks whose presence is efficiently detectable with the key but computationally indistinguishable from the original language-model distribution without it, even under adaptive prompting.
University Policies and Supports
This website is a companion to the official University of Waterloo course outline. The official outline is the authoritative source for assessment, deadlines, accommodations, academic integrity, and institutional policies. The links below provide direct access to the principal University resources.
This website provides the detailed reading schedule, seminar format, and project guidance. The official University of Waterloo course outline is the authoritative source for assessment, deadlines, accommodations, academic integrity, and institutional policies.
Official course outline: The official course-outline link will be added before the first meeting.