Natural Language Processing

Author

Chao Ma

Published

June 6, 2026

Notes on natural language processing, from classical system-building approaches to modern neural and reinforcement-learning methods for language models.


CMU Advanced NLP Lecture 21: Mixture of Experts Sparse expert layers for language models: replacing dense FFNs, top-k routing, expert choice, hash routing, balance loss, Z-loss, and expert parallelism.

CMU Advanced NLP Lecture 16: Reinforcement Learning for LLMs RL for language models through one-step and token-level MDP views, policy gradient, group-based advantages, PPO, cold-start fine-tuning, verifiable rewards, math reasoning, and RLHF.

CMU Advanced NLP Lecture 9: Decoding Algorithms Greedy decoding, beam search, MAP pitfalls, sampling, top-k, top-p, temperature, and KV-cache speedups for language model generation.

CMU Advanced NLP Lecture 2: Learned Representation Tokenization, token embeddings, CBOW, Deep CBOW, training losses, and a small sentiment-classification experiment comparing shallow and deeper bag-of-words models.

CMU Advanced NLP Lecture 1: Introduction and Fundamentals NLP system-building methods from rules to supervised learning and reinforcement learning, plus the common ingredients of parameterization, learning, inference, softmax probabilities, and generation.