Fints:基于细粒度实例定制引导的大语言模型高效推理时个性化
Fints: Efficient Inference-Time Personalization for LLMs with Fine-Grained Instance-Tailored Steering
AI总结:
针对LLM个性化在动态用户模式和高数据稀疏场景下的局限,提出细粒度实例定制引导框架Fints,通过动态生成样本级干扰向量注入前向传播,实现高效、即插即用的推理时个性化。
摘要:
大语言模型(LLMs)的快速发展加剧了对有效个性化技术的需求,这些技术旨在使模型行为适应个体用户偏好。尽管存在利用LLMs上下文学习能力的非参数方法,但近期的参数化适应方法,包括个性化参数高效微调(parameter-efficient fine-tuning)和奖励建模(reward modeling)也开始涌现。然而,由于适应性和数据效率低下,这些方法在处理动态用户模式和高数据稀疏性场景时面临局限性。为了应对这些挑战,我们提出了一个细粒度且实例定制的引导框架,该框架从用户数据中动态生成样本级别的干扰向量,并将其注入模型的forward pass(前向传播)以实现个性化适应。我们的方法引入了两项关键技术创新:一个细粒度引导组件,通过钩取注意力层和MLP层的激活来捕获细微信号;以及一个输入感知聚合模块,将这些信号合成为与上下文相关的增强。该方法展现出高度的灵活性和数据效率,在快速变化的分布和高数据稀疏性场景中表现优异。此外,所提方法与现有方法正交,并作为一个即插即用组件运行,兼容不同的个性化技术。在包括短到长文本生成和Web函数调用在内的多种场景下进行的广泛实验,验证了我们方法的有效性和兼容性。结果表明,我们的方法在快速变化的环境中显著增强了个性化性能,同时在不同的交互模式和上下文长度上保持稳健性。实现代码可在 https://github.com/KounianhuaDu/Fints 获取。
英文摘要:
The rapid evolution of large language models (LLMs) has intensified the demand for effective personalization techniques that can adapt model behavior to individual user preferences. Despite the non-parametric methods utilizing the in-context learning ability of LLMs, recent parametric adaptation methods, including personalized parameter-efficient fine-tuning and reward modeling emerge. However, these methods face limitations in handling dynamic user patterns and high data sparsity scenarios, due to low adaptability and data efficiency. To address these challenges, we propose a fine-grained and instance-tailored steering framework that dynamically generates sample-level interference vectors from user data and injects them into the model's forward pass for personalized adaptation. Our approach introduces two key technical innovations: a fine-grained steering component that captures nuanced signals by hooking activations from attention and MLP layers, and an input-aware aggregation module that synthesizes these signals into contextually relevant enhancements. The method demonstrates high flexibility and data efficiency, excelling in fast-changing distribution and high data sparsity scenarios. In addition, the proposed method is orthogonal to existing methods and operates as a plug-in component compatible with different personalization techniques. Extensive experiments across diverse scenarios--including short-to-long text generation, and web function calling--validate the effectiveness and compatibility of our approach. Results show that our method significantly enhances personalization performance in fast-shifting environments while maintaining robustness across varying interaction modes and context lengths. Implementation is available at https://github.com/KounianhuaDu/Fints.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。