Back Issues This Week → Current Issue → Popular →

All issuesVolume 325, Issue 4IT NewsDeveloper

Making AI-Generated Code More Accurate In Any Language

MIT News, Monday, April 21st, 2025

A new technique automatically guides an LLM toward outputs that adhere to the rules of whatever programming language or other format is being used.

Programmers can now use large language models (LLMs) 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.

Some methods exist for ensuring LLMs conform to the rules of whatever language they are generating text in, but many of these methods either distort the model's intended meaning or are too time-consuming to be feasible for complex tasks.

more →  ·  More from Developer →