How does prompt tuning differ from prompt engineering?
- Exam domain
- Prompt engineering and prompt tuning
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why D is the answer
Prompt tuning learns soft prompt vectors from examples while the model weights stay frozen
Prompt engineering edits the text of a prompt. Prompt tuning trains a small set of continuous vectors, a soft prompt, prepended to the input, and leaves the model weights unchanged.
Remember: Prompt tuning learns soft prompts.
In detail
- Engineering: edit words.
- Tuning: learn vectors.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. There is no difference; the terms are interchangeable in every IBM tool and in researchWrong
The two are different techniques.
B. Prompt tuning rewrites the prompt text by hand until it worksWrong
Hand edits are prompt engineering.
C. Prompt tuning updates all model weightsWrong
Changing all weights is full fine-tuning.
D. Prompt tuning learns soft prompt vectors from examples while the model weights stay frozenRight
Prompt tuning learns soft prompts.
Use case
An illustrative scenario, not a real incident.
Illustrative: a team tunes a soft prompt on 1,000 labelled tickets for a routing task.
See it in different ways
flowchart TD
Q{"What needs to change?"}
Q -->|"Wording of one request"| A0["Prompt engineering"]
Q -->|"Behaviour on one task, weights frozen"| A1["Prompt tuning"]
Q -->|"Deeper task skill"| A2["LoRA fine-tuning"]
Q -->|"Facts that change"| A3["RAG"]How to read this chart
- At "What needs to change?": if "Wording of one request", go to "Prompt engineering"; if "Behaviour on one task, weights frozen", go to "Prompt tuning"; if "Deeper task skill", go to "LoRA fine-tuning"; if "Facts that change", go to "RAG".
mindmap
root(("Prompt tuning"))
n1["Trains"]
n2["Soft prompt vectors"]
n3["Keeps"]
n4["Model weights frozen"]
n5["Needs"]
n6["Labelled examples"]How to read this chart
- The centre is "Prompt tuning".
- "Trains" covers "Soft prompt vectors".
- "Keeps" covers "Model weights frozen".
- "Needs" covers "Labelled examples".