Invention Application
- Patent Title: CODE REVIEW COMMENT GENERATION VIA RETRIEVAL-AUGMENTED TRANSFORMER WITH CHUNK CROSS- ATTENTION
-
Application No.: US18947617Application Date: 2024-11-14
-
Publication No.: US20250068419A1Publication Date: 2025-02-27
- Inventor: SHENGYU FU , XIAOYU LIU , NEELAKANTAN SUNDARESAN , ALEXEY SVYATKOVSKIY
- Applicant: MICROSOFT TECHNOLOGY LICENSING, LLC.
- Applicant Address: US WA REDMOND
- Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC.
- Current Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC.
- Current Assignee Address: US WA REDMOND
- Main IPC: G06F8/77
- IPC: G06F8/77 ; G06F8/33

Abstract:
A retrieval-augmented neural transformer model with chunk cross-attention predicts a code review given a proposed source code change, represented as a code diff hunk, and a set of historical code review comments. The code diff hunk represents proposed edits to a source code snippet with its surrounding context that has not been changed. The historical code review comments are associated with code edits that are semantically similar to the proposed source code changes. The code diff hunk is partitioned into chunks which are used to find semantically similar historical code review comments. The set of historical code review comments is aggregated and used to guide the model in makings its predictions.
Information query