CS 162: Natural Language Processing
Lecture 1
Saadia Gabriel
First, what brought you here?
What is Natural Language Processing?
The intersection of computer science, artificial intelligence and computational linguistics
Key Aspects of NLP
Real-world Applications of NLP
A Few Recent Breakthroughs
A Few Recent Breakthroughs
A Few Recent Breakthroughs
November 2014
A Few Recent Breakthroughs
GPT2 in 2019
A Few Recent Breakthroughs
Now most people use NLP in their daily lives…
Claude,
Copilot: Launched 2023
Gemini: Launched 2024
NLP
NLP ≠ LLM Science
LLMs
But we will focus heavily on modern NLP and large-scale language modeling in the second half
How do we get to LLMs?
This is not alchemy! It starts with understanding the mechanics of human language.
Levels of Language
Levels of Language
Levels of Language
Major Challenges in NLP
Ambiguity
Commonsense tells us this probably means the painting was next to the tree, not that a tree found the painting…
Probably the kids are making the snacks, not that they are the snacks, unless this is satire…
Administration:�The Annotated Syllabus
We usually won’t use the entire class time, but there will be exams and in-class demos
The Bruin Learn page is coming soon with zoom links
Your awesome TAs
https://saadiagabriel.com/cs162_s26.html
Starting from week 2, submit a question after each lecture
There will be 3 homework assignments with MCQs and coding
One of 2 exams
First TA lecture
You will form your own final project groups and indicate what kind of paper you’d like to work on
Submit a short report on your progress and sign up for a paper presentation slot
How is this all graded?
Other Software Use Rules
You may use existing software packages (with acknowledgement of the packages used), unless an assignment explicitly prohibits this.
You may not use AI coding assistants for homework assignments, but you may use them for the final project (with acknowledgement).
NOTE: Extra credit will be given for discussion section attendance.
Waitlist and PTEs
The class will be capped at 120 students. I will add students as spots open up. Students with dropped enrollment will be prioritized.
In-class participation
It’s very important to show up in-person as much as possible, though there will be a zoom link after today. In the next few weeks, learning assistants will be present to help you with in-class exercises.