AI Code Translation Visualizing Low Confidence Regions

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional code translation systems lack effective methods to indicate regions of low confidence, leading to poor correlation between model confidence measures and traditional code quality checks, such as lint errors, making it difficult for developers to identify and address issues in translated code.

Innovation Solution

Integrating AI-based translation systems with visual cues that highlight regions of low confidence in the translated code, allowing developers to focus on specific areas for intervention, and providing confidence indications for each line of code, thereby aligning with the programmer's mental model of code quality.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If AI-based translation systems provide code translation without visual cues, then the translation process is simple, but developers cannot easily identify regions requiring intervention

Engineering Contradiction:
Improveease of identifying low confidence regionsVSAvoidcomplexity of translation system
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The patent applies color-coded visual cues in the visualization interface to indicate regions of low confidence in translated code. Different colors highlight different types of issues or confidence levels, enabling developers to quickly identify and prioritize regions requiring intervention without increasing system complexity

Inventive Principle:
Principle #32Color changes

Solution Approach 2:

The patent segments the translated code into distinct regions based on confidence levels and violation types. By dividing the code base into highlighted regions requiring intervention and non-highlighted regions, the system makes it easier for developers to focus on specific problem areas rather than reviewing entire code bases

Inventive Principle:
Principle #1Segmentation

2Measurement precision

If AI model provides confidence measures for translated code, then translation quality can be assessed, but poor correlation with lint errors makes it difficult to identify actual issues

Engineering Contradiction:
Improveprecision of confidence measurementVSAvoidreliability of confidence indication
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

The patent introduces lint violations as an intermediary layer between the AI model's confidence measures and the final code quality assessment. By correlating confidence regions with lint violation detections, the system bridges the gap between probabilistic confidence scores and concrete code quality issues, making the confidence indicators more reliable and actionable

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system implements feedback by comparing AI confidence regions with lint violation results. This feedback loop allows the system to identify where confidence measures align or diverge from actual code quality issues, enabling continuous improvement and better calibration of confidence indicators

Inventive Principle:
Principle #23Feedback

3Reliability

If developers review entire translated code base, then comprehensive quality check is possible, but time consumption increases significantly

Engineering Contradiction:
Improvecompleteness of quality checkVSAvoidtime for code review
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent extracts and highlights only the regions of low confidence and potential violations from the complete translated code base. By taking out and isolating problematic regions for targeted review, developers can maintain comprehensive quality assurance while significantly reducing the time required to identify and address issues

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS11429360B1Computer assisted programming with targeted visual feedback
Publication Date: 2022.08.30 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11429360B1 patent drawing
  • US11429360B1 patent drawing
  • US11429360B1 patent drawing

AI summary

A method of using artificial intelligence to provide source code from an original programming language in a target programming language showing regions of low confidence. The method includes receiving, by a computing device, a code base in an original programming language. The computing device further provides the code base in the original programming language to a target programming language using an artificial intelligence tool. The computing device additionally displays the code base in the target programming language using a visualization tool in a visual interface. The computing device still further displays the regions of uncertainty to a human user in the visual interface. The regions of uncertainty provide low confidence regions of the code base in the target programming language for targeted user intervention. The regions of low confidence correlate with violations to provide displayed actionable insight regions.