arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.17439cs.SEcs.AIcs.DCcs.OS
收藏

大语言模型作为逼真的微服务追踪生成器

Large Language Models as Realistic Microservice Trace Generators

University of Texas at Austin(德克萨斯大学奥斯汀分校);University of California, Berkeley(加州大学伯克利分校)

Donghyun Kim, Sriram Ravula, Taemin Ha, Alexandros G. Dimakis, Daehyeok Kim, Aditya Akella

AI总结:

本文提出TraceLLM,通过递归生成和指令微调训练大语言模型生成逼真的微服务调用图,在准确性和有效性上优于现有方法,并能用于下游追踪任务。

摘要:

工作负载追踪对于理解复杂计算机系统的行为以及管理处理和内存资源至关重要。由于真实世界的追踪难以获取,合成追踪生成是一种有前景的替代方案。本文提出了一种首创性的方法,该方法依赖于训练一个大语言模型(LLM)来生成合成工作负载追踪,具体为微服务调用图。为了捕捉此类追踪中复杂且任意的层次结构以及隐式约束,我们提出训练LLM以递归方式进行生成,从而使调用图生成成为一系列更易于管理的步骤。为了进一步强化对追踪的学习约束并生成不常见的情况,我们应用了额外的指令微调步骤,以使我们的模型与期望的追踪特征对齐。通过这种方法,我们训练了TraceLLM,一个用于微服务追踪生成的LLM,并证明它在不同条件下能产生多样化、逼真的追踪,在准确性和有效性方面均优于现有方法。合成生成的追踪可以有效替代真实数据,以优化重要的微服务管理任务。此外,TraceLLM还能适应下游的追踪相关任务,例如预测关键追踪特征和填补缺失数据。

英文摘要:

Workload traces are essential to understand complex computer systems' behavior and manage processing and memory resources. Since real-world traces are hard to obtain, synthetic trace generation is a promising alternative. This paper proposes a first-of-a-kind approach that relies on training a large language model (LLM) to generate synthetic workload traces, specifically microservice call graphs. To capture complex and arbitrary hierarchical structures and implicit constraints in such traces, we propose to train LLMs to generate recursively, making call graph generation a sequence of more manageable steps. To further enforce learning constraints on the traces and generate uncommon situations, we apply additional instruction tuning steps to align our model with the desired trace features. With this method, we train TraceLLM, an LLM for microservice trace generation, and demonstrate that it produces diverse, realistic traces under varied conditions, outperforming existing approaches in both accuracy and validity. The synthetically generated traces can effectively replace real data to optimize important microservice management tasks. Additionally, TraceLLM adapts to downstream trace-related tasks, such as predicting key trace features and infilling missing data.

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

↑