Program code evaluation using simulated users
Simulated users generated from real and synthesized data evaluate program code interactions, addressing the challenges of expertise and data requirements in code generation, improving performance and user satisfaction.
Patent Information
- Application Number
- US18/898343
- Authority / Receiving Office
- US · United States
- Patent Type
- Patents(United States)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2026-12-01
- Estimated Expiration
- 2045-05-07
AI Technical Summary
Generating program codes, such as machine learning models, is challenging due to the need for coding expertise and sufficient training data, leading to difficulties in evaluating their performance effectively.
The use of simulated users generated from real and/or synthesized user data to evaluate program code interactions, allowing for performance assessment and updates based on user interactions.
This approach reduces privacy concerns, enables targeted use case testing, and improves program code performance by simulating user interactions before deployment, thereby enhancing user satisfaction and resource efficiency.
Smart Images

Figure US12817612-D00000_ABST
Abstract
Description
BACKGROUND
[0001] Program codes can be used to perform various tasks. For instance, a program code can be implemented as a machine learning model trained to perform classification tasks, segmentation tasks, image generation tasks, etc. Generating program codes, such as machine learning models, may be difficult due to the needed coding expertise and / or the amount of needed training data (e.g., in the case of machine learning models). Accordingly, improvements are needed for the generation of program codes.BRIEF DESCRIPTION OF THE DRAWINGS
[0002] Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which:
[0003] FIG. 1 illustrates an example of a computing environment for program code evaluation using simulated users, according to an embodiment of the present disclosure;
[0004] FIG. 2 illustrates an example of generating embeddings for user data, according to some embodiments of the present disclosure;
[0005] FIG. 3 illustrates an example of generating embedding groups for user data, according to some embodiments of the present disclosure;
[0006] FIG. 4 illustrates an example of searching embedding groups using a goal, according to some embodiments of the present disclosure;
[0007] FIG. 5 illustrates an example of receiving embeddings based on a goal of interactions, according to some embodiments of the present disclosure;
[0008] FIG. 6 illustrates an example architecture and flow for simulating interactions for evaluating a program code, according to some embodiments of the present disclosure;
[0009] FIG. 7 illustrates an example flow of evaluating program code for a simulated user, according to an embodiment of the present disclosure;
[0010] FIG. 8 illustrates an example flow of evaluating program code for multiple simulated users, according to an embodiment of the present disclosure; and
[0011] FIG. 9 illustrates aspects of an example environment for implementing aspects in accordance with various embodiments.DETAILED DESCRIPTION
[0012] In the following description, various embodiments will be described. For purposes of explanation, specific configurations and details are set forth in order to provide a thorough understanding of the embodiments. However, it will also be apparent to one skilled in the art that the embodiments may be practiced without the specific details. Furthermore, well-known features may be omitted or simplified in order not to obscure the embodiment being described.
[0013] Embodiments of the present disclosure are directed to, among other things, program code evaluation using simulated users. Simulated users may be considered virtual users for which a real user may not exist. A computer system can generate simulated users based on real and / or synthesized user data (e.g., demographic data, behavior data, etc.). Given a simulated user (which can be modeled as a set of data with particular properties), the computer system can simulate interactions of the simulated user with a program code (e.g., a software application or an artificial intelligence model). The computer system can then evaluate the interactions to determine how the program code performs for the simulated user. In addition, the computer system can simulate interactions of other simulated users with the program code and evaluate how the program code performs for each of the simulated users. Based on these performances, the computer system can determine an overall performance of the program code for simulated users and whether any updates are to be made to the program code based on the overall performance.
[0014] To illustrate, consider an example of a software application that is being developed in association with an online marketplace that offers items to users. In order to evaluate a performance of the software application, a computer system can generate a simulated user corresponding to a customer that is a woman in her thirties that owns a dog. The simulated user can be modeled here with a set of data (e.g., having a particular data structure) with properties set to “woman,”“thirties,”“own dog.” The computer system can retrieve user data for the simulated user to use as long-term memory for informing requests to the software application. Based on such data, the computer system simulates interactions between the simulated user and the software application with the goal of finding pet treats in the online marketplace for the simulated user. A simulated interaction can include a request of the simulated user to the software application and response of the software application to the request. The simulated interactions can relate to each other, where for example a current simulated interaction can depend on a previous simulated interaction such that a particular journey or sequence of simulated interactions is used. For instance, the long-term memory can indicate that the simulated user owns a dog. So, the computer system can generate a first request to the software application from the simulated user of “show me dog treats I can buy.” Based on the request, the software application can respond with a search result that includes a box of Milkbone treats and a box of dehydrated beef liver treats. Based on the long-term information indicating a previous transaction of the simulated user for bacon-flavored treats, the computer system generates another request for the software application in response to the first search result. The second request is “show me bacon-flavored treats.” Based on the second request, the software application can respond with a search result indicating that “there are no bacon-flavored treats. Goodbye.” Upon detecting the word “goodbye,” the computer system can generate an input to an artificial intelligence model based on the goal, the requests, and the responses. The artificial intelligence model can generate an output indicating that the software application performs poorly for simulated users looking for bacon-flavored dog treats. So, the computer system may update the software application with knowledge about bacon-flavored treats that are available at the online marketplace to accurately respond to similar future requests.
[0015] Embodiments of the present disclosure provide several technical advantages over conventional program code development techniques. For instance, rather than the computer system needing to collect sufficient user data for generating simulated users, the computer system of the present disclosure is capable of synthesizing user data to use for simulated users. As such, privacy concerns associated with using data from real users may be reduced. In addition, using simulated users can test the performance of program code for targeted use cases, which may not be possible using conventional techniques of using static datasets and manual evaluation. Moreover, the embodiments provide a method for evaluating the program code prior to the program code being used in production. As such, resources involved in improving the program code once it's in production may be reduced and overall user satisfaction can be improved. Furthermore, because simulated users can represent user data that is not otherwise available, and because the performance of the program is evaluated using such data, the program code itself can be improved.
[0016] FIG. 1 illustrates an example of a computing environment for program code evaluation using simulated users, according to an embodiment of the present disclosure. As illustrated in FIG. 1, a computer system 110 (e.g., a set of servers, possibly available in one or more datacenters and hosting one or more cloud-based services) can include simulated users 112 that are generated from user data 114. The user data 114 may include demographic information data (e.g., age, gender, occupation, geographic location, etc.), behavior information data (e.g., transaction history, sensor data, device information, social network information, browsing history, etc.), and trait information data (e.g., interests and hobbies, values and beliefs, etc.). The computer system 110 may receive the user data 114 from actual user account information of users, or the computer system 110 may use an artificial intelligence model to simulate the user data 114 from prompts (e.g., “create synthetic user data about a woman in her fifties that is interested in fitness”). Each of the simulated users 112 can have a different combination of demographic information data, behavior information data, and trait information data.
[0017] In an example, the computer system 110 can simulate interactions between the simulated users 112 and a program code 116 under evaluation. The program code 116 can be hosted by a computer system 115, which may be a different set of servers than the computer system 110. Alternatively, the program code 116 may be executed on the computer system 110. The program code 116 can be a generative artificial intelligence model or software application. The simulated interactions 118 for each simulated user can be simulated independently of the simulated interactions 118 for other simulated users. For a given simulated user, the simulated interactions can be associated with a goal (e.g., “show me athletic shoes”) and include a request of the simulated user to the program code 116 and a response of the program code 116 to the request. The computer system 110 can generate the request based on the goal, the user data 114 for the simulated user, and possibly a previous response of the program code 116 to a previous request. The computer system 110 may continue the simulated interactions 118 until determining that the response from the program code 116 indicates an ending of the interactions (e.g., the response says “goodbye”).
[0018] Upon determining the ending of the interactions for a simulated user, the computer system 110 can generate an input to a user-level evaluation model 120. The input may be generated in response to a trigger such as a simulated user having changed, an ended connection, a change to the goal, a number of evaluations finishing for a predetermined number of simulated users, etc. The user-level evaluation model 120 can be an artificial intelligence model trained to evaluate a performance of the program code 116 for a given goal and simulated user. So, the input can be generated based on the simulated interactions 118 (e.g., the request and the response) and the goal. The input corresponds to a request to evaluate the performance of the program code 116 for the simulated user. The user-level evaluation model 120 can produce an output based on the input that indicates the performance of the program code 116 for the simulated user. So, the user-level evaluation model 120 can be used to determine a performance for the program code 116 for each of the simulated users 112.
[0019] In an example, the performances determined by the user-level evaluation model 120 can be used to determine an overall performance of the program code 116 for the simulated users 112. For example, the computer system 110 can generate, for the simulated users 112, an input to a summarization model 122 of the computer system 110. The summarization model 122 can be an artificial intelligence model trained to determine a performance of program code for a group of simulated users. The input can be based on the performances determined by the user-level evaluation model 120. Upon receiving the input, the summarization model 122 can generate an output that indicates the performance of the program code 116 for the simulated users 112. For instance, the output may indicate that the program code 116 performs well for women in their fifties looking for athletic shoes, but not as well for men in their twenties looking for athletic shoes. So, the output may indicate a distribution of a likelihood of the simulated users 112 to use the program code 116 for a goal associated with the simulated interactions 118. In addition, the output may be a summary of the simulated interactions 118, from which the computer system 110 can determine the overall performance of the program code 116. The output may be an evaluation 123 of the program code 116 that can be sent to a user device 105 at which the program code 116 is created and updated.
[0020] In an example, the computer system 110 may cause an update 125 to the program code 116 based on the overall performance. For instance, the computer system 110 may cause the update 125 based on the evaluation 123. The overall performance may indicate a distribution at a population level (e.g., Gen Z likes the response, whereas Gen X do not think the response is helpful), which can assist with determining how to update the program code 116. For instance, upon determining that the program code 116 has poor performance for men in their twenties looking for athletic shoes, the computer system 110 can fine-tune the program code 116 using training data related to men in their twenties looking for athletic shoes to improve the performance. In some instances, the computer system 110 may determine that the performance is poor because there is a lack of items (e.g., athletic shoes) related to the goal for a given group of simulated users (e.g., men in their twenties). So, the computer system 110 may generate a recommendation that additional items of this type be made available to improve the performance of the program code 116 for that group of simulated users.
[0021] FIG. 2 illustrates an example of generating embeddings 230 for user data 214, according to some embodiments of the present disclosure. The user data 214 can include one or more contextual categories of data. For example, FIG. 2 illustrates contextual categories of demographic information data 202, behavior information data 204, and trait information data 206. In addition, each of the contextual categories can include various data types. For instance, the contextual category of the demographic information data 202 includes exemplary data types of age, gender, marital status, education level, income, occupation, home address, device geolocation, and place of birth. The contextual category of the behavior information data 204 includes data types of transaction information (e.g., transaction methods, transaction dates and times, transaction amounts, and frequency of transactions), feedback information (e.g., customer service interactions, feedback and reviews, and survey responses), sensor data (e.g., emotion, heartbeat, blood pressure, and physical activities), user-provided data (e.g., account creation details, profile information, and preferences and settings), device usage (e.g., device information, application usage data, and Internet service provider information), social data (e.g., connections and relationships and shared content and posts), and interactions (e.g., transaction history, website browsing behavior, product usage data, social media interactions, email engagement, and historical conversation data). The contextual category of the trait information data 206 includes data types of interests and hobbies, lifestyle preferences, attitudes and opinions, and values and beliefs.
[0022] In an example, the user data 214 may either be received for real users, or synthesized by a machine-learning model. For instance, a computer system (e.g., computer system 110 in FIG. 1) may receive the user data 214 from users based on collected survey information, sensor information, or historical user interaction information. In this case, the computer system may access user accounts to receive the user data 214. Simulated users for interacting with and evaluating program code (e.g., program code 116 in FIG. 1) can then be generated based on the user data 214. As another example, if the computer system lacks sufficient real user data to generate simulated users, the computer system can generate an input to a machine learning model (e.g., a large language model) indicating a request to synthesize user data for various simulated users. The machine learning model can be an any2any model that is configured to receive an input as any of a set of input types (e.g., text, video, audio, image, etc.) and generate an output as any of the set of types. That is, the input may be an image and the output can be text, or any other combination of the types. The machine learning model can be trained to generate user data based on requests. So, the computer system can receive an output of the machine learning model that indicates the user data 214.
[0023] In an example, the data types of the user data 214, in its raw form, may be in one or more content modalities. For instance, the user data 214 may be in a text data modality, an image data modality, an audio data modality, a video data modality, or an interleaved data modality. The interleaved data modality can include a combination of at least two content modalities for a given data type. For instance, interest and hobby information may include text and an image, so the interest and hobby data type can be an interleaved data modality. In any case, the user data 214 can be stored organized according to the content modalities.
[0024] In an example, the computer system can generate embeddings 230 based on the user data 214. For instance, the computer system may generate an embedding for the user data associated with each data type of the user data 214. In addition, the computer system may generate an embedding for the user data associated with a combination of two or more data types or contextual categories. So, for a given simulated user, the computer system can generate a set of embeddings based on the user data for the simulated user.
[0025] To generate the embeddings 230, the computer system can use encoders associated with the content modalities. For instance, for a data type of user data that is a singular modality (e.g., the textual data modality, the image data modality, the audio data modality, or the video data modality), the computer system can apply a singular modality encoder 224 that corresponds to the content modality. That is, for textual data, the computer system can apply a text encoder (e.g., Titan Text or Lambda), for image data, the computer system can apply an image encoder (e.g., ResNet50 or Inceptionv3), for video data, the computer system can apply a video encoder (e.g., uniformly sample key frames, extract frame level features, and encode each frame based on the features), and for audio data, the computer system can apply an audio encoder (e.g., a local prosodic audio feature extractor and a transformer encoder). The output of the singular modality encoder 224 is the embeddings 230. For a data type of user data that is an interleaved data modality, the computer system can apply an any2text decoder 226 to each type of data modality to generate text encodings for each portion of the user data. The computer system can then apply a text encoder 228 to the text encodings to generate an embedding for the user data associated with the data type.
[0026] FIG. 3 illustrates an example of generating embedding groups 334 for user data 314, according to some embodiments of the present disclosure. In an example, an encoder 324, which is an example of the singular modality encoder 224 or the any2text decoder 226 and the text encoder 228 in FIG. 2, can receive user data 314 associated with a simulated user. The encoder 324 can generate embeddings 330 based on the user data 314, as described herein above in FIG. 2. So, for a given simulated user, the user data 314 includes K contextual categories (e.g., demographic information data, behavior interaction data, and trait interaction data), where each contextual category includes S data types (e.g., age, gender, transaction amounts, survey responses, etc.). Upon the encoder 324 converting the user data 314 into the embeddings 330, there can be K*S embeddings.
[0027] In an example, a clustering engine 332 can receive the embeddings 330 and generate embedding groups 334. The clustering engine 332 may be part of the computer system 110 in FIG. 1. The clustering engine 332 can use K-nearest neighbor to cluster the embeddings 330 into the embedding groups 334 within an embedding space, where each embedding group includes a portion of the embeddings 330 for the simulated user. Embeddings that are in proximity to each other (e.g., belong to the same embedding group or a neighboring embedding group) in the embedding space can be considered to be more related to each other than embeddings that are further from each other in the embedding space. The embeddings 330 can be organized by inverted file index.
[0028] The embeddings 330 and the embedding groups 334 may be generated and stored by an information model. At a time of evaluating a program code (e.g., program code 116 in FIG. 1) by simulating interactions between the simulated user and the program code, the information model can retrieve embeddings for the simulated user that are relevant to a goal of the interactions. The retrieved embeddings can be used to inform the interactions, as further described herein below.
[0029] FIG. 4 illustrates an example of searching embedding groups using a goal, according to some embodiments of the present disclosure. During evaluation of a program code (e.g., program code 116 in FIG. 1), a computer system (e.g., computer system 110 in FIG. 1) simulates interactions of a simulated user with the program code. The computer system includes embeddings of user data for the simulated user that are clustered into embedding groups 434, including embedding groups 434A-434C.
[0030] In an example, the interactions between the simulated user and the program code are associated with a goal for the program code. The computer system can convert the goal into a goal embedding 436. For instance, the goal may be provided as text, and the computer system can use a text encoder to generate the goal embedding 436. The computer system can determine an embedding group that the goal embedding 436 is associated with. For instance, the computer system can determine that the goal embedding 436 is associated with the embedding group 434B.
[0031] Once the computer system determines that the embedding group 434B is associated with the goal embedding 436, the computer system can retrieve embeddings of the simulated user for use in the interactions based on the embedding group 434B. For instance, the computer system can define a search space of a number of the embedding groups that are to be searched within the embedding space. The search space is defined based on the embedding group 434B. So, if the search space is one embedding group, as illustrated on the left, then the search space can only be the embedding group 434B. But, if the search space is eight embedding groups, then the search space can be the embedding group 434B and the seven closest embedding groups to the embedding group 434B, as illustrated on the right. The goal embedding 436 can be compared to the centroids of the embedding groups 434 to determine which embedding groups are to be included in the search space. The computer system then determines a subset of the embeddings within the search space that are nearest to the goal embedding 436 and uses the subset of the embeddings as long-term memory for the simulated interactions. The long-term memory relates to historical actions of the simulated user (e.g., behavior and trait information) that may impact how the simulated user interacts with the program code.
[0032] FIG. 5 illustrates an example of receiving embeddings based on a goal of interactions, according to some embodiments of the present disclosure. When user data 514 is received for a simulated user, the user data 514 can be received in a raw modality format. This means that user data may be received in text formats, video formats, image formats, audio formats, and interleaved formats (e.g., text format and image format). An encoder 524, which is an example of the singular modality encoder 224 or the any2text decoder 226 and the text encoder 228 in FIG. 2, can receive user data 514 associated with a simulated user. The encoder 524 can generate embeddings based on the user data 514, as described herein above in FIG. 2.
[0033] In an example, the embeddings can be stored in a vector database 540 as key-value pairs. The key can be the embedding and the value can be the corresponding user data in its raw modality format. When a search is performed using a goal 535 to determine which of the embeddings to use to inform interactions between the simulated user and a program code, the goal 535 can similarly be converted into a goal embedding 536 using the encoder 524. The embeddings are clustered and searched, as described in FIG. 4. Upon determining the embeddings that are to be retrieved for use as long-term memory for the interactions, the computer system can retrieve the corresponding user data as the raw data modalities from the vector database 540. So, rather than returning the embeddings, the search can return an output 542 as one or more data modalities. As an example, the goal 535 may be to find shoes, so the output 542 may be text indicating a previous transaction of Nike shoes by the simulated user and an image of an Adidas shoe that was previously obtained by the simulated user according to the user data 514.
[0034] FIG. 6 illustrates an example architecture and flow for simulating interactions for evaluating a program code, according to some embodiments of the present disclosure. In an example, a computer system (e.g., computer system 110 in FIG. 1) includes an information model 644, a simulated user 612, a program code 616, and an evaluation module 656. The computer system generates the simulated user 612 to evaluate the program code 616 by simulating interactions between the simulated user 612 and the program code 616.
[0035] In an example, the computer system simulates the interactions based on a goal 635 for the program code 616. The goal 635 may be provided by a developer of the program code 616. The goal 635 is used to retrieve the simulated user 612 that is relevant to the goal 635. To retrieve the simulated user 612, rules may be applied to demographic information data for simulated users, or an embedding-based approach may be used for behavior information data or trait information data. Multiple simulated users may be retrieved for the goal 635. Or, if no relevant simulated user is detected, the simulated users may be randomly sampled.
[0036] In an example, the computer system can use a simulation model to select one or more simulated users to simulate actions for at a particular time. Selecting the simulated users can help to simulate real-time use cases for the program code 616 since only a subset of actual users are active at any given time. The simulation model can use a time-dependent Pareto distribution to simulate real-world scenarios where different users may interact with the program code 616 at different times. For instance, some users may be more likely to interact with the program code 616 during weekdays, whereas other users may be more likely to interact with the program code 616 on weekends. The simulation model can operation in a round-by-round manner, where each round suggests a specific time in a day. During each round, the simulated users use a goal to initiate interactions and simulated users are re-drawn for each round. For simplicity, rules may be used to set α numbers, where a simulated user is considered to be more active at a particular time bucket t when α is higher. The simulation model may be expressed as:
[0037] α(t)xmα(t)xα(t)+1where xm is the minimum activity level, and α is used to control the shape of the distribution at time t.
[0038] In an example, the computer system can use an information model 644 to initialize a profile module 646 of the simulated user 612 from the demographic information data for the simulated user 612. The profile module 646 can determine a background of the simulated user 612. For instance, the profile module 646 can indicate a name, gender, age, personality, etc. of the simulated user 612. In addition, as descried herein above, the computer system can use the information model 644 to retrieve relevant raw user data for a long-term memory 648 of the simulated user 612 using the goal 635. If the total user data for the simulated user 612 is within a supported prompt size, all of the user data may be used in the long-term memory 648. The long-term memory 648 relates to a long-term simulated user behavior memory that indicates long-term conversational data, transaction history, feedback, sensor data, etc. for the simulated user 612. A short-term memory 650 of the simulated user 612 can be initialized empty. The short-term memory 650 is simulated user session-level conversational data.
[0039] In an example, the computer system initializes an interactive prompt 654 of the simulated user 612 for the program code 616 by prompting an any2any model that incorporates the goal 635 with the profile module 646, the long-term memory 648, and the short-term memory 650. That is, the interactive prompt 654 is based on historical actions of the simulated user 612, the goal 635, and possibly other requests of the simulated user 612 and corresponding responses of the program code 616. The interactive prompt 654 corresponds to a request of the simulated user 612 to the program code 616. The interactive prompt 654 may correspond to selecting a next step (e.g., chat, search, summarize, click, post review, etc.), performing a chat, performing a search, simulating a user action in natural language (e.g., “click button ABC”), posting reviews, or any other suitable interaction. The interactive prompt 654 is sent to the program code 616 as an application programming interface call. The program code 616 generates a response to the interaction. The interactive prompt 654 and corresponding response for the interaction are sent to the short-term memory 650. If the short-term memory token length exceeds a predefined token size, the oldest interaction request and response are sent to the long-term memory 648. In addition, the latest interaction is used as an updated query to update the embeddings that are included in the long-term memory 648 for the simulated user 612.
[0040] In an example, the simulated user 612 determines a reaction 652 based on the interaction. The reaction 652 may involve generating feelings about the response of the program code 616 or ending the conversation. The simulated user 612 may determine to end the conversation upon determining an ending to the interaction indicated in the response. For instance, if the response says “goodbye”, then the simulated user 612 may determine the ending of the interaction. If the reaction 652 involves generating feelings, then the process of initializing an interactive prompt, sending the interactive prompt to the program code 616, receiving a response, updating the short-term memory 650 and the long-term memory 648, and determining the reaction 652 can be repeated until the ending of the interaction is determined.
[0041] In an example, when the ending is detected, the computer system can store the short-term memory 650 in the information model 644 with corresponding timestamps. The computer system can then call a user-level evaluation model 620 of an evaluation module 656. The user-level evaluation model 620 receives an input based on the requests of the simulated user 612, the responses of the program code 616, and the goal 635 for the interactions. The user-level evaluation model 620 outputs an indication of a performance of the program code 616 for the simulated user 612. The output may be a summary of a profile of the simulated user 612, a summary of the conversation between the simulated user 612 and the program code 616, a sentiment detection, or a judgement on user predefined metric guidance (e.g., helpfulness) of the program code 616.
[0042] The computer system can generate multiple simulated users and simulate interactions for each of the simulated users with the program code 616. For each simulated user, the user-level evaluation model 620 can determine a performance of the program code 616 for the corresponding simulated user. The computer system can generate an input to a summarization model 622 of the evaluation module 656 based on the performances for each simulated user. The summarization model 622 then outputs an indication of a performance of the program code 616 for the simulated users. The output may be a summary of high-level profile information of the simulated users, a high-level user-program code preference report, a suggestion for a marketing plan, or a suggestion for program code improvement. Based on the performance, the computer system may update the program code 616.
[0043] Storage and / or use of data related to a particular person or device may be controlled by a user using privacy controls associated with a device and / or a companion application associated with the device. Accordingly, users may opt out of storage of data and / or may select particular types of data that may be stored while preventing aggregation and storage of other types of data. Additionally, aggregation, storage, and use of information, as described herein, may be compliant with privacy controls, even if not technically subject to them, to bolster user trust. For example, data described herein may be treated as if it fell under acts and regulations, such as the Health Insurance Portability and Accountability Act (HIPAA) and the General Data Protection Regulation (GDPR), even if it does not actually fall under these acts and regulations.
[0044] FIGS. 7-8 illustrate example flows for evaluating program code using simulated users. Instructions for performing the operations can be stored as computer-readable instructions on one or more non-transitory computer-readable media of a computer system (e.g., computer system 110 in FIG. 1). As stored, the instructions represent programmable modules that include code executable by one or more processors of the computer system. The execution of such instructions causes the computer system to perform the specific operations shown in the corresponding figure and described herein. Each programmable module in combination with the respective processor(s) represents a means for performing a respective operation(s). While the operations are illustrated in a particular order, it should be understood that no particular order is necessary and that one or more operations may be omitted, skipped, and / or reordered.
[0045] FIG. 7 illustrates an example flow of evaluating program code for a simulated user, according to an embodiment of the present disclosure. In an example, the flow includes operation 702, where the computer system generates a simulated user. The simulated user can be generated based on user data indicating demographic information data, behavior information data, and trait information data. The user data may be received based user data associated with one or more real users or may be synthesized using a machine learning model.
[0046] In an example, the flow includes operation 704, where the computer system simulates interactions between the simulated user and a program code under evaluation. The program code corresponds to a software application or an artificial intelligence model. The interactions include a request of the simulated user to the program code and a response of the program code to the request.
[0047] In an example, the flow includes operation 706, where the computer system generates an input to an artificial intelligence model based on the interactions. The input corresponds to a request to evaluate a performance of the program code based on the interactions. The input may additionally be generated based on interactions of other simulated users with the program code.
[0048] In an example, the flow includes operation 708, where the computer system determines an output of the artificial intelligence model based on the input. The output can indicate the performance of the program code. The performance may be for the simulated user or for multiple simulated users.
[0049] In an example, the flow includes operation 710, where the computer system causes an update to the program code. The update may involve fine-tuning the program code to improve the performance of the program code for the simulated user(s).
[0050] FIG. 8 illustrates an example flow of evaluating program code for multiple simulated users, according to an embodiment of the present disclosure. In an example, the flow includes operation 802, where the computer system receives user data. The user data includes demographic information data, behavior information data, and trait information data.
[0051] In an example, the flow includes operation 804, where the computer system generates simulated users based on the user data. The simulated users have differing combinations of the demographic information data, the behavior information data, and the trait information data. Each of the simulated users may be associated with varying activity levels at different times of day.
[0052] In an example, the flow includes operation 806, where the computer system simulates interactions between the simulated users and a program code under evaluation. The program code corresponds to a software application or an artificial intelligence model. The interactions are associated with a goal and include a request of a first simulated user to the program code and a response of the program code to the request.
[0053] In an example, the flow includes operation 808, where the computer system generates a first input to an artificial intelligence model. The input is generated based on the request and the response. The input corresponds to a request to evaluate a performance of the program code for the first simulated user based on the interactions and the goal.
[0054] In an example, the flow includes operation 810, where the computer system determines a first output of the artificial intelligence model based on the first input. The first output indicates a performance of the program code for the first simulated user.
[0055] In an example, the flow includes operation 812, where the computer system generates a second input to another artificial intelligence model based on the first output. The second input is generated based on the performance of the program code for the first simulated users and performances of the program code for other simulated users.
[0056] In an example, the flow includes operation 814, where the computer system determines a second output of the other artificial intelligence model based on the second input. The second output indicates a second performance of the program code for the simulated users.
[0057] In an example, the flow includes operation 816, where the computer system causes an update to the program code. The update is based on the second performance. The update may involve fine-tuning the program code to improve the performance of the program code for the simulated users.
[0058] FIG. 9 illustrates aspects of an example environment 900 for implementing aspects in accordance with various embodiments. As will be appreciated, although a Web-based environment is used for purposes of explanation, different environments may be used, as appropriate, to implement various embodiments. The environment includes an electronic client device 902, which can include any appropriate device operable to send and receive requests, messages, or information over an appropriate network 904 and convey information back to a user of the device. Examples of such client devices include personal computers, cell phones, handheld messaging devices, laptop computers, set-top boxes, personal data assistants, electronic book readers, and the like. The network can include any appropriate network, including an intranet, the Internet, a cellular network, a local area network, or any other such network or combination thereof. Components used for such a system can depend at least in part upon the type of network and / or environment selected. Protocols and components for communicating via such a network are well known and will not be discussed herein in detail. Communication over the network can be enabled by wired or wireless connections and combinations thereof. In this example, the network includes the Internet, as the environment includes a Web server 906 for receiving requests and serving content in response thereto, although for other networks an alternative device serving a similar purpose could be used as would be apparent to one of ordinary skill in the art.
[0059] The illustrative environment includes at least one application server 908 (e.g., an example of the computer system 110 of FIG. 1) and a data store 910. It should be understood that there can be several application servers, layers, or other elements, processes, or components, which may be chained or otherwise configured, which can interact to perform tasks such as obtaining data from an appropriate data store. As used herein the term “data store” refers to any device or combination of devices capable of storing, accessing, and retrieving data, which may include any combination and number of data servers, databases, data storage devices, and data storage media, in any standard, distributed, or clustered environment. The application server can include any appropriate hardware and software for integrating with the data store as needed to execute aspects of one or more applications for the client device, handling a majority of the data access and business logic for an application. The application server provides access control services in cooperation with the data store and is able to generate content such as text, graphics, audio, and / or video to be transferred to the user, which may be served to the user by the Web server in the form of HyperText Markup Language (“HTML”), Extensible Markup Language (“XML”), or another appropriate structured language in this example. The handling of all requests and responses, as well as the delivery of content between the client device 902 and the application server 908, can be handled by the Web server. It should be understood that the Web and application servers are not required and are merely example components, as structured code discussed herein can be executed on any appropriate device or host machine as discussed elsewhere herein.
[0060] The data store 910 can include several separate data tables, databases or other data storage mechanisms and media for storing data relating to a particular aspect. For example, the data store illustrated includes mechanisms for storing production data 912 and user information 916, which can be used to serve content for the production side. The data store also is shown to include a mechanism for storing log data 914, which can be used for reporting, analysis, or other such purposes. It should be understood that there can be many other aspects that may need to be stored in the data store, such as for page image information and to access right information, which can be stored in any of the above listed mechanisms as appropriate or in additional mechanisms in the data store 910. The data store 910 is operable, through logic associated therewith, to receive instructions from the application server 908 and obtain, update or otherwise process data in response thereto. In one example, a user might submit a search request for a certain type of item. In this case, the data store might access the user information to verify the identity of the user and can access the catalog detail information to obtain information about items of that type. The information then can be returned to the user, such as in a results listing on a Web page that the user is able to view via a browser on the user device 902. Information for a particular item of interest can be viewed in a dedicated page or window of the browser.
[0061] Each server typically will include an operating system that provides executable program instructions for the general administration and operation of that server and typically will include a computer-readable storage medium (e.g., a hard disk, random access memory, read only memory, etc.) storing instructions that, when executed by a processor of the server, allow the server to perform its intended functions. Suitable implementations for the operating system and general functionality of the servers are known or commercially available and are readily implemented by persons having ordinary skill in the art, particularly in light of the disclosure herein.
[0062] The environment in one embodiment is a distributed computing environment utilizing several computer systems and components that are interconnected via communication links, using one or more computer networks or direct connections. However, it will be appreciated by those of ordinary skill in the art that such a system could operate equally well in a system having fewer or a greater number of components than are illustrated in FIG. 9. Thus, the depiction of the system 900 in FIG. 9 should be taken as being illustrative in nature and not limiting to the scope of the disclosure.
[0063] The various embodiments further can be implemented in a wide variety of operating environments, which in some cases can include one or more user computers, computing devices or processing devices which can be used to operate any of a number of applications. User or client devices can include any of a number of general purpose personal computers, such as desktop or laptop computers running a standard operating system, as well as cellular, wireless, and handheld devices running mobile software and capable of supporting a number of networking and messaging protocols. Such a system also can include a number of workstations running any of a variety of commercially-available operating systems and other known applications for purposes such as development and database management. These devices also can include other electronic devices, such as dummy terminals, thin-clients, gaming systems, and other devices capable of communicating via a network.
[0064] Most embodiments utilize at least one network that would be familiar to those skilled in the art for supporting communications using any of a variety of commercially-available protocols, such as Transmission Control Protocol / Internet Protocol (“TCP / IP”), Open System Interconnection (“OSI”), File Transfer Protocol (“FTP”), Universal Plug and Play (“UpnP”), Network File System (“NFS”), Common Internet File System (“CIFS”), and AppleTalk. The network can be, for example, a local area network, a wide-area network, a virtual private network, the Internet, an intranet, an extranet, a public switched telephone network, an infrared network, a wireless network, and any combination thereof.
[0065] In embodiments utilizing a Web server, the Web server can run any of a variety of server or mid-tier applications, including Hypertext Transfer Protocol (“HTTP”) servers, FTP servers, Common Gateway Interface (“CGI”) servers, data servers, Java servers, and business application servers. The server(s) also may be capable of executing programs or scripts in response to requests from user devices, such as by executing one or more Web applications that may be implemented as one or more scripts or programs written in any programming language, such as Java®, C, C#, or C++, or any scripting language, such as Perl, Python, or TCL, as well as combinations thereof. The server(s) may also include database servers, including without limitation those commercially available from Oracle®, Microsoft®, Sybase®, and IBM®.
[0066] The environment can include a variety of data stores and other memory and storage media as discussed above. These can reside in a variety of locations, such as on a storage medium local to (and / or resident in) one or more of the computers or remote from any or all of the computers across the network. In a particular set of embodiments, the information may reside in a storage-area network (“SAN”) familiar to those skilled in the art. Similarly, any necessary files for performing the functions attributed to the computers, servers, or other network devices may be stored locally and / or remotely, as appropriate. Where a system includes computerized devices, each such device can include hardware elements that may be electrically coupled via a bus, the elements including, for example, at least one central processing unit (“CPU”), at least one input device (e.g., a mouse, keyboard, controller, touch screen, or keypad), and at least one output device (e.g., a display device, printer, or speaker). Such a system may also include one or more storage devices, such as disk drives, optical storage devices, and solid-state storage devices such as random access memory (“RAM”) or read-only memory (“ROM”), as well as removable media devices, memory cards, flash cards, etc.
[0067] Such devices also can include a computer-readable storage media reader, a communications device (e.g., a modem, a network card (wireless or wired)), an infrared communication device, etc.), and working memory as described above. The computer-readable storage media reader can be connected with, or configured to receive, a computer-readable storage medium, representing remote, local, fixed, and / or removable storage devices as well as storage media for temporarily and / or more permanently containing, storing, transmitting, and retrieving computer-readable information. The system and various devices also typically will include a number of software applications, modules, services, or other elements located within at least one working memory device, including an operating system and application programs, such as a client application or Web browser. It should be appreciated that alternate embodiments may have numerous variations from that described above. For example, customized hardware might also be used and / or particular elements might be implemented in hardware, software (including portable software, such as applets), or both. Further, connection to other computing devices such as network input / output devices may be employed.
[0068] Storage media computer readable media for containing code, or portions of code, can include any appropriate media known or used in the art, including storage media and communication media, such as but not limited to volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage and / or transmission of information such as computer readable instructions, data structures, program modules, or other data, including RAM, ROM, Electrically Erasable Programmable Read-Only Memory (“EEPROM”), flash memory or other memory technology, Compact Disc Read-Only Memory (“CD-ROM”), digital versatile disk (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage, or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a system device. Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways and / or methods to implement the various embodiments.
[0069] The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that various modifications and changes may be made thereunto without departing from the broader spirit and scope of the disclosure as set forth in the claims.
[0070] Other variations are within the spirit of the present disclosure. Thus, while the disclosed techniques are susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in the drawings and have been described above in detail. It should be understood, however, that there is no intention to limit the disclosure to the specific form or forms disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions, and equivalents falling within the spirit and scope of the disclosure, as defined in the appended claims.
[0071] The use of the terms “a” and “an” and “the” and similar referents in the context of describing the disclosed embodiments (especially in the context of the following claims) are to be construed to cover both the singular and the plural, unless otherwise indicated herein or clearly contradicted by context. The terms “comprising,”“having,”“including,” and “containing” are to be construed as open-ended terms (i.e., meaning “including, but not limited to,”) unless otherwise noted. The term “connected” is to be construed as partly or wholly contained within, attached to, or joined together, even if there is something intervening. Recitation of ranges of values herein are merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein and each separate value is incorporated into the specification as if it were individually recited herein. All methods described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The use of any and all examples, or exemplary language (e.g., “such as”) provided herein, is intended merely to better illuminate embodiments of the disclosure and does not pose a limitation on the scope of the disclosure unless otherwise claimed. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the disclosure.
[0072] Disjunctive language such as the phrase “at least one of X, Y, or Z,” unless specifically stated otherwise, is intended to be understood within the context as used in general to present that an item, term, etc., may be either X, Y, or Z, or any combination thereof (e.g., X, Y, and / or Z). Thus, such disjunctive language is not generally intended to, and should not, imply that certain embodiments require at least one of X, at least one of Y, or at least one of Z to each be present.
[0073] Preferred embodiments of this disclosure are described herein, including the best mode known to the inventors for carrying out the disclosure. Variations of those preferred embodiments may become apparent to those of ordinary skill in the art upon reading the foregoing description. The inventors expect skilled artisans to employ such variations as appropriate and the inventors intend for the disclosure to be practiced otherwise than as specifically described herein. Accordingly, this disclosure includes all modifications and equivalents of the subject matter recited in the claims appended hereto as permitted by applicable law. Moreover, any combination of the above-described elements in all possible variations thereof is encompassed by the disclosure unless otherwise indicated herein or otherwise clearly contradicted by context.
[0074] All references, including publications, patent applications, and patents, cited herein are hereby incorporated by reference to the same extent as if each reference were individually and specifically indicated to be incorporated by reference and were set forth in its entirety herein.
Claims
1. A system comprising:one or more processors; andone or more memories storing instructions that, upon execution by the one or more processors, configure the system to:receive user data including demographic information data, behavior information data, and trait information data;generate a plurality of simulated users based at least in part on the user data, wherein the plurality of simulated users has differing combinations of the demographic information data, the behavior information data, and the trait information data;simulate interactions between the plurality of simulated users and a program code under evaluation, the program code corresponding to a software application or to a first artificial intelligence model, the interactions being associated with a goal and including a first request of a first simulated user to the program code and a response of the program code to the first request;generate a first input to a second artificial intelligence model based at least in part on the first request and the response, the first input corresponding to a second request to evaluate a first performance of the program code for the first simulated user based at least in part on the interactions and the goal;determining a first output of the second artificial intelligence model based at least in part on the first input, the first output indicating the first performance for the first simulated user;generate, for the plurality of simulated users, a second input to a third artificial intelligence model based at least in part on the first output;determine, based at least in part on the second input, a second output of the third artificial intelligence model indicating a second performance of the program code for the plurality of simulated users; andcause an update to the program code based at least in part on the second performance.
2. The system of claim 1, wherein the one or more memories store additional instructions that, upon execution by the one or more processors, configure the system to:receive the user data from a plurality of users based at least in part on collected survey information, sensor information, or historical user interaction information.
3. The system of claim 1, wherein the one or more memories store additional instructions that, upon execution by the one or more processors, configure the system to:generate a third input to a machine learning model indicating a third request to synthesize the user data for the plurality of simulated users; andreceive, based at least in part on the third input, a third output of the machine learning model indicating the user data.
4. The system of claim 1, wherein the one or more memories store additional instructions that, upon execution by the one or more processors, configure the system to:receive the user data in one or more content modalities; andstore the user data organized according to the one or more content modalities.
5. A computer-implemented method, comprising:generating a first simulated user;simulating first interactions between the first simulated user and a program code under evaluation, the program code corresponding to a software application or to a first artificial intelligence model, the first interactions including a first request of the first simulated user to the program code and a first response of the program code to the first request;generating a first input to a second artificial intelligence model based at least in part on the first interactions, the first input corresponding to a second request to evaluate a first performance of the program code based at least in part on the first interactions;determining a first output of the second artificial intelligence model based at least in part on the first input, the first output indicating the first performance; andcausing an update to the program code based at least in part on the first performance.
6. The computer-implemented method of claim 5, further comprising:generating a second simulated user;simulating second interactions between the second simulated user and the program code, the second interactions including a second request of the second simulated user to the program code and a second response of the program code to the second request;generating a second input to the second artificial intelligence model based at least in part on the second interactions, the second input corresponding to a third request to evaluate a second performance of the program code based at least in part on the second interactions;determining a second output of the second artificial intelligence model based at least in part on the second input, the second output indicating the second performance;generating, for the first simulated user and the second simulated user, a third input to a third artificial intelligence model based at least in part on the first output and the second output;determining, based at least in part on the third input, a third output of the third artificial intelligence model indicating a third performance of the program code for the first simulated user and the second simulated user; andcausing the update to the program code based at least in part on third performance.
7. The computer-implemented method of claim 5, wherein the first simulated user is associated with first user data including a set of contextual categories, and wherein the method further comprises:generating, for a data type of a first contextual category of the set of contextual categories, an embedding associated with the data type based at least in part on the first user data; andgenerating a set of embeddings associated with the first simulated user including the embedding.
8. The computer-implemented method of claim 7, further comprising:determining that a portion of the first user data that is associated with the data type is a single type of data modality; andgenerating the embedding associated with the data type by applying an encoder associated with the single type to the portion of the first user data.
9. The computer-implemented method of claim 7, further comprising:determining that a first portion of the first user data that is associated with the data type includes a first type of data modality and that a second portion of the first user data that is associated with the data type includes a second type of data modality;applying a decoder to the first portion to generate a first text encoding associated with the first portion;applying the decoder to the second portion to generate a second text encoding associated with the second portion; andgenerating the embedding associated with the data type by applying a text encoder to the first text encoding and the second text encoding.
10. The computer-implemented method of claim 7, further comprising:clustering the set of embeddings associated with the first simulated user into a set of embedding groups within an embedding space, wherein embeddings in proximity to each other in the embedding space are more related than embeddings further from each other in the embedding space.
11. The computer-implemented method of claim 10, wherein the first interactions are associated with a goal for the program code, wherein the embedding associated with the data type comprises a first embedding, and wherein the method further comprises:converting the goal into a second embedding;determining a first embedding group of the set of embedding groups associated with the second embedding;defining a search space of a number of the set of embedding groups that are to be searched within the embedding space, the search space being based at least in part on the first embedding group;receiving a subset of the set of embeddings that are nearest to the second embedding within the search space; andusing the subset of the set of embeddings as long-term memory for the first interactions.
12. The computer-implemented method of claim 11, further comprising:receiving the subset of the set of embeddings for storage as the long-term memory as one or more data modalities associated with the first user data.
13. One or more computer-readable storage media storing instructions that, upon execution by one or more processors, cause operations comprising:generating a first simulated user;simulating first interactions between the first simulated user and a program code under evaluation, the program code corresponding to a software application or to a first artificial intelligence model, the first interactions including a first request of the first simulated user to the program code and a response of the program code to the first request;generating a first input to a second artificial intelligence model based at least in part on the first interactions, the first input corresponding to a second request to evaluate a first performance of the program code based at least in part on the first interactions;determining a first output of the second artificial intelligence model based at least in part on the first input, the first output indicating the first performance; andcausing an update to the program code based at least in part on the first performance.
14. The one or more computer-readable storage media of claim 13, wherein the first interactions are associated with a goal and wherein the operations further comprise:determining user data associated with the first simulated user, the user data indicating historical actions of the first simulated user;generating a second input to the program code based at least in part on the first request, the goal, and the historical actions; andreceiving the response based at least in part on the second input.
15. The one or more computer-readable storage media of claim 14, wherein the operations further comprise:receiving a set of embeddings associated with the user data for storage as a long-term memory for a first interaction of the first interactions;receiving the response associated with the first interaction; andupdating the set of embeddings for the long-term memory based at least in part on the response.
16. The one or more computer-readable storage media of claim 13, wherein the operations further comprise:storing the first request and the response in a short-term memory for the first interactions that is usable for informing subsequent interactions between the first simulated user and the program code.
17. The one or more computer-readable storage media of claim 13, wherein the operations further comprise:determining that the response corresponds to an ending of the first interactions; andin response to determining that the response corresponds to the ending, generating the first input to the second artificial intelligence model.
18. The one or more computer-readable storage media of claim 13, wherein the operations further comprise:generating a plurality of simulated users including the first simulated user;simulating interactions between each simulated user of the plurality of simulated users and the program code under evaluation, the interactions including the first interactions;determining, based at least in part on the second artificial intelligence model, performances of the program code for each simulated user, the performances including the first performance; anddetermining, based at least in part on a third artificial intelligence model and the performances, an overall performance of the program code for the plurality of simulated users.
19. The one or more computer-readable storage media of claim 18, wherein a second output of the third artificial intelligence model indicates a distribution of a likelihood of the plurality of simulated users to use the program code for a goal associated with the interactions.
20. The one or more computer-readable storage media of claim 18, wherein a second output of the third artificial intelligence model comprises a summary of the interactions, and wherein the overall performance is determined based at least in part on the summary.
Citation Information
Patent Citations
Systems and methods for contextual machine learning prompt generation
US12340557B1
Machine learning architecture for domain-specific image scoring
US20250165995A1
