Information processing device, information processing method, and information processing program
The information processing device optimizes memory usage by determining temporary information storage based on user availability, addressing inefficiencies in machine learning models and enhancing performance during discontinuous interactions.
Patent Information
- Application Number
- PCT/JP2025/018309
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2026-11-26
AI Technical Summary
Existing machine learning models face inefficiencies in memory resource utilization due to temporary information occupying memory for extended periods during discontinuous user interactions, leading to wasted resources and decreased inference speed and accuracy.
An information processing device that determines the storage location of temporary information generated during inference processing by referring to user availability, using a storage control unit to optimize memory usage and reduce computational redundancy.
This approach effectively utilizes memory resources while maintaining user experience by strategically storing temporary information based on user availability, reducing unnecessary memory occupation and enhancing inference speed and accuracy.
Smart Images

Figure JP2025018309_26112026_PF_FP_ABST
Abstract
Description
Information processing device, information processing method, and information processing program
[0001] The present disclosure relates to an information processing device, an information processing method, and an information processing program.
[0002] Development and utilization of machine learning models such as large language models are being actively carried out (for example, Non-Patent Document 1).
[0003] "Introducing deep research", [online], [searched May 12, 2025], Internet <URL: https: / / openai.com / index / introducing-deep-research / >
[0004] An information processing device according to an aspect of the present disclosure includes an acquisition unit that acquires input data from a user, an inference execution unit that executes inference processing with reference to the input data by inputting the input data into a trained model, and a storage control unit that determines a storage destination of temporary information generated in the inference processing with reference to information regarding availability of the trained model by the user.
[0005] An information processing method according to an aspect of the present disclosure includes: an acquisition step in which one or more processors acquire input data from a user; an inference execution step of executing inference processing with reference to the input data by inputting the input data into a trained model; and a storage control step of determining a storage destination of temporary information generated in the inference processing with reference to information regarding availability of the trained model by the user.
[0006] An information processing program according to an aspect of the present disclosure is a program for causing a computer to function as the information processing device, and is a program for causing the computer to function as the acquisition unit, the inference execution unit, and the storage control unit.
[0007] This figure shows the configuration of the information processing system related to this disclosure. This figure is for explaining the processing performed by the information processing device related to this disclosure. This is a flowchart showing the processing flow by the information processing device related to this disclosure. This is a flowchart showing the processing flow by the information processing device related to this disclosure. This figure shows the configuration of the wireless communication system related to the application example in this disclosure. This is a flowchart showing the processing flow by the information processing device related to the application example in this disclosure.
[0008] <Embodiment 1> Hereinafter, an embodiment of the present disclosure will be described in detail with reference to the drawings. For ease of understanding, the background and problems of the present disclosure will be explained first, followed by a detailed explanation of the present disclosure.
[0009] <Background Technology and Challenges> The development and utilization of machine learning models, such as large-scale language models, are actively underway. Such models are usually provided in a format that allows interaction with the user. Furthermore, in order to reduce computational redundancy during the interaction, the model generates temporary information (for example, information called a KV cache) and stores it in memory, which is then referenced in subsequent interactions.
[0010] When a user engages in a continuous dialogue, the temporary information described above is effectively utilized. However, when the dialogue is discontinuous, such as when the user's next input comes after a long period of time, the unused temporary information occupies memory for extended periods, leading to wasted memory resources. On the other hand, a configuration that does not store or reference temporary information can be considered to avoid such wasted memory resources. However, in this case, the redundancy of the calculations described above increases, leading to a decrease in inference speed and accuracy, and ultimately a decline in the user experience (UX). Therefore, when using machine learning models, there is a need for a technology that can effectively utilize memory resources while suppressing a decline in the user experience.
[0011] <Overview of Information Processing Device> The information processing device 1 according to this disclosure includes: an acquisition unit 11 that acquires input data from a user; an inference execution unit 12 that performs inference processing by inputting the input data into a trained model and referring to the input data; and a storage control unit 13 that determines the storage location of temporary information generated in the inference processing by referring to information regarding the availability of the trained model to the user.
[0012] With the information processing device 1 configured as described above, the storage location of temporary information generated in the inference process using the trained model is determined by referring to information regarding the user's availability of the trained model. This allows for effective utilization of memory resources while suppressing a decline in the user experience.
[0013] <Configuration of Information Processing System 100> The configuration of the information processing system 100, including the information processing device 1 according to this disclosure, will be described below with reference to Figure 1. Figure 1 is a block diagram showing the configuration of the information processing system 100.
[0014] As shown in Figure 1, the information processing system 100 comprises an information processing device 1 and a plurality of clusters CL1, CL2, ... Here, the information processing device 1 and the plurality of clusters CL1, CL2, ... are connected to each other so as to be able to communicate via a network N. The specific configuration of the network N is not particularly limited and may be a wired connection, a wireless connection, or a combination thereof.
[0015] (Clusters CL1, CL2, ...) Clusters CL1, CL2, ... constitute the computing infrastructure of the information processing system 100. Each cluster has one or more nodes, and each node has one or more GPUs (Graphics Processing Units). As an example, cluster CL1 shown in Figure 1 has one or more racks such as rack RC1, and each rack has multiple nodes. In the example shown in Figure 1, rack RC1 has multiple nodes N11, N12, ... Also, clusters CL1 and CL2 are located in separate data centers, as an example.
[0016] Here, the term "node" refers, for example, to a physical machine (server) configured to be able to cooperate with one another, but this is not limited to this embodiment and may also include virtual machines. Furthermore, in this specification, the term "node" may also be used as a concept that encompasses base stations and other such locations in a communication network.
[0017] Furthermore, as shown in Figure 1, node N11 is equipped with a GPU (coded G11 in Figure 1), and node N12 is equipped with a GPU (coded G12 in Figure 1). Also, as shown in Figure 1, each node may be configured to also have memory other than the GPU (M11, M12, ...). Also, as shown in Figure 1, each GPU is divided into one or more instances, for example. More specifically, the GPU (G11) is divided into instances INS111 and INS112, and the GPU (G12) is divided into three instances INS121 to INS123. Each instance is allocated its own memory, cache, and computing cores, and each instance can execute processes (applications) independently of other instances. The specific configuration for dividing each GPU into one or more instances is not limited to this embodiment, but as an example, technologies such as NVIDIA®'s MIG (Multi-Instance GPU) can be used.
[0018] The assignment of processes to each GPU, or the assignment of processes to instances of each GPU, is controlled by the control unit 10, which will be described later. Furthermore, the division of each GPU into instances can also be changed by the control unit 10, which will be described later. For example, the control unit 10 can divide instance INS112 in the GPU (G11) into two instances, or merge the two divided instances.
[0019] It should be noted that in this embodiment, it is not essential for each GPU to be divided into one or more instances. Also, in the processing related to nodes N11 and N12, cluster CL1, which includes these nodes, constitutes a target data center as an example. Furthermore, in the processing related to nodes N11 and N12, cluster CL2, which does not include these nodes, constitutes a central data center as an example.
[0020] (Information Processing Device 1) The information processing device 1 loads a pre-trained model, determined as an example in response to a user request, from a model storage unit (not shown) or the like into one or more GPUs or one or more instances provided by clusters CL1, CL2, ... and executes the loaded pre-trained model. Here, the loading and execution of the pre-trained model is just one example of the process described above. In the example shown in Figure 1, the pre-trained model LM is loaded into instance INS111 on the GPU (G11) of node N11. Also, temporary information TI generated by the pre-trained model LM during interaction with the user is stored in instance INS112 on the same GPU (G11). Note that this example is not limited to this embodiment, and the temporary information TI may be stored in instance INS111 on which the GPU (G11) is loaded as the default storage location. A detailed explanation of the pre-trained model LM and temporary information TI will be given later.
[0021] The information processing device 1 controls the computing and memory resources of the information processing system 100 by performing operations such as dividing each GPU into instances and merging instances. For example, if the information processing system 100 is implemented using Kubernetes (registered trademark), the information processing device 1 may be configured to execute the above processes as an orchestrator. Furthermore, as described above, since the information processing device 1 controls the computing and memory resources of the information processing system 100, the information processing device 1 can also be referred to as a resource control device.
[0022] As shown in Figure 1, the information processing device 1 comprises a control unit 10, a storage unit 20, and a communication unit 30. Also, as shown in Figure 1, the information processing device 1 may be configured to include an input / output unit 40, or it may be configured to be connected to a configuration equivalent to the input / output unit 40 via a network N.
[0023] (Communication Unit 30) The communication unit 30 is an interface for sending and receiving data over the network N. Examples of the communication unit 30 include communication chips in various communication standards such as Ethernet®, Wi-Fi®, and wireless communication standards for mobile data communication networks, as well as USB-compliant connectors.
[0024] (Input / Output Unit 40) The input / output unit 40 is an interface to input devices that accept data input (for example, user requests or prompts) and output devices that output data. Examples of input devices include, but are not limited to, microphones, cameras, eye-tracking devices, keyboards, and touchpads. Examples of output devices include, but are not limited to, speakers and liquid crystal displays.
[0025] (Storage Unit 20) The storage unit 20 stores various data referenced by the control unit 10, and various data derived by the control unit 10. The storage unit 20 is implemented by a combination of volatile memory such as DRAM (Dynamic Random Access Memory), flash memory, HDD (Hard Disk Drive), or magneto-optical disk. As an example, as shown in Figure 1, the storage unit 20 stores: ・Input data IN ・Output data OUT ・Reference information RI ・Classification model CM ・Evaluation information EI Here, the input data IN is information input to the trained model LM, which will be described later, and as an example, it includes: ・Instruction statements that express the tasks that the trained model LM should perform ・Reference data that the trained model LM should refer to when performing the above tasks. The input data IN is sometimes referred to as an input prompt to the trained model LM.
[0026] The input data IN may be input by a user of the information processing device 1 via the input / output unit 40, or it may be input by a user of the information processing system 100 via a terminal device they operate and provided via the network N. Furthermore, the input data IN may be selected from a plurality of pre-created input data candidates in response to the user's input. Specific examples of tasks performed by the trained model LM by referring to the input data IN are not limited to this embodiment, but one example is inference processing that refers to the above-mentioned reference data. In addition to inference processing, this task may also include training processing that refers to training data.
[0027] The output data OUT is the data output by the trained model LM that has received the input data IN. The output data OUT includes, for example, the results of the inference processing performed by the trained model LM by referring to the input data IN. The output data OUT may, for example, be presented to the user of the information processing device 1 via the input / output unit 40 based on control by the control unit 10, or to the user via the user's terminal device of the information processing system 100. Before describing the other data stored in the storage unit 20, the trained model LM and temporary information TI according to this embodiment will be described below.
[0028] (Trained Model LM and Temporary Information TI) As partially described above, the trained model LM is loaded, for example, onto one or more GPUs or one or more instances of clusters CL1, CL2, ... based on control by the control unit 10 in response to a user request. In the example shown in Figure 1, the trained model LM is loaded onto instance INS111 of the GPU (G11) of node N11. The trained model LM may, for example, be a Large Language Model (LLM) or may be implemented as a virtualized Large Language Model (vLLM).
[0029] Here, the control unit 10 does not limit itself to this embodiment in terms of which GPU or instance it loads the trained model LM into. However, as an example, it can refer to the specifications of each GPU or instance and select a GPU or instance with specifications that can handle the scale of the trained model LM required to execute the user's request.
[0030] The information processing device 1 or information processing system 100 provides a trained model LM in a format that allows interaction with the user, for example. More specifically, the information processing device 1 or information processing system 100 repeats the following steps: - receives a request from the user via the input / output unit 40 or the user's terminal device; - inputs input data IN based on the request into the trained model LM; - presents output data OUT from the trained model LM to the user via the input / output unit 40 or the user's terminal device; - receives the next request from the user via the input / output unit 40 or the user's terminal device; and - inputs the next input data IN based on the next request into the trained model LM.
[0031] Furthermore, the trained model LM generates temporary information TI in memory to reduce computational redundancy during the interaction and references it in subsequent interactions with the user. If the trained model LM employs an attention mechanism, the temporary information TI may include the Key vector and Value vector in that attention mechanism. For this reason, temporary information TI is sometimes referred to as a KV cache (key-value cache). By the trained model LM interacting with the user while storing and referencing temporary information TI, the aforementioned computational redundancy is reduced, contributing to improved inference speed and accuracy. Therefore, this configuration contributes to an improved user experience (UX).
[0032] The temporary information TI mentioned above is stored, for example, in the memory of the GPU on which the trained model LM is loaded. Here, if the user continues to interact continuously, the temporary information is effectively utilized. However, if the interaction is discontinuous, such as when the user's next input comes after a long period of time, the temporary information that is not referenced will occupy the memory on the GPU for a long time, leading to a waste of GPU resources (memory resources).
[0033] In this embodiment, as an example, the storage control unit 13 determines (changes) the storage location of the temporary information TI by referring to information regarding the availability of the trained model LM by the user. This suppresses the problem of temporary information that is not referenced occupying memory on the GPU for a long time. The specific processing by the storage control unit 13 will be described later.
[0034] (Other data stored in the storage unit 20) Referring to Figure 1, the description of other data stored in the storage unit 20 will continue. Reference information RI is information that the storage control unit 13, which will be described later, refers to in order to determine the storage location of temporary information TI. Reference information RI includes, as an example: - Availability information PI - Supply and demand information DSI
[0035] Availability information PI is information regarding the availability of the trained model LM by the user. More specifically, availability information PI is information indicating the availability of the trained model LM by the user, or information referenced to estimate such availability. As an example, availability information PI includes at least one of the following: distance information between the user and the terminal device used by the user; the user's schedule information; the user's past usage of the trained model; and the user's usage status of the terminal device.
[0036] Here, the distance information mentioned above is, for example, information that can be identified by referring to the communication status of short-range wireless communication (such as Bluetooth connection) between the terminal device (mobile terminal) used by the user and the wearable terminal worn by the user. Alternatively, the distance information may be identified by referring to GPS (Global Positioning System) information between the user and the mobile terminal. The information processing device 1 acquires the distance information from the mobile terminal used by the user via the network N. The processing of the storage control unit 13 that refers to the distance information will be described later.
[0037] On the other hand, the above schedule information (calendar information) is obtained, for example, via the network N from a mobile terminal used by the user, or from a cloud server that provides schedule services to the user via the mobile terminal. The processing of the storage control unit 13 that references this schedule information will be described later.
[0038] The above past performance data includes information such as the date and time of the request, the content of the request, the input data IN corresponding to each request, the output data OUT from the trained model LM for each input data IN, and the number of requests made during the user's past use of the trained model LM. The storage control unit 13 saves this past performance data each time it provides a service using the trained model LM. The processing performed by the storage control unit 13 based on the above past performance data will be described later.
[0039] The above usage information is obtained from the user's terminal device (mobile device) and includes information such as whether the mobile device is in sleep mode and which application the user is using. The above usage information may also include information that can be obtained through a specific application (for example, a healthcare-related application). For example, it may include information such as the detection of the terminal device being started via a healthcare-related application. The processing of the storage control unit 13 based on the above usage information will be described later.
[0040] On the other hand, the supply and demand information DSI is information regarding the demand and supply of one or more GPUs or one or more instances provided by clusters CL1, CL2, ... The supply and demand information DSI may also be described as information regarding the demand and supply of a group of GPUs, including the GPU that executes the inference processing using the trained model LM. As an example, the supply and demand information DSI includes: - User requests for tasks using each GPU or each instance (demand status) - Current usage status of each GPU or each instance (current supply status) - Future usage plans for each GPU or each instance (future supply status) The processing of the storage control unit 13 that refers to the above supply and demand information DSI will be described later.
[0041] The classification model CM is a trained model used by a storage control unit 13 (described later) to determine the storage destination of temporary information TI. The storage unit 20 stores a plurality of parameters defining the classification model. Processing using the classification model CM will be described later.
[0042] The evaluation information EI is information related to evaluation of at least one of: the temporary information TI stored in the storage destination determined by the storage control unit 13 described later, and inference processing by the learning model LM that refers to the temporary information TI. Specific examples of the evaluation information EI and processing related to the evaluation information EI will be described later.
[0043] (Control Unit 10) Next, the control unit 10 will be described with reference to FIG. 1. As shown in FIG. 1, the control unit 10 includes an acquisition unit 11, an inference execution unit 12, a storage control unit 13, and a learning unit 14.
[0044] (Acquisition Unit 11) The acquisition unit 11 acquires a request from a user. Here, as described above, the input data IN to the trained model LM is determined based on the request. Therefore, the acquisition unit 11 may be described as acquiring the input data IN from the user. Further, as partially described above, the request or input data IN from the user includes, as examples, - an instruction sentence expressing a task to be executed by the trained model LM, - reference data to be referred to by the trained model LM when executing the above task, etc.
[0045] (Inference Execution Unit 12) The inference execution unit 12 performs inference processing by inputting the input data IN into the trained model LM. More specifically, the inference execution unit 12 performs the following as an example: - In response to the above request from the user, loads a trained model LM that executes the task defined by the request from the storage unit 20 or a model storage unit (not shown) into one or more GPUs or one or more instances provided by cluster CL1, CL2, ... - Executes inference processing using the trained model LM by inputting the input data IN based on the above request into the loaded trained model LM. Here, the inference execution unit 12 can be configured to select a GPU or instance capable of executing the trained model LM for executing the user request by referring to the specifications (specs) of each GPU or instance. However, this does not limit this embodiment.
[0046] (Storage control unit 13) The storage control unit 13 determines the storage location of the temporary information TI generated in the inference process performed by the trained model LM by referring to information regarding the availability of the trained model LM by the user.
[0047] Here, the information regarding the availability of the trained model LM by the user (corresponding to the availability information PI described above as an example) includes at least one of the following: distance information between the user and the terminal device used by the user; the user's schedule information; past usage history of the trained model by the user; and the user's usage status of the terminal device. Here, each piece of information included in the availability information can also be expressed as information (index) indicating the user's motivation to use the trained model LM, or information for deriving such motivation information (index).
[0048] As an example, when the information on the availability indicates that the trained model LM is highly likely to be immediately available by the user, the storage control unit 13 performs the following processes: - Determines the storage destination of the temporary information TI in the memory on the GPU where the trained model LM is loaded - Stores the temporary information TI in the determined storage destination
[0049] As another example, when the information on the availability indicates that the trained model LM is unlikely to be immediately available by the user, the storage control unit 13 performs the following processes: - Determines the storage destination of the temporary information TI in a storage unit other than the memory on the GPU where the trained model LM is loaded - Stores (moves) the temporary information TI in the determined storage destination Here, examples of the storage unit other than the memory on the GPU where the trained model LM is loaded include: - A memory included in a node including the GPU where the trained model LM is loaded (for example, when the trained model LM is loaded on the GPU (G11) as illustrated in FIG. 1, a memory M11 in a node N11 including the GPU (G11)) or - A memory included in a node other than the node including the GPU where the trained model LM is loaded (for example, when the trained model LM is loaded on the GPU (G11) as illustrated in FIG. 1, a memory M2 in a node (shared storage) N2 different from the node N11 including the GPU (G11))
[0050] By executing the above processes, the storage control unit 13 performs the following processes as an overview: - When it is predicted that the user will immediately use the trained model LM, stores the temporary information TI in the GPU memory - When it is predicted that the user will return in a short time, stores the temporary information TI in the memory of the server including the GPU - When it is predicted that it will take a long time for the user to return, stores the temporary information TI in the shared storage This makes it possible to effectively utilize memory resources while suppressing deterioration of the user experience
[0051] A specific example of the processing performed by the storage control unit 13, which refers to the above-mentioned information on availability, is described below with reference to Figure 2.
[0052] (Example of processing referencing distance information) There is a negative correlation between the distance between the user and the terminal device used by the user, as indicated by the distance information, and the likelihood of the user being able to use the trained model LM. In other words, the greater the distance between the user and the terminal device, the lower the likelihood of the user being able to use the trained model LM immediately. For this reason, the storage control unit 13 determines that if the distance between the user and the terminal device used by the user is greater than a predetermined distance (for example, if the user is outside the range of the short-range wireless communication), the likelihood of the user being able to use the trained model LM immediately is low. Then, it stores temporary information TI in the storage location corresponding to the determination result. More specifically, as shown in Figure 2, the storage control unit 13 stores (moves) the temporary information TI in a memory other than the GPU (for example, M11) of the node (for example, N11) equipped with the GPU (for example, G11) on which the trained model LM is loaded, based on the determination result.
[0053] (Example of processing referencing schedule information) The storage control unit 13 refers to the user's schedule information and determines at least one of the following: the immediate availability of the trained model LM by the user, the availability of the trained model LM by the user in a first period, and the availability of the trained model LM by the user in a second period longer than the first period. Here, the first period refers, for example, to a period in the future of several tens of minutes from the present, and the second period refers, for example, to a period in the future of several hours from the present. However, these examples are not limited to this embodiment. The first period may, for example, refer to a period in the future of several hours from the present, and the second period may, for example, refer to a period in the future of several days from the present.
[0054] For example, if the user's schedule information is such that the user's schedule is booked for about two hours from the current time due to meetings, etc., the storage control unit 13 determines that: - The immediate availability of the trained model LM by the user is low, and - The availability of the trained model LM by the user during the first period is also low. Then, it stores temporary information TI in the storage location corresponding to the determination result. More specifically, as shown in Figure 2, based on the determination result, the storage control unit 13 stores (moves) the temporary information TI in the memory (e.g., M12) of a node other than the node (e.g., N11) equipped with the GPU (e.g., G11) on which the trained model LM is loaded, which is a node other than N12. Here, the memory belongs to the same cluster CL1 as the GPU (G11) and is an example of a storage unit provided by the target data center.
[0055] As another example, if the user's schedule information is filled with vacations or other reasons for several days from the present, the storage control unit 13 determines that: - The immediate availability of the trained model LM by the user is low, - The availability of the trained model LM by the user during the first period is low, and - The availability of the trained model LM by the user during the second period is also low. Then, it stores temporary information TI in the storage location corresponding to the determination result. More specifically, as shown in Figure 2, based on the determination result, the temporary information TI is stored (moved) to the memory (e.g., M2) of a node (e.g., N2) in a cluster other than the cluster (e.g., CL1) that has the GPU (e.g., G11) on which the trained model LM is loaded (e.g., CL2). Here, memory M2 is an example of a storage unit in a central data center.
[0056] (Example of processing based on past performance) The storage control unit 13 refers to the user's past performance regarding the use of the trained model LM and determines at least one of the following: the immediate availability of the trained model LM by the user, the availability of the trained model LM by the user during the first period, and the availability of the trained model LM by the user during the second period.
[0057] For example, if the above past performance indicates that the user does not use the trained model LM on a specific day of the week (for example, Wednesday), and the current date and time is late at night on the day before that specific day of the week (for example, Tuesday), the storage control unit 13 determines that: - The immediate availability of the trained model LM by the user is low, - The availability of the trained model LM by the user during the first period is also low, and - The availability of the trained model LM by the user during the second period is also low. Then, it stores (moves) the temporary information TI to the storage location corresponding to the determination result. An example of a specific storage location is as described above.
[0058] (Example of processing based on terminal device usage status) The storage control unit 13 refers to the usage status of the user's terminal device and determines at least one of the following: the immediate availability of the trained model LM by the user, the availability of the trained model LM by the user during the first period, and the availability of the trained model LM by the user during the second period.
[0059] For example, if the above usage indicates that the user is using a specific application (e.g., a game), the storage control unit 13 determines that: - The immediate availability of the trained model LM by the user is low, and - The availability of the trained model LM by the user during the first period is also low. Then, it stores (moves) the temporary information TI to the storage location corresponding to the determination result. Specific examples of storage locations are as described above.
[0060] (Example of processing referencing supply and demand information DSI) The storage control unit 13 may further refer to information regarding the supply and demand of a group of GPUs, including the GPU that performs the inference processing by the trained model LM (supply and demand information DSI), to determine the storage location of the temporary information TI.
[0061] As an example, even if the storage control unit 13, by referring to the availability information, determines at least one of the following: - The immediate availability of the trained model LM by the user is low - The availability of the trained model LM by the user during the first period is low - The availability of the trained model LM by the user during the second period is low, if the supply and demand information DSI indicates that - There will be no tasks for other requests in the future on the GPU that executes the inference processing using the trained model LM, the storage control unit 13 may not move the temporary information TI from its default storage location (for example, instance INS111 or INS112 in Figure 2). In other words, in such cases, the storage control unit 13 may decide to store the temporary information TI in the memory on the GPU that executes the inference processing using the trained model LM.
[0062] By performing the above-described processing, the storage control unit 13 suppresses unnecessary changes to the storage location of temporary information TI, thereby contributing to a reduction in overall costs, including communication costs, in the information processing system 100.
[0063] (Example of processing using a classification model CM) The storage control unit 13 may be configured to determine the storage location of the temporary information TI using a classification model CM that references at least the availability information (availability information PI). For example, the storage control unit 13 may be configured to input reference information RI, which includes the availability information PI and the supply and demand information DSI, into a machine-trained classification model CM, and determine the storage location of the temporary information TI by referring to the output of the classification model CM. Such a classification model CM can be pre-trained using, for example, training data (training data) that includes correct labels for the storage locations of the availability information PI, the supply and demand information DSI, and the temporary information TI. The specific configuration of the classification model CM is not limited to this embodiment, but for example, various algorithms such as CNN (convolutional neural network), decision tree, and support vector machine (SVM) can be used. Specific examples of processing using the classification model CM will be described later.
[0064] (Learning Unit 14) The learning unit 14 acquires evaluation information EI related to at least one of the temporary information TI stored in the storage location determined by the storage control unit 13, and the inference processing performed by the trained model LM that references the temporary information TI, and trains (retrains) the classification model CM by referring to the evaluation information EI. Specific examples of the processing performed by the learning unit 14 will be described later.
[0065] (Example of processing flow 1) Next, with reference to Figure 3, Example 1 of the processing flow by the information processing system 100 will be explained.
[0066] (Step S11) First, in step S11, the acquisition unit 11 acquires input data IN from the user. Since the processing related to the acquisition unit 11 has been described above, a redundant explanation will be omitted.
[0067] (Step S12) Next, in step S12, the inference execution unit 12 inputs the input data IN acquired in step S11 into the trained model LM and performs inference processing that refers to the input data IN. The processing by the inference execution unit 12 has been described above, so a redundant explanation will be omitted.
[0068] (Step S131) Next, in step S131, the storage control unit 13 determines the storage location of the temporary information TI generated in the inference process performed by the trained model LM by referring to the information regarding the availability of the trained model LM by the user. The processing by the storage control unit 13 has been described above, so a redundant explanation will be omitted.
[0069] (Step S132) Next, in step S131, the storage control unit 13 stores the temporary information TI in the storage location determined in step S131. If the temporary information TI is already stored in a default storage location (for example, the memory of the GPU on which the trained model LM is loaded), the temporary information TI is moved from the default storage location to the storage location determined in step S131. The temporary information TI stored or moved to the storage location determined in step S131 is referenced in the inference processing performed by the trained model LM in subsequent interaction with the user.
[0070] Note that the processing order of steps S12 and S131 is not limited to the example above. Step S131 may be executed before step S12. Also, steps S131 and S132 may be collectively referred to as step S13.
[0071] (Example of processing flow 2) Next, with reference to Figure 4, Example 2 of the processing flow by the information processing system 100 will be explained.
[0072] (Step S11a) First, in step S11a, the acquisition unit 11 acquires the user's execution request. Then, based on the execution request, the acquisition unit 11 selects a trained model LM to be executed from a plurality of trained models, and generates input data IN for the selected trained model LM by referring to the execution request. Note that step S11a corresponds to step S11 in Example 1 of the processing flow. A redundant explanation of the processing related to the acquisition unit 11 will be omitted.
[0073] (Step S121a) Next, in step S121a, the inference execution unit 12 loads the trained model LM selected in step S11a onto a GPU capable of executing the trained model LM. The inference execution unit 12 also starts using the loaded trained model LM.
[0074] (Step S122a) Next, in step S122a, the trained model LM loaded in step S121a is executed, or a job is registered to the trained model LM. More specifically, the following processes are performed: - The trained model LM is used to perform inference processing by inputting the input data IN generated in step S11a to the trained model LM, or - The input data IN generated in step S11a is registered to the job list (waitlist) of the trained model LM to register a job to the trained model LM. The registered job (inference processing) is executed after the trained model LM becomes available.
[0075] Steps S121a and S122a correspond to step S12 in Example 1 of the processing flow. A redundant explanation of the processing performed by the inference execution unit 12 will be omitted.
[0076] (Step S131a) Next, in step S131a, the storage control unit 13 determines the storage location of the temporary circumstances TI (KV cache) generated in the inference process performed by the trained model LM by referring to the output of the machine learning-trained classification model CM. This step is executed if a KV cache generated in the inference process exists (the KV cache is not empty), and is not executed if a KV cache is not generated in the inference process (the KV cache is empty). The process flow for generating the output of the classification model CM (output generation flow) will be described later.
[0077] (Step S132a) Next, in step S132a, the storage control unit 13 stores the temporary information TI (KV cache) in the storage location determined in step S131a. Similar to Example 1 of the processing flow described above, if the temporary information TI is temporarily stored in a default storage location (for example, the memory of the GPU on which the trained model LM is loaded), the temporary information TI is moved from the default storage location to the storage location determined in step S131a. The temporary information TI stored or moved to the storage location determined in step S131a is referenced in the inference processing in the continued interaction with the user performed by the trained model LM.
[0078] Steps S131a and S132a correspond to step S13 in Example 1 of the processing flow. A redundant explanation of the processing by the storage control unit 13 will be omitted.
[0079] (Output generation flow of classification model CM) Each process from step S21 to step S142 in Figure 4 is executed by the storage control unit 13 and the learning unit 14, and constitutes the output generation flow of the classification model CM. Since this flow also includes the learning (retraining) process of the classification model, this flow can also be called the update flow of the classification model CM. The output generation flow of the classification model CM is executed repeatedly, for example, as long as a KV cache generated in the inference process by the trained model LM exists (the KV cache is not empty). For example, the flow may be configured to be executed at predetermined intervals, or it may be configured to be executed whenever a predetermined event occurs.
[0080] (Step S21) In step S21, the storage control unit 13 acquires reference information RI, which includes the latest availability information PI and supply and demand information DSI at the present time. In this step, the storage control unit 13 may determine whether or not a KV cache exists, which was generated in the inference process performed by the trained model LM in step S122a described above. If a KV cache exists, the storage control unit 13 acquires the reference information RI and proceeds to step S22.
[0081] (Step S22) Next, in step S22, the storage control unit 13 inputs the reference information RI acquired in step S21 into the classification model CM.
[0082] (Step S23) Next, in step S23, the storage control unit 13 obtains the output of the classification model CM into which the reference information RI has been input, and refers to it in the process of determining the storage location of the KV cache in step S131a described above.
[0083] (Step S141) In step S141, the learning unit 14 obtains evaluation information EI related to at least one of the KV cache stored in step S132a described above, and the inference processing by the trained model LM that references the KV cache. The evaluation information EI may include, as an example,: metric information of the GPU on which the trained model LM is loaded (for example, the utilization rate, memory usage, temperature, power consumption, etc. of the GPU); metric information of GPUs other than the GPU on which the trained model LM is loaded; and communication costs for the GPU on which the trained model LM is loaded to reference the KV cache, etc. However, these examples are not limited to this example. The evaluation information EI serves as an indicator of the appropriateness of the storage location of the KV cache determined in step S131a described above, or as information for deriving such an indicator.
[0084] (Step S142) Next, in step S142, the learning unit 14 refers to the evaluation information EI acquired in step S141 and causes the classification model CM to learn (retrain). As an example, a cost function is set according to the evaluation information EI acquired in step S141, which expresses the appropriateness (or inappropriateness) of the storage location of the KV cache, and the classification model CM is learned (retrained) so that the cost function becomes larger (or smaller). By performing this step, the classification model CM will be able to output information indicating a more appropriate storage location for the KV cache.
[0085] After processing in step S142, the storage control unit 13 and the learning unit 14 return to step S12 and repeatedly execute the output generation flow using the classification model CM.
[0086] (Effects of the Information Processing Device 1) As described above, the Information Processing Device 1 includes: an acquisition unit 11 that acquires input data IN from a user; an inference execution unit 12 that performs inference processing by inputting the input data IN into a trained model LM and referring to the input data IN; and a storage control unit 13 that determines the storage location of temporary information TI (KV cache) generated in the inference processing by referring to information (availability information PI) regarding the availability of the trained model LM by the user.
[0087] According to the information processing device 1 configured as described above, the storage location of temporary information TI (KV cache) generated in the inference process using the trained model LM is determined by referring to information regarding the availability of the trained model LM by the user (availability information PI). In the above configuration, the trained model LM performs inference processing in interaction with the user while storing and referring to the temporary information TI (KV cache). Therefore, it is possible to suppress the increase in computational redundancy in the inference process and provide a suitable user experience (UX). Furthermore, in the above configuration, the storage location of temporary information TI (KV cache) is determined by referring to information regarding the availability of the trained model LM by the user (availability information PI). Therefore, the memory resources provided by the information processing system 100 can be effectively utilized.
[0088] Furthermore, as described above, in the above configuration, the storage location of the temporary information TI (KV cache) may be determined using the classification model CM, which has been updated (retrained) by referring to the evaluation information EI. Therefore, this configuration makes it possible to determine a more appropriate storage location.
[0089] Furthermore, as described above, in the above configuration, the storage location of the temporary information TI (KV cache) may be determined by further referring to the supply and demand information DSI of the GPU group provided by the information processing system 100. Therefore, this configuration suppresses unnecessary changes to the storage location of the temporary information TI, thereby contributing to a reduction in overall costs, including communication costs, in the information processing system 100.
[0090] (Example of Application) A wireless communication system (wireless communication network) 200 as an example of application of the information processing device 1 relating to this disclosure will be described with reference to Figure 5. The wireless communication system 200 is a system (hereinafter also referred to as "AI-RAN") that integrates AI (Artificial Intelligence) applications and RAN (Wireless Communication Network) applications on the same platform.
[0091] AI-RAN is a technology that utilizes the computing infrastructure of a base station to provide highly immediate, low-latency services to users and devices in the vicinity of the base station. AI-RAN deploys AI applications and machine learning applications at the network edge (terminal side) via the RAN. This configuration facilitates the creation of new industries and solutions that leverage low latency and confidentiality.
[0092] Furthermore, the wireless communication system 200 employs a configuration in which RAN processing and AI processing that is not directly related to RAN (e.g., machine learning processing and inference processing) are performed on the same computing platform (also called AI and RAN). By integrating AI and RAN processing in this way, the utilization efficiency of the infrastructure can be improved.
[0093] Furthermore, the wireless communication system 200 employs autoscaling, which is an example of a RIC (Radio Access Network (RAN) Intelligent Controller), to predict the amount of resources used by the application using the information processing device (resource control device) 1, and to perform processes such as scaling in, scaling out, deploying or stopping the application.
[0094] <Overview of Wireless Communication System 200> Figure 5 is a block diagram showing the configuration of the wireless communication system 200. As shown in Figure 5, the wireless communication system 200 includes, as an example, a core network CN compliant with the 5G standard, multiple base stations BS1 to BS4, and multiple terminal devices (communication terminals) (e.g., code TE1 in Figure 5).
[0095] The wireless communication system 200 is a wireless communication system that communicates using AI-RAN. More specifically, as shown in Figure 5, the core network CN and base stations BS1 to BS4 of the wireless communication system 200 have multiple nodes N11, N12, ..., BSN1, ..., BSN4, and RAN applications and AI applications are integrated on the same platform. Here, each node of the wireless communication system 200 has the same configuration as each node described in the information processing system 100.
[0096] (Information Processing Device 1) The processing of the information processing device 1 in this application example will be described below. The information processing device 1 in this application example has the same configuration as the information processing system 100 described above. For matters that are the same as those already explained in the information processing system 100, redundant explanations will be omitted as appropriate.
[0097] The storage control unit 13 in this application example determines the storage location of temporary information TI (KV cache) generated in the inference process executed by the trained model LM that receives input data IN from the user, by referring to information (availability information PI) regarding the availability of the trained model LM by the user, similar to the processing in the information processing system 100 described above.
[0098] In this application example, the availability information PI includes the connection status of the terminal device used by the user in the wireless communication network. As an example of the connection status, the availability information PI may include information such as: whether the terminal device (TE1 in Figure 5) used by the user (User1 in Figure 5) is connected to a base station of the wireless communication system 200; and if connected, which base station the terminal device is connected to. In this application example, the storage control unit 13 refers to the availability information PI, which includes the connection status, to determine the storage location of the temporary information TI (KV cache).
[0099] For example, if the terminal device used by the user is not connected to any base station, the storage control unit 13 determines that the user is unlikely to use the trained model LM immediately. Then, it stores temporary information TI in the storage location corresponding to the determination result. More specifically, based on the determination result, the storage control unit 13 stores (moves) the temporary information TI in the memory of a node (e.g., N11) equipped with a GPU on which the trained model LM is loaded, but in memory other than that of the GPU.
[0100] Furthermore, in this application example, the storage control unit 13 may be configured to determine the storage location of the temporary information TI (KV cache) depending on which of the multiple base stations provided by the wireless communication network 200 the user's terminal device is connected to.
[0101] As an example, the storage control unit 13 may determine the base station to which the terminal device is connected among the multiple base stations provided by the wireless communication network 200 as the storage destination for the temporary information TI (KV cache). For example, if the user's (User1) terminal device (TE1) is connected to the base station BS1 shown in Figure 5, the storage control unit 13 may determine the storage destination for the KV cache to be the memory in node BSN1 provided by the base station BS1. In this case, the inference execution unit 12 may load the trained model LM, which performs inference processing in response to a request from the user, onto the GPU in node BSN1 provided by the base station BS1 and execute it.
[0102] By adopting the above configuration, inference processing using the trained model LM can be efficiently executed, and the inference results can be quickly presented to the user.
[0103] (Example of processing flow in the application example) Figure 6 shows an example of the processing flow by the information processing device 1 in this application example.
[0104] (Step S11b) In step S11b, the acquisition unit 11 acquires an execution request from the terminal device TE1 (the terminal device of user User1) connected to the base station BS1, via the base station and the communication unit 30.
[0105] (Step S12b) Next, in step S12b, the inference execution unit 12 generates input data IN from the execution request and selects a trained model LM from a plurality of trained models to perform the task indicated by the input data IN. The inference execution unit 12 also selects a GPU to load the trained model LM on, depending on which base station the execution request was acquired through, and loads the trained model LM onto the selected GPU. The inference execution unit 12 then executes the inference process by inputting the input data IN to the loaded trained model LM.
[0106] (Step S13b) Next, in step S13b, the storage control unit 13 determines the storage destination of the KV cache generated in the inference process, depending on which base station the terminal device TE1 is connected to. For example, as described above, if the terminal device TE1 is connected to base station BS1, the storage control unit 13 stores the KV cache in node BSN1 provided by base station BS1.
[0107] (Step S11c) After a certain period of time has elapsed, the user moves as shown in Figure 5, and the acquisition unit 11 acquires an execution request from the terminal device TE1 connected to the base station BS4 via the base station and the communication unit 30. Here, this execution request may be a request unrelated to the execution request acquired in step S11b, or it may be a request that follows the execution request acquired in step S11b (a request in a continued dialogue).
[0108] (Step S12c) In step S12c, the inference execution unit 12 generates input data IN from the execution request and executes the inference process by inputting the input data IN to the trained model LM.
[0109] (Step S13c) In step S13c, the storage control unit 13 determines the storage destination of the KV cache generated in the inference process, depending on which base station the terminal device TE1 is connected to. For example, as described above, if the terminal device TE1 is connected to base station BS4, the storage control unit 13 stores the KV cache in node BSN4 of the base station BS4.
[0110] As explained above, in this application example, the following configuration is adopted: - The availability information PI includes the connection status of the terminal device used by the user in the wireless communication network, and - The storage control unit 13 determines the storage location of the temporary information TI (KV cache) according to which of the multiple base stations provided by the wireless communication network 200 the user's terminal device is connected to. Therefore, according to this application example, the storage location of the temporary information TI (KV cache) can be suitably determined according to the connection status of the terminal device used by the user in the wireless communication network.
[0111] <Example of implementation by software> The functions of each device (hereinafter referred to as "device") that constitutes the information processing system 100 and the wireless communication system 200 can be realized by a program that causes a computer to function as the device, and by a program that causes a computer to function as each control block of the device (particularly each part included in the control unit 10).
[0112] In this case, the device includes a computer having at least one control device (e.g., a processor) and at least one storage device (e.g., memory) as hardware for executing the program. By executing the program using this control device and storage device, the functions described in each of the embodiments are realized.
[0113] The above program may be recorded on one or more computer-readable recording media, not temporary ones. These recording media may or may not be provided by the above device. In the latter case, the program may be supplied to the above device via any wired or wireless transmission medium.
[0114] Furthermore, some or all of the functions of each of the above control blocks can also be realized by logic circuits. For example, an integrated circuit in which logic circuits functioning as each of the above control blocks are formed is also included in the scope of the present invention. In addition, it is also possible to realize the functions of each of the above control blocks by, for example, a quantum computer.
[0115] Furthermore, each process described in the above embodiments may be performed by AI (Artificial Intelligence). In this case, the AI may operate on the control device described above, or it may operate on another device (for example, an edge computer or a cloud server).
[0116] <Summary> This disclosure contains at least the following components:
[0117] (Configuration 1) An information processing device comprising: an acquisition unit that acquires input data from a user; an inference execution unit that performs inference processing by inputting the input data into a trained model and referring to the input data; and a storage control unit that determines the storage location of temporary information generated in the inference processing by referring to information regarding the availability of the trained model to the user.
[0118] The above configuration allows for the effective use of memory resources while minimizing a decline in the user experience.
[0119] (Configuration 2) The above temporary information is an information processing device according to Configuration 1, which is a key-value cache in the attention mechanism of the trained model.
[0120] According to the above configuration, the trained model performs inference processing while storing and referencing the key-value cache, thereby suppressing an increase in computational redundancy in the inference processing and providing a suitable user experience (UX).
[0121] (Configuration 3) The information processing device according to Configuration 1 or 2, wherein the information regarding availability includes at least one of the following: distance information between the user and the terminal device used by the user; the user's schedule information; the user's past performance regarding the use of the trained model; and the user's usage status of the terminal device.
[0122] According to the above configuration, since the availability information includes at least one of the above pieces of information, a suitable storage location can be determined for the temporary information generated in the inference process.
[0123] (Configuration 4) The storage control unit determines the storage location of the temporary information using a classification model that references at least the information regarding availability, as described in any one of Configurations 1 to 3.
[0124] According to the above configuration, the classification model CM can be used to determine the storage location of the temporary information, thereby determining a suitable storage location.
[0125] (Configuration 5) The information processing device according to Configuration 5, further comprising a learning unit that acquires evaluation information related to at least one of the temporary information stored in a storage location determined by the storage control unit and the inference process that references the temporary information, and that trains the classification model by referencing the evaluation information.
[0126] According to the above configuration, the classification model can be appropriately trained (retrained) by referring to the above evaluation information. Furthermore, since the storage location of the temporary information TI (KV cache) can be determined using the updated (retrained) classification model CM by referring to the above evaluation information, a more appropriate storage location can be determined.
[0127] (Configuration 6) The information processing apparatus according to any one of Configurations 1 to 5, wherein the storage control unit further refers to information regarding the demand and supply of a group of GPUs, including a GPU that performs the inference processing using the trained model, to determine the storage location of the temporary information.
[0128] According to the above configuration, unnecessary changes to the storage location of the temporary information are suppressed, thus contributing to a reduction in overall costs, including communication costs, in the information processing system including the information processing device.
[0129] (Configuration 7) The information processing device according to any one of Configurations 1 to 6, wherein the information regarding availability includes the connection status of the terminal device used by the user in the wireless communication network.
[0130] According to the above configuration, the storage control unit can suitably determine the storage location of the temporary information according to the connection status of the terminal device used by the user in the wireless communication network.
[0131] (Configuration 8) The storage control unit determines the storage location of the temporary information according to Configuration 7, depending on which of the multiple base stations provided by the wireless communication network the terminal device is connected to.
[0132] According to the above configuration, the storage control unit determines the storage location of the temporary information according to which of the multiple base stations of the wireless communication network the terminal device is connected to, so that the storage location of the temporary information can be suitably determined.
[0133] (Configuration 9) The information processing device according to Configuration 8, wherein the storage control unit determines, among the plurality of base stations provided by the wireless communication network, the base station to which the terminal device is connected as the storage destination for the temporary information.
[0134] According to the above configuration, inference processing using the trained model can be performed efficiently, and the inference results can be quickly presented to the user.
[0135] (Configuration 10) An information processing method comprising: an acquisition step in which one or more processors acquire input data from a user; an inference execution step in which the input data is input to a trained model and an inference process is performed that references the input data; and a storage control step in which the storage location of temporary information generated in the inference process is determined by referring to information regarding the availability of the trained model to the user.
[0136] The above configuration produces the same effect as configuration 1.
[0137] (Configuration 11) A program for causing a computer to function as an information processing device as described in Configuration 1, wherein the program causes the computer to function as the acquisition unit, the inference execution unit, and the storage control unit.
[0138] The above configuration produces the same effect as configuration 1.
[0139] (Additional Notes) This disclosure is not limited to the embodiments described above, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of this disclosure.
[0140] The configuration described in this disclosure allows for efficient use of computing resources. As a result, energy efficiency can be improved through power saving. Such effects contribute to achieving goals such as Goal 7 of the United Nations' Sustainable Development Goals (SDGs), "Affordable and Clean Energy."
[0141] 100 Information Processing System 1 Information Processing Device 10 Control Unit 11 Acquisition Unit 12 Inference Execution Unit 13 Storage Control Unit 14 Learning Unit N11, N12, N2 Nodes (Servers) CL1, CL2 Cluster (Data Center) 200 Wireless Communication System BS1-BS4 Base Stations TE1 Terminal Device
Claims
1. An information processing device comprising: an acquisition unit that acquires input data from a user; an inference execution unit that performs inference processing by inputting the input data into a trained model and referring to the input data; and a storage control unit that determines the storage location of temporary information generated in the inference processing by referring to information regarding the availability of the trained model to the user.
2. The information processing device according to claim 1, wherein the above-mentioned temporary information is a key-value cache in the attention mechanism of the trained model.
3. The information processing apparatus according to claim 2, wherein the information relating to availability includes at least one of the distance information between the user and the terminal device used by the user, the user's schedule information, the user's past performance regarding the use of the trained model, and the user's usage status of the terminal device.
4. The information processing apparatus according to claim 3, wherein the storage control unit determines the storage location of the temporary information using a classification model that references at least the information regarding availability.
5. The information processing apparatus according to claim 4, further comprising a learning unit that acquires evaluation information related to at least one of the temporary information stored in a storage location determined by the storage control unit and the inference process that references the temporary information, and that trains the classification model by referencing the evaluation information.
6. The information processing apparatus according to any one of claims 1 to 5, wherein the storage control unit further refers to information regarding the demand and supply of a group of GPUs, including a GPU that performs the inference processing using the trained model, to determine the storage location of the temporary information.
7. The information processing apparatus according to any one of claims 1 to 5, wherein the information relating to availability includes the connection status of the terminal device used by the user in the wireless communication network.
8. The information processing apparatus according to claim 7, wherein the storage control unit determines the storage location of the temporary information according to which of the plurality of base stations of the wireless communication network the terminal device is connected to.
9. The information processing apparatus according to claim 8, wherein the storage control unit determines, among a plurality of base stations provided by the wireless communication network, the base station to which the terminal device is connected as the storage destination for the temporary information.
10. An information processing method comprising: an acquisition step in which one or more processors acquire input data from a user; an inference execution step in which the input data is input to a trained model and an inference process is performed that references the input data; and a storage control step in which the storage location of temporary information generated in the inference process is determined by referring to information regarding the availability of the trained model to the user.
11. A program for causing a computer to function as an information processing device according to claim 1, wherein the computer functions as the acquisition unit, the inference execution unit, and the storage control unit.
