Dialogue device, dialogue method, and dialogue program

The dialogue device autonomously adjusts strategies using a large-scale language model to handle asynchronous and bidirectional interactions, enhancing dialogue efficiency and adaptability in complex tasks.

WO2026244788A1PCT designated stage Publication Date: 2026-11-26NT T INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2025/018634
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Conventional dialogue systems struggle to autonomously adjust dialogue strategies in tasks involving human or agent collaboration due to pre-set prompts and contexts, making it difficult for agents to flexibly adapt to responsive or unresponsive partners and handle asynchronous and bidirectional interactions.

Method used

A dialogue device using a large-scale language model to analyze dialogue situations, select actions such as responding or waiting based on inference, and optimize dialogue strategies through reinforcement learning, treating dialogue partners as 'tools' to handle asynchronous and bidirectional interactions.

Benefits of technology

Enables flexible and efficient dialogue strategies that can proactively engage or wait, adapt to asynchronous communication, and optimize interactions in complex tasks like negotiations and interviews, improving information gathering and strategic decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2025018634_26112026_PF_FP_ABST
    Figure JP2025018634_26112026_PF_FP_ABST
Patent Text Reader

Abstract

This dialogue device (10) comprises: an inference unit (112) that uses a large language model (LLM) (111) to infer, on the basis of a dialogue history with a dialogue partner and / or dialogue content with the dialog partner, the situation during the dialogue including a case in which the situation of the dialogue partner is a response and a non-response, the intention of the dialogue, and the next operation mode in the dialogue device; a tool calling unit (113) that uses the LLM (111) to select, on the basis of the inference result of the inference unit (112), any action among a plurality of actions including at least a response and a standby as the next action of the dialogue device (10); and a response processing unit (114) that transmits a response to the dialogue partner or stands by in accordance with the inference result of the inference unit (112) and the action selection result of the tool calling unit (113).
Need to check novelty before this filing date? Find Prior Art

Description

Dialogue device, dialogue method, and dialogue program

[0001] The present invention relates to a dialogue device, a dialogue method, and a dialogue program.

[0002] In recent years, agent systems using large language models (LLMs) (machine learning models) have become widespread.

[0003] In agent systems, agents can autonomously call external tools (search APIs (Application Programming Interfaces), calculation APIs, code execution environments, etc.) to accomplish complex tasks (see Non-Patent Document 1). For example, simply by giving an instruction such as "develop an application with a specific function," an agent can create a plan, select necessary tools, and autonomously solve problems (see Non-Patent Document 2). Furthermore, using reinforcement learning, agents themselves can automatically acquire optimal strategies for tool invocation (see Non-Patent Document 3).

[0004] Timo Schick, et al., "Toolformer: Language Models Can Teach Themselves to Use Tools," arXiv:2302.04761v1, 2023., [Retrieved April 30, 2025], Internet <https: / / arxiv.org / abs / 2302.04761> "AutoGPT," [Retrieved March 31, 2025], Internet <https: / / github.com / Significant-Gravitas / Auto-GPT> Mohammad Al Mahfuz, et al., "An Ultra-Sensitive Visible-IR Range Fiber Based Plasmonic Refractive Index Sensor," arXiv: 2401.10968v1 2024, , [Retrieved April 30, 2025], Internet <https: / / arxiv.org / abs / 2401.10968>

[0005] On the other hand, in tasks where agents collaborate, negotiate, and gather information through dialogue with humans or other agents (hereinafter referred to as "dialogue tasks"), agents are not sufficiently able to autonomously acquire the optimal dialogue strategy themselves. This is because, in conventional dialogue systems, prompts and contexts for utterance generation are set in advance by humans, making it difficult for agents to flexibly adjust their dialogue strategy autonomously.

[0006] The present invention has been made in view of the above, and aims to provide a dialogue device, a dialogue method, and a dialogue program that can flexibly adjust the dialogue strategy in a dialogue task.

[0007] To solve the above-mentioned problems and achieve the objective, the present invention provides a dialogue device that engages in dialogue with a dialogue partner, comprising: an inference unit that uses a large-scale language model to analyze the situation during the dialogue, including cases where the dialogue partner is responsive or unresponsive, the intent of the dialogue, and the next operating mode of the dialogue device, based on the dialogue history and / or the content of the dialogue with the dialogue partner; a selection unit that uses the large-scale language model to select one of a plurality of actions, including at least responsive and waiting, as the next action of the dialogue device based on the inference result of the inference unit; and a response processing unit that transmits a response to the dialogue partner or waits, according to the inference result of the inference unit and the action selection result of the selection unit.

[0008] Furthermore, the dialogue method according to the present invention is a dialogue method performed by a dialogue device, which includes using a large-scale language model to analyze the situation during the dialogue, including cases where the dialogue partner is responsive or unresponsive, the intent of the dialogue, and the next operating mode of the dialogue device, based on the dialogue history with the dialogue partner and / or the content of the dialogue with the dialogue partner, and using the large-scale language model to select one of a plurality of actions, including at least responding and waiting, as the next action of the dialogue device based on the result of the inference, and sending a response to the dialogue partner or waiting according to the result of the inference and the result of the action selection.

[0009] Furthermore, the dialogue program according to the present invention uses a large-scale language model to analyze the situation during the dialogue, including cases where the dialogue partner is responsive or unresponsive, the intent of the dialogue, and the next mode of operation based on the dialogue history and / or the content of the dialogue with the dialogue partner. Using the large-scale language model, based on the results of the inference, the program selects one of a plurality of actions, including at least responding and waiting, as the next action, and causes the computer to send a response to the dialogue partner or wait, depending on the results of the inference and the selection of the action.

[0010] According to the present invention, the dialogue strategy in a dialogue task can be flexibly adjusted.

[0011] Figure 1 shows an example of the configuration of a dialogue device according to the embodiment. Figure 2 shows a diagram illustrating the processing flow of the dialogue device according to the embodiment. Figure 3 shows an example of a prompt given by the dialogue unit to the LLM. Figure 4 shows an example of a format expressed by the dialogue agent. Figure 5 is an output diagram from the LLM. Figure 6 shows a diagram illustrating the reward function used by the reward calculation unit. Figure 7 shows an example of code in learning using GRPO (Generalized Reinforcement Policy Optimization). Figure 8 shows an example of the processing procedure for the learning process according to the embodiment. Figure 9 shows an example of a computer in which the dialogue device is realized when the program is executed.

[0012] [Embodiment] An embodiment of the present invention will be described in detail below with reference to the drawings. However, the present invention is not limited by this embodiment. In the drawings, the same parts are denoted by the same reference numerals.

[0013] In this embodiment, in a dialogue agent system, the AI ​​(Artificial Intelligence) agent (machine learning model) in the system abstracts the utterances of the dialogue partner as "tool calls" in order to autonomously optimize the strategy for the dialogue task, and enables the direct application of conventional tool utilization optimization strategies to the dialogue task.

[0014] Here, when treating the dialogue partner as a tool, the following new technical challenges arise.

[0015] Conventional agents assume that external tools will return an immediate response and cannot handle asynchronous situations where a response needs to be waited for (first challenge). Furthermore, in dialogue, the dialogue partner also makes inferences based on its own objectives, so an immediate response from the dialogue partner cannot be expected, and bidirectional interaction where the dialogue partner simultaneously asks questions to the user is also possible. Such bidirectional and asynchronous interactions cannot be handled within conventional frameworks (second challenge).

[0016] In other words, with conventional tool-calling agent systems, it was difficult to model the conversation partner as a tool and directly apply autonomous strategic optimization to it.

[0017] In contrast, the embodiment explicitly reinterprets the utterances and responses of the dialogue partner as "tool calls," enabling the agent to flexibly adjust its dialogue strategy. Furthermore, the embodiment proposes a novel dialogue method that allows the strategy in the dialogue task to be autonomously optimized through a reinforcement learning framework.

[0018] Unlike conventional one-way tool calls that assume immediate responses, this embodiment introduces the following process to handle the asynchronous and bidirectional nature inherent in dialogue.

[0019] First, in this embodiment, the interaction with the dialogue partner (actions and responses to them) is defined as a tool call with multiple operating modes such as "call," "response," "response_and_call," and "wait," thereby modeling bidirectional and asynchronous interaction with the other party. As a result, in this embodiment, the AI ​​agent can determine the appropriate timing and format for sending and receiving messages according to the dialogue situation.

[0020] In this embodiment, the AI ​​agent simultaneously infers the optimal combination of the next action (sending a new question, responding to a question from the other party, responding and asking a question, waiting, etc.) at each dialogue step. As a result, in this embodiment, an advanced dialogue strategy can be autonomously acquired that can flexibly and efficiently respond to the intentions and actions of the other agent or human being.

[0021] Furthermore, in this embodiment, rewards are set based on the degree of objective achievement and information acquisition at the end of the dialogue, enabling the AI ​​agent to continuously improve its dialogue strategy through a reinforcement learning algorithm (such as GRPO). This allows the embodiment to autonomously learn optimal speech behavior even in the complex context of the dialogue task. The objectives include obtaining desired information from the other party during the dialogue, or obtaining information to achieve a desired topic.

[0022] In this embodiment, the interaction history that occurs at each step of the dialogue is recorded and saved, and context-dependent reasoning is performed using the historical information, enabling strategic decision-making based on past utterances and dialogue situations.

[0023] Through the above process, in this embodiment, it becomes possible to optimize the autonomous dialogue strategy of the AI ​​agent in dialogue tasks, which was previously difficult, and to achieve objectives through flexible and strategic interaction with the dialogue partner.

[0024] [Dialogue System] The dialogue system in this embodiment will now be described. In this dialogue system, the dialogue device 10 according to this embodiment performs dialogue tasks with a dialogue partner. The dialogue partner is an AI agent. Alternatively, the dialogue partner may be a human. Figure 1 is a diagram showing an example of the configuration of the dialogue device 10 according to this embodiment. Figure 2 is a diagram illustrating the processing flow of the dialogue device 10 according to this embodiment.

[0025] The dialogue device 10's AI agent (dialogue unit 11) treats the dialogue partner as a tool call and acquires the optimal dialogue strategy to achieve its objective through reinforcement learning via interaction with the dialogue partner.

[0026] In the dialogue device 10, the dialogue unit 11 uses the LLM 111 (machine learning model) to perform self-reasoning and action selection (utterance generation) during the dialogue. In the dialogue device 10, the progress of the dialogue itself is synchronous with the dialogue partner. For example, the dialogue unit 11 decides on and outputs the next action in response to an utterance from the dialogue partner. In the dialogue device 10, the dialogue is synchronous in the sense that it always progresses with turn-taking (exchange of utterances) between the dialogue partner and the dialogue partner. Furthermore, in the dialogue device 10, even when there is no utterance from the dialogue partner, the reasoning and action selection (utterance generation) using the LLM 111 in the dialogue unit 11 are performed independently and asynchronously.

[0027] The dialogue device 10 is a dialogue device that is realized by loading a predetermined program into a computer, for example, which includes ROM (Read Only Memory), RAM (Random Access Memory), CPU (Central Processing Unit), etc., and having the CPU execute the predetermined program. The dialogue device 10 also has a communication interface for sending and receiving various information with other devices connected via a network or the like.

[0028] The dialogue device 10 includes a dialogue unit 11, a dialogue history storage unit 12 that stores the dialogue history between the dialogue partner and the dialogue device 10, a reward calculation unit 13, and a reinforcement learning unit 14.

[0029] The dialogue unit 11 functions as a dialogue agent and performs dialogue tasks with the dialogue partner. The dialogue unit 11 includes an LLM 111, an inference unit 112, a tool calling unit 113, and a response processing unit 114.

[0030] LLM111 is a large-scale language model. LLM111 outputs text or speech according to the set prompts. As described later, LLM111 outputs inference results and tool call results (actions to take).

[0031] The dialogue unit 11 initializes the dialogue (Figure 2 (1)). The dialogue unit 11 sets the initial prompt, sets the objective, and sets the initial conditions. These initial prompts and objectives constitute the first information exchange between the dialogue partner and the dialogue unit 11. By setting the initial conditions in the LLM 111, the dialogue unit 11 provides a starting point for determining the subsequent dialogue strategy.

[0032] Figure 3 shows an example of a prompt given by the dialogue unit 11 to the LLM 111. When initiating a dialogue, the dialogue unit 11 gives each agent (LLM 111) the prompt shown in Figure 3. The prompt shown in Figure 3 instructs the agent that "you are a human resources representative conducting an interview, and your objective is to clarify the applicant's work history and skills," and that you should proceed with the dialogue to achieve this objective.

[0033] The inference unit 112 uses the LLM 111 model to analyze the situation during the conversation, including cases where the conversation partner is responsive or unresponsive, the intent of the conversation, and the next operating mode of the conversation device 10, based on the conversation history and / or content of the conversation with the conversation partner. The inference unit 112 uses an inference module ( <think>My own reasoning< / think> ) and uses LLM111 to perform self-reasoning during the dialogue (Figure 2 (2)).

[0034] The inference unit 112 analyzes the situation during the dialogue, including both responsive and non-responsive situations of the dialogue partner, as part of its self-inference content, understands the intent of the dialogue, and infers a decision on the next mode of action. The inference unit 112 refers to the dialogue history, which is the history of interactions that occurred at each step of the dialogue and is stored in the dialogue history storage unit 12, and performs context-dependent inference, enabling strategic decision-making based on past utterances and dialogue situations.

[0035] The inference unit 112 generates a prompt that instructs self-inference, which includes the dialogue history, analyzes the situation, understands the intent of the dialogue, and determines the next operating mode. It then inputs the generated prompt to the LLM 111 and obtains its output to acquire the inference result (self-inference content). The inference unit 112 may also automatically generate the prompt instructing the LLM 111 to perform self-inference using the LLM.

[0036] In the dialogue device 10, the utterance of the dialogue partner itself is abstracted as a "tool call," and the interaction with the dialogue partner is defined as a tool call with multiple operating modes.

[0037] In this embodiment, a tool call with an operating mode is defined as follows. In this case, the inference unit 112 takes one of the following as the operating mode: call(message): Sends a new question or request for information to the other party. response(message): Responds to a question from the other party. response_and_call(response_message, new_question): Responds to the other party's question and sends a new question at the same time. wait(): Does not say anything at this time and waits for the other party's action. This may be automatically selected if the other party does not respond within a certain time.

[0038] The tool calling unit 113 uses the LLM 111 to select one of a plurality of actions, including at least a response and a wait, as the next action in the dialogue device 10, based on the inference result of the inference unit 112 (tool calling) (Figure 2 (3)).

[0039] The tool invocation unit 113 selects an "action" for the dialogue agent (dialogue unit 11) as a tool invocation. The inference unit 112 refers to the dialogue history, which is the history of interactions that occurred at each step of the dialogue and is stored in the dialogue history storage unit 12, and performs context-dependent inference. As a result, the tool invocation unit 113 can make strategic decisions (action selections) based on past utterances and dialogue situations.

[0040] The tool calling unit 113 generates prompts that instruct the dialogue device 10 to select the next action and generate the content of the specific action based on the inference results, inputs the generated prompts to the LLM 111, and obtains the output to acquire the action selection result. The tool calling unit 113 may also automatically generate prompts that instruct the LLM 111 to perform self-inference using the LLM.

[0041] If the operation mode inferred by the inference unit 112 is "call(message)", the tool calling unit 113 selects "ask a question" as the next action in the interaction device 10, and performs processing to specifically fill in the argument "(message)". That is, in the operation mode of responding, the tool calling unit 113 fills the content of the question, specifically what to ask, into the "(message)" part. In this case, the tool calling unit 113 generates a prompt that includes the interaction history, inference result, and action selection result, and instructs the generation of the content of the question to the interaction partner, inputs the generated prompt into the LLM 111, and obtains its output, thereby acquiring the action selection content including the question content.

[0042] Further, if the operation mode inferred by the inference unit 112 is "wait()", the tool calling unit 113 selects waiting as the next action in the interaction device 10.

[0043] Further, the tool calling unit 113 may plan an optimal sequence of actions according to the goal based on the inference result of the inference unit 112, and select an action including the planned action. The tool calling unit 113 may perform planning by inputting, into the LLM 111, a prompt that includes the interaction history and the inference result and instructs to plan an optimal sequence of actions. The tool calling unit 113 may perform planning using a policy decision module or an external module.

[0044] In the interaction unit 11, as shown in Figure 2, processing is performed in a series of flows in which the inference unit 112 understands and analyzes the situation (inference), and the tool calling unit 113 selects an optimal action based on the inference result by the inference unit 112 (tool calling). Here, the inference unit 112 and the tool calling unit 113 may cause the LLM 111 to output the inference result (text) acquired by the inference unit 112 and the action selection result (text) selected by the tool calling unit 113 at once.

[0045] Specifically, the format expressed by the interaction unit 11 (interaction agent) in this case will be described.

[0046] Figure 4 is a diagram illustrating an example of a format expressed by the dialogue agent. In each dialogue turn, the agent expresses its own reasoning and action selection in a format as shown in Figure 4.

[0047] Figure 5 is a diagram illustrating an example of outputs from the LLM 111, specifically self-reasoning and action selection. The reasoning unit 112 obtains the reasoning result (frame W11) shown in Figure 5, and the tool calling unit 113 selects "call(message)" based on the reasoning result (frame W11) to obtain the response content: "Could you briefly tell me about your professional career to date?". In this way, it is also possible to have the LLM 111 output the reasoning result (text) obtained by the reasoning unit 112 and the action selection result (text) selected by the tool calling unit 113 at once.

[0048] Note that, although the formats in Figure 4 and Figure 5 illustrate an example of using the Function Call implemented by the OpenAI (registered trademark) API, the present disclosure is not limited thereto. For example, when the dialogue partner is an AI agent, a protocol for dialogue between AI agents such as MCP (Model Context Protocol) can be applied as the protocol. The dialogue unit 11 may select the optimal protocol according to the dialogue partner, application field, type of action to be selected, and the like.

[0049] The response processing unit 114 transmits or waits for a response to the dialogue partner in accordance with the reasoning result of the reasoning unit 112 and the action selection result of the tool calling unit 113. For example, the response processing unit 114 responds to the dialogue partner in accordance with the reasoning result and the action selection result to perform message exchange and information collection ((4) in Figure 2).

[0050] The response processing unit 114 parses the output text showing the inference result of LLM 111 acquired by the inference unit 112, and the output text showing the action selection result of LLM 111 acquired by the tool calling unit 113, and, based on the format, extracts and formats, for example, the specific question content. Then, the response processing unit 114 outputs the formatted response content to the conversation partner. The output of the response processing unit 114 becomes the input of the conversation partner. For example, in the case of Figure 5, the response processing unit 114 extracts the question, "Could you briefly tell me about your work experience so far?" and sends it to the conversation partner.

[0051] Furthermore, if the tool calling unit 113 selects "wait" as the next action in the dialogue device 10, the response processing unit 114 will either wait for a reply from the dialogue partner or not respond.

[0052] The dialogue unit 11 records the dialogue history and saves it in the dialogue history storage unit 12 (Figure 2 (5)). The dialogue history includes the dialogue content, the reasoning content from the reasoning unit 112, and the content of the action selected by the tool calling unit 113.

[0053] Here, as shown in Figure 2(A) (asynchronous processing), the processing of the dialogue unit 11 is such that the dialogue itself progresses synchronously with the utterances of the dialogue partner, but the internal reasoning and action selection are performed asynchronously with the utterances of the dialogue partner.

[0054] In other words, the dialogue unit 11 can process conversations more efficiently, for example, by considering its next action while waiting for a response from the other party. The dialogue unit 11 conducts the conversation turns synchronously with the other party's utterances, and in each turn, the dialogue unit 11 (AI agent) decides on its own actions (call, response, response_and_call, wait) and exchanges information (conducts a conversation) by outputting questions and answers.

[0055] On the other hand, the inference process by the inference unit 112 and the inference process for action selection by the tool calling unit 113 are asynchronous with respect to the utterances of the dialogue partner. Therefore, while the dialogue partner (for example, an AI agent) is inferring, the dialogue unit 11 also proceeds in parallel with the inference process by the inference unit 112 and the inference process for action selection by the tool calling unit 113.

[0056] For example, when the conversation partner sends "call," the inference unit 112 (agent) of the dialogue unit 11 receives it, asynchronously starts its own inference process, and the tool calling unit 113 determines the appropriate response and response_and_call.

[0057] Each dialogue agent's decision-making process is independent and asynchronous, but ultimately, at the end of each turn, their actions align, and the dialogue proceeds synchronously.

[0058] "Synchronous dialogue progression" refers to a structure in which the dialogue unit 11 decides on and outputs its next action in response to an utterance from the dialogue partner (AI or human). The dialogue is synchronous in the sense that it always progresses with turn-taking and alternating utterances with the dialogue partner. In the dialogue unit 11, the inference by the reasoning unit 112, the action selection by the tool calling unit 113, and the utterance by the response processing unit 114 are basically performed synchronously as a series of processes within each dialogue turn.

[0059] On the other hand, "asynchronous" means that even if the dialogue partner continues to think for several turns, this state (non-utterance) is recognized as a "wait" action, and processing proceeds as if a turn has been completed. The dialogue unit 11 decides on its actions based on the dialogue partner's situation at that moment, including not only "explicit utterances from the dialogue partner" but also "non-response (i.e., the other party's wait action)."

[0060] Therefore, in the dialogue unit 11, although the processing itself is a series of steps, the timing of action determination is flexibly interpreted based on the other party's state, and the synchronization timing is dynamically formed. In other words, in the dialogue unit 11, "speaker change" is recognized as the end of a turn, regardless of whether there is a response or not, and functions as a trigger for the dialogue unit 11 to determine an action. Thus, in the dialogue unit 11, even in an asynchronous reasoning state, the structure ultimately results in a synchronous dialogue turn.

[0061] Next, we will return to Figures 1 and 2 and explain the reward calculation unit 13.

[0062] The reward calculation unit 13 calculates the evaluation of the dialogue strategy and the reward in the dialogue unit 11. The reward calculation unit 13 sets the reward based on the degree of objective achievement and information acquisition at the end of the dialogue (Figure 2 (6)).

[0063] The reward calculation unit 13 calculates an overall reward by combining multiple evaluation criteria, as shown in the "evaluation index" in Figure 2(B). For example, the evaluation criteria for the reward include the appropriateness of the inference format, the success rate of obtaining the target information, the efficiency of the dialogue (number of turns), and / or the naturalness of the dialogue. In the reinforcement learning in this embodiment, the quality of the dialogue history is evaluated, and its score is used as a reward for learning.

[0064] Figure 6 illustrates the reward function used by the reward calculation unit 13. Specifically, the reward calculation unit 13 uses the reward function shown in Figure 6. As shown in Figure 6, the reward calculation unit 13 calculates rewards for evaluating the format based on the inference description, evaluating the success of obtaining the target information (whether or not the target information was obtained), and evaluating the dialogue efficiency (whether the information was obtained in a small number of turns).

[0065] The calculation of rewards should ideally be based on a combination of evaluation criteria, including whether the inference format is appropriate (recommendation of reasoning), whether the target information was successfully obtained, and the efficiency of the dialogue leading to information acquisition (obtaining the information in a short number of turns).

[0066] The reinforcement learning unit 14 uses reinforcement learning methods such as GRPO to update the model parameters of the LLM 111 based on the evaluated dialogue history and rewards, thereby optimizing the dialogue strategy.

[0067] After the reinforcement learning unit 14 updates the model parameters of the LLM 111, the dialogue unit 11 proceeds to the next dialogue (Figure 2 (7)). The dialogue device 10 executes a learning cycle consisting of dialogue processing by the dialogue unit 11, reward calculation processing and evaluation processing by the reward calculation unit 13, and model parameter update processing of the LLM 111 by the reinforcement learning unit 14, thereby enabling the application of a more optimized strategy in the next dialogue.

[0068] Figure 7 shows an example of code for learning using GRPO. As shown in Figure 7, the reinforcement learning unit 14 prepares a dialogue dataset with rewards and updates the model parameters of LLM 111 by learning with GRPO.

[0069] [Learning Process] The learning process according to the embodiment will now be described. Figure 8 is a diagram showing an example of the processing procedure for the learning process according to the embodiment.

[0070] The dialogue device 10 first initializes the dialogue (step S21). Then, the dialogue unit 11 checks the speech status (step S22). The dialogue unit 11 checks whether or not the other party to the dialogue has responded.

[0071] In the dialogue unit 11, the inference unit 112 performs inference processing (step S23), and the tool calling unit 113 performs action selection processing (step S24). In the inference processing, based on the dialogue history with the dialogue partner and / or the content of the dialogue with the dialogue partner, the system analyzes the situation during the dialogue, including cases where the dialogue partner is responsive or unresponsive, infers the intent of the dialogue, and the next operating mode of the dialogue device 10. In the action selection processing, based on the inference results from the inference processing, the system selects one of several actions, including at least responding and waiting, as the next action of the dialogue device 10. Actions include "call," "response," "response_and_call," and "wait."

[0072] The response processing unit 114 performs response processing (step S25) to send a response to the dialogue partner according to the inference result and the action selection result, and performs message exchange and information gathering. If the action selection result is "wait", the response processing unit 114 does not send a response and waits.

[0073] If the dialogue device 10 selects "wait" because the other party's response is delayed or does not exist, it will either wait for a predetermined period for the other party's reply or return to step S22 without replying, and perform reasoning and action selection.

[0074] The dialogue device 10 performs reasoning and action selection in response to the other party's utterance. However, even if the other party's response is delayed or absent, it is possible to make flexible and spontaneous strategic action decisions, including options such as "spontaneous call" or "wait." In the dialogue device 10, the dialogue itself proceeds synchronously. In other words, in the dialogue device 10, the dialogue always progresses with turn-taking and exchange of utterances with the dialogue partner. On the other hand, in the dialogue device 10, reasoning and action selection in the dialogue unit 11 are performed asynchronously with the dialogue partner's utterance. This is because the dialogue device 10 also allows strategic actions, including "wait" and "active call." Therefore, the dialogue device 10 can perform proactive and sophisticated actions, rather than the utterance input simply being the trigger for steps S23 to S25.

[0075] The dialogue unit 11 records the dialogue history and saves it to the dialogue history storage unit 12 (step S26).

[0076] The reward calculation unit 13 calculates the evaluation of the dialogue strategy and the reward in the dialogue unit 11 (step S27). The reinforcement learning unit 14 uses a reinforcement learning method to update the model parameters of the LLM 111 based on the evaluated dialogue history and reward (step S28) and optimize the dialogue strategy.

[0077] If there is a next dialogue (step S29: Yes), the dialogue device 10 returns to step S22. If there is no next dialogue (step S29: No), the dialogue device 10 terminates the process.

[0078] [Effects of the Embodiment] The dialogue device 10 according to the embodiment provides the following first to fifth effects.

[0079] (First Effect) The dialogue device 10 can improve strategic information gathering capabilities. By treating the utterances of the dialogue partner as explicit tool calls, the dialogue system can strategically extract the intentions and information held by the other party according to the purpose. As a result, using the dialogue device 10 enables efficient and accurate information gathering in complex dialogue tasks such as negotiations and interviews.

[0080] (Second Effect) The dialogue device 10 enables the acquisition of active and flexible dialogue behavior. Unlike conventional dialogue systems, the LLM 111 learned in the dialogue device 10 can proactively initiate conversations without waiting for a response from the other party in order to acquire information or achieve a goal, or it can make strategic choices such as deliberately not responding. The dialogue device 10 can achieve highly advanced and flexible dialogue behavior similar to that of a human, such as initiating a conversation again when the other party hesitates to respond, or asking another question when the other party ignores it. In particular, when the dialogue partner is a human, asynchronous reasoning and action selection within the dialogue device 10 are effective because responses may not be received immediately.

[0081] (Third effect) The dialogue device 10 enables adaptation to asynchronous and bidirectional communication. The dialogue device 10 can strategically select a variety of dialogue actions, including asynchronous and bidirectional ones, such as "waiting," "asking a follow-up question," and "asking a question simultaneously with the response," as needed, while considering the other party's response time and intentions. As a result, the dialogue device 10 can effectively conduct dialogue even in asynchronous communication environments such as email and chat, which do not assume real-time capabilities. Furthermore, while existing AI agents respond, the dialogue device 10 can choose not to respond to questions about information that should not be disclosed externally, such as corporate information or personal information.

[0082] (Fourth effect) The dialogue device 10 enables expansion into a cooperative and competitive multi-agent environment. The dialogue device 10 can be applied to a multi-agent system aimed at cooperation and negotiation among AI agents, and each AI agent can aim to achieve its objectives by optimizing dialogue with each other based on its own objectives. As a result, the dialogue device 10 makes it possible to realize an advanced multi-agent system that autonomously and flexibly cooperates and competes without requiring central control.

[0083] (Fifth Effect) The dialogue device 10 has the potential for widespread practical application and use. By using the dialogue device 10, it is possible to deploy it in a wide range of fields where complex and strategic dialogue is required, such as negotiation dialogue, interview dialogue, counseling, marketing research, customer support, online education, and virtual assistants. In particular, the dialogue device 10 enables proactive and assertive dialogue behavior that was difficult to achieve with conventional systems, allowing for effective communication even in the face of user psychological resistance, silence, or ambiguous attitudes. Examples of applications are described below.

[0084] [Application Example 1] The dialogue device 10 can be applied to negotiation agents. The framework of the dialogue device 10 can be applied to negotiation agents who conduct commercial transactions and contract negotiations.

[0085] In this case, the call / response content will be price proposals and condition negotiations. Furthermore, the following special actions can be defined as the operating modes inferred by the inference unit 112 and the actions taken by the tool calling unit 113: make_offer(price, conditions): Make a specific proposal. counter_offer(price, conditions): Present a counter-proposal to the other party's proposal. accept(): Accept the other party's proposal. reject(): Reject the other party's proposal.

[0086] In the compensation design of the compensation calculation unit 13, evaluation indicators include the final transaction price, the success / failure of negotiations, and negotiation efficiency. For example, a high selling price results in a high compensation for the seller's agent, while a low purchase price results in a high compensation for the buyer's agent.

[0087] [Application Example 2] The dialogue device 10 can be applied to a multi-agent cooperative system.

[0088] In a scenario where multiple AI agents cooperate to solve a problem, the following additional actions can be defined as the operating mode inferred by the inference unit 112 and the actions taken by the tool calling unit 113: request_help(agent_id, task): Request assistance from a specific agent. offer_information(info): Provide information voluntarily. coordinate_action(action_plan): Propose a joint action plan.

[0089] The reward design in the reward calculation unit 13 evaluates the overall team's goal achievement, collaborative efficiency, and the appropriateness of resource sharing. By combining individual agent rewards with group-wide rewards, appropriate collaborative behavior can be promoted.

[0090] [Application Example 3] The dialogue device 10 can be applied to competitive game AI (such as Werewolf AI).

[0091] In competitive games with incomplete information, such as Werewolf, the following special actions can be defined as the operation modes inferred by the inference unit 112 and the actions taken by the tool calling unit 113: make_statement(claim): Make a claim about one's own role or other players. question_player(player_id, question): Ask a question to another player. vote(player_id): Take the action of voting. analyze_inconsistency(statements): Analyze inconsistencies in statements.

[0092] In the reward design of the reward calculation unit 13, in addition to winning or losing the game, persuasive statements, effective information gathering, and strategic voting behavior are evaluated. For example, it can learn strategies for a werewolf agent to survive while gaining the trust of the villagers, or strategies for a villager agent to efficiently find the werewolf.

[0093] Because it can be applied to various fields in this way, the dialogue device 10 goes beyond being merely a conversation system and can be applied to a variety of practical scenarios involving complex interactions.

[0094] In this embodiment, one LLM 111 is used for "inference ( <think>...) ...) ...action selection (function_call) ... and speech generation (message) ... have been described as a dialogue device 10 configured to handle all of these. However, the inference unit 112 and the tool calling unit 113 may be separated into modules, and the processing of the inference unit 112 and the tool calling unit 113 may be divided among multiple LLMs. In this case, the reinforcement learning of the reinforcement learning unit 14 will target either or both of the functionally divided LLMs of the inference unit 112 and the tool calling unit 113.

[0095] [Regarding the System Configuration of the Embodiment] Each component of the dialogue device 10 is a functional concept and does not necessarily have to be physically configured as shown in the illustration. In other words, the specific forms of distribution and integration of the functions of the dialogue device 10 are not limited to those shown in the illustration, and all or part of it can be configured by functionally or physically distributing or integrating in any unit according to various loads and usage conditions.

[0096] Furthermore, each process performed in the dialogue device 10 may be implemented, in whole or in part, by a CPU, a GPU (Graphics Processing Unit), and a program that is analyzed and executed by the CPU and GPU. Alternatively, each process performed in the dialogue device 10 may be implemented as hardware using wired logic.

[0097] Furthermore, among the processes described in the embodiments, all or part of the processes described as being performed automatically can be performed manually. Alternatively, all or part of the processes described as being performed manually can be performed automatically by known methods. In addition, the processing procedures, control procedures, specific names, and information including various data and parameters described above and illustrated may be changed as appropriate unless otherwise specified.

[0098] [Program] Figure 9 shows an example of a computer in which the interactive device 10 is realized when a program is executed. The computer 1000 has, for example, memory 1010 and CPU 1020. The computer 1000 also has a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.

[0099] Memory 1010 includes ROM 1011 and RAM 1012. ROM 1011 stores, for example, a boot program such as a BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to the hard disk drive 1090. The disk drive interface 1040 is connected to the disk drive 1100. For example, a removable storage medium such as a magnetic disk or optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to, for example, a mouse 1110 and a keyboard 1120. The video adapter 1060 is connected to, for example, a display 1130.

[0100] The hard disk drive 1090 stores, for example, an OS (Operating System) 1091, an application program 1092, a program module 1093, and program data 1094. That is, the program that defines each process of the interactive device 10 is implemented as a program module 1093 in which code executable by the computer 1000 is written. The program module 1093 is stored, for example, in the hard disk drive 1090. For example, a program module 1093 for performing processes similar to the functional configuration of the interactive device 10 is stored in the hard disk drive 1090. Note that the hard disk drive 1090 may be replaced by an SSD (Solid State Drive).

[0101] Furthermore, the configuration data used in the processing of the above-described embodiment is stored as program data 1094 in, for example, memory 1010 or hard disk drive 1090. The CPU 1020 then reads the program module 1093 and program data 1094 stored in memory 1010 or hard disk drive 1090 into RAM 1012 as needed and executes them.

[0102] Furthermore, the program module 1093 and program data 1094 are not limited to being stored in the hard disk drive 1090; for example, they may be stored in a removable storage medium and read by the CPU 1020 via a disk drive 1100 or the like. Alternatively, the program module 1093 and program data 1094 may be stored in another computer connected via a network (LAN (Local Area Network), WAN (Wide Area Network), etc.). The program module 1093 and program data 1094 may then be read by the CPU 1020 from the other computer via a network interface 1070.

[0103] The functions of the elements disclosed herein may be implemented using circuits or processing circuitry that include general-purpose processors, special-purpose processors, integrated circuits, ASICs (Application Specific Integrated Circuits), FPGAs (Field Programmable Gate Arrays), conventional circuits, and / or combinations thereof that are programmed using one or more programs stored in one or more memories, or otherwise configured to perform the disclosed functions. A processor is considered processing circuitry or circuitry because it includes transistors and other circuits. A processor may be a programmed processor that executes programs stored in memory. In this disclosure, a circuit, unit, or means is hardware that performs the enumerated functions, or hardware programmed to perform the enumerated functions. Hardware may be any hardware disclosed herein that is programmed or configured to perform the enumerated functions.

[0104] There is a memory for storing a computer program that includes computer instructions. These computer instructions provide logic and routines that enable hardware (e.g., processing circuitry or circuitry) to perform the methods disclosed herein. This computer program can be implemented in commonly known forms, such as computer-readable storage media, computer program products, memory devices, recording media such as CD-ROMs and DVDs, and / or memory in FPGAs and ASICs.

[0105] Although embodiments applying the invention made by the present inventors have been described above, the present invention is not limited by the descriptions and drawings that constitute part of the disclosure of the present invention in these embodiments. That is, all other embodiments, examples, and operational techniques made by those skilled in the art based on these embodiments are included in the scope of the present invention.

[0106] 10 Dialogue device 11 Dialogue unit 12 Dialogue history storage unit 13 Reward calculation unit 14 Reinforcement learning unit 111 LLM 112 Inference unit 113 Tool call unit 114 Response processing unit< / think>

Claims

1. A dialogue device for engaging in dialogue with a dialogue partner, comprising: an inference unit that uses a large-scale language model to analyze the situation during the dialogue, including cases where the dialogue partner is responsive and non-responsive, the intent of the dialogue, and the next operating mode of the dialogue device, based on the dialogue history and / or the content of the dialogue with the dialogue partner; a selection unit that uses the large-scale language model to select one of a plurality of actions, including at least responding and waiting, as the next action of the dialogue device based on the inference result of the inference unit; and a response processing unit that transmits a response to the dialogue partner or waits, according to the inference result of the inference unit and the action selection result of the selection unit.

2. The dialogue device according to claim 1, characterized in that the selection unit plans the optimal action according to the dialogue goal with the dialogue partner based on the inference result, and selects an action, including the planned action.

3. The dialogue device according to claim 1, further comprising: a reward calculation unit that calculates an evaluation and a reward for the dialogue strategy in the dialogue unit; and a learning unit that updates the model parameters of the large-scale language model based on the dialogue history and the evaluation and reward calculated by the reward calculation unit.

4. The dialogue device according to claim 3, characterized in that the reward calculation unit evaluates the quality of the dialogue history using the appropriateness of the inference format, the success rate of obtaining the target information, the efficiency of the dialogue, and / or whether or not the dialogue is natural as reward evaluation criteria, and calculates an evaluation score as the reward.

5. A dialogue method performed by a dialogue device, comprising: using a large-scale language model to analyze the situation during the dialogue, including cases where the dialogue partner is responsive and non-responsive, the intent of the dialogue, and the next operating mode of the dialogue device, based on the dialogue history with the dialogue partner and / or the content of the dialogue with the dialogue partner; using the large-scale language model to select one of a plurality of actions, including at least responding and waiting, as the next action of the dialogue device based on the result of the inference; and sending a response to the dialogue partner or waiting, depending on the result of the inference and the result of the action selection.

6. A dialogue program that uses a large-scale language model to analyze the situation during a dialogue, including cases where the dialogue partner is responsive or unresponsive, the intent of the dialogue, and the next mode of action, based on the dialogue history and / or the content of the dialogue with the dialogue partner; uses the large-scale language model to select one of a plurality of actions, including at least responding and waiting, as the next action, based on the results of the inference; and causes the computer to send a response to the dialogue partner or wait, depending on the results of the inference and the selection of the action.