# US 2020/0394024 A1 · Program predictor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0394024 A1
- Document ID: US20200394024A1
- Status: Published application
- Kind: A1
- Application number: 17/006,641
- Filed: 2020-08-28
- Published: 2020-12-17
- Earliest claimed: 2017-08-07
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Alexander Lloyd GAUNT; Sebastian NOWOZIN; Marc Manuel Johannes BROCKSCHMIDT; Daniel Stefan TARLOW; Matej BALOG
- Web page: https://patentgrep.com/patent/US20200394024A1

## CPC

- G06F 8/35: model driven
- G06F 40/18: of spreadsheets (form-filling G06F40/174)
- G06F 9/445: Program loading or initiating (bootstrapping G06F9/4401; security arrangements for program loading or initiating G06F21/57)
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/048: Activation functions
- G06N 3/0499: Feedforward networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 20/00: Machine learning
- G06N 20/20: Ensemble learning
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computer program predictor is described which has a processor configured to access a program attribute predictor; and a memory storing a search component configured to search a space of possible programs, to find a program which, given an input data instance and an output data instance, will compute the output data instance from the input data instance, the search being guided by attributes predicted by the attribute predictor given the input data instance and the output data instance.

## Claims

### Claim 1

A computer program predictor comprising:
a processor configured to access a program attribute predictor; and
a memory storing a search component configured to search a space of possible programs, to predict a program which, given an input data instance and an output data instance, will compute the output data instance from the input data instance, the search being guided by attributes predicted by the program attribute predictor given the input data instance and the output data instance.

### Claim 2 (depends on 1)

The computer program predictor of claim 1, the program attribute predictor having been trained on information about a plurality of programs, the information comprising: pairs of input and output data of the programs, and attributes of the programs.

### Claim 3 (depends on 1)

The computer program predictor of claim 1 where the search component is configured to search the space of possible programs using an exploration order which is influenced by the predictions of the program attribute predictor.

### Claim 4 (depends on 1)

The computer program predictor of claim 1 where the program attribute predictor predicts a probability value for each of a plurality of possible functions and the search component searches for a new function to add to the program, from the plurality of possible functions, by assessing those sequentially in an order influenced by the probability values.

### Claim 5 (depends on 4)

The computer program predictor of claim 4 where the search component is configured such that the most likely attributes, as predicted by the program attribute predictor, are assessed first.

### Claim 6 (depends on 1)

The computer program predictor of claim 1 where the search component is configured to carry out a depth first search.

### Claim 7 (depends on 1)

The computer program predictor of claim 1 where the search component is configured to maintain a plurality of active functions, so that the top k most probable functions according to the program attribute predictor are in the active set, and performs depth first search with the plurality of active functions.

### Claim 8 (depends on 1)

The computer program predictor of claim 1 where the program attribute predictor is configured to predict one or more of: an indicator of whether a specified function is the first function used in the program, an indicator of whether a specified function is the last function used in the program, the presence of a loop in the program, the number of different functions used in the program.

### Claim 9 (depends on 1)

The computer program predictor of claim 1 where the program attribute predictor is a machine learning system selected from one or more of: a neural network, a random decision forest, a kernel method, a linear logistic regression.

### Claim 10 (depends on 1)

The computer program predictor of claim 1 where the program attribute predictor comprises a neural network encoder configured to encode individual input-output examples of a program into encodings and to pool the encodings into a single encoding.

### Claim 11 (depends on 1)

The computer program predictor of claim 1 where the program attribute predictor comprises a neural network encoder and a neural network decoder and where the neural network encoder has a feed-forward architecture.

### Claim 12 (depends on 1)

The computer program predictor of claim 1 where the program attribute predictor comprises a neural network encoder and a neural network decoder and where the neural network encoder has a gated recurrent neural network architecture.

### Claim 13 (depends on 1)

The computer program predictor of claim 1 where the program attribute predictor comprises a neural network encoder which is a differentiable mapping from a set of M input-output examples generated by a single program to a latent real-valued vector.

### Claim 14 (depends on 13)

The computer program predictor of claim 13 where the decoder is a differentiable mapping from the latent real-valued vector produced by the encoder to predictions of attributes of the program.

### Claim 15 (depends on 1)

The computer program predictor of claim 1 where the program attribute predictor is a neural network having been trained using negative cross-entropy.

### Claim 16 (depends on 1)

The computer program predictor of claim 1 wherein the predicted program comprises a spreadsheet formula of a spreadsheet application, and wherein the input data instance and the output data instance are extracted from the spreadsheet application.

### Claim 17 (depends on 1)

The computer program predictor of claim 1 wherein the input data instance and the output data instance are patterns of user input at a user interface of a computing device.

### Claim 18 (depends on 1)

The computer program predictor of claim 1 wherein the search component comprises a cache and is configured to cache intermediate results of the search and to reuse the cached intermediate results.

### Claim 19

A computer-implemented method comprising:
accessing, using a processor, a program attribute predictor; and
searching a space of possible programs, to predict a program which, given an input data instance and an output data instance, will compute the output data instance from the input data instance, the search being guided by attributes predicted by the program attribute predictor given the input data instance and the output data instance,
wherein the predicted program comprises a spreadsheet formula of a spreadsheet application, and wherein the input data instance and the output data instance are extracted from the spreadsheet application.

### Claim 20

A computer implemented method comprising:
accessing, using a processor, a program attribute predictor; and
searching a space of possible programs, to predict a program which, given an input data instance and an output data instance, will compute the output data instance from the input data instance, the search being guided by attributes predicted by the program attribute predictor given the input data instance and the output data instance.
