A machine learning engineer is training a soft prompt, σ, to replace a lengthy context, c. They use the following optimization formula, where s(·,·) is a function measuring the difference between two predictions:
hat(σ) = argmin_σ s(hat(y), hat(y)_σ)
Here, hat(y) is the model's prediction with the full context c, and hat(y)_σ is the prediction with the soft prompt σ. After training, the engineer observes that for many inputs, the value of s(hat(y), hat(y)_σ) is consistently high. What does this observation most directly imply about the outcome of the training process?
0
1
Tags
Ch.4 Alignment - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
A machine learning engineer is training a soft prompt, σ, to replace a lengthy context, c. They use the following optimization formula, where s(·,·) is a function measuring the difference between two predictions:
hat(σ) = argmin_σ s(hat(y), hat(y)_σ)Here,
hat(y)is the model's prediction with the full context c, andhat(y)_σis the prediction with the soft prompt σ. After training, the engineer observes that for many inputs, the value ofs(hat(y), hat(y)_σ)is consistently high. What does this observation most directly imply about the outcome of the training process?Impact of the Similarity Function in Soft Prompt Optimization
In the context of learning a compressed representation of a long text, consider the optimization formula:
hat(σ) = argmin_σ s(hat(y), hat(y)_σ), wherehat(y)is the prediction from the full text andhat(y)_σis the prediction from the compressed representationσ. If the functions(·,·)were changed from a dissimilarity measure (e.g., a loss function) to a similarity measure (e.g., a cosine similarity score), theargminoperator should be replaced withargmaxto correctly identify the optimal compressed representationhat(σ).