1Z0-1127-25 practice question 9 of 15

When is fine-tuning an appropriate method for customizing a Large Language Model (LLM)?

Full set: 88 questions
Answer options
A: When the LLM already understands the topics necessary for text generation
B: When the LLM does not perform well on a task and the data for prompt engineering is too large Correct answer
C: When the LLM requires access to the latest data for generating outputs
D: When you want to optimize the model without any instructions
Correct Answer:
B. When the LLM does not perform well on a task and the data for prompt engineering is too large
Explanation

Fine-tuning is the appropriate method when a pre-trained Large Language Model (LLM) does not perform well on a specific, nuanced task, and the number of examples needed to guide it via prompt engineering (in-context learning) is too large to fit within the context window or is inefficient. Fine-tuning adapts the model's internal weights by training it on a curated dataset of examples, effectively "teaching" it the new skill, style, or format. This process internalizes the knowledge, leading to better performance and consistency on the target task compared to what can be achieved with prompting alone, especially when the task is complex.

Why Incorrect

A. If the LLM already understands the necessary topics, prompt engineering is typically a more efficient and cost-effective method for guiding its output.
C. Providing an LLM with access to the latest data is the primary use case for Retrieval-Augmented Generation (RAG), which retrieves current information and adds it to the prompt's context.
D. Fine-tuning is a supervised learning process that explicitly requires a structured dataset of instructions and examples to optimize the model for a specific task.

References

1. Oracle Cloud Infrastructure (OCI) Documentation: In the documentation for the Generative AI service, it specifies when to use custom models. "Fine-tuning can improve on few-shot learning by training the model on many more examples than can fit in a prompt, making fine-tuning a good option for new tasks that the model wasn't originally trained on."

Source: Oracle Cloud Infrastructure Documentation, "AI and Machine Learning > Generative AI > Custom Models", Section: "When to Use a Custom Model".

2. Stanford University Courseware: Lecture materials on LLM adaptation explain that fine-tuning is used to specialize a model for a target task or data distribution that is not well-handled by the base model, especially when in-context learning is insufficient.

Source: Stanford CS224N: NLP with Deep Learning, Winter 2023, Lecture 12: "Prompting, Instruction Finetuning", Slide 54, "Why instruction finetuning?".

3. Academic Publication: A foundational paper on instruction tuning highlights that this form of fine-tuning significantly improves zero-shot performance on unseen tasks, demonstrating its value when a model needs to learn how to perform new tasks it struggles with initially.

Source: Wei, J., Bosma, M., et al. (2021). "Finetuned Language Models Are Zero-Shot Learners". Section 3.1, "Method". (Available on arXiv:2109.01652). This paper discusses the principle of fine-tuning to improve task performance where the base model is lacking.

Scroll to Top