Foundations of Large Language Models

Abilities and Limitations of Large Language Models: A Formal Language Learning Perspective

Seminar Inspired by Michael Hahn's prior course: theory-25

The rise of large language models (LLMs) has drawn researchers from theory and empirical machine learning into a shared inquiry: what are the abilities and limitations of these models? A common thread across both perspectives is the use of formal languages to study LLMs, theoretically, to ask which languages or tasks are learnable, and empirically, to test whether these predictions hold in practice and to probe other phenomena of LLMs beyond learnability. The seminar is a chance to engage with LLMs from both angles, useful whether your interests lean toward formal methods or applied machine learning.

Our pursuit of understanding LLMs is divided into three axes:

In each axis, controlled formal languages help us derive precise claims about the abilities and limitations of LLMs, something that is otherwise difficult with natural language.

Artifact

(LLM)

Environment

(Formal language)

"An ant, viewed as a behaving system, is quite simple. The apparent complexity of its behavior over time is largely a reflection of the complexity of the environment in which it finds itself." – Herbert Simon in The Sciences of the Artificial, 1996

Logistics

  • Instructors: Bishwamittra Ghosh, Krishna P. Gummadi.
  • Location: Max Planck Institute for Software Systems, Kaiserslautern, Room 207.
  • Schedule: Weekly, Thursday, 2–4 pm.
  • Intended audience: PhD and Master's students in computer science.
  • Format: Weekly seminar sessions in which students present and discuss the papers listed below.
  • Prerequisites: No specific coursework is required, but a basic understanding of formal languages and large language models (LLMs) is expected.
  • Paper selection: Select your papers here, by 23 October, 11:59 pm.
  • Slides: Introductory meeting.

Grading

Students pass the seminar with a combined score of at least 50% across all three components.

Syllabus (tentative)

Date Topic Reading Presenter
Generation in the Limit Kleinberg, Jon, and Sendhil Mullainathan. “Language Generation in the Limit.” In Proc. NeurIPS 2024, pp. 66058–66079.
Model of a Transformer Weiss, Gail, Yoav Goldberg, and Eran Yahav. “Thinking Like Transformers.” In Proc. ICML 2021.
Predicting Length Generalization Zhou, Hattie, et al. “What Algorithms Can Transformers Learn? A Study in Length Generalization.” In Proc. ICLR 2024.
Recovering the Learned Program Friedman, Dan, Alexander Wettig, and Danqi Chen. “Learning Transformer Programs.” In Proc. NeurIPS 2023.
Difficulty of Learning Liu, Bingbin, et al. “Exposing Attention Glitches with Flip-Flop Language Modeling.” In Proc. NeurIPS 2023.
Implicit World Models Vafa, Keyon, et al. “Evaluating the World Model Implicit in a Generative Model.” In Proc. NeurIPS 2024.
Learning Modes Ghosh, Bishwamittra, et al. “Fine-Tuning vs. In-Context Learning in Large Language Models: A Formal Language Learning Perspective.” In Proc. ACL 2026.
Memorization & Learning Ghosh, Bishwamittra, et al. “Understanding the Interplay between Memorization and Learning in Large Language Models.” In Proc. NeurIPS 2026.

Further Reading (optional)

Axis 1: No assumption about the computational model

Axis 2: A simplified model of the transformer

Axis 3: LLMs in practice