打造自适应AI运维智慧体:大语言模型在软件日志运维的实践_第1页
打造自适应AI运维智慧体:大语言模型在软件日志运维的实践_第2页
打造自适应AI运维智慧体:大语言模型在软件日志运维的实践_第3页
打造自适应AI运维智慧体:大语言模型在软件日志运维的实践_第4页
打造自适应AI运维智慧体:大语言模型在软件日志运维的实践_第5页
已阅读5页,还剩46页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

大语言模型在软件日志运维的实践刘逸伦华为2012实验室演讲嘉宾刘逸伦华为2012文本机器翻译实验室工程师通讯作者身份在ICDE、ICSE、IWQoS等顶级国际会议/期刊发表10余篇CONTENTSCONTENTS2.自适应智慧体在运维领域面临的Gap3.大模型Prompt引擎助力自适应运维智慧体4.大模型知识迁移打造运维专精模型智能运维演进趋势是从任务数据驱动到自适应运维智慧体观点1:软件日志运维是从机器语言向自然语言的转化运维对象系统事件运维对象系统事件机器语言荨《异常告警ActionAction类自然语言半结构ActionActionActionAction从任务数据驱动到自适应运维智慧体代际输入方法研究成果类别第一代离散特征和KPI特征识别及统计算法拟合异常结果LogParse任务数据驱动第二代日志文本生成token深度学习拟合异常结果LogAnomalyLogStamp第三代段落日志和跨域日志预训练语言模型日志语言理解Da-Parser第四代原始日志和自然语言文本大语言模型可解释性运维LogPrompt指令驱动第五代自适应运维智慧体:目标自适应、领域自适应、强交互性、可执行性。表:LogAIBox研究项目代际演进思路传统自动运维模型既没法“自适应”,也仅是有限“智慧”Gap1:传统智能运维算法依赖于任务标注数据,仅仅是拟合数据,对于新领域无法自适应NewfeaturesGap2:传统运维系统可解释性差、可交互性弱,智慧有限LogPrompt:利用Prompt工程激发大模型运维潜能,零样本推断+可解释性LogPrompt解决传统日志分析两大Gap智慧有限,可解释性差,直接输出告警结论,无法实现告警事件分析无需训练资源,可灵活迁移至不同设备应用增强分析结果的可解释性、可交互性LLM作为运维智慧体的潜力与挑战:大模型有强语言泛化与解释能力,但是对Prompt敏感achievedanF1-scoreofonly0.1achievedanF1-scoreofonly0.1anomalydetection.HoweverpromptstrategyoutpeLargelanguagemodels(LLMs)habletohandleunseenlogsintheonlinesitapplyingasimpleprompttoLLM?TheprimaryobjectiveofLogPromptinterpretabilityofloganalysisintheproperstrategyofpromptingLLMs.引入chain-of-thought(CoT)prompt策略可以激发LLM解决日志分析挑战的能力Theconceptofchainofthought(CoT),aseriesofintermediatereasoningsteps,isintroducedbyWeietal.[1].TheCoTpromptemulatesthehumanthoughtprocessbyrequiringthemodeltoincludethinkingstepswhenaddressingcomplexproblemsandcanenhancetheperformanceofLLMsinchallengingtasks,suchassolvingmathematicalproblems.modelisencouragedtofollow•Enhanceinterpretabilityandtran•UnleashthelearnedabilitiesintheLogPrompt探索:将CoTprompt的思想引入日志分析任务•ImplicitCoT:Humanmostlyhasreasonsbefo•ExplicitCoT:WefurtherPerforminganalysisbasedonTaskdescriptionandInputlogsStandardPromptStandardPromptImplicitconciselyexplainyourreasonforeachlog.十十Prompt策略Prompt策略TheLLMthenpredictsonandfZ([Z],toestablishtheconvaluerange,like“abinarycabnormalandnormalLLMtogenerateprom实验设置•TheeffectivenessofLogPromptisevaluatedmainlyusingthelogHubincludingsupercomputers,distributedsysteidentifyanomalouseventsforthepurposeofanomalydetection.•Toevaluatethelogpatemplatesmanuallyextractedfromasubs•Inourprimaryexperiments,theunderlyingLLMisaccessedviaAPIsprovidedbyexternalservices.•Theinitialtemperaturecoefficientissetto0.5,maintainingabalancebyincreasingthemodel'sreasoningcapabilitiesthroughdiversetokenexplorationwhilelimitingdetrimentalrandomness.•Iftheresponseformatisinvalid,thequeryisresubmittedwithanincreasedtemperaturecoefficientof0.4untiltheresponseformatiscorrect.Theformatfailurerateislessthan1%,whichisconsistentwithexistingliterature.•Thetrain/testdatasetsaresplitchronologicallytosimulateonlinescenarios.实验:LogPrompt在零样本日志分析场景取得了较好效果,因而可以减轻算法的数据依赖•TaskofLogParsing•TaskofAnomalyDetectionoutperformedexistingmethodswhichrequireresourcesforin-domainof55.9%intermsof TheadvantageofLogPromptmakesitasuitablechoiceforloganalysisinonlinescenarios实验:LogPrompt生成了可信、详细、相关的分析过程,可以增强日志分析的解释性•ANovelEvaluatingTaskofLogInterpretation•Atotalof200logswererandomlysampledfanomaly(evenlydistributedacrossdomains).numberofnormalandabnormalsselectedlogforlogparsingwasrequiredtocontainatleastthecriteria,independenttasksintermsofusefuconsideredbyexperiencedloganalysts.实验:LogPrompt生成了可信、详细、相关的分析过程,可以增强日志分析的解释性•FeedbacksfromPractitioners•BadCaseAnalysis•“IappreciatetheabilityofLogPromptinsupportingtheinterpprovideaswiftgraspofthelogsbeforeIfoundtheofficialdefinitions.”tonon-technicalcolleaguesinmeetings.”subsequentactions.”•AmajorfactorofbadcasesistheLLM’slackofdomainknowledge,whichleadstooverlygeneralinterpretationsoflogs,whichcanbeattributedtotheirbrevityorrichnessofnon-NLPpatterns(i.e.,digits,codesandaddresses).三种Prompt策略的消融分析convertingtoatemplate).stillimprovethemodelperformance,likelyduetothereasonthatwithmoreNLPthepre-trainingphasesofmodels.Anoverlylongcontextprefixedtothepromptmaycausethenewinputlogs,therebydeterioratingthetaskperformance,whichiswhythepeakis实践案例-算法实践:xx云基于大模型Prompt引擎实现本地API联通的定制化告警分析设备现网设备日志现网数据库离线知识库现网设备日志现网数据库离线知识库实践案例-服务实践:Prompt引擎服务设计架构前端对话上下文对话效果渲染动态控件联动对话上下文对话效果渲染外部模块知识引擎输入校验知识向量输出校验知识引擎输入校验知识向量输出校验中央控制器提示词生成模块内部其他模块底座模型多轮对话控制Self-多轮对话控制场景识别私有数据支撑实时数据库CoT场景识别私有数据支撑实时数据库API判断选择提示词组装API判断选择提示词组装本地知识库题接题接系统API预训练接DPO指令预训练接大模型知识迁移打造运维专精模型:工业场景需要增强可离线部署的小型LLM的日志分析能力,以更好地理解PromptBeyondLogPrompt:应用Promptapplication策略到可部署的小型LLM存在领域知识Gap•ApplyingLogPrompttoasmaller-scaledLLM:Vicuna13B•Thedeploymentoflarge,proprietary,an•ThereliabilityofservicesmaybecompromisediftheAPIservicesofLLMscompatibilitywithalternativeopeOnlineLogParsingwthe175BGPTmodelinthedtoLogPrompt,Vicunaexhibitssignificaperformance,withanaverageincreaseof380.7%

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论