arXiv:2503.16094cs.CL2025-03被引 3

用软提示微调让大模型理解文化差异,无需标注数据

Cultural Alignment in Large Language Models Using Soft Prompt Tuning

  • 用软提示微调+差分进化优化,不更新模型参数
  • 在多个地区提升模型对文化维度的识别准确率
  • 适合研究跨文化差异或想低成本适配模型的开发者

大型语言模型(LLM)对齐传统依赖有监督微调或基于强化学习的方法,需标注或偏好数据并更新模型权重。然而,在跨文化研究中,问卷调查得出的因子分析结果不具备可微性,使上述方法难以应用。为此,我们提出一种参数高效策略:结合软提示微调(冻结模型参数,仅调整输入提示嵌入)与差分进化(DE),一种适用于不可微目标的黑箱优化方法。该策略无需偏好数据或模型权重更新,保障对齐一致性,显著提升效率并缓解过拟合。实验表明,该方法在多个地区的LLama-3-8B-Instruct上显著优于基线模型(包括直接提示和上下文学习),有效弥合了计算模型与人类文化细微差异之间的鸿沟。

原文摘要 · Abstract (English)

Large Language Model (LLM) alignment conventionally relies on supervised fine-tuning or reinforcement learning based alignment frameworks. These methods typically require labeled or preference datasets and involve updating model weights to align the LLM with the training objective or reward model. Meanwhile, in social sciences such as cross-cultural studies, factor analysis is widely used to uncover underlying dimensions or latent variables that explain observed patterns in survey data. The non-differentiable nature of these measurements deriving from survey data renders the former alignment methods infeasible for alignment with cultural dimensions. To overcome this, we propose a parameter efficient strategy that combines soft prompt tuning, which freezes the model parameters while modifying the input prompt embeddings, with Differential Evolution (DE), a black-box optimization method for cases where a differentiable objective is unattainable. This strategy ensures alignment consistency without the need for preference data or model parameter updates, significantly enhancing efficiency and mitigating overfitting. Our method demonstrates significant improvements in LLama-3-8B-Instruct's cultural dimensions across multiple regions, outperforming both the Naive LLM and the In-context Learning (ICL) baseline, and effectively bridges computational models with human cultural nuances.

大模型对齐文化建模软提示差分进化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。