Making AI-generated code more accurate in any language

Computer Modeling News

Making AI-generated code more accurate in any language
Mathematical ModelingComputer ProgrammingComputers And Internet
  • 📰 ScienceDaily
  • ⏱ Reading Time:
  • 49 sec. here
  • 9 min. at publisher
  • 📊 Quality Score:
  • News: 47%
  • Publisher: 53%

Researchers developed a more efficient way to control the outputs of a large language model, guiding it to generate text that adheres to a certain structure, like a programming language, and remains error free.

Programmers can now use large language models to generate computer code more quickly. However, this only makes programmers' lives easier if that code follows the rules of the programming language and doesn't cause a computer to crash.

In the long run, this new architecture could help nonexperts control AI-generated content. For instance, it could allow businesspeople to write complex queries in SQL, a language for database manipulation, using only natural language prompts. "It is much easier to enforce structure than meaning. We can quickly check whether something is in the right programming language, but to check its meaning you have to execute the code. Our work is also about dealing with these different types of information," Loula says.

Each output is given a weight that represents how likely it is to be structurally valid and semantically accurate. At each step in the computation, the model focuses on those with higher weights and throws out the rest. In Python code generation, for instance, the researchers' architecture enabled a small, open-source model to outperform a specialized, commercial closed-source model that is more than double its size.

We have summarized this news so that you can read it quickly. If you are interested in the news, you can read the full text here. Read more:

ScienceDaily /  🏆 452. in US

Mathematical Modeling Computer Programming Computers And Internet STEM Education Surveillance Security And Defense Educational Policy

United States Latest News, United States Headlines

Similar News:You can also read news stories similar to this one that we have collected from other news sources.

Here's why researchers are making new psychedelic-like drugs — without the tripHere's why researchers are making new psychedelic-like drugs — without the tripThis week, we've heard from researchers trying to untangle the effects of the 'trip' that often comes with psychedelics and ketamine from the ways these drugs might change the human brain. For part three of our series on psychedelic drug research, we get a glimpse into why some researchers are taking the 'trip' out of these drugs altogether.
Read more »

NASA Ames researchers working on technology to improve firefighting from the airNASA Ames researchers working on technology to improve firefighting from the airOn Tuesday, NASA researchers performed their first wildfire test flight mission, using their new airspace management technology.
Read more »

Chewing Gum Releases Thousands of Microplastics Into Our Saliva, Researchers FindChewing Gum Releases Thousands of Microplastics Into Our Saliva, Researchers FindResearchers tested ten different chewing gum brands, and found no difference between synthetic and natural gum.
Read more »

Chinese researchers report a pig kidney transplant and a first-step liver experimentChinese researchers report a pig kidney transplant and a first-step liver experimentChinese researchers are reporting new steps in the quest for animal-to-human organ transplants.
Read more »

Chinese researchers report a pig kidney transplant and a first-step liver experimentChinese researchers report a pig kidney transplant and a first-step liver experimentChinese researchers are reporting new steps in the quest for animal-to-human organ transplants. Researchers at Xijing Hospital in China say a pig kidney transplant recipient continues to recover nearly three weeks after that surgery.
Read more »

Chinese researchers report a pig kidney transplant and a first-step liver experimentChinese researchers report a pig kidney transplant and a first-step liver experimentChinese researchers are reporting new steps in the quest for animal-to-human organ transplants.
Read more »



Render Time: 2025-08-27 20:33:33