面向支持RAG的可穿戴医疗LLM智能体的内存高效检索架构
A Memory-Efficient Retrieval Architecture for RAG-Enabled Wearable Medical LLMs-Agents
AI总结:
本文提出一种用于边缘RAG的分层检索架构,通过两阶段检索方案结合近似检索与高精度检索,在保持检索准确率的同时显著降低内存访问与能耗。
摘要:
借助强大且具备整合能力的大型语言模型(LLMs),医疗AI智能体在提供个性化医疗咨询、持续健康监测和精准治疗方案方面展现出独特优势。检索增强生成(RAG)通过外部可检索数据库将个人医疗文档整合到LLMs中,以解决部署定制化智能体时昂贵的重新训练或微调问题。尽管在边缘设备上部署医疗智能体可确保隐私保护,但RAG在检索阶段会带来大量的内存访问和能耗。本文提出了一种用于边缘RAG的分层检索架构,采用两阶段检索方案:先通过近似检索生成候选集,再对预选的文档嵌入进行高精度检索。该架构在保持检索准确率的同时,显著降低了能耗和外部内存访问。仿真结果表明,在TSMC 28nm工艺下,与纯INT8检索相比,该分层检索架构将总内存访问量减少了近50%,计算量减少了75%,1 MB数据检索的总能耗为177.76 μJ/query。
英文摘要:
With powerful and integrative large language models (LLMs), medical AI agents have demonstrated unique advantages in providing personalized medical consultations, continuous health monitoring, and precise treatment plans. Retrieval-Augmented Generation (RAG) integrates personal medical documents into LLMs by an external retrievable database to address the costly retraining or fine-tuning issues in deploying customized agents. While deploying medical agents in edge devices ensures privacy protection, RAG implementations impose substantial memory access and energy consumption during the retrieval stage. This paper presents a hierarchical retrieval architecture for edge RAG, leveraging a two-stage retrieval scheme that combines approximate retrieval for candidate set generation, followed by high-precision retrieval on pre-selected document embeddings. The proposed architecture significantly reduces energy consumption and external memory access while maintaining retrieval accuracy. Simulation results show that, under TSMC 28nm technology, the proposed hierarchical retrieval architecture has reduced the overall memory access by nearly 50% and the computation by 75% compared to pure INT8 retrieval, and the total energy consumption for 1 MB data retrieval is 177.76 μJ/query.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。