| 第30行: |
第30行: |
| | | | |
| | == 术语与符号 == | | == 术语与符号 == |
| − | * <math>p_+, p_-</math>:引导[[提示词]]对(steering prompt pair)。<math>p_+</math> 表示“具有目标属性”的[[提示词]],<math>p_-</math> 表示“对照/相反/缺失该属性”的[[提示词]]。[^https://arxiv.org/pdf/2308.10248v4] | + | * <math>p_+, p_-</math>:引导[[提示词]]对(steering prompt pair)。<math>p_+</math> 表示“具有目标属性”的[[提示词]],<math>p_-</math> 表示“对照/相反/缺失该属性”的[[提示词]]。 |
| − | * <math>p^*</math>:用户[[提示词]](user prompt)。[^https://arxiv.org/pdf/2308.10248v4] | + | * <math>p^*</math>:用户[[提示词]](user prompt)。 |
| − | * <math>l</math>:注入层(target layer),即[[干预]]发生的层。[^https://arxiv.org/pdf/2308.10248v4] | + | * <math>l</math>:注入层(target layer),即[[干预]]发生的层。 |
| − | * <math>c</math>:注入系数(injection coefficient),控制引导[[向量]]强度。[^https://arxiv.org/pdf/2308.10248v4] | + | * <math>c</math>:注入系数(injection coefficient),控制引导[[向量]]强度。 |
| − | * <math>a</math>:[[序列对齐]]位置(sequence alignment position),用于对齐引导[[向量]]与用户[[提示词]]在[[序列]]维度上的加法位置。[^https://arxiv.org/pdf/2308.10248v4] | + | * <math>a</math>:[[序列对齐]]位置(sequence alignment position),用于对齐引导[[向量]]与用户[[提示词]]在[[序列]]维度上的加法位置。 |
| − | * <math>M</math>:预训练[[语言模型]](pretrained language model)。[^https://arxiv.org/pdf/2308.10248v4] | + | * <math>M</math>:预训练[[语言模型]](pretrained language model)。 |
| − | * <math>\mathbf{h}^l(\cdot)</math>:输入在层 <math>l</math> 处读取到的激活表示(论文语境中对应残差流/中间激活位置)。[^https://arxiv.org/pdf/2308.10248v4] | + | * <math>\mathbf{h}^l(\cdot)</math>:输入在层 <math>l</math> 处读取到的激活表示(论文语境中对应残差流/中间激活位置)。 |
| | | | |
| | == 核心算法 == | | == 核心算法 == |