Monday, November 16, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Technology and Engineering

A multi-relational graph perspective on semantic similarity in program retrieval

May 29, 2024
in Technology and Engineering
Denise Maddox
By Denise Maddox Scienmag Editorial Profile - Mechanical Engineering
Reading Time: 2 mins read
0
A multi-relational graph perspective on semantic similarity in program retrieval
66
SHARES
600
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Program retrieval remains a cornerstone of software development, crucial for boosting productivity throughout the development lifecycle. Amidst diverse program retrieval models, many have ignored the disparities between natural language queries and code, resulting in a prominent semantic gap. Moreover, programs and queries carry rich structural and semantic information. Yet, prevailing approaches often overlook the cohesion among different aspects of source code and treat queries as sequences, neglecting their inherent structural characteristics.

An overview of the proposed method, including: 1) Multi-relational graph construction; 2) Multi-relational graph embedding; 3) Semantic similarity calculation

Credit: Qianwen GOU, Yunwei DONG, YuJiao WU, Qiao KE

Program retrieval remains a cornerstone of software development, crucial for boosting productivity throughout the development lifecycle. Amidst diverse program retrieval models, many have ignored the disparities between natural language queries and code, resulting in a prominent semantic gap. Moreover, programs and queries carry rich structural and semantic information. Yet, prevailing approaches often overlook the cohesion among different aspects of source code and treat queries as sequences, neglecting their inherent structural characteristics.

To solve the problems, a research team led by Yunwei DONG published their new research on 15 June 2024 in Frontiers of Computer Science co-published by Higher Education Press and Springer Nature.

The team proposed a framework that formulates program retrieval as a multi-relational graph similarity problem. Furthermore, a dual-level attention is applied to assign weights to nodes in multi-relational graphs by intra-relation and inter-relation level attention.

To begin, the multi-relational graph construction module focuses on representing programs and queries using code property graphs (CPG) and abstract meaning representations (AMR). This strategic approach facilitates a more comprehensive and nuanced portrayal of program and query semantics. Then the dual-level attention graph neural network is leveraged to learn semantic information for AMR and CPG. Finally, Semantic similarity calculation module is designed to calculate the similarity of query-program pairs. Compared with the existing research results, the proposed method performs relatively well among all baselines. 

Future research endeavors could concentrate on optimizing multi-relational graphs by minimizing extraneous information, thereby diminishing graph complexity. Additionally, a promising avenue lies in the deliberate integration of external knowledge, such as knowledge graphs, aiming to enhance the representation of program semantics.



Journal

Frontiers of Computer Science

DOI

10.1007/s11704-023-2678-8

Method of Research

Experimental study

Subject of Research

Not applicable

Article Title

Semantic similarity-based program retrieval: a multi-relational graph perspective

Article Publication Date

15-Apr-2024

Subject of Research: Technology and Engineering

Article Title: A multi-relational graph perspective on semantic similarity in program retrieval

Article References: Gou, Q., Dong, Y., Wu, Y., & Ke, Q. (2024). Semantic similarity-based program retrieval: a multi-relational graph perspective. Frontiers of Computer Science, 18(3), Article 183209. https://doi.org/10.1007/s11704-023-2678-8

Image Credits: AI Generated

DOI: 10.1007/s11704-023-2678-8

Keywords: Not provided

Cite Scienmag News

Denise Maddox. (May 29, 2024). A multi-relational graph perspective on semantic similarity in program retrieval. Scienmag. https://scienmag.com/a-multi-relational-graph-perspective-on-semantic-similarity-in-program-retrieval/

Denise Maddox. "A multi-relational graph perspective on semantic similarity in program retrieval." Scienmag, 29 May 2024, https://scienmag.com/a-multi-relational-graph-perspective-on-semantic-similarity-in-program-retrieval/. Accessed 16 November 2026.

Denise Maddox. "A multi-relational graph perspective on semantic similarity in program retrieval." Scienmag. May 29, 2024. https://scienmag.com/a-multi-relational-graph-perspective-on-semantic-similarity-in-program-retrieval/

Share26Tweet17
Previous Post

Risky path to meeting climate targets for Stockholm

Next Post

War magnifies politicians’ gendered behavior, public biases, research finds

Related Posts

Machine Learning Model Simulates Solid Electrolyte Interphase Reactions in Lithium Batteries
Technology and Engineering

Machine Learning Model Simulates Solid Electrolyte Interphase Reactions in Lithium Batteries

November 16, 2026
Tuned Machine Learning Fails to Outperform Persistence in Desalination Pilot Study
Technology and Engineering

Tuned Machine Learning Fails to Outperform Persistence in Desalination Pilot Study

November 16, 2026
Continuous Cattail Bio-SAP Cores Decouple Water Absorption from Dimensional Swelling
Technology and Engineering

Continuous Cattail Bio-SAP Cores Decouple Water Absorption from Dimensional Swelling

November 16, 2026
Titanium Diboride Armor Shows Rapid Entropy Saturation Under Deuterium Plasma Bombardment
Technology and Engineering

Titanium Diboride Armor Shows Rapid Entropy Saturation Under Deuterium Plasma Bombardment

November 16, 2026
Unequal Binning Distorts Conflict Measurement in Evidential Data Fusion
Technology and Engineering

Unequal Binning Distorts Conflict Measurement in Evidential Data Fusion

November 16, 2026
Framework Assesses Public Buildings for Post-Disaster Temporary Housing in South Korea
Technology and Engineering

Framework Assesses Public Buildings for Post-Disaster Temporary Housing in South Korea

November 16, 2026
Next Post
War magnifies politicians’ gendered behavior, public biases, research finds

War magnifies politicians’ gendered behavior, public biases, research finds

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27656 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • Prehistoric Yellow River Settlements Expanded to Higher Ground Before Bronze Contraction
  • Chinese Mythological Film Poster Imagery Evolved Through Three Distinct Visual Phases
  • Machine Learning Identifies Key Factors Linked to Preschool Respiratory Infections
  • Gamified Virtual Classrooms Boost Engagement and Narrow Performance Disparities in Secondary Schools

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Science News
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,150 other subscribers

© 2026 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2026 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading