Background: Quantum computing is a rapidly growing new programming paradigm that brings significant changes to the design and implementation of algorithms. Understanding quantum algorithms requires knowledge of physics and mathematics, which can be challenging for software developers.
Aims: In this work, we provide a first analysis of how LLMs can support developers' understanding of quantum code. Method: We empirically analyse and compare the quality of explanations provided by three widely adopted LLMs (Gpt3.5, Llama2, and Tinyllama) using two different human-written prompt styles for seven state-of-the-art quantum algorithms. We also analyse how consistent LLM explanations are over multiple rounds and how LLMs can improve existing descriptions of quantum algorithms.
Results: Llama2 provides the highest quality explanations from scratch, while Gpt3.5 emerged as the LLM best suited to improve existing explanations. In addition, we show that adding a small amount of context to the prompt significantly improves the quality of explanations. Finally, we observe how explanations are qualitatively and syntactically consistent over multiple rounds.
Conclusions: This work highlights promising results, and opens challenges for future research in the field of LLMs for quantum code explanation. Future work includes refining the methods through prompt optimisation and parsing of quantum code explanations, as well as carrying out a systematic assessment of the quality of explanations.
A Rose by Any Other Name: LLM-Generated Explanations Are Good Proxies for Human Explanations to Collect Label Distributions on NLI
MaiNLP, Center for Information and Language Processing, LMU Munich, Germany(MaiNLP,信息与语言处理中心,慕尼黑大学,德国);Munich Center for Machine Learning (MCML), Munich, Germany(慕尼黑机器学习中心(MCML),慕尼黑,德国);Language Technology Lab, University of Cambridge, United Kingdom(语言技术实验室,剑桥大学,英国)
Exploring Iterative Enhancement for Improving Learnersourced Multiple-Choice Question Explanations with Large Language Models
Xtracta(埃克斯特拉克塔公司);School of Computer Science, University of Auckland(奥克兰大学计算机科学学院);School of Computer Science and Engineering, Sun Yat-Sen University(中山大学计算机科学与工程学院);School of Life and Environmental Sciences, University of Sydney(悉尼大学生命与环境科学学院)
Verification and Refinement of Natural Language Explanations through LLM-Symbolic Theorem Proving
University of Manchester(曼彻斯特大学);Idiap Research Institute(Idiap研究所);National Biomarker Centre, CRUK-MI, University of Manchester(英国曼彻斯特大学英国癌症研究中心曼彻斯特研究所国家生物标志物中心)
Do LLM Self-Explanations Help Users Predict Model Behavior? Evaluating Counterfactual Simulatability with Pragmatic Perturbations
Faculty of Computer Science, University of Vienna(计算机科学系,维也纳大学);UniVie Doctoral School Computer Science, University of Vienna(UniVie 计算机科学博士学院,维也纳大学);Faculty of Philological and Cultural Studies, University of Vienna(文学与文化研究系,维也纳大学)
LLM-Generated Black-box Explanations Can Be Adversarially Helpful
University of Toronto(多伦多大学);Vector Institute(矢量研究所);UMass Amherst(马萨诸塞大学阿默斯特分校);Stevens Institute of Technology(史蒂文斯理工学院);Dalhousie University(达尔豪斯大学)
Can LLM-Generated Textual Explanations Enhance Model Classification Performance? An Empirical Study
Technical University of Munich, School of Computation, Information and Technology, Department of Computer Science, Munich, Germany(慕尼黑技术大学,计算、信息与技术学院,计算机科学系,德国慕尼黑)
GPTKB v1.5: A Massive Knowledge Base for Exploring Factual LLM Knowledge
ScaDS.AI Dresden/Leipzig & TU Dresden, Germany(德国德累斯顿/莱比锡ScaDS.AI & 德累斯顿工业大学);VNU University of Engineering and Technology, Hanoi, Vietnam(越南河内国立大学工程与技术大学)
Large Language Models Help Humans Verify Truthfulness -- Except When They Are Convincingly Wrong
Stanford University(斯坦福大学);University of Maryland(马里兰大学);Carnegie Mellon University(卡内基梅隆大学);NYU Shanghai(上海纽约大学);New York University(纽约大学);Microsoft Research(微软研究院)