Okay, here are four final exam questions about Large Language Models (LLMs) suitable for an undergraduate course. These questions cover different aspects, from technical foundations to practical applications and ethical considerations.
Instructions: Please answer the following questions clearly and concisely. Show your reasoning where applicable. Use appropriate terminology.
Question 1: Transformer Architecture and Self-Attention
Explain the core components of the Transformer architecture, focusing specifically on the self-attention mechanism.
a) Describe how self-attention allows the model to weigh the importance of different words in the input sequence when processing a particular word.
b) Why was the self-attention mechanism considered a significant breakthrough compared to previous recurrent architectures (like RNNs or LSTMs) for natural language processing tasks, particularly concerning parallelization and handling long-range dependencies?
Question 2: Pre-training and Fine-tuning Paradigms
Modern LLMs are typically trained using a two-stage process: pre-training followed by fine-tuning.
a) Describe the typical objective function used during the pre-training phase (e.g., next-token prediction) and explain the role of the massive, unlabeled text corpora used in this stage.
b) Explain the purpose of the fine-tuning stage. How does it adapt a pre-trained LLM for specific downstream tasks (e.g., sentiment analysis, question answering)? Discuss the difference in data requirements between pre-training and fine-tuning.
Question 3: Capabilities, Limitations, and Hallucinations
Discuss the capabilities and limitations of current Large Language Models.
a) Identify and explain two significant capabilities demonstrated by LLMs (e.g., few-shot learning, cross-lingual transfer, complex instruction following).
b) Identify and explain two significant limitations or risks associated with LLMs (e.g., factual inaccuracies, bias amplification, computational cost). Focus specifically on the phenomenon of "hallucinations" – explain what it means in the context of LLMs and discuss potential reasons why it occurs.
Question 4: Evaluating LLM Performance for a Specific Application
Imagine you are evaluating an LLM for use as an automated summarization tool for news articles.
a) What are the potential benefits of using an LLM for this task compared to traditional algorithms?
b) Describe two different evaluation metrics or methods you would use to assess the quality of the summaries generated by the LLM. Justify why each metric/method is appropriate for evaluating summarization quality.
c) Besides summary quality, what other factors or potential issues would you need to consider before deploying this LLM application in a real-world scenario?