COMP47980 Generative AI: Language Models

Academic Year 2023/2024

The module aims to deliver a practical understanding of the theory, development and use of large language models for generation of novel content in AI.

Students will learn about: languages, formal and natural; conventional NLP vs. the "new" NLP; statistical language models (n-gram and neural); vector representations and latent spaces; encoders, decoders and auto-encoders; distributed representations; transformer architectures; attention and self-attention; prompts and continuations; "hallucinations" and creativity in LMs; poking under the hood (why do these models work?); using APIs for LLMs.

Show/hide contentOpenClose All

Curricular information is subject to change

Learning Outcomes:

This module will teach students to understand the inner workings and practical applications of large language models, as applied to generative and creative tasks. Students will be able to build their own working systems that exploit LLMs to generate novel content, and be able to use standard APIs for accessing very large LMs from third-party providers.

Indicative Module Content:

Languages, formal and natural;
Conventional NLP vs. the "new" NLP;
Statistical language models (n-gram and neural);
Tokenization (byte-pair encoding; greedy tokenization; token "healing");
Vector representations and latent spaces;
Encoders, decoders and auto-encoders;
Distributed representations;
Positional encoding;
Contrastive Language/Image Pre-Training (CLIP);
Transformer architectures;
T5 (Text-to-Text Transfer Transformer) models;
Attention and self-attention;
Prompts and continuations;
Temperature settings and creative outputs;
"Hallucinations" and creativity in LLMs;
Poking under the hood (why do these models work?);
Explainable AI and LLMs;
Alignment of LLMS (and the alignment "tax")
RLHF in LLMS (Reinforcement Learning with Human Feedback);
Using APIs for LLMs;
Prompt engineering;
Chain-of-Thought (CoT) and other control mechanisms for LLMs

Student Effort Hours: 
Student Effort Type Hours
Lectures

24

Laboratories

24

Autonomous Student Learning

68

Total

116

Approaches to Teaching and Learning:
interactive lectures, with detailed slide decks and other content;
illustrative examples with real LLMs;
task-based learning with practical, hands-on exercises;
practical assignments and tasks;
domain-specific examples
 
Requirements, Exclusions and Recommendations

Not applicable to this module.


Module Requisites and Incompatibles
Not applicable to this module.
 
Assessment Strategy  
Description Timing Open Book Exam Component Scale Must Pass Component % of Final Grade
Assignment: Practical coursework related to generative AI and large language models Throughout the Trimester n/a Graded No

10

Project: A substantial project on some aspect of generative AI and large language models Coursework (End of Trimester) n/a Graded No

55

Assignment: Practical development assignment on the topic of generative AI with large language models Throughout the Trimester n/a Graded No

10

Assignment: Practical development assignment on the topic of generative AI with large language models Throughout the Trimester n/a Graded No

15

Continuous Assessment: Practical development assignment on the topic of generative AI with large language models Throughout the Trimester n/a Graded No

10


Carry forward of passed components
No
 
Remediation Type Remediation Timing
In-Module Resit Prior to relevant Programme Exam Board
Please see Student Jargon Buster for more information about remediation types and timing. 
Feedback Strategy/Strategies

• Feedback individually to students, post-assessment

How will my Feedback be Delivered?

Not yet recorded.

Speech and Language Processing. Daniel Jurafsky & James H. Martin. See: https://web.stanford.edu/~jurafsky/slp3/
Timetabling information is displayed only for guidance purposes, relates to the current Academic Year only and is subject to change.
 
Spring
     
Lecture Offering 1 Week(s) - 20, 21, 23, 24, 25, 26, 29, 31, 32, 33 Mon 16:00 - 16:50
Lecture Offering 1 Week(s) - 20, 21, 22, 23, 24, 25, 26, 29, 30, 31, 32, 33 Thurs 16:00 - 16:50
Practical Offering 1 Week(s) - 20, 21, 22, 23, 24, 25, 26, 29, 30, 31, 32, 33 Mon 17:00 - 18:50
Spring