LLM Code Summary Generation via Commit Message Prompts

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Manually reviewing and summarizing code modifications is tedious, time-consuming, and resource-intensive, especially for extensively modified code, and often fails to provide relevant information to specific audiences.

Innovation Solution

The use of a machine learning model, specifically a large language model (LLM), to generate code development summaries in an automated manner, by processing commit messages and other code modification data to create a model prompt that summarizes code changes effectively.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If manual reviewing and summarizing of code modifications is performed, then accuracy and relevance of summaries can be controlled, but time consumption and computing resource consumption increase significantly

Engineering Contradiction:
Improveaccuracy of code summaryVSAvoidtime consumption
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent replaces the manual mechanical process of reviewing and summarizing code modifications with an automated machine learning-based system. The system uses LLMs to automatically process commit messages and generate summaries, eliminating the need for manual text analysis while maintaining summary quality through intelligent processing algorithms.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The system enables self-service by allowing the code development summary generation process to occur automatically without human intervention. The machine learning model processes code modifications autonomously, generating summaries that can be directly used by users without requiring manual summarization efforts.

Inventive Principle:
Principle #25Self-service

2Adaptability or versatility

If manual summarization is performed, then relevance to specific audiences can be ensured, but computing resources are unnecessarily consumed

Engineering Contradiction:
Improverelevance to audienceVSAvoidcomputing resource consumption
Core Design Contradiction:
Adaptability or versatilityVSUse of energy by moving object

Solution Approach 1:

The patent applies parameter changes by allowing the machine learning model to adjust summary generation based on different parameters such as target audience, level of detail, and specific code modification characteristics. The system can generate tailored summaries for different audiences (e.g., developers, managers, testers) without requiring separate manual processing for each audience type.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The system replaces manual audience-specific summarization with an automated ML-based approach that can adapt to different audiences through trained models. This substitution eliminates the need for humans to manually adjust summaries for different audiences while the system automatically generates appropriate content based on pre-trained knowledge and parameters.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Productivity

If automated summarization using machine learning is implemented, then computing resources are reduced, but the complexity of the system increases

Engineering Contradiction:
Improvegeneration efficiencyVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent introduces machine learning models as intermediary components that bridge the gap between raw code modification data and useful summaries. The ML models act as mediators that automatically process and transform complex code change information into human-readable summaries, simplifying the overall system architecture compared to manual processing while maintaining high productivity.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system achieves self-service automation where the machine learning models independently perform the summarization task without requiring complex manual intervention or sophisticated user-side processing. This self-service capability simplifies the user experience while the automated ML infrastructure handles the computational complexity in the background.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS20250138818A1Efficient generation of code development summaries
Publication Date: 2025.05.01 MICROSOFT TECHNOLOGY LICENSING LLC
  • US20250138818A1 patent drawing
  • US20250138818A1 patent drawing
  • US20250138818A1 patent drawing

AI summary

Methods, computer systems, computer-storage media, and graphical user interfaces are provided for efficiently generating code development summaries. In embodiments, commit message data for a commit message associated with code is obtained. In embodiments, the commit message includes a description associated with a corresponding modification in the code. Thereafter, a model prompt to be input into a large language model is generated. The model prompt includes the commit message data. As output from the large language model, a code development summary is obtained that summarizes the commit message data for the commit message associated with the code.