• bitcoinBitcoin(BTC)$85,814.00-0.11%
  • ethereumEthereum(ETH)$2,736.27-0.13%
  • tetherTether(USDT)$1.000.01%
  • binancecoinBNB(BNB)$786.55-0.01%
  • rippleXRP(XRP)$1.603.97%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$117.380.24%
  • tronTRON(TRX)$0.342830-1.78%
  • zcashZcash(ZEC)$1,604.716.85%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.031.76%
  • HyperliquidHyperliquid(HYPE)$95.630.89%
  • dogecoinDogecoin(DOGE)$0.0998701.38%
  • moneroMonero(XMR)$568.81-0.05%
  • whitebitWhiteBIT Coin(WBT)$86.23-0.18%
  • chainlinkChainlink(LINK)$12.93-0.09%
  • USDSUSDS(USDS)$1.000.01%
  • cardanoCardano(ADA)$0.2541182.34%
  • RainRain(RAIN)$0.012913-4.64%
  • leo-tokenLEO Token(LEO)$8.97-0.05%
  • stellarStellar(XLM)$0.2169172.23%
  • bitcoin-cashBitcoin Cash(BCH)$356.5032.93%
  • uniswapUniswap(UNI)$10.1214.27%
  • nearNEAR Protocol(NEAR)$4.632.18%
  • avalanche-2Avalanche(AVAX)$11.081.55%
  • Ethena USDeEthena USDe(USDE)$1.000.02%
  • litecoinLitecoin(LTC)$62.673.62%
  • daiDai(DAI)$1.000.01%
  • CantonCanton(CC)$0.113029-3.43%
  • USD1USD1(USD1)$1.000.01%
  • hedera-hashgraphHedera(HBAR)$0.0975282.45%
  • suiSui(SUI)$1.020.19%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.451.50%
  • shiba-inuShiba Inu(SHIB)$0.0000060.37%
  • BittensorBittensor(TAO)$310.06-2.55%
  • crypto-com-chainCronos(CRO)$0.0669730.74%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • MemeCoreMemeCore(M)$1.28-4.34%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • tether-goldTether Gold(XAUT)$4,318.230.06%
  • okbOKB(OKB)$124.061.04%
  • BitwayBitway(BTW)$0.9515.97%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • aaveAave(AAVE)$149.575.62%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.04%
  • mantleMantle(MNT)$0.684.90%
  • EthenaEthena(ENA)$0.2134251.23%
  • OndoOndo(ONDO)$0.4367050.61%
  • pepePepe(PEPE)$0.000005-1.87%
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

Embeddings or LLMs: What’s Best for Detecting Code Clones Across Languages?

August 14, 2024
in AI & Technology
Reading Time: 4 mins read
A A
Embeddings or LLMs: What’s Best for Detecting Code Clones Across Languages?
ShareShareShareShareShare

Cross-lingual code cloning has become an important and difficult job due to the rising complexity of modern software development, where numerous programming languages are typically employed inside a single project. The term ‘cross-lingual code clone detection’ describes the process of finding identical or nearly identical code segments in several computer languages. 

Recent advances in Artificial Intelligence and Machine Learning have made tremendous progress in handling many computing jobs possible, especially with the introduction of Large Language Models (LLMs). Due to their exceptional Natural Language Processing skills, LLMs have garnered attention for their possible use in code-related tasks like code clone identification. Building on these advancements, in recent research, a team of researchers from the University of Luxembourg has re-examined the problem of cross-lingual code clone detection and studied the effectiveness of both LLMs and pre-trained embedding models in this field.

YOU MAY ALSO LIKE

Nokia Open-Sources AnyJev: A Training-Free Layer That Turns Any Open LLM Into a Calibrated Decision Model

OpenAI Releases GPT-6 Sol and Luna: 50% Cheaper API Pricing and Benchmarks

The research assesses the performance of four different LLMs in conjunction with eight unique prompts intended to support the detection of cross-lingual code clones. It evaluates the usefulness of a pre-trained embedding model that produces vector representations of code excerpts. Following this, pairs of code fragments are categorized as clones or non-clones based on these representations. Two popular cross-lingual datasets have been used for the evaluations, which are CodeNet and XLCoST.

The study’s findings have demonstrated the benefits and drawbacks of LLMs in this situation. When working with simple programming examples like those in the XLCoST dataset, the LLMs showed that they could attain high F1 scores, up to 0.98. However, when presented with more difficult programming tasks, their performance suffered. This decline raises the possibility that LLMs will find it difficult to completely appreciate the subtle meaning of code clones, especially in a cross-lingual context where it is crucial to comprehend the functional equivalency of code between languages.

However, the research has shown that embedding models, which represent code fragments from many programming languages within a single vector space, offer a stronger basis for identifying cross-lingual code clones. With an improvement of about two percentage points on the XLCoST dataset and about 24 percentage points on the more complicated CodeNet dataset, the researchers could attain results that surpassed all evaluated LLMs by training a basic classifier using these embeddings.

The team has summarized their primary contributions as follows.

  1. The work broadly analyzes LLM capacities to identify cross-lingual code clones, with a particular emphasis on Java combined with ten distinct programming languages. This work applies several LLMs to a wide range of cross-lingual datasets and assesses the effects of several quick engineering methods, providing a distinct viewpoint in contrast to previous research.
  1. The study offers insightful information about how well LLM performs in code clone identification. It emphasizes how much the closeness of two programming languages influences LLMs’ capacity to identify clones, particularly when given straightforward cues. The effects of programming language differences are lessened when prompts focus on reasoning and logic. The generalisability and universal effectiveness of LLMs in cross-lingual code clone detection tasks have also been discussed.
  1. The study contrasts LLM performance with traditional ML techniques using learned code representations as a basis. The experiment’s findings have indicated that LLMs might not fully understand the meaning of clones in the context of code clone detection, suggesting that conventional techniques may still be superior in this regard.

In conclusion, the results imply that while LLMs are highly capable, especially when it comes to handling simple code examples, they might not be the most effective method for cross-lingual code clone detection, especially when dealing with more complicated circumstances. On the other hand, embedding models are more appropriate for attaining state-of-the-art performance in this domain since they provide consistent and language-neutral representations of code. 


Check out the Paper. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter and join our Telegram Channel and LinkedIn Group. If you like our work, you will love our newsletter..

Don’t Forget to join our 48k+ ML SubReddit

Find Upcoming AI Webinars here



Tanya Malhotra is a final year undergrad from the University of Petroleum & Energy Studies, Dehradun, pursuing BTech in Computer Science Engineering with a specialization in Artificial Intelligence and Machine Learning.
She is a Data Science enthusiast with good analytical and critical thinking, along with an ardent interest in acquiring new skills, leading groups, and managing work in an organized manner.


Credit: Source link

ShareTweetSendSharePin

Related Posts

Nokia Open-Sources AnyJev: A Training-Free Layer That Turns Any Open LLM Into a Calibrated Decision Model
AI & Technology

Nokia Open-Sources AnyJev: A Training-Free Layer That Turns Any Open LLM Into a Calibrated Decision Model

September 23, 2026
OpenAI Releases GPT-6 Sol and Luna: 50% Cheaper API Pricing and Benchmarks
AI & Technology

OpenAI Releases GPT-6 Sol and Luna: 50% Cheaper API Pricing and Benchmarks

September 23, 2026
The Pros And Cons Of Using A Password Manager Over An Authenticator App
AI & Technology

The Pros And Cons Of Using A Password Manager Over An Authenticator App

September 23, 2026
How To Hide Or Replace The Audio Button In iMessages
AI & Technology

How To Hide Or Replace The Audio Button In iMessages

September 22, 2026
Next Post
Watch: Biden speaks after visiting site of Baltimore bridge collapse | NBC News

Watch: Biden speaks after visiting site of Baltimore bridge collapse | NBC News

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Meet the Press NOW — September 1

Meet the Press NOW — September 1

September 19, 2026
Ratko Mladić, ‘Butcher of Bosnia’, dies in prison

Ratko Mladić, ‘Butcher of Bosnia’, dies in prison

September 22, 2026
How Trump turned a refugee bureau into a 0 million deportation operation – The Washington Post

How Trump turned a refugee bureau into a $410 million deportation operation – The Washington Post

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