arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.00053cs.AIcs.LG
收藏

可扩展且安全的医疗AI推理:在Kubernetes上的FastAPI和Triton推理服务器比较基准测试

Scalable and Secure AI Inference in Healthcare: A Comparative Benchmarking of FastAPI and Triton Inference Server on Kubernetes

Institute of Information Technology (IIT)(信息科技研究所);Jahangirnagar University (JU)(贾汗吉尔纳加尔大学)

Ratul Ali

AI总结:

本文比较了FastAPI和Triton推理服务器在Kubernetes上的性能,发现Triton在可扩展性和吞吐量上优于FastAPI,提出混合架构用于医疗AI的安全部署。

摘要:

高效的、可扩展的机器学习(ML)模型部署是现代生产环境的前提,尤其是在受监管领域如医疗和制药行业。在这些领域中,系统必须平衡相互竞争的需求,包括为实时临床决策支持最小化推理延迟,为医疗记录的批量处理最大化吞吐量,并确保严格遵守数据隐私标准,如HIPAA。本文提出了一种严格的基准分析,比较两种主要的部署范式:一个轻量级的基于Python的REST服务使用FastAPI,以及一个专门设计的高性能服务引擎,NVIDIA Triton推理服务器。利用一个医疗AI的参考架构,我们部署了一个DistilBERT情感分析模型到Kubernetes上,以测量中位数(p50)和尾部(p95)延迟,以及吞吐量,在受控的实验条件下。我们的结果表明存在明显的权衡。虽然FastAPI在单请求工作负载中提供较低的开销,p50延迟为22毫秒,但Triton通过动态分组实现更高的可扩展性,在单个NVIDIA T4 GPU上达到每秒780个请求的吞吐量,几乎是基线的两倍。此外,我们评估了一种混合架构方法,该方法利用FastAPI作为受保护健康信息去标识的安全网关,并利用Triton进行后端推理。本研究验证了混合模型作为企业临床AI的最佳实践,并提供了一个安全、高可用性部署的蓝图。

英文摘要:

Efficient and scalable deployment of machine learning (ML) models is a prerequisite for modern production environments, particularly within regulated domains such as healthcare and pharmaceuticals. In these settings, systems must balance competing requirements, including minimizing inference latency for real-time clinical decision support, maximizing throughput for batch processing of medical records, and ensuring strict adherence to data privacy standards such as HIPAA. This paper presents a rigorous benchmarking analysis comparing two prominent deployment paradigms: a lightweight, Python-based REST service using FastAPI, and a specialized, high-performance serving engine, NVIDIA Triton Inference Server. Leveraging a reference architecture for healthcare AI, we deployed a DistilBERT sentiment analysis model on Kubernetes to measure median (p50) and tail (p95) latency, as well as throughput, under controlled experimental conditions. Our results indicate a distinct trade-off. While FastAPI provides lower overhead for single-request workloads with a p50 latency of 22 ms, Triton achieves superior scalability through dynamic batching, delivering a throughput of 780 requests per second on a single NVIDIA T4 GPU, nearly double that of the baseline. Furthermore, we evaluate a hybrid architectural approach that utilizes FastAPI as a secure gateway for protected health information de-identification and Triton for backend inference. This study validates the hybrid model as a best practice for enterprise clinical AI and offers a blueprint for secure, high-availability deployments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑