Saturday, May 10, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

Stanford Researchers Introduce Clover: Closed-Loop Verifiable Code Generation that Checks Consistencies Among Code, Doc Strings and Annotations and Enforces Correctness in AI-Generated Code

January 16, 2024
in AI Technology
Reading Time: 4 mins read
0 0
A A
0
Share on FacebookShare on Twitter


The trend of employing large language models (LLMs) for code generation is rapidly gaining momentum in software development. However, the lack of robust mechanisms for validating the accuracy of the generated code may result in numerous adverse outcomes. The absence of effective methods for ensuring correctness raises significant risks, including but not limited to bugs, security vulnerabilities, and overall software unreliability. Addressing this problem is imperative to counter the potential drawbacks of the growing reliance on LLMs for generating code.

Existing LLMs exhibit impressive capabilities, including code synthesis from natural language. This proficiency has the potential to boost programmer productivity significantly. Despite these advancements, a crucial challenge emerges—the lack of a reliable means to ensure the correctness of AI-generated code. Current practices, exemplified by Github Copilot, involve human oversight but limit scalability. Recent studies underscore the risks and limitations of AI as a code assistant. 

Researchers from Stanford University and VMware Research have proposed the Clover paradigm, which is short for Closed-Loop Verifiable Code Generation, which introduces a two-phase approach: generation and verification. Generative AI creates code, formal specifications, and docstrings in the generation phase. The verification phase employs consistency checks on these components. The hypothesis is that passing checks ensures functional correctness, accurate documentation, and internal consistency. This approach enables the use of powerful generative AI in code creation while applying a rigorous filter in the verification phase, ensuring only formally verified, well-documented, and internally consistent code is approved.

\"\"
https://arxiv.org/abs/2310.17807

Using deductive verification tools, the colver paradigm ensures code adheres to annotations. Reconstruction testing, employing Large Language Models (LLMs), verifies consistency between annotations, docstrings, and code. For instance, LLMs generate new components for equivalence testing. Clover aims for fully automatic, scalable, and formally verified code generation, with the evaluation demonstrating promising results in code, annotation, and docstring consistency. The proposed method includes detailed algorithms and checks, leveraging formal tools and LLMs.

The evaluation of the Clover consistency checking algorithm, implemented with GPT-4 and Dafny, demonstrates promising results. In the verification phase, the method accepts 87% of correct examples while rejecting all incorrect ones. The generation phase, testing GPT-4’s ability to produce code, annotations, and docstrings, shows feasibility with correct code generation ranging from 53% to 87%, depending on feedback. Challenges include occasional invalid Dafny syntax in generated artifacts. Overall, Clover presents a novel approach to fully automatic, scalable, and formally verified code generation.

\"\"
https://arxiv.org/abs/2310.17807

To conclude, the researchers have introduced Clover, a closed-loop verifiable code generation framework. Preliminary tests leveraging GPT-4 and Dafny on basic textbook instances reveal promise, achieving an 87% accuracy for correct cases and a faultless 100% rejection rate for errors. Future endeavors encompass refining verification tools, augmenting LLM capabilities for code generation, and addressing more intricate coding challenges.

Check out the Paper and Github. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter. Join our 36k+ ML SubReddit, 41k+ Facebook Community, Discord Channel, and LinkedIn Group.

If you like our work, you will love our newsletter..

Don’t Forget to join our Telegram Channel

\"\"

Source link

Tags: AIGeneratedamongAnnotationschecksClosedLoopÂVerifiableÂCodeÂGenerationCloverCodeConsistenciesCorrectnessDocEnforcesIntroduceResearchersStanfordStrings
Previous Post

Popular mapping techniques for better UX design

Next Post

AWS Supply Chain update: Three new modules supporting upstream activities

Related Posts

How insurance companies can use synthetic data to fight bias
AI Technology

How insurance companies can use synthetic data to fight bias

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset
AI Technology

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
How Game Theory Can Make AI More Reliable
AI Technology

How Game Theory Can Make AI More Reliable

June 9, 2024
Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper
AI Technology

Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper

June 9, 2024
Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs
AI Technology

Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs

June 9, 2024
Deciphering Doubt: Navigating Uncertainty in LLM Responses
AI Technology

Deciphering Doubt: Navigating Uncertainty in LLM Responses

June 9, 2024
Next Post
AWS Supply Chain update: Three new modules supporting upstream activities

AWS Supply Chain update: Three new modules supporting upstream activities

‘Smart glove’ can boost hand mobility of stroke patients

'Smart glove' can boost hand mobility of stroke patients

After Iraq, Iran launches drone, missile attacks on militant bases in Pakistan

After Iraq, Iran launches drone, missile attacks on militant bases in Pakistan

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
Porfo: Revolutionizing the Crypto Wallet Landscape

Porfo: Revolutionizing the Crypto Wallet Landscape

October 9, 2023
A Complete Guide to BERT with Code | by Bradney Smith | May, 2024

A Complete Guide to BERT with Code | by Bradney Smith | May, 2024

May 19, 2024
How To Build A Quiz App With JavaScript for Beginners

How To Build A Quiz App With JavaScript for Beginners

February 22, 2024
Saginaw HMI Enclosures and Suspension Arm Systems from AutomationDirect – Library.Automationdirect.com

Saginaw HMI Enclosures and Suspension Arm Systems from AutomationDirect – Library.Automationdirect.com

December 6, 2023
Part 1: ABAP RESTful Application Programming Model (RAP) – Introduction

Part 1: ABAP RESTful Application Programming Model (RAP) – Introduction

November 20, 2023
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In