Learn Before
Example

Visual Representation of a Hard-Soft Prompt Hybrid

A hybrid prompt structure can be visualized as a concatenated sequence of embeddings fed into a large language model. This sequence is composed of three main parts: a "Soft Prompt" section with a series of learnable vectors (p0,p1,,pnp_0, p_1, \dots, p_n); a "Hard Prompt" section with embeddings (q0,q1,,qmq_0, q_1, \dots, q_{m'}) derived from discrete, human-readable tokens (c0,c1,,cmc_0, c_1, \dots, c_{m'}); and the "User Input and Response" section, which consists of embeddings (e0,e1,,eme_0, e_1, \dots, e_m) from the actual input tokens (z0,z1,,zmz_0, z_1, \dots, z_m).

Image 0

0

1

Updated 2026-06-28

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences