Neural Network Model Code Generation from Sketches

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for developing artificial intelligence models are labor-intensive and inefficient, requiring significant mental effort and resources, as they involve manual sketching, software development, and testing, with limited capabilities for real-time optimization and adaptation to changing datasets and tasks.

Innovation Solution

A system that generates and optimizes neural network model definitions by converting freehand drawings into executable code, utilizing neural architecture search to identify and integrate more efficient modules, and automatically adjusting model parameters and operations in real-time, allowing for real-time optimization and improved resource utilization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If manual sketching and software development are used to create AI models, then model functionality can be achieved, but significant time and effort are required

Engineering Contradiction:
Improvemodel development speedVSAvoidtime for sketching and coding
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The system uses optical character recognition (OCR) to convert hand-drawn sketches into digital text representations, and then automatically generates executable code from these texts. This copying process transforms manual visual representations into machine-executable formats without requiring manual coding, significantly reducing development time while preserving the developer's original model design intent.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The system enables self-service model generation by automatically converting user sketches and textual descriptions into functional AI models without requiring manual programming. The automated code generation and model compilation processes allow users to create deployable models through simple drawing and text input, eliminating the need for extensive software development expertise and time investment.

Inventive Principle:
Principle #25Self-service

2Quantity of substance

If traditional model development processes are used, then models can be created, but they require significant computational resources

Engineering Contradiction:
Improvecomputational resources requiredVSAvoidresource utilization efficiency
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The system dynamically optimizes model architecture by analyzing the generated code and automatically selecting appropriate optimization techniques. The compilation process adapts to the specific model characteristics and target deployment environment, dynamically adjusting resource allocation and computational requirements to achieve efficient execution while maintaining model functionality.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system automatically modifies model parameters and architecture during the code generation and compilation process to optimize resource utilization. By changing parameters such as layer configurations, activation functions, and computational operations during automated model creation, the system reduces computational requirements while preserving model accuracy and performance.

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If models are created manually, then initial functionality is achieved, but adaptation to changing datasets and tasks is difficult

Engineering Contradiction:
Improveadaptability to changing tasksVSAvoidcomplexity of model modification
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system enables dynamic model adaptation by allowing users to modify sketches and texts to reflect changing requirements, then automatically regenerating updated models through the same code generation process. This dynamic approach allows models to adapt to new datasets and tasks by simply updating the visual and textual specifications, eliminating complex manual modification processes.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system provides a universal model creation platform that handles multiple task types and dataset formats through a single sketch-to-code workflow. The generated code is designed to be adaptable to different deployment environments and task requirements, allowing the same basic process to create models for various applications without requiring separate development tools or complex modification procedures.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20240201957A1Neural network model definition code generation and optimization
Publication Date: 2024.06.20 MICRON TECHNOLOGY INC
  • US20240201957A1 patent drawing
  • US20240201957A1 patent drawing
  • US20240201957A1 patent drawing

AI summary

A system providing neural network model definition code generation and optimization is disclosed. The system receives inputs to facilitate the generation of an artificial intelligence model, such as freehand drawings of a model, modules available in repositories, various forms of content, and other inputs. The system utilizes a neural network to analyze the inputs and generates blocks and connections to generate a graph for the artificial intelligence model. Properties of the model are selected, and the system locates modules, generates code for modules, or both, based on the blocks and connections from the graph and the properties. The system generates the model definition for the artificial intelligence model using the located modules and the generated code. Once the model definition is completed, the artificial intelligence model may be utilized to perform a task for which the artificial intelligence model has been created to perform.