Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 21, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 21, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 21, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 21, 2025

      Google DeepMind’s CEO says Gemini’s upgrades could lead to AGI — but he still thinks society isn’t “ready for it”

      May 21, 2025

      Windows 11 is getting AI Actions in File Explorer — here’s how to try them right now

      May 21, 2025

      Is The Alters on Game Pass?

      May 21, 2025

      I asked Copilot’s AI to predict the outcome of the Europa League final, and now I’m just sad

      May 21, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Celebrating GAAD by Committing to Universal Design: Equitable Use

      May 21, 2025
      Recent

      Celebrating GAAD by Committing to Universal Design: Equitable Use

      May 21, 2025

      GAAD and Universal Design in Healthcare – A Deeper Look

      May 21, 2025

      GAAD and Universal Design in Pharmacy – A Deeper Look

      May 21, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Google DeepMind’s CEO says Gemini’s upgrades could lead to AGI — but he still thinks society isn’t “ready for it”

      May 21, 2025
      Recent

      Google DeepMind’s CEO says Gemini’s upgrades could lead to AGI — but he still thinks society isn’t “ready for it”

      May 21, 2025

      Windows 11 is getting AI Actions in File Explorer — here’s how to try them right now

      May 21, 2025

      Is The Alters on Game Pass?

      May 21, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Outperforming Existing Models with Multi-Pass Refinement: This AI Paper from Amazon Unveils a New Era in Code Suggestion Tools

    Outperforming Existing Models with Multi-Pass Refinement: This AI Paper from Amazon Unveils a New Era in Code Suggestion Tools

    August 13, 2024

    Handling partial code with potential bugs presents a significant challenge in developing real-time code suggestion systems. Incomplete code snippets often exhibit errors, necessitating accurate completion that also addresses embedded bugs to enhance the reliability and efficiency of AI-driven programming tools. The primary challenge involves developing models capable of generating code completions while simultaneously correcting potential errors within the partial code, thereby producing fully functional and accurate code.

    Current approaches to code completion generate code based on a given prefix or problem description but struggle with partial code that contains potential bugs. Previous methodologies, such as “buggy-code completion,” aim to complete code with undesirable elements but often produce non-functional outputs due to an inability to effectively correct errors. Models like CodeGen and InCoder typically rely on straightforward, linear completion strategies that do not accommodate the complexities of debugging and code correction. The main limitations of these methods are their computational intensity and inadequacy for real-time applications, where rapid and accurate code correction is necessary.

    Researchers from Amazon and the University of Oxford propose a novel approach that fine-tunes large language models of code (CodeLLMs) for the dual task of rewriting and completing partial code. This proposed method treats partial code as “implementation hints,” allowing the model to deviate from the provided code to generate a correct and functional completion. The innovation lies in the application of two strategies: one-pass generation and multi-pass iterative refinement. One-pass generation attempts to create a complete program from the partial code in a single step, while the multi-pass iterative refinement strategy generates an initial solution and then refines it iteratively, progressively fixing potential bugs to enhance code accuracy.

    The core technical advancement in this approach involves fine-tuning state-of-the-art CodeLLMs, including InCoder, CodeGen, and StarCoder, on datasets specifically constructed for this task. These datasets incorporate semantic-altering transformations that introduce potential bugs into clean code snippets, enabling the models to learn to handle both buggy and clean code effectively. The one-pass generation method trains the model to predict the entire program in a single forward pass from the partial code, while the multi-pass iterative refinement method generates a solution and then iteratively refines it. The performance of these models is evaluated using pass rates on multiple benchmarks, such as the newly created b-HumanEval and b-FixEval datasets, which focus on the model’s ability to manage buggy code prefixes.

    Experiments reveal that the fine-tuned models consistently outperform baseline methods in generating functional code from buggy prefixes. The multi-pass iterative refinement strategy proves particularly effective, achieving higher accuracy across various performance metrics, including pass@1, pass@10, and pass@100. These models demonstrate a significant improvement in handling partial code with potential bugs, offering more reliable and accurate code completions compared to previous approaches. The results underscore the practical effectiveness of the proposed method in real-world scenarios, where it successfully addresses the challenges of real-time code suggestion by not only completing but also correcting buggy code snippets. This advancement enhances the robustness and reliability of AI-driven programming tools, making them better suited for real-time application in diverse coding environments.

    In conclusion, This proposed method significantly advances the field of AI-driven code completion by enabling CodeLLMs to jointly rewrite and complete partial code with potential bugs. The introduction and evaluation of both one-pass and multi-pass iterative refinement strategies substantially improve the functional accuracy of generated code, particularly in the presence of bugs. This development promises to make AI programming assistants more robust and reliable, especially in handling real-world, in-progress code.

    Check out the Paper. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter and join our Telegram Channel and LinkedIn Group. If you like our work, you will love our newsletter..

    Don’t Forget to join our 48k+ ML SubReddit

    Find Upcoming AI Webinars here

    Arcee AI Released DistillKit: An Open Source, Easy-to-Use Tool Transforming Model Distillation for Creating Efficient, High-Performance Small Language Models

    The post Outperforming Existing Models with Multi-Pass Refinement: This AI Paper from Amazon Unveils a New Era in Code Suggestion Tools appeared first on MarkTechPost.

    Source: Read More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleOpenLogParser: A Breakthrough Unsupervised Log Parsing Approach Utilizing Open-Source LLMs for Enhanced Accuracy, Privacy, and Cost Efficiency in Large-Scale Data Processing
    Next Article Researchers at FPT Software AI Center Introduce XMainframe: A State-of-the-Art Large Language Model (LLM) Specialized for Mainframe Modernization to Address the $100B Legacy Code Modernization

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 22, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-5062 – WooCommerce WordPress PostMessage-Based Cross-Site Scripting Vulnerability

    May 22, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Brian Greene: Until the end of time | Starmus highlights

    Development

    CSS Snippets Every Front-End Developer Should Know In 2025

    Web Development

    CVE-2025-45614 – One API User Manager Information Disclosure

    Common Vulnerabilities and Exposures (CVEs)

    Cognitive Biases in UX Design

    Development

    Highlights

    Support the open source projects you love this Valentine’s Day

    February 14, 2025

    While everyone likes flowers and chocolates, why not show your love for your favorite open…

    I tried Motorola’s Razr Plus (2024) and it beats the Samsung Galaxy Z Flip in 3 ways

    June 25, 2024
    “It’s literally tens ofmillions of hours.” Xbox CEO Phil Spencer celebrates Xbox Cloud Gaming’s “dramatic growth,” now with per-device usage charts.

    “It’s literally tens ofmillions of hours.” Xbox CEO Phil Spencer celebrates Xbox Cloud Gaming’s “dramatic growth,” now with per-device usage charts.

    April 19, 2025

    MongoDB Powers M-DAQ’s Anti-Money Laundering Compliance Platform

    March 31, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.