![[Paper Reading]: R2Code: A Self-Reflective LLM Framework for Requirements-to-Code Traceability](/_next/image?url=https%3A%2F%2Fimages.gosomo.app%2Fevents%2F27a38849-fbb6-4f9c-ac64-92edc0bbbba7%2F20a7f9fc-47ec-40c9-ab95-352ef9c214b7.webp&w=1200&q=75)
Education
[Paper Reading]: R2Code: A Self-Reflective LLM Framework for Requirements-to-Code Traceability
SomoEventFinder
About the event
This week, we will walk through and discuss of the paper: R2Code: A Self-Reflective LLM Framework for Requirements-to-Code Traceability [https://arxiv.org/pdf/2604.22432]
Abstract of the Paper:
Accurate requirement-to-code traceability is crucial for software maintenance. However, existing IR- and embedding-based methods are heavily dependent on lexical similarity, often yielding incomplete or inconsistent links across projects and languages and incurring high cost from long-context retrieval and prompting. This paper presents R2Code, an LLM-based semantic traceability framework designed to improve trace link accuracy while reducing inference cost. R2Code integrates three components: 1) a decomposition-enhanced Bidirectional Alignment Network (BAN) that aligns four-layer requirement semantics with corresponding code structures to support cross-level semantic matching; 2) a Self-Reflective Consistency Verification (SRCV) module that conducts explanation-guided consistency checking to calibrate link reliability; and 3) a Dynamic Context-Adaptive Retrieval (DCAR) mechanism that adjusts retrieval granularity and filters contexts using semantic-overlap weighting for efficient context utilization. Experiments on five public datasets spanning multiple domains and two programming languages demonstrate that R2Code consistently outperforms the strongest baselines, achieving an average F1 gain of 7.4%, while reducing token consumption by up to 41.7% through adaptive context control.
SupportVectors AI Training Lab provides high-quality, in-depth, hands-on, industry-targetted training in AI.
You are welcome to join this in person or over Zoom (https://us02web.zoom.us/j/81282737577). SupportVectors is an AI training lab located in Fremont, CA, close to Tesla and easily accessible by road and BART.
NOTE: We cannot guarantee the accuracy of the information we provide about this event. Visit the event's website to verify details such as date, opening hours, prices and location.




