LLM as HPC Expert: Extending RAG Architecture for HPC Data
Yusuke Miyashita, Patrick Kin Man Tung, Johan Barthélemy
TL;DR
The paper tackles the accessibility and safety challenges of using large language models in HPC environments by introducing HyCE, a Hypothetical Command Embeddings extension to Retrieval-Augmented Generation that ingests cluster documentation and real-time command outputs. It presents an automated evaluation framework where the LLM generates synthetic HPC data and serves as a judge to assess RAG performance with HPC-specific metrics, while addressing data privacy and command execution security. Empirical results show HyCE improves context relevance and user-specific accuracy, and the approach remains compatible with other RAG enhancements, offering a scalable path for deploying LLMs as HPC experts. The work also emphasizes secure deployment practices and open-sourcing the extended RAG tooling to facilitate adoption across HPC sites.
Abstract
High-Performance Computing (HPC) is crucial for performing advanced computational tasks, yet their complexity often challenges users, particularly those unfamiliar with HPC-specific commands and workflows. This paper introduces Hypothetical Command Embeddings (HyCE), a novel method that extends Retrieval-Augmented Generation (RAG) by integrating real-time, user-specific HPC data, enhancing accessibility to these systems. HyCE enriches large language models (LLM) with real-time, user-specific HPC information, addressing the limitations of fine-tuned models on such data. We evaluate HyCE using an automated RAG evaluation framework, where the LLM itself creates synthetic questions from the HPC data and serves as a judge, assessing the efficacy of the extended RAG with the evaluation metrics relevant for HPC tasks. Additionally, we tackle essential security concerns, including data privacy and command execution risks, associated with deploying LLMs in HPC environments. This solution provides a scalable and adaptable approach for HPC clusters to leverage LLMs as HPC expert, bridging the gap between users and the complex systems of HPC.
