Course introduction + history of NLP
Overview
Mohit Iyyer introduces the course structure, grading, project expectations, and AI-use policy, then traces NLP’s shift from hand-built rules to statistical systems and neural language models. Claude Shannon’s 1951 account of English predictability motivates the link between prediction and compression, while later examples from Noam Chomsky, IBM machine translation, and Yoshua Bengio show why modern language models became practical only with better data and computing scale.
Key takeaways
- Claude Shannon’s 1951 letter-guessing experiment illustrates that English is highly predictable: people can infer many characters from context, and the remaining surprises can encode the original text compactly.
- A predictor that memorizes observed sentences can recall them but may fail on new inputs; compression is presented as a route to representations that generalize.
- Noam Chomsky’s 1957 contrast between “Colorless green ideas sleep furiously” and its scrambled counterpart exposed the limits of the primitive statistical predictors available at the time, helping bolster decades of symbolic, rule-based AI.
- IBM’s 1988 statistical machine translation approach combined a translation model learned from parallel parliamentary proceedings with an English language model trained on monolingual text.
- Feature engineering improved statistical NLP over handcrafted rules, but human-designed features still struggled with generalization and could overfit when made too specific.
- Yoshua Bengio’s 2003 neural probabilistic language model anticipated modern NLP, but the approach only took off when computing scale improved, leading to systems such as GPT-1 around 2018.
Chapters
- Piazza is the hub for class discussion, project-team formation, and assignment and exam instructions; responses are generally expected during Monday-to-Friday business hours.
- Gradescope is used for assignment submissions, while the course website provides a rolling schedule about one to two weeks ahead.
- The previous semester’s course site and YouTube recordings are available as supplementary explanations, and private matters should go to the shared course email rather than individual staff.
- The course has three NLP PhD students as TAs, with two serving half-time and combining to staff one office-hour session.
- TA office hours are planned as two weekly, one-hour in-person sessions; Mohit Iyyer holds office hours Fridays at 9 a.m.
- Teams of roughly four to five students receive a project mentor, either Iyyer or a TA, for guidance from proposal through implementation and reporting.
- There is no textbook; required and optional PDFs and blog posts are linked on the course page, and readings may appear on exams.
- Lecture notes are identified as the most relevant exam study resource, with recorded YouTube lectures available for review.
- Students benefit from familiarity with machine-learning objectives and gradient descent, Python, linear algebra, probability, and calculus; most homework code runs in Google Colab.
- Two in-person, multiple-choice exams make up 50% of the grade; tentative dates are around October 19 and December 9.
- Piazza’s Resources tab contains old exams, with the previous year’s multiple-choice exams described as the closest match to the current format.
- Problem sets make up 20% of the grade, with about three assignments; Homework 0 is a math and programming refresher, followed by two more course-specific Google Colab assignments.
- The final project accounts for 30% of the grade: 10% for a roughly four-page proposal and 20% for an eight-page-or-longer report with a codebase.
- Projects may address any NLP topic, and groups should have four to five students; Piazza has a teammate-search post and a team-assignment form.
- Proposal feedback may prompt substantial scope changes; a project can earn full credit even if the idea does not work, provided the team shows effort and carefully analyzes results.
- AI tools are allowed on problem sets, but not on the in-person exams; the rationale is that exams test whether students understand the homework material.
- For projects, AI can assist with coding, experiments, brainstorming, data collection or analysis, and draft feedback, but submitted proposal and report text must pass the course’s stated Pangram check as 100% human-written.
- Project submissions are screened through Gradescope with a limited number of attempts; the course staff says teams are responsible for ensuring every member’s submitted writing meets the requirement.
- Iyyer says reports will also be graded for quality and understanding, and that AI-polished prose is not required for a good grade.
- Homework 0 is due a little more than two weeks after the first class; project groups should be formed by September 14.
- Project proposals are due in early October, giving teams time to research ideas before submitting a roughly four-page plan.
- Mentors will flag feasibility issues, relevant papers, and unrealistic compute needs; the proposal is intended to start early planning rather than lock teams into an unchangeable project.
- The class guesses an unknown sentence one character at a time, including spaces, with no punctuation in the available character set.
- The exercise recreates a setup from Claude Shannon’s 1951 paper on the predictability of English, where a Bell Labs subject reportedly guessed about 70% of letters correctly on the first try.
- Class guesses reach an estimated 60 to 70% accuracy, far above the roughly 1-in-27 chance of guessing a random letter or space.
- Shannon connects English’s predictability to redundancy: a predictor’s correct guesses need not be transmitted, while mistakes are encoded as surprises.
- A decoder that behaves like the original predictor can recover the sentence from the surprise letters and the locations of correct predictions.
- The lecture presents compression as a useful intuition for modern language models: stronger predictors have fewer surprises and can form representations that support generalization.
- Memorizing every sentence may provide lossless recall but does not generalize to new inputs, illustrating why useful prediction requires more than retrieval.
- Noam Chomsky’s 1957 examples contrast “Colorless green ideas sleep furiously” with the grammatically scrambled “Furiously sleep ideas green colorless.”
- Primitive word-count and phrase-count predictors assigned both unseen sentences effectively zero probability, prompting skepticism that statistical sentence probabilities could capture grammaticality.
- From the 1950s through the 1970s, symbolic AI emphasized handcrafted databases of rules, facts, and grammars for tasks such as machine translation and semantic parsing.
- Rule-based systems could perform curated demonstrations but failed to generalize across the open-ended variety of language.
- An IBM machine-translation system and speech-transcription work helped mark a statistical shift around 1988, enabled by larger digitized datasets.
- European parliamentary proceedings supplied parallel English, French, and German transcripts produced by human translators over many years.
- The noisy-channel formulation selects an English candidate using a translation model and a language model: the former estimates correspondence to the observed French sentence, while the latter scores English fluency.
- Early translation models could use word-to-word alignments learned from parallel data, while the English language model could be trained on plentiful English-only text.
- Statistical NLP replaced large rule collections with human-designed features, such as sentence length, punctuation, noun counts, and syntactic structure.
- Algorithms such as logistic regression and support vector machines learned weights for those features and made predictions on held-out text.
- Feature sets still required repeated human refinement: overly specific features could overfit, while limited features struggled to generalize across translation and question-answering tasks.
- The shift to neural NLP aims to reduce handcrafted rules and features, letting learning algorithms discover useful representations from raw data.
- Yoshua Bengio and collaborators introduced a neural probabilistic language model in 2003, but computing constraints delayed broad adoption of the approach.
- Scaling accelerated in the late 2010s, including GPT-1 around 2018; modern language models train neural networks to predict the next word across enormous text collections.
- The course will focus on neural language models, beginning with n-gram models, perplexity, and the fundamentals of language-model training.
Transcript excerpt
0:00 I don't know who those people are, but uh props to them. All right. Um now that we're started here. Okay. So, today we're going to go over the logistics admin stuff for the course for the first little bit and then we will cover like a very brief history of NLP. um kind of contextualizing what we will be discussing for the majority of this course which will be focused on large language models and very recent developments um in this space. So um kind of today will be a a way to explain why we are skipping you know decades of history on the subject to focus on stuff that has been released
0:49 like last year and and this year. All right. But before all of that we will start with some course logistics. So um you should all have been added to the course uh piaza which we will use for discussion. Um a lot of the organization for this course will happen on piaza. So you'll have a group project. You will organize into groups on piaza. There will be instructions for uh homeworks and exams and stuff like that. So, um me and the TAs will be monitoring uh Piaza regularly. Uh that said, do not expect
1:38 us to respond if you post something at like midnight on a Saturday. Um which a lot of you do. Uh you will get a response business hours during Monday through Friday and if you're lucky, maybe someone will see it on the weekend. [snorts] Um okay. Uh for assignment submissions, we'll be using Grade Scope. So I tried to add everyone on the roster um who was signed up this weekend. Um so I think all of you should have gotten some sort of email from Grade Scope. Um so all of your
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Mohit Iyyer.