arXiv:2510.18477cs.AIcs.CR2025-10中稿 · the 16th IEEE Inte…被引 1

让大模型用自然语言做跨数据源隐私分析,首次实现安全与便捷统一

LAFA: Agentic LLM-Driven Federated Analytics over Decentralized Data Sources

  • 分层多智能体架构将自然语言转为可执行的联邦分析流程
  • 实验显示成功率更高,资源消耗减少显著,冗余操作被有效消除
  • 适合关注隐私保护与低门槛数据分析的研究者和开发者

大型语言模型(LLMs)在自动化数据分析任务中展现出巨大潜力,能理解自然语言查询并生成多步骤执行计划。然而,现有基于LLM代理的分析框架依赖集中式数据访问,缺乏隐私保护。相比之下,联邦分析(FA)可在分布式数据源间实现隐私保护计算,但不支持自然语言输入,且需结构化机器可读查询。本文提出LAFA,首个将LLM代理驱动的数据分析与联邦分析相结合的系统。LAFA采用分层多智能体架构,接收自然语言查询并转化为优化的可执行FA工作流。粗粒度规划器将复杂查询分解为子查询,细粒度规划器利用先验结构知识将每个子查询映射为联邦分析操作的有向无环图(DAG)。为提升执行效率,优化代理重写并合并多个DAG,消除冗余操作,最小化计算与通信开销。实验表明,LAFA持续优于基线提示策略,在执行计划成功率和资源密集型FA操作数量上均有显著提升。该工作为支持自然语言输入的隐私保护联邦分析建立了实用基础。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have shown great promise in automating data analytics tasks by interpreting natural language queries and generating multi-operation execution plans. However, existing LLM-agent-based analytics frameworks operate under the assumption of centralized data access, offering little to no privacy protection. In contrast, federated analytics (FA) enables privacy-preserving computation across distributed data sources, but lacks support for natural language input and requires structured, machine-readable queries. In this work, we present LAFA, the first system that integrates LLM-agent-based data analytics with FA. LAFA introduces a hierarchical multi-agent architecture that accepts natural language queries and transforms them into optimized, executable FA workflows. A coarse-grained planner first decomposes complex queries into sub-queries, while a fine-grained planner maps each subquery into a Directed Acyclic Graph of FA operations using prior structural knowledge. To improve execution efficiency, an optimizer agent rewrites and merges multiple DAGs, eliminating redundant operations and minimizing computational and communicational overhead. Our experiments demonstrate that LAFA consistently outperforms baseline prompting strategies by achieving higher execution plan success rates and reducing resource-intensive FA operations by a substantial margin. This work establishes a practical foundation for privacy-preserving, LLM-driven analytics that supports natural language input in the FA setting.

联邦学习大模型隐私分析自然语言

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