首页|期刊导航|清华大学学报(自然科学版)|电力领域基于上下文知识提示的大语言模型视觉问答技术

电力领域基于上下文知识提示的大语言模型视觉问答技术OA

Visual question answering technology of large language models based on contextual knowledge prompt in the field of electric power

中文摘要英文摘要

将大语言模型(LLM)应用于基于知识的视觉问答巳取得了显著的成果.然而,特定领域尤其是电力行业由于模型缺乏输入语料等,传统方法在构建LLM知识提示时仍存在诸多不足,难以充分发挥LLM在垂直领域中的潜能.此外,现有工作多采用GPT-4等模型进行问答推理,成本高,耗时长.该文提出了电力领域基于上下文知识提示的LLM视觉问答技术.首先,采用基础视觉问答模型来生成上下文知识示例,并引入答案选择层以生成候选答案;然后,将上下文知识示例与候选答案融入提示词中,以激发LLM在电力视觉问答任务中的潜能;最后,通过设计的LLM上下文知识提示词来生成预测的答案.此外,该文选择开源且免费的LLaMA来替代GPT-4进行视觉问答任务,并且构建了一个小型数据集用于微调LLM.与已有一些先进方法相比,该方法在EVQA和A-OKVQA数据集上的准确率分别提升了8.8%和14.5%以上.

[Objective]Significant progress has been made in applying large language models(LLMs)to knowledge-based visual question answering(VQA),where systems jointly reason over visual content and external knowledge to produce accurate answers.However,existing approaches are limited in specialized vertical domains,particularly the power industry.A major challenge lies in framing effective prompts for LLMs.Given the scarcity of domain-specific textual corpora and the highly technical nature of power industry system operations,traditional prompt engineering methods often fail to provide sufficient contextual grounding.Consequently,even powerful general-purpose LLMs are unable to fully exploit their reasoning capabilities,resulting in suboptimal performance and limited practical utility.Moreover,most existing studies rely heavily on proprietary,closed-source models,such as GPT-4,for inference in VQA tasks.Despite these models' impressive zero-shot capabilities,their use incurs substantial computational costs,application programming interface latency,and a reliance on third-party services,hindering scalability,reproducibility,and real-world deployment,particularly in industrial settings that require data privacy,low-latency responses,and cost efficiency.These constraints underscore the need for an open,efficient,and domain-adapted alternative that can deliver high accuracy without sacrificing autonomy or affordability.[Methods]This paper proposes a novel large-scale model-based visual question-answering framework that is tailored to the power industry and centered on contextual knowledge prompting.This method leverages a foundational vision-language model that generates initial contextual knowledge examples from input image-question pairs.These examples encapsulate relevant visual semantics and preliminary reasoning traces.Subsequently,we introduce a lightweight answer selection layer that produces a set of plausible candidate answers from multimodal features.Crucially,the generated contextual knowledge examples and candidate answers are dynamically integrated into a structured prompt template,which is then fed to an LLM for final reasoning and answer refinement.This design effectively bridges the gap between generic visual understanding and domain-specific knowledge,enabling the LLM to"reason with context"rather than relying on its internal(and often incomplete)pre-trained knowledge.In alignment with our goals of accessibility and sustainability,we deliberately use LLaMA,an open-source,freely available LLM,as the backbone of our system,replacing expensive alternatives such as GPT-4.To further enhance domain adaptation,we curate a small but high-quality dataset comprising annotated image-question-answer triples from real-world power infrastructure scenarios(e.g.,substation equipment identification,fault diagnosis from thermal images,and safety compliance checks).This dataset is used for finetuning the LLaMA-based VQA pipeline using parameter-efficient techniques,such as low-rank adaptation,to achieve rapid adaptation with minimal computational overhead.[Results]We evaluate our proposed method on two established knowledge-intensive VQA benchmarks:EVQA and A-OKVQA.The experimental results demonstrate that our contextual knowledge-prompting strategy significantly outperforms state-of-the-art baselines,achieving absolute accuracy gains of 8.8%on EVQA and 14.5%on A-OKVQA,validating the efficacy of our prompt construction mechanism and the viability of open-source LLMs in specialized industrial applications.[Conclusions]This work advances the technical frontier of domain-specific VQA and provides a practical,cost-effective,and reproducible blueprint for deploying large-model intelligence in critical infrastructure sectors.

仇瑜;冯珺;郑哲慧;赵祎;宋昊旻;陈祖歌;王绍兰

智谱AI,北京 100084国网浙江省电力有限公司信息通信分公司,杭州 310020智谱AI,北京 100084||清华大学计算机科学与技术系,北京 100084清华大学计算机科学与技术系,北京 100084国网浙江省电力有限公司信息通信分公司,杭州 310020国网浙江省电力有限公司信息通信分公司,杭州 310020智谱AI,北京 100084||清华大学计算机科学与技术系,北京 100084

信息技术与安全科学

电力领域知识提示大语言模型视觉问答

power domainknowledge promptlarge language modelvisual question answering

《清华大学学报(自然科学版)》 2026 (5)

957-966,10

10.16511/j.cnki.qhdxxb.2026.21.002

评论