• bitcoinBitcoin(BTC)$73,452.00-0.30%
  • ethereumEthereum(ETH)$2,046.89-0.49%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$671.96-1.15%
  • usd-coinUSDC(USDC)$1.000.00%
  • rippleXRP(XRP)$1.04-1.38%
  • solanaSolana(SOL)$82.84-0.18%
  • tronTRON(TRX)$0.316779-0.13%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.072.75%
  • HyperliquidHyperliquid(HYPE)$71.19-0.94%
  • zcashZcash(ZEC)$984.631.12%
  • dogecoinDogecoin(DOGE)$0.067006-1.23%
  • moneroMonero(XMR)$555.17-2.17%
  • USDSUSDS(USDS)$1.00-0.05%
  • leo-tokenLEO Token(LEO)$9.23-0.70%
  • whitebitWhiteBIT Coin(WBT)$70.83-0.30%
  • chainlinkChainlink(LINK)$10.07-2.45%
  • cardanoCardano(ADA)$0.172953-1.10%
  • stellarStellar(XLM)$0.145823-0.26%
  • Ethena USDeEthena USDe(USDE)$1.00-0.03%
  • bitcoin-cashBitcoin Cash(BCH)$228.05-0.57%
  • nearNEAR Protocol(NEAR)$3.47-3.98%
  • daiDai(DAI)$1.00-0.01%
  • litecoinLitecoin(LTC)$49.64-2.15%
  • avalanche-2Avalanche(AVAX)$8.630.34%
  • uniswapUniswap(UNI)$6.13-4.22%
  • CantonCanton(CC)$0.090169-0.13%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.235.87%
  • suiSui(SUI)$0.81-1.81%
  • USD1USD1(USD1)$1.000.03%
  • tether-goldTether Gold(XAUT)$3,932.85-2.76%
  • hedera-hashgraphHedera(HBAR)$0.0658520.43%
  • Ripple USDRipple USD(RLUSD)$1.00-0.02%
  • RainRain(RAIN)$0.003786-13.92%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.04%
  • shiba-inuShiba Inu(SHIB)$0.000004-2.39%
  • BittensorBittensor(TAO)$214.19-2.59%
  • crypto-com-chainCronos(CRO)$0.0485982.72%
  • quant-networkQuant(QNT)$164.48-7.92%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.02%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • okbOKB(OKB)$98.422.49%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.13-0.50%
  • EthenaEthena(ENA)$0.141295-7.20%
  • pepePepe(PEPE)$0.000004-12.87%
  • MemeCoreMemeCore(M)$0.802.86%
  • Falcon USDFalcon USD(USDF)$0.99-0.02%
  • aaveAave(AAVE)$116.85-5.17%
  • pax-goldPAX Gold(PAXG)$3,934.16-2.79%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

More accurate coding: Researchers adapt Sequential Monte Carlo for AI-generated code

April 23, 2025
in AI & Technology
Reading Time: 4 mins read
A A
More accurate coding: Researchers adapt Sequential Monte Carlo for AI-generated code
ShareShareShareShareShare

Join our daily and weekly newsletters for the latest updates and exclusive content on industry-leading AI coverage. Learn More


Coding with the help of AI models continues to gain popularity, but many have highlighted issues that arise when developers rely on coding assistants. 

YOU MAY ALSO LIKE

Nebuly Raises $21M Series A to Expand Enterprise AI Measurement – Unite.AI

BioMap Unveils 11 AI Life-Science Collaborations at Hong Kong Summit – Unite.AI

However, researchers from MIT, McGill University, ETH Zurich, Johns Hopkins University, Yale and the Mila-Quebec Artificial Intelligence Institute have developed a new method for ensuring that AI-generated codes are more accurate and useful. This method spans various programming languages and instructs the large language model (LLM) to adhere to the rules of each language.

The group found that by adapting new sampling methods, AI models can be guided to follow programming language rules and even enhance the performance of small language models (SLMs), which are typically used for code generation, surpassing that of large language models.

In the paper, the researchers used Sequential Monte Carlo (SMC) to “tackle a number of challenging semantic parsing problems, guiding generation with incremental static and dynamic analysis.” Sequential Monte Carlo refers to a family of algorithms that help figure out solutions to filtering problems. 

João Loula, co-lead writer of the paper, said in an interview with MIT’s campus paper that the method “could improve programming assistants, AI-powered data analysis and scientific discovery tools.” It can also cut compute costs and be more efficient than reranking methods. 

The researchers noted that AI-generated code can be powerful, but it can also often lead to code that disregards the semantic rules of programming languages. Other methods to prevent this can distort models or are too time-consuming. 

Their method makes the LLM adhere to programming language rules by discarding code outputs that may not work early in the process and “allocate efforts towards outputs that more most likely to be valid and accurate.”

Adapting SMC to code generation

The researchers developed an architecture that brings SMC to code generation “under diverse syntactic and semantic constraints.” 

“Unlike many previous frameworks for constrained decoding, our algorithm can integrate constraints that cannot be incrementally evaluated over the entire token vocabulary, as well as constraints that can only be evaluated at irregular intervals during generation,” the researchers said in the paper. 

Key features of adapting SMC sampling to model generation include proposal distribution where the token-by-token sampling is guided by cheap constraints, important weights that correct for biases and resampling which reallocates compute effort towards partial generations.

The researchers noted that while SMC can guide models towards more correct and useful code, they acknowledged that the method may have some problems.

“While importance sampling addresses several shortcomings of local decoding, it too suffers from a major weakness: weight corrections and expensive potentials are not integrated until after a complete sequence has been generated from the proposal. This is even though critical information about whether a sequence can satisfy a constraint is often available much earlier and can be used to avoid large amounts of unnecessary computation,” they said. 

Model testing

To prove their theory, Loula and his team ran experiments to see if using SMC to engineer more accurate code works. 

These experiments were: 

  • Python Code Generation on Data Science tasks, which used Llama 3 70B to code line-by-line and test early versions 
  • Text-to-SQL Generation with Llama 3 8B- Instruct
  • Goal Inference in Planning Tasks to predict an agent’s goal condition, and also used Llama 3 8B
  • Molecular Synthesis for drug discovery

They found that using SMC improved small language models, improved accuracy and robustness, and outperformed larger models. 

Why is it important

AI models have made engineers and other coders work faster and more efficiently. It’s also given rise to a whole new kind of software engineer: the vibe coder. But there have been concerns over code quality, lack of support for more complex coding and compute costs for simple code generation.

New methods, such as adapting SMC, may make AI-powered coding more useful and enable engineers to trust the code generated by models more. 

Other companies have explored ways to improve AI-generated code. Together AI and Agentica released DeepCoder-14B, which harnesses fewer parameters. Google also improved its Code Assist feature to help enhance code quality. 

Daily insights on business use cases with VB Daily

If you want to impress your boss, VB Daily has you covered. We give you the inside scoop on what companies are doing with generative AI, from regulatory shifts to practical deployments, so you can share insights for maximum ROI.

Read our Privacy Policy

Thanks for subscribing. Check out more VB newsletters here.

An error occured.

Credit: Source link
ShareTweetSendSharePin

Related Posts

Nebuly Raises M Series A to Expand Enterprise AI Measurement – Unite.AI
AI & Technology

Nebuly Raises $21M Series A to Expand Enterprise AI Measurement – Unite.AI

November 12, 2026
BioMap Unveils 11 AI Life-Science Collaborations at Hong Kong Summit – Unite.AI
AI & Technology

BioMap Unveils 11 AI Life-Science Collaborations at Hong Kong Summit – Unite.AI

November 12, 2026
Tether Releases QVAC BotPsy for Tool-Using AI on Personal Devices – Unite.AI
AI & Technology

Tether Releases QVAC BotPsy for Tool-Using AI on Personal Devices – Unite.AI

November 12, 2026
NAVER Plans Logistics Unit and AI Agent as Operating Profit Falls – Unite.AI
AI & Technology

NAVER Plans Logistics Unit and AI Agent as Operating Profit Falls – Unite.AI

November 12, 2026
Next Post
Hungary’s PM Orban welcomes Israeli PM Netanyahu as Hungary says it will withdraw from the ICC

Hungary's PM Orban welcomes Israeli PM Netanyahu as Hungary says it will withdraw from the ICC

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Live Trading: Can You Make Money In A Bear Market?

Live Trading: Can You Make Money In A Bear Market?

November 8, 2026
Kornacki: The races that will provide first ‘real tests’ on election night

Kornacki: The races that will provide first ‘real tests’ on election night

November 11, 2026
How Nvidia CEO’s Affair Engulfed AI Giant in Spy Probe

How Nvidia CEO’s Affair Engulfed AI Giant in Spy Probe

November 11, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!