CPC G06F 8/35 (2013.01) [G06F 8/10 (2013.01); G06N 20/00 (2019.01)] | 20 Claims |
1. A system for code program synthesis for a target problem, the system comprising:
a communication interface configured to receive a specification in natural language relating to a task problem,
wherein the specification is decomposed into a plurality of prompts;
a memory storing one or more language models and a plurality of processor-executable instructions; and
one or more hardware processors reading the plurality of processor-executable instructions to perform operations comprising:
obtaining, at a first generation timestep, a first prompt from the plurality of prompts;
generating, by the one or more language models, a first subprogram in response to the first prompt at the first generation timestep;
obtaining, at a second generation timestep, a second prompt from the plurality of prompts;
generating, by the one or more language models, a second subprogram in response to the second prompt and based on the first subprogram and the first prompt, at the second generation timestep;
concatenating generated subprograms from a series of generation timesteps corresponding to the plurality of prompts into an output code program; and
generating a result for the task problem by executing the output code program.
|