Technology 4 mins read

Rice University AI Bayou Uses Deep Learning to Write Code

Named Bayou to echo its geographical origins, Rice University developed a new AI that uses neural sketch learning to parse APIs. They enabled the AI to essentially teach itself to code with help from the U.S. Department of Defense. So what is Bayou and how can programmers use it?

Rice University Computer Scientists Vijay Murali, Chris Jermaine, Swarat Chaudhuri, and Letaq Qi (from left) | Rice.edu

Rice University Computer Scientists Vijay Murali, Chris Jermaine, Swarat Chaudhuri, and Letaq Qi (from left) | Rice.edu

This article details newly released information about a coding artificial intelligence from Rice University located in Houston, TX.

Machine learning and deep learning help artificial intelligence learn and grow.

But an emerging concept within the AI community is “AI as IT”. In fact, Co-CTO of IBM Security, Koos Lodewijkx, describes “Intro to Machine Learning” as one of the most popular new college courses.

So, it’s no surprise that we now have an AI that can code.

What is Rice University’s Bayou AI and how does it fit into AI as IT?

Rice University Computer Scientists Vijay Murali, Chris Jermaine, Swarat Chaudhuri, and Letaq Qi (from left)

How did Bayou Teach Itself how to Code?

The application Bayou uses deep learning to write code specifically for programmers. The U.S. Department of Defense helped fund the project, developed at Rice University.

Part of the initiative Defense Advanced Research Projects Agency, Bayou also helps people traverse the digital realm of sometimes undocumented APIs. You can even test it out for yourself at askbayou.com.

Co-creator Swarat Chaudhuri told Science Daily that previous attempts at Bayou failed due to ambiguity. Systems like Bayou need “…a lot of details about what the target program does, and writing down these details can be as much work as just writing the code.”

In fact, Bayou trained itself by studying information available on GitHub. By “training itself” with millions of human programmer drafted Java code, Bayou can create its own.

The scope of Bayou is a significant step in the AI for IT movement. Chaudhuri further elaborated that Bayou could “read a developer’s mind” with just a few keywords or a short description.

So how did Rice University researchers enable this AI to learn?

Pexels | Pixabay.com

Why APIs and What Can Bayou do?

Bayou architect and research scientist Vijay Murali says that all of this relates to APIs. “There are hundreds of APIs, and navigating them is very difficult for developers.” Murali said. Bayou offers the opportunity to spare developers precious time spent navigating databases.

“That immediate feedback could solve the problem right away, and if it doesn’t, Bayou’s example code should lead to a more informed question for their human peers,” said Murali.

While Bayou currently works as a parsing tool for APIs, the Rice University team wants to take it further. Fellow co-creator Chris Jermaine said that Bayou will continue to learn, so ask it questions.

How a neural network forms relationships via Udacity

Bayou uses neural sketch learning to train the AI neural network to notice high-level patterns among many Java programs. The associative learning process relates unique sketches for each program with the user intent behind the program.

Using its knowledge and sketches, Bayou takes a guess as what a user needs based on the question entered. Jermaine elaborated on this process:

“Based on that guess, a separate part of Bayou, a module that understands the low-level details of Java and can do automatic logical reasoning, is going to generate four or five different chunks of code…It’s going to present those to the user like hits on a web search. ‘This one is most likely the correct answer, but here are three more that could be what you’re looking for.”

AI infrastructure as cloud computing service | Forbes

Applications as AI for IT

Currently, tools like Bayou function alongside programmers and developers. This stands in stark contrast to the fear that all AI will replace humans in various job roles.

But it does expose a growing trend in using AI for IT related tasks. This has applications especially in the cloud computing realm where AI already function as services.

However, Rice University’s work on Bayou represents more than just an API parser.

Bayou represents a major milestone for both developers of AI and developers at-large. It could also be a first step toward the economic hyper-growth fellow Edgy Labs writer Zayan wrote about recently.

Only time will tell, but for now, computer science students can rejoice.

For more technical information on Bayou, check out the Ricer University paper on neural sketch learning.

What would you do with a deep learning AI that wrote code?

Found this article interesting?

Let Juliet Childers know how much you appreciate this article by clicking the heart icon and by sharing this article on social media.


Profile Image

Juliet Childers

Content Specialist and EDGY OG with a (mostly) healthy obsession with video games. She covers Industry buzz including VR/AR, content marketing, cybersecurity, AI, and many more.

Comment (1)
Most Recent most recent
You
  1. Larry YE July 11 at 6:01 pm GMT

    This is amazing. Computer language is much regulated comparing to a Natural Language. I think this should be progressed much faster and it will bring significant impact to the industry.

Scroll to top

Link Copied Successfully

Sign in

Sign in to access your personalized homepage, follow authors and topics you love, and clap for stories that matter to you.

Sign in with Google Sign in with Facebook

By using our site you agree to our privacy policy.