• bitcoinBitcoin(BTC)$77,332.00-0.08%
  • ethereumEthereum(ETH)$2,530.462.10%
  • tetherTether(USDT)$1.000.02%
  • binancecoinBNB(BNB)$733.792.69%
  • rippleXRP(XRP)$1.370.83%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$101.671.66%
  • tronTRON(TRX)$0.3394020.24%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.02-1.77%
  • zcashZcash(ZEC)$1,147.442.54%
  • HyperliquidHyperliquid(HYPE)$79.24-1.31%
  • dogecoinDogecoin(DOGE)$0.0847040.78%
  • RainRain(RAIN)$0.015138-3.77%
  • moneroMonero(XMR)$544.926.88%
  • USDSUSDS(USDS)$1.000.00%
  • whitebitWhiteBIT Coin(WBT)$80.380.27%
  • chainlinkChainlink(LINK)$11.540.29%
  • leo-tokenLEO Token(LEO)$9.120.37%
  • cardanoCardano(ADA)$0.2088370.36%
  • stellarStellar(XLM)$0.1809942.56%
  • bitcoin-cashBitcoin Cash(BCH)$231.581.83%
  • Ethena USDeEthena USDe(USDE)$1.000.04%
  • daiDai(DAI)$1.00-0.01%
  • USD1USD1(USD1)$1.000.01%
  • litecoinLitecoin(LTC)$54.101.81%
  • uniswapUniswap(UNI)$6.384.76%
  • CantonCanton(CC)$0.0987960.03%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.382.05%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • avalanche-2Avalanche(AVAX)$7.45-0.79%
  • hedera-hashgraphHedera(HBAR)$0.074464-0.22%
  • nearNEAR Protocol(NEAR)$2.37-4.42%
  • shiba-inuShiba Inu(SHIB)$0.0000053.09%
  • suiSui(SUI)$0.73-1.45%
  • crypto-com-chainCronos(CRO)$0.0576041.27%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • MemeCoreMemeCore(M)$1.19-0.31%
  • tether-goldTether Gold(XAUT)$4,349.93-0.12%
  • Circle USYCCircle USYC(USYC)$1.140.03%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • okbOKB(OKB)$114.312.91%
  • BittensorBittensor(TAO)$235.60-0.34%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.11%
  • aaveAave(AAVE)$126.392.81%
  • mantleMantle(MNT)$0.58-2.08%
  • pax-goldPAX Gold(PAXG)$4,355.30-0.09%
  • AsterAster(ASTER)$0.69-2.81%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.0567102.00%
  • polkadotPolkadot(DOT)$1.05-6.28%
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

Researchers from UC Berkeley and Meta Present AST-T5: A Novel Pretraining Paradigm that Harnesses the Power of Abstract Syntax Trees (ASTs) to Boost the Performance of Code-Centric Language Models

January 14, 2024
in AI & Technology
Reading Time: 5 mins read
A A
Researchers from UC Berkeley and Meta Present AST-T5: A Novel Pretraining Paradigm that Harnesses the Power of Abstract Syntax Trees (ASTs) to Boost the Performance of Code-Centric Language Models
ShareShareShareShareShare

LLMs have had a significant impact in the fields of code generation and comprehension. These models, trained on extensive code datasets such as GitHub, excel in tasks like text-to-code conversion, code-to-code transpilation, and understanding code. However, many current models merely treat code as sequences of subword tokens, overlooking its structure. Research suggests that incorporating the Abstract Syntax Tree (AST) of code can notably improve performance in tasks related to code. Some studies use code obfuscation during pretraining to teach models about abstract code structures, but these methods often involve computationally expensive processes, restricting scalability and imposing stringent conditions. 

Researchers from UC Berkeley and  Meta AI have developed AST-T5, a pretraining approach that capitalizes on the AST to enhance code generation, transpilation, and comprehension. This method, employing dynamic programming, maintains code structure through AST-Aware Segmentation and equips the model with the ability to reconstruct diverse code structures via AST-Aware Span Corruption. Unlike other models, AST-T5 does not require intricate program analyses or architectural changes, ensuring seamless integration with any encoder-decoder Transformer. 

https://arxiv.org/abs/2401.03003

LMs have been extended from NLP to code understanding and generation tasks. Encoder-only models excel in code understanding when fine-tuned with classifiers, while decoder-only models are optimized for code generation through their autoregressive nature. Encoder-decoder models, such as PLBART and CodeT5, have been developed to perform well in diverse code-related tasks. Previous research has leveraged syntactic elements, such as ASTs, in neural network models for code understanding and generation. 

AST-T5 is a  pretraining framework that leverages ASTs for code-based language models. AST-T5 uses AST-Aware Segmentation, an algorithm designed to address Transformer token limits while retaining the semantic coherence of the code. AST-T5 also employs AST-Aware Span Corruption, a masking technique that pretrains the model to reconstruct code structures ranging from individual tokens to entire function bodies, enhancing its flexibility and structure-awareness. The efficacy of AST-T5’s proposed methods is evaluated through controlled experiments, comparing it against T5 baselines with identical Transformer architectures, pretraining data, and computational settings.

https://arxiv.org/abs/2401.03003

AST-T5 consistently outperforms similar-sized LMs across various code-related tasks, particularly in code-to-code tasks, surpassing CodeT5 by 2 points in the exact match score for the Bugs2Fix task and by 3 points in the precise match score for Java-C# Transpilation in CodeXGLUE. The contributions of each component within the AST-aware pretraining framework of AST-T5 are analyzed through controlled experiments, which show the effect of the proposed methods. AST-T5’s structure-awareness, achieved through leveraging the AST of code, enhances code generation, transpilation, and understanding. AST-T5 integrates seamlessly with any encoder-decoder transformer without requiring intricate program analyses or architectural changes. 

In conclusion, AST-T5 is a  pretraining paradigm that harnesses the power of ASTs to boost the performance of code-centric language models. AST-T5 consistently outperforms similar-sized language models across various code-related tasks, particularly in code-to-code tasks, surpassing CodeT5 in exact match scores for the Bugs2Fix task and Java-C# Transpilation in CodeXGLUE. The simplicity and adaptability of AST-T5 make it a potential drop-in replacement for any encoder-decoder language model, highlighting its potential for real-world deployments. AST-T5’s structure-awareness, achieved through leveraging the AST, enhances code generation, transpilation, and understanding. Future work may explore the scalability of AST-T5 by training larger models on more expansive datasets and evaluating the model on the entire sanitized subset without few-shot prompts.


Check out the Paper 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 36k+ ML SubReddit, 41k+ Facebook Community, Discord Channel, and LinkedIn Group.

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

Don’t Forget to join our Telegram Channel


YOU MAY ALSO LIKE

Kai-Fu Lee Says China Will Win AI Reach Race

Everybody’s Business: Unpacking Apple’s Upcoming Launches

Sana Hassan, a consulting intern at Marktechpost and dual-degree student at IIT Madras, is passionate about applying technology and AI to address real-world challenges. With a keen interest in solving practical problems, he brings a fresh perspective to the intersection of AI and real-life solutions.


[Free AI Event] 🐝 ‘Real-Time AI with Kafka and Streaming Data Analytics’ (Jan 15 2024, 10 am PST)


Credit: Source link

ShareTweetSendSharePin

Related Posts

Kai-Fu Lee Says China Will Win AI Reach Race
AI & Technology

Kai-Fu Lee Says China Will Win AI Reach Race

September 12, 2026
Everybody’s Business: Unpacking Apple’s Upcoming Launches
AI & Technology

Everybody’s Business: Unpacking Apple’s Upcoming Launches

September 12, 2026
Why Laser Beams Are the Hottest New Tech in Defense
AI & Technology

Why Laser Beams Are the Hottest New Tech in Defense

September 12, 2026
Why Amazon Is Diversifying Its AI Chip Supply
AI & Technology

Why Amazon Is Diversifying Its AI Chip Supply

September 12, 2026
Next Post
Business Insider stands by reporting accusing Bill Ackman’s wife of plagiarism after review

Business Insider stands by reporting accusing Bill Ackman’s wife of plagiarism after review

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Actor Kaylee Hottle, best known for roles in ‘Godzilla’, died in a car crash

Actor Kaylee Hottle, best known for roles in ‘Godzilla’, died in a car crash

September 7, 2026
Canada’s retaliatory US tariffs set to take effect as trade dispute grows – The Guardian

Canada’s retaliatory US tariffs set to take effect as trade dispute grows – The Guardian

September 7, 2026
NVIDIA’s DLSS 5 Adds Subtle Details To NBA 2K27, But Demands A Lot More Power

NVIDIA’s DLSS 5 Adds Subtle Details To NBA 2K27, But Demands A Lot More Power

September 8, 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!