Steering Language Generation: Harnessing Contrastive Expert Guidance and Negative Prompting for Coherent and Diverse Synthetic Data Generation
Mathematical Sciences Institute, Australian National University(澳大利亚国立大学数学科学研究所);Research School of Astronomy & Astrophysics, Australian National University(澳大利亚国立大学天文与天体物理研究学院);School of Computing, Australian National University(澳大利亚国立大学计算学院);Department of Astronomy, The Ohio State University(俄亥俄州立大学天文学系)
Charles O'Neill, Yuan-Sen Ting, Ioana Ciuca, Jack Miller, Thang Bui
大型语言模型(LLM)在生成具有高质量和高效用的合成数据方面拥有巨大潜力,这类数据在从下游模型训练到实际数据利用的众多应用中都有用武之地。然而,尽管当代模型能力令人印象深刻,它们始终难以同时生成兼具连贯性与多样性的数据。为解决连贯性问题,我们提出对比专家指导,该方法强调经过微调的语言模型与基础语言模型在 logit 分布上的差异,以确保对领域的遵循。为确保多样性,我们利用现有的真实样本和合成样本作为模型的负向提示。我们将这种针对 logit 重塑的双管齐下方法称为 STEER:Semantic Text Enhancement via Embedding Repositioning(通过嵌入重定位进行语义文本增强)。STEER 在推理阶段运行,并系统性地引导 LLM 在遵循数据分布(确保语义保真度)与偏离先前合成示例或现有真实数据集(确保多样性和真实性)之间取得平衡。这种精细的平衡是通过在潜在空间中动态地靠近或远离选定表示来实现的。在三个不同任务上,STEER 相较以往的合成数据生成技术表现出更优性能,并在数据多样性与连贯性之间展现出更好的平衡,这三个任务分别是假设生成、有毒与无毒评论生成,以及常识推理任务生成。我们展示了 STEER 如何通过其超参数对多样性—连贯性权衡进行精细控制,凸显了其多功能性。
英文摘要:
Large Language Models (LLMs) hold immense potential to generate synthetic data of high quality and utility, which has numerous applications from downstream model training to practical data utilisation. However, contemporary models, despite their impressive capacities, consistently struggle to produce both coherent and diverse data. To address the coherency issue, we introduce contrastive expert guidance, where the difference between the logit distributions of fine-tuned and base language models is emphasised to ensure domain adherence. In order to ensure diversity, we utilise existing real and synthetic examples as negative prompts to the model. We deem this dual-pronged approach to logit reshaping as STEER: Semantic Text Enhancement via Embedding Repositioning. STEER operates at inference-time and systematically guides the LLMs to strike a balance between adherence to the data distribution (ensuring semantic fidelity) and deviation from prior synthetic examples or existing real datasets (ensuring diversity and authenticity). This delicate balancing act is achieved by dynamically moving towards or away from chosen representations in the latent space. STEER demonstrates improved performance over previous synthetic data generation techniques, exhibiting better balance between data diversity and coherency across three distinct tasks: hypothesis generation, toxic and non-toxic comment generation, and commonsense reasoning task generation. We demonstrate how STEER allows for fine-tuned control over the diversity-coherency trade-off via its hyperparameters, highlighting its versatility.
Does Steering Break Your Model? A Multi-Dimensional Evaluation Suite for LLM Steering Methods
State Key Laboratory of Multimedia Information Processing, Peking University(北京大学多媒体信息处理国家重点实验室);School of Computer Science, Peking University(北京大学计算机学院);Columbia University(哥伦比亚大学);YiXin-AILab, YIXIN(壹芯人工智能实验室,壹芯);Southern University of Science and Technology(南方科技大学)
Enhancing Cross-task Transfer of Large Language Models via Activation Steering
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学耿丽人工智能学院);Department of Computer Science, National University of Singapore(新加坡国立大学计算机科学系);Ant Group(蚂蚁集团)
LLMs Silently Correct African American English: Auditing and Mitigating Dialect Bias via Activation Steering
York University(约克大学);Vector Institute(向量研究所);Connected Minds(连接思维公司);Emory University(埃默里大学);Wilfrid Laurier University(威尔弗里德·劳里埃大学);University of Toronto(多伦多大学);University of Guelph(圭尔夫大学);Monark Health(莫纳克健康公司);CIFAR Solution Network(加拿大高级研究院解决方案网络)
Self-Prompting Large Language Models for Zero-Shot Open-Domain QA
Shanghai Jiao Tong University(上海交通大学);SJTU-Paris Elite Institute of Technology, Shanghai Jiao Tong University(上海交通大学巴黎卓越工程师学院);School of Electronic Information and Electrical Engineering, Shanghai Jiao Tong University(上海交通大学电子信息与电气工程学院)
DR.GAP: Mitigating Bias in Large Language Models using Gender-Aware Prompting with Decoupled Reasoning
School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院);School of Computer and Cyber Sciences, Augusta University(奥古斯塔大学计算机与网络科学学院)
Explaining Intrinsic Moral Self-Correction with Mechanistic Interpretability
Graduate Institute of Communication Engineering, National Taiwan University, Taipei, Taiwan(通讯工程研究院,国立台湾大学);MediaTek Research, Taipei, Taiwan(联发科研究,台北,台湾);Department of Electrical Engineering, National Taiwan University, Taipei, Taiwan(电气工程系,国立台湾大学);Department of Electrical Engineering, National Tsing Hua University, Hsinchu, Taiwan(电气工程系,国立清华大学);AI Research Center (AINTU), National Taiwan University, Taipei, Taiwan(人工智能研究中心(AINTU),国立台湾大学)
BILLY: Steering Large Language Models via Merging Persona Vectors for Creative Generation
Department of Electrical Engineering, National Taiwan University(国立台湾大学电子工程系);Department of Computer Science & Information Engineering, National Taiwan University(国立台湾大学计算机科学与信息工程系);Graduate Institute of Communication Engineering, National Taiwan University(国立台湾大学通信工程研究所);CSAIL, Massachusetts Institute of Technology(麻省理工学院计算机科学与人工智能实验室)