論文の概要: Towards AI-Assisted Synthesis of Verified Dafny Methods
- arxiv url: http://arxiv.org/abs/2402.00247v1
- Date: Thu, 1 Feb 2024 00:07:23 GMT
- ステータス: 処理完了
- システム内更新日: 2024-02-02 17:00:51.753771
- Title: Towards AI-Assisted Synthesis of Verified Dafny Methods
- Title(参考訳): AIによる検証ダニー法の合成に向けて
- Authors: Md Rakib Hossain Misu, Cristina V. Lopes, Iris Ma, James Noble
- Abstract要約: Dafny検証プログラム言語における2つの事前学習モデルの習熟度を改善する方法を示す。
直接コンテキストレスプロンプト、メソッドとテストケースのシグネチャを含む第2のプロンプト、問題をステップに分解する第3のプロンプトの3つの異なるタイプのプロンプトを使用します。
第3のプロンプトでは、GPT-4は58%のケースで検証された(そして評価された)ダフニー法を生成でき、第1のプロンプトは19%のケースで検証された手法を生成できた。
- 参考スコア(独自算出の注目度): 1.1128699769026908
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Large stochastic language models show great promise in many domains,
including programming. A promise is easy to make but hard to keep, and language
models often fail to keep their promises when applied to programming,
generating erroneous code. One promising avenue to keep models honest is to
have them generate code in a language that supports formal verification: if and
when that is adopted, the model would provide proof along with the code, and
that proof would be automatically verified. Unfortunately, existing large
language models show a severe lack of proficiency in verified programming
languages. In this paper we demonstrate how to improve two pretrained models'
proficiency in the Dafny verified programming language. Using 178 programming
problems from the MBPP dataset, we prompt two contemporary models (GPT-4 and
PaLM-2) to generate methods in Dafny. We use three different types of prompts:
a direct contextless prompt, a second one that includes a signature of the
method and test cases, and a third one that decomposes the problem into steps
and includes dynamically chosen similar examples. Our results show that GPT-4
is better than PaLM-2, but that, in both models, the third prompt greatly
improves the success of the generation task for the direct prompt. With the
third prompt, GPT-4 was able to generate verified (and human-evaluated) Dafny
methods in 58% of the cases, while the first prompt generated verified (and
human-evaluated) methods in only 19% of the cases. Surprisingly, the second
prompt had the worst performance, with only 10%. One tangible contribution of
our work is a collection of 153 MBPP problems that are implemented and formally
verified in Dafny, 50 of which were written by us and 103 were automatically
synthesized by GPT-4. Additionally, our results demonstrate that the benefits
of formal program verification (proof of correctness) are now within reach...
- Abstract(参考訳): 大きな確率言語モデルは、プログラミングを含む多くの領域で大きな期待を示します。
約束は簡単にできるが、維持は困難であり、言語モデルはしばしば、プログラミングに適用して誤ったコードを生成するときに約束を守らない。
モデルを正直に保つための有望な方法の1つは、形式的な検証をサポートする言語でコードを生成することである。
残念なことに、既存の大規模言語モデルは、検証済みプログラミング言語の熟練度が極めて低いことを示している。
本稿では,dafny検証プログラム言語における2つの事前学習モデルの習熟度を改善する方法について述べる。
MBPPデータセットから178のプログラミング問題を用いて、2つの現代モデル(GPT-4とPaLM-2)をダフニーで生成する。
直接コンテキストレスプロンプト、メソッドとテストケースのシグネチャを含む第2のプロンプト、問題をステップに分解し動的に選択された同様の例を含む第3のプロンプトの3つの異なるタイプのプロンプトを使用します。
その結果, GPT-4 は PaLM-2 よりも優れていることがわかったが, どちらのモデルにおいても, 3番目のプロンプトは直接プロンプト生成タスクの成功を大幅に改善する。
第3のプロンプトにより、gpt-4は58%のケースで検証済み(かつ評価済み)dafny法を生成でき、第1のプロンプトは19%のケースで検証済み(かつ評価済み)なdafny法を生成できた。
驚いたことに、第2のプロンプトはパフォーマンスが悪く、10%しかなかった。
本研究の顕著な貢献の一つは,Dafnyで実装および正式に検証された153MBPP問題の集合であり,そのうち50は私たちによって書かれ,103は自動的にGPT-4によって合成された。
さらに,形式的プログラム検証(正しさの証明)の利点が限界に達していることを実証した。
関連論文リスト
- Towards Neural Synthesis for SMT-Assisted Proof-Oriented Programming [8.34623776815378]
我々は600K行のオープンソースF*プログラムと証明のデータセットをキュレートする。
我々のデータセットには、約32KのトップレベルF*定義が含まれており、それぞれが型指向プログラムと証明合成の問題を表している。
我々は、AIを用いてプログラムと証明をF*で合成し、有望な結果を得る。
論文 参考訳(メタデータ) (2024-05-03T00:14:33Z) - Do Neutral Prompts Produce Insecure Code? FormAI-v2 Dataset: Labelling Vulnerabilities in Code Generated by Large Language Models [3.4887856546295333]
この研究は、最先端の大規模言語モデル(LLM)の比較分析を提供する。
中立なゼロショットプロンプトを使って単純なCプログラムを書く際に、脆弱性が発生する可能性を分析する。
論文 参考訳(メタデータ) (2024-04-29T01:24:14Z) - MUSTARD: Mastering Uniform Synthesis of Theorem and Proof Data [88.72298746872396]
MUSTARDは、高品質で多様性のある定理と証明データの均一な合成をマスターするフレームワークである。
5,866個の有効なデータポイントを持つMUSTARDSAUCEベンチマークを示す。
我々は広範囲な解析を行い、MUSTARDが検証された高品質なステップバイステップデータを生成することを示す。
論文 参考訳(メタデータ) (2024-02-14T05:57:58Z) - Fine-tuning Language Models for Factuality [96.5203774943198]
大規模な事前訓練型言語モデル(LLM)は、しばしば伝統的な検索エンジンの代替として、広く使われるようになった。
しかし、言語モデルは説得力のあるが事実的に不正確な主張をしがちである(しばしば「幻覚」と呼ばれる)。
本研究では,人間のラベル付けなしに,より現実的な言語モデルを微調整する。
論文 参考訳(メタデータ) (2023-11-14T18:59:15Z) - SAGA: Summarization-Guided Assert Statement Generation [34.51502565985728]
本稿では,アサート文の自動生成のための新しい要約誘導手法を提案する。
我々は、事前訓練された言語モデルを参照アーキテクチャとして利用し、アサート文生成のタスクでそれを微調整する。
論文 参考訳(メタデータ) (2023-05-24T07:03:21Z) - Teaching Large Language Models to Self-Debug [62.424077000154945]
大規模言語モデル(LLM)は、コード生成において素晴らしいパフォーマンスを達成した。
本稿では,大規模言語モデルで予測プログラムを数発のデモでデバッグする自己デバッグを提案する。
論文 参考訳(メタデータ) (2023-04-11T10:43:43Z) - Bidirectional Language Models Are Also Few-shot Learners [54.37445173284831]
SAP(Sequential Autoregressive Prompting)は,双方向モデルの高速化を実現する技術である。
SAPは質問応答と要約に有効であることを示す。
この結果から,より広範な言語モデルの創発的特性として,プロンプトに基づく学習が証明された。
論文 参考訳(メタデータ) (2022-09-29T01:35:57Z) - Finetuned Language Models Are Zero-Shot Learners [67.70352207685558]
命令チューニングは、目に見えないタスクにおけるゼロショット性能を向上することを示す。
137Bパラメータを事前訓練した言語モデルと、自然言語の命令テンプレートを介して言語化された60以上のNLPタスクにチューニングする。
FLANと呼ばれるこの命令調整モデルについて、未知のタスクタイプで評価する。
論文 参考訳(メタデータ) (2021-09-03T17:55:52Z) - TuringAdvice: A Generative and Dynamic Evaluation of Language Use [90.3029315711237]
言語理解モデルのための新しい課題タスクとデータセットであるTuringAdviceを提案する。
現実の人が現在直面している記述された状況を考えると、モデルは自然言語で有益なアドバイスを生成する必要がある。
実証的な結果は、今日のモデルがTuringAdviceで苦労していることを示している。
論文 参考訳(メタデータ) (2020-04-07T18:00:03Z)
関連論文リストは本サイト内にある論文のタイトル・アブストラクトから自動的に作成しています。
指定された論文の情報です。
本サイトの運営者は本サイト(すべての情報・翻訳含む)の品質を保証せず、本サイト(すべての情報・翻訳含む)を使用して発生したあらゆる結果について一切の責任を負いません。