US 12,079,602 B2
Systems and methods for a conversational framework of program synthesis
Hiroaki Hayashi, Palo Alto, CA (US); Yingbo Zhou, Palo Alto, CA (US); Bo Pang, Los Angeles, CA (US); and Erik Nijkamp, Los Angeles, CA (US)
Assigned to Salesforce, Inc., San Francisco, CA (US)
Filed by Salesforce, Inc., San Francisco, CA (US)
Filed on Aug. 17, 2022, as Appl. No. 17/889,998.
Claims priority of provisional application 63/317,244, filed on Mar. 7, 2022.
Prior Publication US 2023/0280985 A1, Sep. 7, 2023
Int. Cl. G06F 8/35 (2018.01); G06F 8/10 (2018.01); G06N 20/00 (2019.01)
CPC G06F 8/35 (2013.01) [G06F 8/10 (2013.01); G06N 20/00 (2019.01)] 20 Claims
OG exemplary drawing
 
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.