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

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

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

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 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

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

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

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Researchers at UC Berkeley Propose a Neural Diffusion Model that Operates on Syntax Trees for Program Synthesis

    Researchers at UC Berkeley Propose a Neural Diffusion Model that Operates on Syntax Trees for Program Synthesis

    June 7, 2024

    Large language models (LLMs) have revolutionized code generation, but their autoregressive nature poses a significant challenge. These models generate code token by token, without access to the program’s runtime output from the previously generated tokens. This lack of a feedback loop, where the model can observe the program’s output and adjust accordingly, makes it difficult to correct errors. While LLMs can be trained to suggest edits to existing code, acquiring sufficient high-quality training data for this task remains an obstacle. Researchers are striving to overcome these limitations and develop more effective methodologies for utilizing LLMs in code generation and error correction.

    Several existing approaches have tackled the challenges of code generation and error correction. Neural program synthesis methods generate programs from input-output examples, combining neural networks with search strategies. While effective, these techniques construct programs incrementally, exploring a vast space of partial programs. Neural diffusion models have shown impressive results for generative modeling of high-dimensional data like images. Recent work has extended diffusion to discrete and structured data such as graphs and molecules. Direct code editing using neural models has also been explored, training on datasets of real-world code patches or fine-tuning language models. However, these methods often require extensive code edit datasets or lack inherent guarantees of syntactic validity.

    University of California, Berkeley researchers introduce an effective approach to program synthesis using neural diffusion models that operate directly on syntax trees. Utilizing diffusion allows the model to iteratively refine programs while ensuring syntactic validity. Crucially, the approach enables the model to observe the program’s output at each step, effectively facilitating a debugging process. Inspired by systems like AlphaZero, the iterative nature of diffusion lends itself well to search-based program synthesis. By training a value model alongside the diffusion model, the denoising process can be guided towards programs likely to achieve the desired output, enabling efficient exploration of the program space.

    The core idea of this method is to develop denoising diffusion models for syntax trees, analogous to image diffusion models. Using context-free grammar (CFG), the method defines a noising process that randomly mutates programs while ensuring syntactic validity. This involves sampling mutations by constraining the program “size” within a range and replacing subtrees with alternate subtrees derived from the CFG’s production rules. A neural network is then trained to reverse this noising process, learning to denoise programs conditioned on the target program output (e.g., rendered image). Also, a value network is trained to predict edit distances between programs, enabling efficient beam search exploration guided by promising candidate programs.

    This method significantly outperforms two baseline approaches – CSGNet and REPL Flow – on inverse graphics tasks in the CSG2D and TinySVG domains. CSGNet represents a modern autoregressive approach, generating programs autoregressively until a match is found. REPL Flow is based on prior work building programs primitively with access to intermediate rendered outputs. Across both domains, the diffusion policy with beam search solves problems with fewer renderer calls than the baselines. Qualitative examples highlight the method’s ability to fix smaller issues missed by other approaches. Beyond that the observation model can handle stochastic hand-drawn sketches, successfully recovering programs from noisy sketch inputs.

    This research work introduced a robust neural diffusion model that operates directly on syntax trees for program synthesis. The proposed approach was successfully implemented for inverse graphics tasks, aiming to find programs that render a given target image. Unlike prior methods, the model can iteratively construct, execute, and edit programs, enabling a crucial feedback loop to correct mistakes. Comprehensive evaluations across graphics domains demonstrated the superiority of this approach over baseline methods for inverse graphics program synthesis. Also, ablation experiments provided insights into the impact of key design choices behind the diffusion model’s architecture and training process.

    Check out the Paper, Project, 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 Telegram Channel, Discord Channel, and LinkedIn Group.

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

    Don’t Forget to join our 43k+ ML SubReddit | Also, check out our AI Events Platform

    The post Researchers at UC Berkeley Propose a Neural Diffusion Model that Operates on Syntax Trees for Program Synthesis appeared first on MarkTechPost.

    Source: Read More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleSelenium for Internet explorer on Jenkins
    Next Article Demonstration ITerated Task Optimization (DITTO): A Novel AI Method that Aligns Language Model Outputs Directly with User’s Demonstrated Behaviors

    Related Posts

    Machine Learning

    LLMs Struggle with Real Conversations: Microsoft and Salesforce Researchers Reveal a 39% Performance Drop in Multi-Turn Underspecified Tasks

    May 17, 2025
    Machine Learning

    This AI paper from DeepSeek-AI Explores How DeepSeek-V3 Delivers High-Performance Language Modeling by Minimizing Hardware Overhead and Maximizing Computational Efficiency

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Top 5 Cybersecurity Companies Making Waves at RSAC 2024

    Development

    Guide to Using KeywordLogger in Katalon Studio

    Development

    My Adobe Summit 2025 Takeaways

    Development

    CodeSOD: Extended Models

    Development

    Highlights

    Creating the Morphing Effect of the Luma Dream Machine Website

    December 9, 2024

    Learn how to create this powerful morphing effect with only JavaScript using the Canvas2D API.…

    Capacity Testing: What is it, Why it is Important, Real-Life Examples of Capacity Tests

    July 10, 2024
    Utopia Digital AI Robots Are Rising – And the Godfather of Sun-Intelligence, Mr. Mohan, Says It’s Just the Beginning

    Utopia Digital AI Robots Are Rising – And the Godfather of Sun-Intelligence, Mr. Mohan, Says It’s Just the Beginning

    April 19, 2025

    A Coding Guide to Compare Three Stability AI Diffusion Models (v1.5, v2-Base & SD3-Medium) Diffusion Capabilities Side-by-Side in Google Colab Using Gradio

    May 5, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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