ProToken: 联邦大语言模型中的令牌级归因
ProToken: Token-Level Attribution for Federated Large Language Models
AI总结:
ProToken通过令牌级归因方法,解决联邦大语言模型中客户端贡献识别问题,提升隐私保护下的模型调试与信任验证能力。
摘要:
联邦学习(FL)使能够在分布式数据源上协同训练大语言模型(LLMs),同时保护隐私。然而,当联邦LLMs应用于关键应用时,仍然不清楚哪些客户端对特定生成响应做出了贡献,这阻碍了调试、恶意客户端识别、公平奖励分配和信任验证。我们提出了ProToken,一种新的用于联邦LLMs中令牌级归因的溯源方法,该方法在自主递归文本生成过程中解决客户端归因问题,同时保持FL的隐私约束。ProToken利用两个关键洞察来实现每个令牌的溯源:(1)transformer架构将任务特定的信号集中在后期块中,这使得可以进行战略性层选择以实现计算可行性;(2)基于梯度的相关性加权过滤掉无关的神经激活,将归因集中在直接影响令牌生成的神经元上。我们评估了ProToken在16种配置上,覆盖四种LLM架构(Gemma、Llama、Qwen、SmolLM)和四种领域(医疗、金融、数学、编码)。ProToken在正确定位负责客户端方面实现了98%的平均归因准确率,并且在客户端数量扩大时保持高准确率,验证了其在现实世界部署环境中的实用性。
英文摘要:
Federated Learning (FL) enables collaborative training of Large Language Models (LLMs) across distributed data sources while preserving privacy. However, when federated LLMs are deployed in critical applications, it remains unclear which client(s) contributed to specific generated responses, hindering debugging, malicious client identification, fair reward allocation, and trust verification. We present ProToken, a novel Provenance methodology for Token-level attribution in federated LLMs that addresses client attribution during autoregressive text generation while maintaining FL privacy constraints. ProToken leverages two key insights to enable provenance at each token: (1) transformer architectures concentrate task-specific signals in later blocks, enabling strategic layer selection for computational tractability, and (2) gradient-based relevance weighting filters out irrelevant neural activations, focusing attribution on neurons that directly influence token generation. We evaluate ProToken across 16 configurations spanning four LLM architectures (Gemma, Llama, Qwen, SmolLM) and four domains (medical, financial, mathematical, coding). ProToken achieves 98% average attribution accuracy in correctly localizing responsible client(s), and maintains high accuracy when the number of clients are scaled, validating its practical viability for real-world deployment settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。