Interacting with humans through multi-turn conversations is a fundamental feature of large language models (LLMs). However, existing LLM serving engines executing multi-turn conversations are inefficient due to the need to repeatedly compute the key-value (KV) caches of historical tokens, incurring high serving costs. To address the problem, this paper proposes CachedAttention, a new attention mechanism that enables reuse of KV caches across multi-turn conversations, significantly reducing the repetitive computation overheads. CachedAttention maintains a hierarchical KV caching system that leverages cost-effective memory/storage mediums to save KV caches for all requests. To reduce KV cache access overheads from slow mediums, CachedAttention employs layer-wise pre-loading and asynchronous saving schemes to overlap the KV cache access with the GPU computation. To ensure that the KV caches to be accessed are placed in the fastest hierarchy, CachedAttention employs scheduler-aware fetching and eviction schemes to consciously place the KV caches in different layers based on the hints from the inference job scheduler. To avoid the invalidation of the saved KV caches incurred by context window overflow, CachedAttention enables the saved KV caches to remain valid via decoupling the positional encoding and effectively truncating the KV caches. Extensive experimental results demonstrate that CachedAttention significantly decreases the time to the first token (TTFT) by up to 87%, improves the prompt prefilling throughput by up to 7.8$\times$ for multi-turn conversations, and reduces the end-to-end inference cost by up to 70%.
Foundation Metrics for Evaluating Effectiveness of Healthcare Conversations Powered by Generative AI
University of California, Irvine(加州大学欧文分校);Stanford University(斯坦福大学);University of Pittsburgh(匹兹堡大学);University of Toronto(多伦多大学);HealthUnity;National Institute of Standards and Technology (NIST)(美国国家标准与技术研究院)
ConsistentChat: Building Skeleton-Guided Consistent Multi-Turn Dialogues for Large Language Models from Scratch
Chinese Information Processing Laboratory, Institute of Software, Chinese Academy of Sciences, Beijing, China(中国科学院软件研究所中文信息处理实验室);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学)
Avaya Conversational Intelligence: A Real-Time System for Spoken Language Understanding in Human-Human Call Center Conversations
Avaya(Avaya公司);Wrocław University of Science and Technology(弗罗茨瓦夫理工大学);Poznan University of Technology(波兹南理工大学);AGH University of Science and Technology(AGH科技大学)
UltraFeedback: Boosting Language Models with Scaled AI Feedback
Tsinghua University(清华大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);PingAn Technology(平安科技);Tencent(腾讯);Renmin University of China(中国人民大学);Jiangsu Collaborative Innovation Center for Language Ability(江苏省语言能力协同创新中心)
LPar -- A Distributed Multi Agent platform for building Polyglot, Omni Channel and Industrial grade Natural Language Interfaces
Cognizant Worldwide Limited(高知特全球有限公司)
以个性化和接近人性化的方式服务和取悦客户的目标在大多数企业的自动化议程上非常重要。在过去的几年里,自然语言处理领域取得了巨大的进步,这导致许多企业部署了会话代理。目前大多数工业部署倾向于使用Monolithic Single Agent设计,该设计对域的整个知识和技能进行建模。虽然这种方法是最快上市的方法之一,但单片设计使得它很难扩展到一个点之外。在单个解决方案中无缝地利用由自然语言处理和信息检索的子领域提供的许多工具也存在挑战。可用于提供相关信息的子字段包括问答系统、抽象摘要、语义搜索、知识图谱等。当前的部署也往往非常依赖于底层的对话AI平台(开源或商业),这是一个挑战,因为这是一个快速发展的领域,即使在3-4年的中期内,也没有一个平台可以被认为是面向未来的。最近,也有工作做,以建立多代理解决方案,往往利用主代理的概念。虽然这已经显示出前景,但这种方法仍然使主代理本身难以扩展。为了解决这些挑战,我们引入LPar,一个分布式多代理平台,用于大规模工业部署多语言,多样化和可互操作的代理。LPar的异步设计支持动态扩展域。我们还介绍了多种策略,在LPar系统中选择最合适的代理服务客户查询。