Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7731849B2 - Dialogue management device, dialogue management method, and dialogue management system - Google Patents
[go: Go Back, main page]

JP7731849B2 - Dialogue management device, dialogue management method, and dialogue management system - Google Patents

Dialogue management device, dialogue management method, and dialogue management system

Info

Publication number
JP7731849B2
JP7731849B2 JP2022088123A JP2022088123A JP7731849B2 JP 7731849 B2 JP7731849 B2 JP 7731849B2 JP 2022088123 A JP2022088123 A JP 2022088123A JP 2022088123 A JP2022088123 A JP 2022088123A JP 7731849 B2 JP7731849 B2 JP 7731849B2
Authority
JP
Japan
Prior art keywords
answer
domain
sentence
question
generation unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2022088123A
Other languages
Japanese (ja)
Other versions
JP2023176054A (en
Inventor
イスティクラリ アディバ アマリア
健 本間
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2022088123A priority Critical patent/JP7731849B2/en
Priority to PCT/JP2023/019238 priority patent/WO2023234128A1/en
Publication of JP2023176054A publication Critical patent/JP2023176054A/en
Application granted granted Critical
Publication of JP7731849B2 publication Critical patent/JP7731849B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、対話管理装置、対話管理方法及び対話管理システムに関する。 The present invention relates to a dialogue management device, a dialogue management method, and a dialogue management system.

近年、機械に言語理解能力を与えることは、自然言語処理や人工知能における中心的な課題である。Machine Reading Comprehension(MRC)は、機械の言語理解能力を開発・評価するためのタスクであり、定められた文章に関して設定された質問に正しく解答できるか否かにより、機械による理解度を測ることができる。更に、MRCの技術を産業に応用し、人間の質問に回答する対話システムで利用することができる。 In recent years, giving machines the ability to understand language has become a central challenge in natural language processing and artificial intelligence. Machine Reading Comprehension (MRC) is a task for developing and evaluating a machine's language understanding ability, and the machine's level of understanding can be measured by whether it can correctly answer questions set about a set sentence. Furthermore, MRC technology can be applied to industry and used in dialogue systems that answer human questions.

現在のMRCの問題点の一つに、与えられる対象の文章中に質問の答えが存在するとは限らないことが挙げられる。質問の答えが与えられる対象の文章中に存在しない場合、MRCモデルは、学習した手掛かりに基づいて対象の文章から最善と考えられる答えを回答するが、質問に対する正しい答えが文章に存在しないため、質問への妥当な答えとはならない、不適切な応答を出力してしまうという課題がある。 One of the problems with current MRC is that the answer to a question may not necessarily exist in the given target text. When the answer to a question does not exist in the given target text, the MRC model will provide the best possible answer from the target text based on the clues it has learned. However, because the correct answer to the question does not exist in the text, the model may output an inappropriate response that is not a valid answer to the question.

与えられる対象の文章中に質問の答えが存在しない場合に、MRCモデルが不適切な応答を出力してしまうという課題について、いくつかの提案がなされている。
例えば、中西真央、小林哲則、林良彦の研究(非特許文献1)には、「本研究では、既存のデータセットから自動的に答えのない質問データを作成する簡潔な手法を提案
する。さらに、答えのない質問に対して、その質問が文章中に答えを持たないことを識別することの難易度を自動的に付与する方法を提案する。これにより、作成するデータセットが一定の難易度を持つように制御できることを示す。」技術が開示されている。
Several proposals have been made to address the problem that MRC models output inappropriate responses when the answer to a question does not exist in the given target sentence.
For example, research by Nakanishi Mao, Kobayashi Tetsunori, and Hayashi Yoshihiko (Non-Patent Document 1) discloses the following technology: "In this study, we propose a simple method for automatically creating unanswered question data from existing datasets. Furthermore, we propose a method for automatically assigning a level of difficulty to unanswered questions to identify that the question does not have an answer in the text. This demonstrates that it is possible to control the created dataset to have a certain level of difficulty."

中西真央、小林哲則、林良彦、「答えのないことを答えるMachine Reading Comprehension」、早稲田大学理工学術院、言語処理学会、第24回年次大会、発表論文集、2018年3月Mao Nakanishi, Tetsunori Kobayashi, Yoshihiko Hayashi, "Machine Reading Comprehension: Answering the Unanswerable," Faculty of Science and Engineering, Waseda University, Association for Natural Language Processing, 24th Annual Conference, Proceedings of the 2018 Annual Meeting, March 2018.

上記の非特許文献1には、文章中に記述のない内容に関する質問に対して、「回答できない」と応答できるMRCモデルを訓練するデータセットの作成方法や、質問が文章中に答えを持たないことを識別することの難易度を付与する方法が記載されている。 The above-mentioned non-patent document 1 describes a method for creating a dataset to train an MRC model that can respond "unable to answer" to questions about content not described in the text, and a method for assigning a level of difficulty to identify questions that do not have an answer in the text.

上記の非特許文献1によれば、文章中に記述のない内容に関する質問に対して「回答できない」と応答できるMRCモデルを訓練することができるとされている。しかし、ユーザの観点からは、「回答できない」との応答では十分と感じられず、不満につながる場合がある。このため、文章中に記述のない内容についても適切な応答を出力する手法は非特許文献1では検討されておらず、今後の検討課題となっている。 According to the above-mentioned Non-Patent Document 1, it is possible to train an MRC model that can respond "I cannot answer" to questions about content not described in the text. However, from the user's perspective, the response "I cannot answer" may not be perceived as sufficient, leading to dissatisfaction. For this reason, Non-Patent Document 1 does not consider a method for outputting an appropriate response even for content not described in the text, and this is an issue that needs to be explored in the future.

そこで、本開示は、自然言語の会話に基づいて生成した参照文章を用いてMRCモデルを訓練することで、様々な質問に対応できる、柔軟性及びロバスト性が高い対話管理手段を提供することを目的とする。 The present disclosure therefore aims to provide a highly flexible and robust dialogue management means that can respond to a variety of questions by training an MRC model using reference sentences generated based on natural language conversations.

上記の課題を解決するために、代表的な本発明の対話管理装置の一つは、第1の質問を受信し、前記第1の質問に対する第1の回答を、第1の参照文章に基づいて生成する回答生成部と、質問及び回答を含む対話データに基づいて、前記質問及び回答の内容を含む第2の参照文章を生成する文章生成部と、前記対話データと、第2の質問に対する正しい回答を示す第2の回答ラベルと、前記第2の参照文章とを用いて、前記第2の質問に対する適切な回答を生成するように前記回答生成部を訓練する適応部とを含む。 To solve the above problem, one representative dialogue management device of the present invention includes an answer generation unit that receives a first question and generates a first answer to the first question based on a first reference sentence; a sentence generation unit that generates a second reference sentence including the content of the question and answer based on dialogue data including the question and answer; and an adaptation unit that trains the answer generation unit to generate an appropriate answer to the second question using the dialogue data, a second answer label indicating a correct answer to the second question, and the second reference sentence.

本開示によれば、自然言語の会話に基づいて生成した参照文章を用いてMRCモデルを訓練することで、様々な質問に対応できる、柔軟性及びロバスト性が高い対話管理手段を提供することができる。
上記以外の課題、構成及び効果は、以下の発明を実施するための形態における説明により明らかにされる。
According to the present disclosure, by training an MRC model using reference sentences generated based on natural language conversations, it is possible to provide a highly flexible and robust dialogue management means that can respond to a variety of questions.
Problems, configurations, and effects other than those described above will become apparent from the following description of the preferred embodiment of the invention.

図1は、本開示の実施形態を実施するためのコンピュータシステムを示す図である。FIG. 1 is a diagram illustrating a computer system for implementing an embodiment of the present disclosure. 図2は、従来のMRCモデルを用いた質問応答処理の流れを示す図である。FIG. 2 is a diagram showing the flow of a question-answering process using a conventional MRC model. 図3は、本開示の実施形態に係る対話管理システムの構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of a configuration of a dialogue management system according to an embodiment of the present disclosure. 図4は、本開示の実施形態に係る回答生成部を訓練するための回答生成部訓練処理の流れの一例を示すブロック図であるFIG. 4 is a block diagram illustrating an example of the flow of an answer generator training process for training an answer generator according to an embodiment of the present disclosure. 図5は、本開示の実施形態に係る文章生成部訓練処理の流れの一例を示すブロック図である。FIG. 5 is a block diagram illustrating an example of the flow of a sentence generation unit training process according to an embodiment of the present disclosure. 図6は、本開示の実施形態に係る文脈ラベル生成処理の具体例を示す図である。FIG. 6 is a diagram illustrating a specific example of a context label generation process according to an embodiment of the present disclosure. 図7は、本開示の実施形態に係る対話集約処理の具体例を示す図である。FIG. 7 is a diagram illustrating a specific example of the dialogue aggregation process according to an embodiment of the present disclosure. 図8は、本開示の実施形態に係る適応処理の流れの一例を示すブロック図である。FIG. 8 is a block diagram showing an example of the flow of adaptation processing according to an embodiment of the present disclosure.

以下、図面を参照して、本発明の実施形態について説明する。なお、この実施形態により本発明が限定されるものではない。また、図面の記載において、同一部分には同一の符号を付して示している。
また、「第1」、「第2」、「第3」等の用語は、本開示において様々な要素又は構成要素を説明するのに用いられる場合があるが、これらの要素又は構成要素はこれらの用語によって限定されるべきでないことが理解されるであろう。これらの用語は、或る要素又は構成要素を別の要素又は構成要素と区別するためにのみ用いられる。したがって、以下で論述する第1の要素又は構成要素は、本発明概念の教示から逸脱することなく第2の要素又は構成要素と呼ぶこともできる。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that the present invention is not limited to this embodiment. In addition, in the description of the drawings, the same parts are designated by the same reference numerals.
Additionally, although terms such as "first,""second," and "third" may be used to describe various elements or components in this disclosure, it will be understood that these elements or components should not be limited by these terms. These terms are used only to distinguish one element or component from another. Thus, a first element or component discussed below could also be referred to as a second element or component without departing from the teachings of the inventive concept.

次に、図1を参照して、本開示の実施形態を実施するためのコンピュータシステム100について説明する。本明細書で開示される様々な実施形態の機構及び装置は、任意の適切なコンピューティングシステムに適用されてもよい。コンピュータシステム100の主要コンポーネントは、1つ以上のプロセッサ102、メモリ104、端末インターフェース112、ストレージインタフェース113、I/O(入出力)デバイスインタフェース114、及びネットワークインターフェース115を含む。これらのコンポーネントは、メモリバス106、I/Oバス108、バスインターフェースユニット109、及びI/Oバスインターフェースユニット110を介して、相互的に接続されてもよい。 Next, referring to FIG. 1, a computer system 100 for implementing embodiments of the present disclosure will be described. The mechanisms and devices of various embodiments disclosed herein may be applied to any suitable computing system. The main components of the computer system 100 include one or more processors 102, memory 104, a terminal interface 112, a storage interface 113, an I/O (input/output) device interface 114, and a network interface 115. These components may be interconnected via a memory bus 106, an I/O bus 108, a bus interface unit 109, and an I/O bus interface unit 110.

コンピュータシステム100は、プロセッサ102と総称される1つ又は複数の汎用プログラマブル中央処理装置(CPU)102A及び102Bを含んでもよい。ある実施形態では、コンピュータシステム100は複数のプロセッサを備えてもよく、また別の実施形態では、コンピュータシステム100は単一のCPUシステムであってもよい。各プロセッサ102は、メモリ104に格納された命令を実行し、オンボードキャッシュを含んでもよい。 Computer system 100 may include one or more general-purpose programmable central processing units (CPUs) 102A and 102B, collectively referred to as processors 102. In some embodiments, computer system 100 may include multiple processors, while in other embodiments, computer system 100 may be a single CPU system. Each processor 102 executes instructions stored in memory 104 and may include an on-board cache.

ある実施形態では、メモリ104は、データ及びプログラムを記憶するためのランダムアクセス半導体メモリ、記憶装置、又は記憶媒体(揮発性又は不揮発性のいずれか)を含んでもよい。メモリ104は、本明細書で説明する機能を実施するプログラム、モジュール、及びデータ構造のすべて又は一部を格納してもよい。例えば、メモリ104は、対話管理アプリケーション150を格納していてもよい。ある実施形態では、対話管理アプリケーション150は、後述する機能をプロセッサ102上で実行する命令又は記述を含んでもよい。 In some embodiments, memory 104 may include random-access semiconductor memory, storage devices, or storage media (either volatile or non-volatile) for storing data and programs. Memory 104 may store all or part of the programs, modules, and data structures that implement the functions described herein. For example, memory 104 may store a dialogue management application 150. In some embodiments, dialogue management application 150 may include instructions or descriptions that execute the functions described below on processor 102.

ある実施形態では、対話管理アプリケーション150は、プロセッサベースのシステムの代わりに、またはプロセッサベースのシステムに加えて、半導体デバイス、チップ、論理ゲート、回路、回路カード、および/または他の物理ハードウェアデバイスを介してハードウェアで実施されてもよい。ある実施形態では、対話管理アプリケーション150は、命令又は記述以外のデータを含んでもよい。ある実施形態では、カメラ、センサ、または他のデータ入力デバイス(図示せず)が、バスインターフェースユニット109、プロセッサ102、またはコンピュータシステム100の他のハードウェアと直接通信するように提供されてもよい。 In some embodiments, the dialogue management application 150 may be implemented in hardware via semiconductor devices, chips, logic gates, circuits, circuit cards, and/or other physical hardware devices instead of or in addition to a processor-based system. In some embodiments, the dialogue management application 150 may include data other than instructions or descriptions. In some embodiments, a camera, sensor, or other data input device (not shown) may be provided to communicate directly with the bus interface unit 109, the processor 102, or other hardware of the computer system 100.

コンピュータシステム100は、プロセッサ102、メモリ104、表示システム124、及びI/Oバスインターフェースユニット110間の通信を行うバスインターフェースユニット109を含んでもよい。I/Oバスインターフェースユニット110は、様々なI/Oユニットとの間でデータを転送するためのI/Oバス108と連結していてもよい。I/Oバスインターフェースユニット110は、I/Oバス108を介して、I/Oプロセッサ(IOP)又はI/Oアダプタ(IOA)としても知られる複数のI/Oインタフェースユニット112,113,114、及び115と通信してもよい。 Computer system 100 may include a bus interface unit 109 that facilitates communication between processor 102, memory 104, display system 124, and I/O bus interface unit 110. I/O bus interface unit 110 may couple to I/O bus 108 for transferring data to and from various I/O units. I/O bus interface unit 110 may communicate via I/O bus 108 with multiple I/O interface units 112, 113, 114, and 115, also known as I/O processors (IOPs) or I/O adapters (IOAs).

表示システム124は、表示コントローラ、表示メモリ、又はその両方を含んでもよい。表示コントローラは、ビデオ、オーディオ、又はその両方のデータを表示装置126に提供することができる。また、コンピュータシステム100は、データを収集し、プロセッサ102に当該データを提供するように構成された1つまたは複数のセンサ等のデバイスを含んでもよい。 Display system 124 may include a display controller, a display memory, or both. The display controller may provide video, audio, or both data to display device 126. Computer system 100 may also include one or more sensors or other devices configured to collect data and provide that data to processor 102.

例えば、コンピュータシステム100は、心拍数データやストレスレベルデータ等を収集するバイオメトリックセンサ、湿度データ、温度データ、圧力データ等を収集する環境センサ、及び加速度データ、運動データ等を収集するモーションセンサ等を含んでもよい。これ以外のタイプのセンサも使用可能である。表示システム124は、単独のディスプレイ画面、テレビ、タブレット、又は携帯型デバイスなどの表示装置126に接続されてもよい。 For example, computer system 100 may include biometric sensors that collect heart rate data, stress level data, etc., environmental sensors that collect humidity data, temperature data, pressure data, etc., and motion sensors that collect acceleration data, movement data, etc. Other types of sensors may also be used. Display system 124 may be connected to a display device 126, such as a standalone display screen, a television, a tablet, or a handheld device.

I/Oインタフェースユニットは、様々なストレージ又はI/Oデバイスと通信する機能を備える。例えば、端末インタフェースユニット112は、ビデオ表示装置、スピーカテレビ等のユーザ出力デバイスや、キーボード、マウス、キーパッド、タッチパッド、トラックボール、ボタン、ライトペン、又は他のポインティングデバイス等のユーザ入力デバイスのようなユーザI/Oデバイス116の取り付けが可能である。ユーザは、ユーザインターフェースを使用して、ユーザ入力デバイスを操作することで、ユーザI/Oデバイス116及びコンピュータシステム100に対して入力データや指示を入力し、コンピュータシステム100からの出力データを受け取ってもよい。ユーザインターフェースは例えば、ユーザI/Oデバイス116を介して、表示装置に表示されたり、スピーカによって再生されたり、プリンタを介して印刷されたりしてもよい。 The I/O interface unit provides the ability to communicate with various storage or I/O devices. For example, the terminal interface unit 112 may be equipped with user I/O devices 116, such as user output devices such as a video display, a television with speakers, or other user input devices such as a keyboard, mouse, keypad, touchpad, trackball, buttons, light pen, or other pointing device. A user may use a user interface to enter input data or instructions into the user I/O devices 116 and the computer system 100 and receive output data from the computer system 100 by operating the user input devices. The user interface may be displayed on a display, played through speakers, or printed via a printer via the user I/O devices 116, for example.

ストレージインタフェース113は、1つ又は複数のディスクドライブや直接アクセスストレージ装置117(通常は磁気ディスクドライブストレージ装置であるが、単一のディスクドライブとして見えるように構成されたディスクドライブのアレイ又は他のストレージ装置であってもよい)の取り付けが可能である。ある実施形態では、ストレージ装置117は、任意の二次記憶装置として実装されてもよい。メモリ104の内容は、ストレージ装置117に記憶され、必要に応じてストレージ装置117から読み出されてもよい。I/Oデバイスインタフェース114は、プリンタ、ファックスマシン等の他のI/Oデバイスに対するインターフェースを提供してもよい。ネットワークインターフェース115は、コンピュータシステム100と他のデバイスが相互的に通信できるように、通信経路を提供してもよい。この通信経路は、例えば、ネットワーク130であってもよい。 Storage interface 113 allows attachment of one or more disk drives or direct access storage devices 117 (typically magnetic disk drive storage devices, but may also be an array of disk drives or other storage devices configured to appear as a single disk drive). In some embodiments, storage device 117 may be implemented as any secondary storage device. The contents of memory 104 may be stored in storage device 117 and retrieved from storage device 117 as needed. I/O device interface 114 may provide an interface to other I/O devices, such as printers, fax machines, etc. Network interface 115 may provide a communications path that allows computer system 100 and other devices to communicate with each other. This communications path may be, for example, network 130.

ある実施形態では、コンピュータシステム100は、マルチユーザメインフレームコンピュータシステム、シングルユーザシステム、又はサーバコンピュータ等の、直接的ユーザインターフェースを有しない、他のコンピュータシステム(クライアント)からの要求を受信するデバイスであってもよい。他の実施形態では、コンピュータシステム100は、デスクトップコンピュータ、携帯型コンピューター、ノートパソコン、タブレットコンピュータ、ポケットコンピュータ、電話、スマートフォン、又は任意の他の適切な電子機器であってもよい。 In some embodiments, computer system 100 may be a device that receives requests from other computer systems (clients) without a direct user interface, such as a multi-user mainframe computer system, a single-user system, or a server computer. In other embodiments, computer system 100 may be a desktop computer, a portable computer, a laptop, a tablet computer, a pocket computer, a telephone, a smartphone, or any other suitable electronic device.

次に、図2を参照して、従来のMRCモデルを用いた質問応答処理の流れについて説明する。 Next, we will explain the flow of question-answering processing using a conventional MRC model, with reference to Figure 2.

上述したように、従来から、自然言語処理や人工知能において、機械に言語理解能力を与える手段として、Machine Reading Comprehension(MRC)は知られている。MRCは、機械の言語理解能力を開発・評価するためのタスクであり、定められた文章に関して設定された質問に正しく解答できるかにより、機械による理解度を測ることができる。従来のMRCを用いた質問応答処理の流れは、図2に示される。 As mentioned above, Machine Reading Comprehension (MRC) has long been known in the fields of natural language processing and artificial intelligence as a means of giving machines language understanding capabilities. MRC is a task for developing and evaluating a machine's language understanding capabilities, and the machine's level of understanding can be measured by whether it can correctly answer questions set regarding a set sentence. The flow of question-answering processing using conventional MRC is shown in Figure 2.

まず、ステップS210では、「スマホをどうやってWiFi(登録商標)に接続する?」等の質問215を受け付けた後、ステップS220訓練済みのMRC部は、受け付けた質問215を自然言語処理で解析し、予め用意された参照文章225を参照し、質問215の回答となる箇所の始点及び終点を規定する回答インデックスを参照文章225において特定する。その後、ステップS230では、特定した回答インデックスに規定される文章箇所が、質問215の回答として出力される。 First, in step S210, a question 215 such as "How do I connect my smartphone to Wi-Fi (registered trademark)?" is received. Then, in step S220, the trained MRC unit analyzes the received question 215 using natural language processing, refers to a pre-prepared reference sentence 225, and identifies an answer index in the reference sentence 225 that specifies the start and end points of the part that answers the question 215. Then, in step S230, the part of the sentence specified by the identified answer index is output as the answer to the question 215.

一例として、「スマホをどうやってWiFiに接続する?」との質問215を受け付けた場合、訓練済みのMRC部は、参照文章225において、「60~71」との回答インデックスに規定される「スマホの「設定」画面で、WiFiに接続することができます」との文章箇所を回答として出力する。 As an example, when receiving the question 215, "How do I connect my smartphone to Wi-Fi?", the trained MRC unit outputs as an answer the sentence "You can connect to Wi-Fi on the 'Settings' screen on your smartphone," which is specified in the answer index "60-71" in the reference sentence 225.

このようなMRCモデルは、例えばオンラインのチャットサポートやコールセンター等で使用されてきた。チャットサポートやコールセンターに対して問われた質問の回答が予め用意された文章内に存在していれば、MRCモデルに特定され、回答として出力される。 Such MRC models have been used, for example, in online chat support and call centers. If the answer to a question asked of a chat support or call center is present in a pre-prepared sentence, it is identified by the MRC model and output as the answer.

しかし、上述したように、質問への適切な回答が、予め用意された参照文章において存在するとは限らない。質問の答えが与えられる参照文章中に存在しない場合、MRCモデルは、学習された手掛かりに基づいて参照文章から最善と考えられる答えを回答するが、質問に対する正しい答えが参照文章に存在しないため、質問への妥当な答えではない、不適切な応答を出力してしまうという課題がある。
この場合、例えばオンラインのチャットサポートやコールセンターでは、上司や責任者に交代して対応するエスカレーション対応が発生することがあるが、これは質問を発したユーザ及び対応する責任者の時間を要するため、望ましくない。
However, as described above, an appropriate answer to a question may not always exist in the reference sentences prepared in advance. When the answer to a question does not exist in the given reference sentences, the MRC model answers the answer that is considered to be the best answer from the reference sentences based on the learned clues. However, since the correct answer to the question does not exist in the reference sentences, there is a problem in that the MRC model outputs an inappropriate response that is not a valid answer to the question.
In such cases, for example, in online chat support or call centers, an escalation response may occur in which the issue is passed to a supervisor or other person in charge, but this is undesirable because it takes time for both the user who asked the question and the person in charge who is responding.

従って、上記の課題を鑑み、本開示は、自然言語の会話に基づいて生成した参照文章を用いてMRCモデルを訓練することで、様々な質問に対応できる、柔軟性及びロバスト性が高い対話管理手段に関する。 Therefore, in consideration of the above-mentioned problems, the present disclosure relates to a highly flexible and robust dialogue management method that can respond to a variety of questions by training an MRC model using reference sentences generated based on natural language conversations.

次に、図3を参照して、本開示の実施形態に係る対話管理システムについて説明する。 Next, with reference to Figure 3, we will explain the dialogue management system according to an embodiment of the present disclosure.

図3は、本開示の実施形態に係る対話管理システム300の構成の一例を示す図である。図3に示すように、対話管理システム300は、クライアント端末320と、対話管理装置340とを含む。対話管理システム300において、クライアント端末320と、対話管理装置340とは、通信ネットワーク330を介して互いに接続されてもよい。 Figure 3 is a diagram illustrating an example of the configuration of a dialogue management system 300 according to an embodiment of the present disclosure. As shown in Figure 3, the dialogue management system 300 includes a client terminal 320 and a dialogue management device 340. In the dialogue management system 300, the client terminal 320 and the dialogue management device 340 may be connected to each other via a communication network 330.

クライアント端末320は、ユーザ310との対話を行うための装置である。一例として、クライアント端末320は、例えばオンラインのチャットサポートやコールセンターでユーザ310の質問に対する回答を提供するように構成されたコンピューティングデバイスであってもよい。ある実施形態では、クライアント端末320は、対話管理装置340と連携してユーザ310に対応するように構成されてもよい。 The client terminal 320 is a device for interacting with the user 310. As an example, the client terminal 320 may be a computing device configured to provide answers to the user's 310 questions, for example, through online chat support or a call center. In some embodiments, the client terminal 320 may be configured to work with the interaction management device 340 to respond to the user 310.

図3に示すように、クライアント端末320は、受付部322と、第1の通信部324と、応答部326と、対話データ329を格納するストレージ部328とを含んでもよい。
受付部322は、ユーザ310からの質問を受け付ける機能部である。受付部322は、例えば、「住宅ローンに申し込むためにどのような条件がありますか?」や「スマホをどうやってWiFiに接続する?」などの質問を受け付けてもよい。受付部322は、例えば音声で発せられる質問を受け付けるように構成されてもよく、テキストで入力される質問を受け付けるように構成されてもよい。
As shown in FIG. 3, the client terminal 320 may include a receiving unit 322, a first communication unit 324, a response unit 326, and a storage unit 328 that stores dialogue data 329.
The reception unit 322 is a functional unit that receives questions from the user 310. The reception unit 322 may receive questions such as, for example, "What are the conditions for applying for a mortgage?" or "How do I connect my smartphone to Wi-Fi?" The reception unit 322 may be configured to receive questions uttered by voice, for example, or may be configured to receive questions inputted as text.

第1の通信部324は、対話管理装置340との双方データ通信を行うための機能部である。ある実施形態では、第1の通信部324は、受付部322によって受け付けられた質問を通信ネットワーク330を介して対話管理装置340に送信し、対話管理装置340によって生成される回答を受信してもよい。 The first communication unit 324 is a functional unit for performing two-way data communication with the dialogue management device 340. In one embodiment, the first communication unit 324 may transmit a question received by the reception unit 322 to the dialogue management device 340 via the communication network 330 and receive an answer generated by the dialogue management device 340.

通信ネットワーク330は、例えばローカルエリアネットワーク(LAN)、ワイドエリアネットワーク(WAN)、衛星ネットワーク、ケーブルネットワーク、WiFiネットワーク、またはそれらの任意の組み合わせを含むものであってもよい。 The communications network 330 may include, for example, a local area network (LAN), a wide area network (WAN), a satellite network, a cable network, a Wi-Fi network, or any combination thereof.

応答部326は、受付部322がユーザ310から受け付けた質問への回答を応答として出力するための機能部である。ある実施形態では、応答部326は、対話管理装置340から受信した回答を用いてユーザ310へ応答してもよい。 The response unit 326 is a functional unit for outputting a response to a question received from the user 310 by the reception unit 322. In one embodiment, the response unit 326 may respond to the user 310 using the answer received from the dialogue management device 340.

ストレージ部328は、ユーザ310との間で行われた対話の履歴を示す対話データ329を格納する記憶領域である。 The storage unit 328 is a memory area that stores dialogue data 329 that indicates the history of dialogues conducted with the user 310.

対話管理装置340は、様々な質問に対する回答を生成するための機能部である。ある実施形態では、対話管理装置340は、例えばクラウド等の分散コンピューティング環境におけるサーバ装置又は複数のサーバ装置として実装され、本開示の実施形態に係る対話管理手段をサービスとしてクライアント端末320に提供してもよい。図3に示すように、対話管理装置340は、回答生成部342、回答生成部訓練部344、文章生成部346、文章生成部訓練部348、適応部350及び第2の通信部352を含む。
なお、これらの機能部は、図1に示す対話管理アプリケーション150を構成するソフトウエアモジュールであってもよく、独立した専用ハードウェアデバイスであってもよい。また、上記の機能部は、同一のコンピューティング環境に実施されてもよく、分散されたコンピューティング環境に実施されてもよい。
The dialogue management device 340 is a functional unit for generating answers to various questions. In an embodiment, the dialogue management device 340 may be implemented as a server device or multiple server devices in a distributed computing environment such as a cloud, and may provide the dialogue management means according to an embodiment of the present disclosure as a service to the client terminal 320. As shown in FIG. 3 , the dialogue management device 340 includes an answer generation unit 342, an answer generation unit training unit 344, a sentence generation unit 346, a sentence generation unit training unit 348, an adaptation unit 350, and a second communication unit 352.
These functional units may be software modules constituting the dialogue management application 150 shown in Fig. 1, or may be independent dedicated hardware devices. Furthermore, the functional units may be implemented in the same computing environment or in distributed computing environments.

回答生成部342は、受け付けた質問(例えば、第1の質問)に対する適切な回答(例えば、第1の回答)を所定の参照文章(例えば、第1の参照文章)に基づいて生成するための機能部である。ある実施形態では、回答生成部342は、クライアント端末320がユーザ310から受け付けた質問を通信ネットワーク330を介して受信し、当該質問の回答となる箇所の始点及び終点を規定する回答インデックスを所定の文章において特定し、回答として生成するMRCモデルであってもよい。
なお、本開示では、「適切な回答」との表現は、ユーザの質問に対する有意義な情報を提供する回答を意味する。
The answer generation unit 342 is a functional unit for generating an appropriate answer (e.g., a first answer) to a received question (e.g., a first question) based on a predetermined reference sentence (e.g., a first reference sentence). In one embodiment, the answer generation unit 342 may be an MRC model that receives a question received by the client terminal 320 from the user 310 via the communication network 330, identifies answer indexes in the predetermined sentence that specify the start and end points of a portion that serves as an answer to the question, and generates the answer.
In this disclosure, the expression "appropriate answer" means an answer that provides meaningful information to the user's question.

回答生成部342が受け付ける質問は、特定のドメインに対応する質問であってもよい。ここでのドメインとは、特定の情報、内容、話題、目的、トピックの範囲を意味するものであり、例えば「レストラン予約」、「不動産の物件探し」、「送金手続き」、「住宅ローン申し込み」、「WiFi接続」等、任意の事柄に関連していてもよい。また、本開示において、「ドメインに対応する」との表現は、ある質問、回答、文章等が、特定のドメインとある程度の関連性を有することを意味する。一例として、「〇〇駅付近に売りに出されている新築マンションありますか?」との質問は、「不動産の物件探し」とのドメインに対応しているとみなしてもよい。 The questions received by the answer generation unit 342 may correspond to a specific domain. Here, a domain refers to a specific range of information, content, topic, purpose, or topic, and may relate to any matter, such as "reservation of a restaurant," "searching for real estate," "transfer procedures," "applying for a mortgage," or "connecting to Wi-Fi." In addition, in this disclosure, the expression "corresponding to a domain" means that a certain question, answer, sentence, etc. has some degree of relevance to a specific domain. As an example, the question "Are there any newly built apartments for sale near XX Station?" may be considered to correspond to the domain of "searching for real estate."

本開示では、「第1のドメイン」や「第2のドメイン」等の用語を用いて本開示の実施形態について説明するが、これらの「第1のドメイン」及び「第2のドメイン」は、同一のドメインであってもよく、異なるドメインであってもよい。ある実施形態では、「第1のドメイン」は、MRCモデルが既に対応可能となっているソースのドメインであり、「第2のドメイン」は、MRCモデルに対応させるターゲットのドメインであってもよい。また、ある実施形態では、第2のドメインは、第1のドメインと実質的に同様の話題やトピックに該当するものの、第1のドメインには含まれない情報を含むものであってもよい。
同様に、以下の説明で用いる「第1の~」や「第2の~」等の用語は、構成要素を限定するものではなく、区別するために用いられていることに留意されたい。
In this disclosure, terms such as "first domain" and "second domain" are used to describe embodiments of the present disclosure, but these "first domain" and "second domain" may be the same domain or different domains. In some embodiments, the "first domain" may be a source domain that the MRC model already supports, and the "second domain" may be a target domain to which the MRC model is to be adapted. In some embodiments, the second domain may cover a substantially similar topic or topic as the first domain, but may include information not included in the first domain.
Similarly, please note that terms such as "first..." and "second..." used in the following description are used to distinguish elements, not to limit them.

回答生成部訓練部344は、回答生成部342を訓練するための機能部である。より具体的には、回答生成部訓練部344は、第1のドメイン(例えば、ソースドメイン)に対応する質問に対して適切な回答を生成することができるように回答生成部342を訓練してもよい。後述するように、回答生成部342のようなMRCモデルを訓練するためには、対象のドメインに対応する対話データと、当該対話データにおける質問に対する回答を含む参照文章と、質問に対する正しい回答を示すグラウンドトゥルースとなる回答ラベルとの3つのデータが必要となる。
ある実施形態では、回答生成部訓練部344は、回答生成部342によって生成される、第1のドメインに対応する第1の質問に対する第1の回答の、第1の質問に対する正しい回答を示す第1の回答ラベルに対する損失を減らすように回答生成部342を訓練してもよい。これにより、回答生成部342は、第1のドメインに対応する質問に対してより高精度の回答を生成することができるようになる。
The answer generation unit training unit 344 is a functional unit for training the answer generation unit 342. More specifically, the answer generation unit training unit 344 may train the answer generation unit 342 so that it can generate appropriate answers to questions corresponding to a first domain (e.g., the source domain). As will be described later, training an MRC model such as the answer generation unit 342 requires three pieces of data: dialogue data corresponding to the target domain, reference sentences containing answers to questions in the dialogue data, and answer labels that serve as ground truth indicating correct answers to the questions.
In an embodiment, the answer generator training unit 344 may train the answer generator 342 to reduce the loss of a first answer to a first question corresponding to a first domain, generated by the answer generator 342, relative to a first answer label indicating a correct answer to the first question, thereby enabling the answer generator 342 to generate answers with higher accuracy to questions corresponding to the first domain.

文章生成部346は、自然言語で構成される対話データから、上述した回答生成部342によって用いられる参照文章を生成するための機能部である。ある実施形態では、文章生成部346は、第2のドメインに対応する質問及び回答を含む第2の対話データに基づいて、第2のドメインに関する情報を含む第2の参照文章を生成してもよい。ここで、文章生成部346は、例えばユーザとの対話から収集され、上述したストレージ部328において格納される対話データ329に基づいて参照文章を生成してもよい。このように、文章生成部346は、第1のドメインに対応する参照文章には含まれない新たな情報(例えば、対話データ329からの情報)を含む第2の参照文章を生成することができる。 The sentence generation unit 346 is a functional unit for generating reference sentences used by the above-mentioned answer generation unit 342 from dialogue data composed of natural language. In one embodiment, the sentence generation unit 346 may generate second reference sentences including information about the second domain based on second dialogue data including questions and answers corresponding to the second domain. Here, the sentence generation unit 346 may generate the reference sentences based on dialogue data 329 collected from a dialogue with a user and stored in the above-mentioned storage unit 328, for example. In this way, the sentence generation unit 346 can generate second reference sentences including new information (e.g., information from dialogue data 329) that is not included in the reference sentences corresponding to the first domain.

文章生成部訓練部348は、文章生成部346を訓練するための機能部である。より具体的には、文章生成部訓練部348は、対話データにおける有意義な情報を抽出した参照文章を生成する精度を向上させるように文章生成部346を訓練してもよい。ある実施形態では、文章生成部訓練部348は、文章生成部346によって生成される、第2の参照文章の、対話データに関する正しい内容を含むグラウンドトゥルースとなる文章ラベルに対する損失を減らすように文章生成部346を訓練してもよい。これにより、文章生成部346は、対話データからより高精度の参照文章を生成することができるようになる。 The sentence generator training unit 348 is a functional unit for training the sentence generator 346. More specifically, the sentence generator training unit 348 may train the sentence generator 346 to improve the accuracy of generating reference sentences that extract meaningful information from the dialogue data. In one embodiment, the sentence generator training unit 348 may train the sentence generator 346 to reduce the loss of the second reference sentences generated by the sentence generator 346 relative to the sentence labels that serve as ground truth containing correct content related to the dialogue data. This enables the sentence generator 346 to generate reference sentences with higher accuracy from the dialogue data.

適応部350は、上述した文章生成部346によって生成される参照文章を用いて回答生成部342を訓練することで、回答生成部342の対応範囲を拡張するための機能部である。ここで、「回答生成部342の対応範囲を拡張する」との表現は、回答生成部342により多くの質問(例えば、より多くのドメイン、内容、話題等に関する質問)に対して適切な回答を生成可能にすることを意味する。ある実施形態では、適応部350は、第2のドメインに対応する第2の対話データと、回答生成部342によって生成される、第2のドメインに対応する質問に対する回答ラベルと、文章生成部346によって生成される第2の参照文章とを用いて、第2のドメインに対応する質問に対する回答を生成するように回答生成部342を訓練してもよい。 The adaptation unit 350 is a functional unit for expanding the range of coverage of the answer generation unit 342 by training the answer generation unit 342 using the reference sentences generated by the sentence generation unit 346 described above. Here, the expression "expanding the range of coverage of the answer generation unit 342" means enabling the answer generation unit 342 to generate appropriate answers to more questions (e.g., questions relating to more domains, contents, topics, etc.). In one embodiment, the adaptation unit 350 may train the answer generation unit 342 to generate answers to questions corresponding to the second domain using second dialogue data corresponding to the second domain, answer labels for questions corresponding to the second domain generated by the answer generation unit 342, and second reference sentences generated by the sentence generation unit 346.

なお、原則として、回答生成部342のようなMRC部は、上述した回答生成部訓練部344による訓練では、特定のドメイン(例えば、特定の内容及び形式)に対応する参照文章を学習データとして用いて訓練される。このため、学習データとなった参照文章と同様のドメインに対応する質問に対する回答を、学習データとなった文章と同様のドメインに対応する参照文章に基づいて生成することができる。しかし、学習データと異なるドメインに対応する質問については、性能が限られてしまう。そこで、本開示の実施形態に係る適応部350を用いて、回答生成部訓練部344による訓練で用いられた学習データとは異なるドメインに対応する参照文章(例えば、文章生成部346によって生成される、第2のドメインに対応する第2の参照文章)に基づいて回答生成部342を訓練することで、回答生成部342は、対応範囲を拡張し、様々な内容に関する質問に対して適切な回答を生成することが可能となる。 In principle, an MRC unit such as the answer generation unit 342 is trained by the answer generation unit training unit 344 described above using reference sentences corresponding to a specific domain (e.g., specific content and format) as training data. Therefore, answers to questions corresponding to a similar domain to the reference sentences that served as training data can be generated based on the reference sentences that serve as training data. However, performance is limited for questions corresponding to a different domain from the training data. Therefore, by using the adaptation unit 350 according to an embodiment of the present disclosure to train the answer generation unit 342 based on reference sentences corresponding to a different domain from the training data used in training by the answer generation unit training unit 344 (e.g., second reference sentences corresponding to a second domain generated by the sentence generation unit 346), the answer generation unit 342 can expand its range of coverage and generate appropriate answers to questions regarding a variety of content.

第2の通信部352は、クライアント端末320との双方データ通信を行うための機能部である。ある実施形態では、第2の通信部352は、回答生成部342によって生成された回答を通信ネットワーク330を介してクライアント端末320に送信してもよい。 The second communication unit 352 is a functional unit for performing two-way data communication with the client terminal 320. In one embodiment, the second communication unit 352 may transmit the answer generated by the answer generation unit 342 to the client terminal 320 via the communication network 330.

以上説明したように構成した対話管理システム300によれば、自然言語の会話に基づいて生成した参照文章を用いてMRCモデルを訓練することで、様々な質問に対応できる、柔軟性及びロバスト性が高い対話管理手段を提供することができる。言い換えれば、本開示に係る対話管理システム300においては、回答生成部342は、新たな情報を含む対話データに基づいて生成された参照文章を用いて訓練されるため、以前答えられなかった、当該新たな情報に関する質問に対しても適切な回答を生成することが可能となる。 The dialogue management system 300 configured as described above can provide a highly flexible and robust dialogue management means that can respond to a variety of questions by training the MRC model using reference sentences generated based on natural language conversations. In other words, in the dialogue management system 300 according to the present disclosure, the answer generation unit 342 is trained using reference sentences generated based on dialogue data that includes new information, making it possible to generate appropriate answers to questions about the new information that could not be answered previously.

次に、図4を参照して、本開示の実施形態に係る回答生成部訓練処理について説明する。 Next, with reference to Figure 4, we will explain the answer generation unit training process according to an embodiment of the present disclosure.

図4は、本開示の実施形態に係る回答生成部342を訓練するための回答生成部訓練処理400の流れの一例を示すブロック図である。この回答生成部訓練処理400は、第1のドメイン(例えばソースドメイン)に対応する第1の質問に対する適切な第1の回答を、第1のドメインに対応する第1の参照文章に基づいて生成することができるように回答生成部342を訓練するための処理であり、上述した回答生成部訓練部344によって実行される。 Figure 4 is a block diagram showing an example of the flow of an answer generation unit training process 400 for training the answer generation unit 342 according to an embodiment of the present disclosure. This answer generation unit training process 400 is a process for training the answer generation unit 342 so that it can generate an appropriate first answer to a first question corresponding to a first domain (e.g., a source domain) based on a first reference sentence corresponding to the first domain, and is executed by the answer generation unit training unit 344 described above.

図4に示す第1の対話データ410は、自然言語で構成される会話を示す情報であり、第1の質問414及び当該第1の質問414への第1の回答418を含む。ある実施形態では、第1の対話データ410、そして、第1の対話データ410に含まれる
第1の質問414及び第1の回答418は、第1のドメインに対応するものであってもよい。
4 is information representing a conversation written in natural language, and includes a first question 414 and a first answer 418 to the first question 414. In an embodiment, the first dialogue data 410, and the first question 414 and first answer 418 included in the first dialogue data 410 may correspond to a first domain.

この第1の対話データ410は、例えば第1の質問414への第1の回答418を求める質問者と、質問者の第1の質問414への第1の回答418を提供する回答者との間で行われた会話の履歴であってもよい。一例として、この対話データは、オンラインのチャットサポートやコールセンターで、第1の質問414への第1の回答418を求める質問者と、エスカレーション対応が発生した後に質問者に対応することとなった担当者との間で行われた会話の履歴であってもよい。 This first interaction data 410 may be, for example, a history of a conversation between a questioner seeking a first answer 418 to a first question 414 and a respondent providing the first answer 418 to the questioner's first question 414. As an example, this interaction data may be a history of a conversation between a questioner seeking a first answer 418 to a first question 414 and a representative in an online chat support or call center who becomes available to assist the questioner after an escalation occurs.

まず、回答生成部訓練部344は、第1の対話データ410に含まれる第1の質問414と、第1の質問414の第1の回答418を含む第1の参照文章420とを回答生成部342に入力する。ここでの回答生成部342は、例えばBidrectional and Auto-Regressive Transformer(BART)やRobustly Optimized BERT Pretraining Approach(ROBERTA)等の訓練済みのMRCモデルであってもよい。 First, the answer generation unit training unit 344 inputs the first question 414 contained in the first dialogue data 410 and the first reference sentence 420 containing the first answer 418 to the first question 414 to the answer generation unit 342. The answer generation unit 342 here may be a trained MRC model such as the Bidirectional and Auto-Regressive Transformer (BART) or the Robustly Optimized BERT Pretraining Approach (ROBERTA).

次に、回答生成部342は、入力された第1の質問414に対する回答となる文章箇所を第1の参照文章420内で特定し、特定した文章箇所の始点及び終点を規定する第1の回答インデックス435を判定する。より具体的には、回答生成部342となるMRCモデルのエンコーダーは、第1の質問414及び第1の参照文章420を表す文脈表見(contextual representation;中間表現ともいう)を生成し、線形レイヤに出力する。その後、当該線形レイヤは、入力したエンコーダーの文脈表現が、第1の質問414に対する回答の正しい文章箇所を表している確率を示すロジットを生成する。 Next, the answer generator 342 identifies a sentence portion in the first reference sentence 420 that is an answer to the input first question 414, and determines a first answer index 435 that specifies the start and end points of the identified sentence portion. More specifically, the encoder of the MRC model that serves as the answer generator 342 generates a contextual representation (also called an intermediate representation) that represents the first question 414 and the first reference sentence 420, and outputs it to the linear layer. The linear layer then generates a logit that indicates the probability that the input contextual representation of the encoder represents the correct sentence portion that is an answer to the first question 414.

次に、回答生成部訓練部344は、回答生成部342によって生成される第1の回答インデックス435の、第1の質問414の正しい回答を示すグラウンドトゥルースとなる第1の回答ラベル440に対する損失を計算し、例えばいわゆるCross Entropy Loss等の手法を用いて、損失を減らすように、回答生成部342のモデルパラメータを変更する。 Next, the answer generation unit training unit 344 calculates the loss of the first answer index 435 generated by the answer generation unit 342 with respect to the first answer label 440, which serves as the ground truth indicating the correct answer to the first question 414, and modifies the model parameters of the answer generation unit 342 to reduce the loss, for example, using a technique such as the so-called Cross Entropy Loss.

以上説明した回答生成部訓練処理400を繰り返すことで、回答生成部342は、入力された質問に対して適切な回答を出力する精度が向上する。
ただし、上述したように、この回答生成部訓練処理400では、回答生成部342のようなMRC部は、上述した回答生成部訓練部344による訓練では、特定のドメイン(例えば、特定の内容及び形式)に対応する参照文章を学習データとして用いて訓練されるため、学習データとなった参照文章と同様のドメインに対応する質問に対する回答を、学習データとなった文章と同様のドメインに対応する参照文章に基づいて生成することができるようになるものの、学習データと異なるドメインに対応する質問については、性能が限られてしまう。そこで、後述するように、回答生成部342の対応範囲を拡張し、様々な質問に対して適切な回答を生成するためには、後述する文章生成部346及び適応部350による処理が必要となる。
By repeating the above-described answer generator training process 400, the answer generator 342 improves the accuracy of outputting appropriate answers to input questions.
However, as described above, in this answer generator training process 400, an MRC unit such as the answer generator 342 is trained by the above-mentioned answer generator training unit 344 using reference sentences corresponding to a specific domain (e.g., specific content and format) as training data, so although it is possible to generate answers to questions corresponding to a similar domain to the reference sentences that became the training data based on the reference sentences that also become the training data, its performance is limited for questions corresponding to a different domain from the training data. Therefore, as will be described later, in order to expand the coverage range of the answer generator 342 and generate appropriate answers to various questions, processing by the sentence generator 346 and adaptation unit 350, which will be described later, is required.

次に、図5を参照して、本開示の実施形態に係る文章生成部訓練処理について説明する。 Next, with reference to Figure 5, we will explain the sentence generation unit training process according to an embodiment of the present disclosure.

図5は、本開示の実施形態に係る文章生成部訓練処理500の流れの一例を示すブロック図である。この文章生成部訓練処理500は、自然言語で構成される対話データから、質問に対する適切な回答を生成するために回答生成部342によって用いられる参照文章を生成するように文章生成部346を訓練するための処理であり、上述した文章生成部訓練部348によって実行される。 Figure 5 is a block diagram showing an example of the flow of a sentence generator training process 500 according to an embodiment of the present disclosure. This sentence generator training process 500 is a process for training the sentence generator 346 to generate reference sentences used by the answer generator 342 to generate appropriate answers to questions from dialogue data written in natural language, and is executed by the sentence generator training unit 348 described above.

まず、文章生成部訓練部348は、第2の質問514及び第2の回答518から構成される第2の対話データ510を文章生成部346に入力する。この第2の対話データ510と、第2の対話データ510に含まれる第2の質問514及び第2の回答518は、第2のドメイン(例えば、ターゲットドメイン)に対応するものであってもよい。言い換えれば、この第2の対話データ510は、新たな情報(例えば、上述した回答生成部訓練処理400において回答生成部342を訓練するために用いられた第1の参照文章には含まれていない情報)を含む。上述したように、この第2の対話データ510は、第2の質問514への第2の回答518を求める質問者と、質問者の第2の質問514への第2の回答518を提供する回答者との間で行われた会話の履歴であってもよい。 First, the sentence generator training unit 348 inputs second dialogue data 510 consisting of a second question 514 and a second answer 518 to the sentence generator 346. This second dialogue data 510 and the second question 514 and second answer 518 included in the second dialogue data 510 may correspond to a second domain (e.g., a target domain). In other words, this second dialogue data 510 includes new information (e.g., information not included in the first reference sentence used to train the answer generator 342 in the answer generator training process 400 described above). As described above, this second dialogue data 510 may be a history of a conversation between a questioner seeking a second answer 518 to a second question 514 and a respondent providing the second answer 518 to the questioner's second question 514.

次に、文章生成部346は、入力された第2の対話データ510に基づいて、第2の対話データ510の内容を含む第2の参照文章520を生成する。つまり、文章生成部346は、第2の対話データ510に含まれる本質的な情報(例えば、質問への回答となる情報)を抽出し、文章として構成する処理を行う。このように、文章生成部346は、第2の対話データ510に含まれる新たな情報(例えば、上述した回答生成部訓練処理400において回答生成部342を訓練するために用いられた第1の参照文章には含まれていない情報)を含む参照文章を生成することができる。
ここでの文章生成部346は、例えばBARTモデル等、エンコーダー及びデコーダーを含む訓練済みのSequence-to-Sequenceモデルとして実装されてもよい。
Next, the sentence generation unit 346 generates second reference sentences 520 including the content of the second dialogue data 510 based on the input second dialogue data 510. In other words, the sentence generation unit 346 extracts essential information (e.g., information that serves as an answer to a question) included in the second dialogue data 510 and performs a process of composing the information into a sentence. In this way, the sentence generation unit 346 can generate reference sentences including new information included in the second dialogue data 510 (e.g., information that is not included in the first reference sentences used to train the answer generation unit 342 in the above-described answer generation unit training process 400).
The sentence generation unit 346 here may be implemented as a trained sequence-to-sequence model including an encoder and a decoder, such as a BART model.

次に、文章生成部訓練部348は、文章生成部346によって生成された第2の参照文章520の、第2の対話データ510に対する正しい文章を示すグラウンドトゥルースデータとなる第2の文章ラベル540に対する損失を計算することで第2の参照文章520を評価し、例えばいわゆるCross Entropy Loss等の手法を用いて、損失を減らすように、文章生成部346のモデルパラメータを変更する。 Next, the sentence generation unit training unit 348 evaluates the second reference sentence 520 generated by the sentence generation unit 346 by calculating the loss of the second reference sentence 520 against the second sentence label 540, which serves as ground truth data indicating the correct sentence for the second dialogue data 510, and changes the model parameters of the sentence generation unit 346 to reduce the loss, for example, using a technique such as the so-called Cross Entropy Loss.

文章生成部346によって生成される第2の参照文章520を評価するための第2の文章ラベル540は、第2の対話データ510における第2の質問514に対する第2の回答518を全て含む元文章(例えば、ユーザに作成された文章)であってもよく、後述する文脈ラベル生成処理600によって生成される文脈ラベルであってもよく、後述する対話集約処理700によって生成される集約ラベルであってもよい。
より具体的には、ある実施形態では、文章生成部訓練部348は、CNNコーパス等の大規模のコーパスを用いて文章生成部346の初期段階の訓練を行い、様々なドメインに渡る語彙の分布や文章の形式・構成を学習させた後、SAMSum等のラベル化済みの対話データのコーパスを用いて文章生成部346の微調整(Fine Tuning)を行い、補助的な語彙を文章生成部346に学習させてもよい。
The second sentence label 540 for evaluating the second reference sentence 520 generated by the sentence generation unit 346 may be an original sentence (e.g., a sentence created by a user) that includes all of the second answers 518 to the second questions 514 in the second dialogue data 510, or may be a context label generated by the context label generation process 600 described below, or may be an aggregate label generated by the dialogue aggregation process 700 described below.
More specifically, in one embodiment, the sentence generator training unit 348 may perform an initial stage of training of the sentence generator 346 using a large-scale corpus such as a CNN corpus to allow the sentence generator 346 to learn vocabulary distributions and sentence forms and structures across various domains, and then fine-tune the sentence generator 346 using a corpus of labeled dialogue data such as SAM Sum to allow the sentence generator 346 to learn auxiliary vocabulary.

以上説明した文章生成部訓練処理500を繰り返すことで、文章生成部346は、任意のドメインに対応する対話データに基づいて、当該対話データの本質的な情報(例えば、上述した回答生成部訓練処理400において回答生成部342を訓練するために用いられた第1の参照文章には含まれていない情報)を含む参照文章を生成する性能を向上させることができる。また、後述するように、適応部350は、この文章生成部346によって生成された参照文章を用いて回答生成部342を更に訓練することで、回答生成部342の対応範囲を拡張させ、様々な質問(例えば、第2のドメインに対応する質問)に対して適切な回答を生成することが可能なMRCモデルを得ることができる。 By repeating the sentence generation unit training process 500 described above, the sentence generation unit 346 can improve its performance in generating reference sentences containing essential information of dialogue data corresponding to any domain (e.g., information not included in the first reference sentences used to train the answer generation unit 342 in the answer generation unit training process 400 described above). Furthermore, as described below, the adaptation unit 350 can further train the answer generation unit 342 using the reference sentences generated by the sentence generation unit 346, thereby expanding the scope of the answer generation unit 342 and obtaining an MRC model capable of generating appropriate answers to various questions (e.g., questions corresponding to the second domain).

上述した文章生成部訓練処理500において、文章生成部346によって生成される参照文章を評価するグラウンドトゥルースのデータとして、第2の対話データ510における第2の質問514に対する第2の回答518を全て含む元文章(例えば、ユーザに作成された文章)のみならず、当該元文章から抽出した文脈ラベル(context label)や、複数の対話データを集約した集約ラベルを用いてもよい。以下、図6及び図7を参照して、対話データにおける質問に対する回答を抽出して文脈ラベルを生成する文脈ラベル生成処理600と、複数の対話データを集約して対話集約を生成する対話集約処理700とについて説明する。 In the above-described sentence generator training process 500, the ground truth data for evaluating the reference sentences generated by the sentence generator 346 may be not only the original sentence (e.g., a sentence created by a user) containing all of the second answers 518 to the second questions 514 in the second dialogue data 510, but also a context label extracted from the original sentence or an aggregate label aggregating multiple dialogue data. Below, with reference to Figures 6 and 7, we will explain the context label generation process 600 that extracts answers to questions in dialogue data and generates a context label, and the dialogue aggregation process 700 that aggregates multiple dialogue data to generate a dialogue aggregate.

図6は、本開示の実施形態に係る文脈ラベル生成処理600の具体例を示す図である。上述したように、この文脈ラベル生成処理600は、対話データにおける質問に対する回答を抽出して、文章生成部346によって生成される参照文章を評価するグラウンドトゥルースとして、文脈ラベルを生成するための処理であり、文章生成部訓練部348によって実行されてもよい。 Figure 6 is a diagram illustrating a specific example of a context label generation process 600 according to an embodiment of the present disclosure. As described above, this context label generation process 600 is a process for extracting answers to questions in dialogue data and generating context labels as ground truth for evaluating reference sentences generated by the sentence generation unit 346, and may be executed by the sentence generation unit training unit 348.

文脈ラベル生成処理600では、図6に示すように、文章生成部346を訓練する学習データとして用いられる対話データに含まれる各質問610について、適切な回答となる文章箇所が、当該対話データにおける質問に対する回答を全て含む元文章620から抽出され、まとめられ、文脈ラベル630として生成される。この元文章620は、例えばユーザによって作成された文章であってもよい。 In the context label generation process 600, as shown in FIG. 6, for each question 610 included in the dialogue data used as learning data for training the sentence generation unit 346, sentence portions that provide appropriate answers are extracted from original sentences 620 that include all answers to the questions in the dialogue data, compiled, and generated as context labels 630. These original sentences 620 may be, for example, sentences created by the user.

例えば、図6に示すように、文章生成部346を訓練する学習データとして用いられる対話データにおいて、「スマホをWiFiに接続することはできますか?」と、「パスワードは必要ですか?」との2つの質問610があった場合、文章生成部訓練部348は、これらの質問610に対する回答として、「スマホの「設定」画面で、WiFiに接続することができますが、スマホのOSによってはやり方が異なります。」と、「無線LANのパスワードが必要になりますので、そこでパスワードを入力すれば接続完了です。」との2つの文章箇所を元文章620から抽出し、文脈ラベル630として生成する。 For example, as shown in FIG. 6, if the dialogue data used as learning data for training the sentence generation unit 346 contains two questions 610, "Can I connect my smartphone to Wi-Fi?" and "Do I need a password?", the sentence generation training unit 348 extracts two sentences from the original sentence 620 as answers to these questions 610: "You can connect to Wi-Fi on the "Settings" screen of your smartphone, but the method for doing so varies depending on the smartphone's OS." and "You will need a wireless LAN password. Enter the password there to complete the connection." and generates these as context labels 630.

上述したように、このように生成した文脈ラベル630は、文章生成部346の訓練段階において、文章生成部346によって生成される参照文章を評価するグラウンドトゥルースのデータとして用いられてもよい。このように、元文章620全体ではなく、質問の回答となった文章箇所のみをグラウンドトゥルースとして用いて文章生成部346を訓練することで、文章生成部346は、質問に対する回答と無関係の情報を生成した参照文章に含まなかったことによる罰則を受けず、実際に質問に対する回答となった情報を含むグラウンドトゥルースに基づいて評価されるため、より高精度の参照文章を生成するように訓練される。 As described above, the context labels 630 generated in this manner may be used as ground truth data for evaluating the reference sentences generated by the sentence generation unit 346 during the training phase of the sentence generation unit 346. In this way, by training the sentence generation unit 346 using only the portion of the sentence that answers the question as ground truth, rather than the entire original sentence 620, the sentence generation unit 346 is not penalized for not including information unrelated to the answer to the question in the generated reference sentence, and is evaluated based on ground truth that includes the information that actually answers the question, and is therefore trained to generate reference sentences with higher accuracy.

また、ある実施形態では、この文脈ラベル生成処理600は、特定のドメイン(例えば第2のドメイン)に対応する対話データが所定の希少性基準を満たす場合に実行してもよい。この希少性基準は、使用可能な対話データの量に基づく基準であり、使用可能な対話データが所定の量未満の場合、希少性基準を満たすとみなし、使用可能な対話データが所定の量以上の場合、希少性基準を満たさないとみなす。言い換えれば、特定のドメイン(例えば第2のドメイン)に対応する対話データが少ない場合に、この文脈ラベル生成処理600を用いることが望ましい。これは、対話データにおける質問に対する回答を元文章から抽出して文脈ラベルを生成することで、特定のドメインに対応する対話データが少ない場合であっても、良質なグラウンドトゥルースを生成することができるからである。 In addition, in one embodiment, this context label generation process 600 may be executed when dialogue data corresponding to a specific domain (e.g., the second domain) meets a predetermined rarity criterion. This rarity criterion is based on the amount of available dialogue data, and if the available dialogue data is less than the predetermined amount, the rarity criterion is deemed to be met, and if the available dialogue data is equal to or greater than the predetermined amount, the rarity criterion is deemed not to be met. In other words, it is desirable to use this context label generation process 600 when there is little dialogue data corresponding to a specific domain (e.g., the second domain). This is because by extracting answers to questions in the dialogue data from the original text and generating context labels, it is possible to generate high-quality ground truth even when there is little dialogue data corresponding to a specific domain.

図7は、本開示の実施形態に係る対話集約処理700の具体例を示す図である。上述したように、この対話集約処理700は、複数の対話データを集約して、文章生成部346によって生成される参照文章を評価するグラウンドトゥルースのデータとして、集約ラベルを生成するための処理であり、文章生成部訓練部348によって実行されてもよい。 Figure 7 is a diagram illustrating a specific example of a dialogue aggregation process 700 according to an embodiment of the present disclosure. As described above, this dialogue aggregation process 700 is a process for aggregating multiple dialogue data sets and generating aggregate labels as ground truth data for evaluating reference sentences generated by the sentence generation unit 346, and may be executed by the sentence generation unit training unit 348.

対話集約処理700では、図7に示すように、文章生成部訓練部348は、複数の対話データ710、720からの情報を抽出し、集約することで、文章生成部346によって生成される参照文章を評価するグラウンドトゥルースとなる集約ラベル730を生成する。これらの対話データ710、720は、共通のドメイン(例えば、スマホのWiFi接続)に対応する対話であってもよいが、これに限定されず、異なるドメインに対応する対話であってもよい。 In the dialogue aggregation process 700, as shown in FIG. 7, the sentence generator training unit 348 extracts and aggregates information from multiple dialogue data 710, 720 to generate aggregate labels 730 that serve as ground truth for evaluating the reference sentences generated by the sentence generator 346. These dialogue data 710, 720 may be dialogues corresponding to a common domain (e.g., a smartphone's Wi-Fi connection), but are not limited to this and may also be dialogues corresponding to different domains.

上述したように、このように生成した集約ラベル730は、文章生成部346の訓練段階において、文章生成部346によって生成される参照文章を評価するグラウンドトゥルースのデータとして用いられてもよい。また、この対話集約730は、複数の対話データから生成したため、例えば1つの対話データに基づいて生成される文脈ラベルに比べて、より多くの質問に対する適切な回答となる情報を含むが、生成するためにより多くの対話データが必要となる。従って、この対話集約処理700は、特定のドメイン(例えば第2のドメイン)に対応する対話データが上述した所定の希少性基準を満たさない場合(つまり、対話データが多い場合)に実行することが望ましい。 As described above, the aggregated labels 730 generated in this manner may be used as ground truth data for evaluating reference sentences generated by the sentence generation unit 346 during the training phase of the sentence generation unit 346. Furthermore, because this dialogue aggregation 730 is generated from multiple dialogue data, it contains information that provides appropriate answers to more questions than, for example, context labels generated based on a single piece of dialogue data, but requires more dialogue data to generate. Therefore, it is desirable to perform this dialogue aggregation process 700 when dialogue data corresponding to a specific domain (e.g., the second domain) does not satisfy the above-mentioned specified rarity criterion (i.e., when there is a lot of dialogue data).

次に、図8を参照して、本開示の実施形態に係る適応処理について説明する。 Next, we will explain the adaptation process according to an embodiment of the present disclosure with reference to Figure 8.

図8は、本開示の実施形態に係る適応処理800の流れの一例を示すブロック図である。図8に示す適応処理800は、回答生成部342の対応範囲を拡張し、様々な質問に対して適切な回答を生成することができるように訓練するための処理であり、主に回答生成部342、文章生成部346及び適応部350によって実施される。 Figure 8 is a block diagram showing an example of the flow of an adaptation process 800 according to an embodiment of the present disclosure. The adaptation process 800 shown in Figure 8 is a process for expanding the range of response of the answer generation unit 342 and training it to be able to generate appropriate answers to various questions, and is mainly performed by the answer generation unit 342, the sentence generation unit 346, and the adaptation unit 350.

上述したように、図4を参照して説明した回答生成部訓練処理400によれば、回答生成部342は、特定のドメイン(例えば第1のドメイン)に対応する質問(例えば第1の質問)に対する適切な回答(例えば第1の回答)を生成するように訓練される。ただし、このように訓練した回答生成部342は、特定のドメインに対応する参照文章を学習データとして用いて訓練されるため、学習データとなった参照文章と同様のドメインに対応する質問に対する適切な回答を、学習データとなった参照文章と同様のドメインに対応する参照文章に基づいて生成することができるものの、学習データと異なるドメインに対応する質問については、性能が限られてしまう。 As described above, according to the answer generation unit training process 400 described with reference to FIG. 4, the answer generation unit 342 is trained to generate an appropriate answer (e.g., a first answer) to a question (e.g., a first question) corresponding to a specific domain (e.g., a first domain). However, since the answer generation unit 342 trained in this manner is trained using reference sentences corresponding to a specific domain as learning data, it can generate appropriate answers to questions corresponding to a similar domain to the reference sentences that became the learning data, based on reference sentences that correspond to a similar domain to the reference sentences that became the learning data, but its performance is limited for questions corresponding to domains different from the learning data.

従って、回答生成部342の柔軟性を向上させ、より多くのドメインに対応する質問に対しても適切な回答を生成することができるように訓練することが望ましい。しかし、原則として、回答生成部342のようなMRCモデルを訓練するためには、訓練対象のドメイン(例えば、ターゲットドメイン)に対応する対話データと、対話データにおける質問に対する回答を含む参照文章と、質問に対する正しい回答を示すグラウンドトゥルースとなる回答ラベルとの3つのデータが必要となる。このため、訓練対象のドメインに対応する対話データのみが使用可能なデータとして存在し、訓練対象のドメインに対応する質問の回答を含む参照文章や、質問に対する正しい回答を示す回答ラベルのデータがない場合には、上述した一般的なMRCモデルの訓練を実施することができない。 It is therefore desirable to improve the flexibility of the answer generation unit 342 and train it so that it can generate appropriate answers to questions that correspond to a wider range of domains. However, in principle, to train an MRC model such as the answer generation unit 342, three pieces of data are required: dialogue data corresponding to the domain to be trained (e.g., the target domain), reference sentences containing answers to questions in the dialogue data, and answer labels that serve as ground truth indicating the correct answers to the questions. For this reason, if only dialogue data corresponding to the domain to be trained is available as data, and there is no data on reference sentences containing answers to questions corresponding to the domain to be trained or answer labels indicating the correct answers to the questions, it is not possible to train the general MRC model described above.

そこで、本開示の実施形態に係る適応処理800では、上述した回答生成部訓練処理400によって訓練された回答生成部342を用いて第2のドメインに対応する質問への正しい回答を示すグラウンドトゥルースとなる第2の回答ラベルを生成し、上述した文章生成部訓練処理500によって訓練された文章生成部346を用いて第2のドメインに対応する質問への回答を含む第2の参照文章を生成する。このように生成した第2の回答ラベルと、第2の参照文章と、第2のドメインに対応する対話データとを用いて回答生成部342を訓練することで、回答生成部342は、対応範囲が拡張し、より多くのドメインに対応する質問に対して適切な回答を生成することが可能となる。 Therefore, in the adaptation process 800 according to an embodiment of the present disclosure, the answer generation unit 342 trained by the answer generation unit training process 400 described above is used to generate second answer labels that serve as ground truth indicating correct answers to questions corresponding to the second domain, and the sentence generation unit 346 trained by the sentence generation unit training process 500 described above is used to generate second reference sentences that include answers to questions corresponding to the second domain. By training the answer generation unit 342 using the second answer labels, second reference sentences, and dialogue data corresponding to the second domain thus generated, the answer generation unit 342 has an expanded range of coverage and is able to generate appropriate answers to questions corresponding to a greater number of domains.

まず、適応部350は、第2の質問804及び第2の回答806とから構成される第2の対話データ802を、上述した文章生成部訓練処理500によって訓練された文章生成部346に入力する。上述したように、この第2の対話データ802と、第2の対話データ802に含まれる第2の質問804及び第2の回答806は、第2のドメイン(例えば、ターゲットドメイン)に対応するものであってもよい。この第2の対話データ802を入力した文章生成部346は、第2の対話データ802における第2の質問804への第2の回答806を含み、第2のドメインに対応する第2の参照文章820を生成する。 First, the adaptation unit 350 inputs second dialogue data 802 consisting of a second question 804 and a second answer 806 to the sentence generation unit 346, which has been trained by the sentence generation unit training process 500 described above. As described above, this second dialogue data 802 and the second question 804 and second answer 806 contained in the second dialogue data 802 may correspond to a second domain (e.g., the target domain). The sentence generation unit 346, which has input this second dialogue data 802, generates a second reference sentence 820 corresponding to the second domain, including the second answer 806 to the second question 804 in the second dialogue data 802.

次に、適応部350は、文章生成部346によって生成された第2のドメインに対応する第2の参照文章820と、第2の対話ドメインに対応する第2の対話データ802に含まれる第2の質問804と、第1のドメインに対応する第1の対話データ(図8に図示せず)に含まれる第1の質問812とを回答生成部342に入力する。
なお、ここでは、回答生成部342について、図4を参照して説明した回答生成部訓練処理400が既に終了し、回答生成部342は、第1のドメインに対応する質問に対して適切な回答を生成することができることを前提としている。ただし、現時点では、回答生成部342は、異なるドメイン(例えば、第2のドメイン)については、性能が限定されてしまう。従って、後述する独学処理(Self-learning)及び敵対的学習(Adversarial Learning)処理により、回答生成部342は、異なるドメインに対応する質問に対しても、適切な回答を生成するように訓練される。
(独学処理)
Next, the adaptation unit 350 inputs to the answer generation unit 342 the second reference sentence 820 corresponding to the second domain generated by the sentence generation unit 346, the second question 804 contained in the second dialogue data 802 corresponding to the second dialogue domain, and the first question 812 contained in the first dialogue data (not shown in Figure 8) corresponding to the first domain.
It is assumed here that the answer generator 342 has already undergone the answer generator training process 400 described with reference to FIG. 4 and is capable of generating appropriate answers to questions corresponding to the first domain. However, at this point, the answer generator 342 has limited performance in a different domain (e.g., the second domain). Therefore, through the self-learning and adversarial learning processes described below, the answer generator 342 is trained to generate appropriate answers to questions corresponding to different domains.
(Self-study processing)

独学処理において、まず、回答生成部342は、文章生成部346によって生成された第2のドメインに対応する第2の参照文章820に基づいて、入力された第2の質問804に対する回答として、複数の回答候補を生成する。ここでの回答候補は、第2の参照文章820から特定し、第2の質問804への適切な回答を示す可能性がある文章箇所(回答インデックス)である。ただし、現時点では、回答生成部342は、第2のドメインに対して適切な回答を生成することができるものの、第1のドメインと異なる第2のドメインについてはまだ未訓練であるため、これらの回答候補は、第2の質問804への適切な回答でない可能性がある(つまり、これらの回答候補の中には、間違っている回答が含まれている可能性がある)。また、これらの回答候補のそれぞれは、第2の質問804に対する適切な回答である確率を示す信用度に対応付けられている。 In the self-study process, the answer generation unit 342 first generates multiple answer candidates as answers to the input second question 804 based on the second reference sentence 820 corresponding to the second domain generated by the sentence generation unit 346. The answer candidates here are sentence sections (answer indexes) identified from the second reference sentence 820 that may indicate an appropriate answer to the second question 804. However, although the answer generation unit 342 can currently generate appropriate answers for the second domain, it has not yet been trained on the second domain, which is different from the first domain. Therefore, these answer candidates may not be appropriate answers to the second question 804 (i.e., some of these answer candidates may be incorrect). Furthermore, each of these answer candidates is associated with a confidence score that indicates the probability that it is an appropriate answer to the second question 804.

従って、適応部350は、回答生成部342によって生成された回答候補の中から、信用度が所定の信用度基準を満たし、且つ、回答インデックスの値「0」でないもののみを抽出する。このように回答候補から抽出した回答は、信用度が高く、第2の質問804への適切な回答である可能性が高いため、第2のドメインに対応する質問への回答を評価するグラウンドトゥルースとなる第2の回答ラベル840として用いられる。 Therefore, the adaptation unit 350 extracts only those answer candidates generated by the answer generation unit 342 whose credibility meets a predetermined credibility standard and whose answer index value is not "0." The answers extracted from the answer candidates in this way have a high credibility and are likely to be appropriate answers to the second question 804, and are therefore used as second answer labels 840, which serve as ground truth for evaluating answers to questions corresponding to the second domain.

次に、適応部350は、回答候補の中から抽出した第2の回答ラベル840と、文章生成部346によって生成された第2の参照文章820と、第2のドメインに対応する第2の対話データ802に含まれる第2の質問804とを対応付けて、第2のドメインに対応する学習データセット(図8に図示せず)として所定の記憶領域に保存する。ただし、この学習データセットと実質的に同様の学習データセットが既に保存されている場合、適応部350は、新たに生成した学習データセットを保存しなくてもよい。 Next, the adaptation unit 350 associates the second answer label 840 extracted from the answer candidates, the second reference sentence 820 generated by the sentence generation unit 346, and the second question 804 included in the second dialogue data 802 corresponding to the second domain, and stores them in a specified storage area as a training dataset (not shown in FIG. 8) corresponding to the second domain. However, if a training dataset substantially similar to this training dataset has already been stored, the adaptation unit 350 does not need to store the newly generated training dataset.

その後、適応部350は、回答生成部342によって生成された学習データセットを用いて上述した回答生成部訓練処理400を回答生成部342に対して行い、Cross Entropy Loss等の損失関数によって回答生成部342のモデルパラメータを調整することで、回答生成部342は、第2のドメインに対応する質問に対して適切な回答を生成する精度が向上する。
これにより、回答生成部342は、上述した回答生成部訓練処理400において回答生成部342を訓練するために用いられた第1のドメインに対応する第1の参照文章には含まれていない、新たな情報(つまり、第2のドメインに関する情報)を含む第2の参照文章を用いて訓練されるため、当該新たな情報に関する質問(つまり、第2のドメインに対応する質問)に対しても適切な回答を生成することができるようになる。
(敵対的学習処理)
Thereafter, the adaptation unit 350 performs the above-described answer generation unit training process 400 on the answer generation unit 342 using the learning dataset generated by the answer generation unit 342, and adjusts the model parameters of the answer generation unit 342 using a loss function such as Cross Entropy Loss, thereby improving the accuracy with which the answer generation unit 342 generates appropriate answers to questions corresponding to the second domain.
As a result, the answer generation unit 342 is trained using the second reference sentences that contain new information (i.e., information about the second domain) that is not included in the first reference sentences corresponding to the first domain used to train the answer generation unit 342 in the above-mentioned answer generation unit training process 400, and therefore becomes able to generate appropriate answers to questions regarding the new information (i.e., questions corresponding to the second domain).
(Adversarial Learning Processing)

敵対的学習処理において、回答生成部342は、第1のドメインに対応する質問と、第2のドメインに対応する質問とを区別するように訓練される。
より具体的には、適応部350は、第1のドメインに対応する第1の質問812と、第1の質問812への回答を含み、第1のドメインに対応する参照文章(図8に図示せず)とを回答生成部342に入力した場合に回答生成部342となるMRCモデルの最終レイヤの出力である第1のドメイン特徴量(例えば、MRCモデルがBERTモデルの場合、BERTfeatures)を取得する。また、適応部350は、第2のドメインに対応する第2の質問804と、第2のドメインに対応する第2の参照文章820とを回答生成部342に入力した場合に回答生成部342となるMRCモデルの最終レイヤの出力である第2のドメイン特徴量(例えばレイヤモデルがBERTモデルの場合、BERTfeatures)を取得する。
In the adversarial learning process, the answer generator 342 is trained to distinguish between questions corresponding to a first domain and questions corresponding to a second domain.
More specifically, the adaptation unit 350 acquires first domain features (e.g., BERTfeatures if the MRC model is a BERT model) that are the output of the final layer of the MRC model that becomes the answer generation unit 342 when a first question 812 corresponding to the first domain and a reference sentence (not shown in FIG. 8 ) that includes the answer to the first question 812 and corresponds to the first domain are input to the answer generation unit 342. In addition, the adaptation unit 350 acquires second domain features (e.g., BERTfeatures if the layer model is a BERT model) that are the output of the final layer of the MRC model that becomes the answer generation unit 342 when a second question 804 corresponding to the second domain and a second reference sentence 820 corresponding to the second domain are input to the answer generation unit 342.

その後、適応部350は、取得した第1のドメイン特徴量と、第2のドメイン特徴量とを含む特徴量データ845を識別ネットワーク850に入力する。この識別ネットワーク850は、例えば3レイヤのMultilayer Networkであってもよい。ある実施形態では、この識別ネットワーク850は、回答生成部342の一部であってもよい。
ある実施形態では、適応部350は、第1のドメイン特徴量及び第2のドメイン特徴量に加えて、線形レイヤの出力であるロジットを識別ネットワーク850に入力してもよい。
The adaptation unit 350 then inputs feature data 845, including the acquired first domain feature and second domain feature, to the classification network 850. The classification network 850 may be, for example, a three-layer multilayer network. In some embodiments, the classification network 850 may be part of the answer generation unit 342.
In one embodiment, the adaptation unit 350 may input the logits, which are the output of the linear layer, to the discriminant network 850 in addition to the first domain feature and the second domain feature.

識別ネットワーク850は、入力した特徴量データ845を解析し、それぞれの特徴が第1のドメインに属する確率及び第2のドメインに属する確率を計算する。その後、識別ネットワーク850は、計算した確率に基づいて、特徴量データ845に含まれる各特徴量に対して、どのドメインに属するかを示すドメインラベル860を生成する。 The identification network 850 analyzes the input feature data 845 and calculates the probability that each feature belongs to the first domain and the probability that each feature belongs to the second domain. Based on the calculated probabilities, the identification network 850 then generates a domain label 860 indicating which domain each feature included in the feature data 845 belongs to.

その後、適応部350は、識別ネットワーク850によって生成されたドメインラベル860の、それぞれの特徴量が属するドメインを示すグラウンドトゥルース(図8に図示せず)に対する損失をCross Entropy Loss等の損失関数によって計算し、当該損失を減らすように回答生成部342のモデルパラメータを調整することで、回答生成部342は、第1のドメインに対応する質問及び第2のドメインに対応する質問を区別する精度が向上する。 The adaptation unit 350 then calculates the loss of the domain labels 860 generated by the identification network 850 relative to the ground truth (not shown in Figure 8) indicating the domain to which each feature belongs, using a loss function such as Cross Entropy Loss, and adjusts the model parameters of the answer generation unit 342 to reduce this loss, thereby improving the accuracy of the answer generation unit 342 in distinguishing between questions corresponding to the first domain and questions corresponding to the second domain.

識別ネットワーク850を用いるときの学習には、いくつかの異なる実装をとることができる。
まず、識別ネットワーク850自体のモデルパラメータを修正する際における、回答生成部342のモデルパラメータの修正に関する実装である。第1の実装は、識別ネットワーク850のモデルパラメータを修正するときに、回答生成部342のモデルパラメータも識別ネットワーク850にてドメインを区別しやすくなるように同時に修正する方法である。第2の実装は、識別ネットワーク850のモデルパラメータを修正する際には、回答生成部342のモデルパラメータを固定しておく方法である。
Training when using the discriminant network 850 can take several different implementations.
First, there are implementations relating to the modification of the model parameters of the answer generation unit 342 when modifying the model parameters of the identification network 850 itself. The first implementation is a method in which, when modifying the model parameters of the identification network 850, the model parameters of the answer generation unit 342 are also modified at the same time so that it becomes easier to distinguish domains in the identification network 850. The second implementation is a method in which, when modifying the model parameters of the identification network 850, the model parameters of the answer generation unit 342 are fixed.

更に、回答生成部342のモデルパラメータの修正においても、いくつかの実装をとることができる。第1の実装は、与えられた質問に対して参照文章における回答の位置を正しく推定するように学習する方法であり、ここまで説明した方法のとおりである。第2の実装は、第1の実装に加えて、識別ネットワーク850がドメインの識別をしづらくなるような基準も使い回答生成部342を学習させる方法である。ここでの基準としては、識別ネットワーク850が出力するドメインの出力確率がなるべくドメインによらず均一になるような基準を用いることができる。ただし、識別ネットワーク850が正しいドメイン識別をできなくなるような別の基準を用いてもよい。 Furthermore, several implementations are possible for modifying the model parameters of the answer generation unit 342. The first implementation is a method of training to correctly estimate the position of the answer in the reference sentence for a given question, as described above. The second implementation is a method of training the answer generation unit 342 using, in addition to the first implementation, a criterion that makes it difficult for the identification network 850 to identify domains. The criterion here can be one that makes the output probability of the domain output by the identification network 850 as uniform as possible regardless of the domain. However, it is also possible to use a different criterion that prevents the identification network 850 from correctly identifying the domain.

そして、第1の実装の基準で求めた損失と、識別ネットワーク850のドメイン識別を難しくする基準で求めた損失を、所定の重みで合算し、この合算した損失を小さくするよう回答生成部342のモデルパラメータを更新する。または、モデルパラメータの更新を2段階に分け、第1の実装における損失を小さくする更新と、識別ネットワーク850の識別を難しくなる基準で求めた損失を小さくする更新を別の処理で行ってもよい。
以上の実装のうちいずれかを選択するかは、第1のドメインと第2のドメインの間で使われる質問や参照文章の語彙の違いなどにより選んでよい。
The loss calculated based on the standard for the first implementation and the loss calculated based on the standard for making domain identification of the identification network 850 more difficult are then added together using a predetermined weight, and the model parameters of the answer generation unit 342 are updated to reduce this combined loss. Alternatively, the model parameter update may be divided into two stages, with the update to reduce the loss in the first implementation and the update to reduce the loss calculated based on the standard for making identification of the identification network 850 more difficult being performed in separate processes.
The choice of one of the above implementations may depend on the differences in vocabulary of questions and reference sentences used between the first and second domains.

以上説明した適応処理800によれば、回答生成部342は、入力される質問が対応するドメインを高精度で判別し、判別したドメインに対応する参照文章を用いることで、様々な質問に対する適切な回答を生成することが可能となる。また、上述したように、本開示に係る適応処理800において、回答生成部342を対象のドメインにおいて訓練するための学習データは、回答生成部342及び文章生成部346によって生成されるため、例えば対象のドメインに対応する対話データ以外の学習データが使用可能でない場合であっても、対象のドメインに対応する質問に対して適切な回答を生成するように回答生成部342を訓練することができる。 According to the adaptation process 800 described above, the answer generation unit 342 can accurately determine the domain to which an input question corresponds and generate appropriate answers to various questions by using reference sentences corresponding to the determined domain. Furthermore, as described above, in the adaptation process 800 according to the present disclosure, the learning data for training the answer generation unit 342 in the target domain is generated by the answer generation unit 342 and the sentence generation unit 346. Therefore, even if, for example, learning data other than dialogue data corresponding to the target domain is not available, the answer generation unit 342 can be trained to generate appropriate answers to questions corresponding to the target domain.

また、本開示の実施形態に係る適応処理800は、ユーザからの質問を受けた際にリアルタイムで実施されてもよい。より具体的には、第1のドメインに対応する第1の文章に基づいて第1のドメインに対応する質問に対する第1の回答を生成するように訓練されている回答生成部342は、第2のドメインに対応する第2の質問(例えば、第1の文章中に回答が存在しない質問)を受け付けた場合、上述した文章生成部346は、第2のドメインに対応する第2の対話データ(例えば、過去の対話履歴の中から、第2のドメインに対応するもの)を用いて、第2のドメインに対応する第2の参照文章をリアルタイムで生成してもよい。次に、適応部350は、このように生成した第2の参照文章を用いて、上述した適応処理800を行うことにより、第2のドメインに対応する第2の質問に対する適切な回答を生成するように回答生成部342を訓練する。その後、このように訓練された回答生成部342は、受け付けた第2の質問に対する第2の回答を、リアルタイムで生成して、その場でユーザに応答してもよい。 Furthermore, the adaptation process 800 according to an embodiment of the present disclosure may be performed in real time when a question is received from a user. More specifically, when the answer generation unit 342, which has been trained to generate a first answer to a question corresponding to a first domain based on a first sentence corresponding to the first domain, receives a second question corresponding to a second domain (e.g., a question for which no answer exists in the first sentence), the above-mentioned sentence generation unit 346 may generate a second reference sentence corresponding to the second domain in real time using second dialogue data corresponding to the second domain (e.g., data corresponding to the second domain from a past dialogue history). Next, the adaptation unit 350 performs the above-mentioned adaptation process 800 using the second reference sentence generated in this manner, thereby training the answer generation unit 342 to generate an appropriate answer to the second question corresponding to the second domain. Thereafter, the answer generation unit 342 trained in this manner may generate a second answer to the received second question in real time and respond to the user on the spot.

なお、上述したように、第1のドメイン(例えば、ソースのドメイン)と第2のドメイン(例えば、ターゲットのドメイン)は、異なるドメインであってもよく、同一のドメインであってもよい。
第1のドメインと第2のドメインとが異なる場合には、上述した適応処理800によれば、回答生成部342は、第1のドメイン(例えば「住宅ローン申請」)に対応する質問と、第2のドメイン(例えば「火災保険申請」)に対応する質問の両方に対して適切な回答を生成できるようになるため、回答生成部342の対応範囲が幅広くなり、汎用性の高いMRCモデルを得ることができる。
一方、第1のドメインと第2のドメインとが同一である場合には、上述した適応処理800によれば、回答生成部342は、同じドメインに関する新たな情報を学習することができるため、より細かなことに関する質問に対する適切な回答を提供できる、当該ドメインに対してより理解が深いMRCモデルを得ることができる。
As mentioned above, the first domain (eg, source domain) and the second domain (eg, target domain) may be different domains or may be the same domain.
When the first domain and the second domain are different, the adaptation process 800 described above enables the answer generation unit 342 to generate appropriate answers to both questions corresponding to the first domain (e.g., "mortgage application") and questions corresponding to the second domain (e.g., "fire insurance application"), thereby broadening the scope of application of the answer generation unit 342 and enabling a highly versatile MRC model to be obtained.
On the other hand, if the first domain and the second domain are the same, the adaptation process 800 described above allows the answer generator 342 to learn new information about the same domain, resulting in an MRC model with a deeper understanding of the domain that can provide appropriate answers to questions about more specific details.

以上説明した本開示の実施形態によれば、自然言語の会話に基づいて生成した参照文章を用いてMRCモデルを訓練することで、様々な質問に対応できる、柔軟性及びロバスト性が高い対話管理手段を提供することができる。言い換えれば、本開示の実施形態に係る対話管理手段によれば、回答生成部等のMRCモデルは、新たな情報を含む対話データに基づいて生成された参照文章を用いて訓練されるため、以前答えられなかった、当該新たな情報に関する質問に対しても適切な回答を生成することが可能となる。 According to the embodiments of the present disclosure described above, by training an MRC model using reference sentences generated based on natural language conversations, it is possible to provide a highly flexible and robust dialogue management means that can respond to a variety of questions. In other words, according to the dialogue management means of embodiments of the present disclosure, the MRC model of the answer generation unit, etc., is trained using reference sentences generated based on dialogue data that includes new information, making it possible to generate appropriate answers even to questions regarding the new information that could not be answered previously.

本開示の実施形態に係る対話管理手段の応用場面の例として、例えばオンラインのチャットサポートやコールセンター等が考えられる。オンラインのチャットサポートやコールセンターでは、例えば質問するユーザと、ユーザに対応するスタッフとの間で行われた会話の履歴等の対話データに基づいて、当該会話の内容を含む参照文章を作成した後、当該参照文章を用いてMRCモデルを訓練することで、MRCモデルの対応範囲を拡張し、様々な話題や情報に関する質問に対する適切な回答を生成することができる。 Examples of application scenarios for the dialogue management means according to embodiments of the present disclosure include online chat support and call centers. In online chat support and call centers, reference sentences containing the content of a conversation are created based on dialogue data, such as a conversation history between a user asking a question and the staff member assisting the user. The reference sentences are then used to train an MRC model, thereby expanding the scope of coverage of the MRC model and enabling it to generate appropriate answers to questions about a variety of topics and information.

以上、本発明の実施の形態について説明したが、本発明は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。 The above describes an embodiment of the present invention, but the present invention is not limited to the above embodiment, and various modifications are possible without departing from the spirit of the present invention.

300 対話管理システム
310 ユーザ
320 クライアント端末
322 受付部
324 第1の通信部
326 応答部
328 ストレージ部
329 対話データ
330 通信ネットワーク
340 対話管理装置
342 回答生成部
344 回答生成部訓練部
346 文章生成部
348 文章生成部訓練部
350 適応部
352 第2の通信部

300 Dialogue management system 310 User 320 Client terminal 322 Reception unit 324 First communication unit 326 Response unit 328 Storage unit 329 Dialogue data 330 Communication network 340 Dialogue management device 342 Answer generation unit 344 Answer generation unit training unit 346 Sentence generation unit 348 Sentence generation unit training unit 350 Adaptation unit 352 Second communication unit

Claims (12)

対話管理装置であって、
第1の質問を受信し、前記第1の質問に対する第1の回答を、第1の参照文章に基づいて生成する回答生成部と、
質問及び回答を含む対話データに基づいて、前記質問及び回答の内容を含む第2の参照文章を生成する文章生成部と、
前記対話データと、第2の質問に対する正しい回答を示す第2の回答ラベルと、前記第2の参照文章とを用いて、前記第2の質問に対する適切な回答を生成するように前記回答生成部を訓練する適応部と、
を含むことを特徴とする対話管理装置。
A dialogue management device,
an answer generator that receives a first question and generates a first answer to the first question based on a first reference sentence;
a sentence generation unit that generates a second reference sentence including the content of the question and the answer based on dialogue data including the question and the answer;
an adaptation unit that uses the dialogue data, a second answer label indicating a correct answer to the second question, and the second reference sentence to train the answer generation unit to generate an appropriate answer to the second question;
A dialogue management device comprising:
前記第1の質問は、第1のドメインに対応し、
前記第1の参照文章は、前記第1のドメインに対応し、
前記対話データは、第2のドメインに対応し、
前記第2の参照文章は、前記第2のドメインに対応し、
前記第2の回答ラベルは、前記第2のドメインに対応し、
前記第2の質問は、前記第2のドメインに対応する、
ことを特徴とする、請求項1に記載の対話管理装置。
the first question corresponds to a first domain;
the first reference sentence corresponds to the first domain;
the interaction data corresponds to a second domain;
the second reference sentence corresponds to the second domain;
the second answer label corresponds to the second domain;
the second question corresponds to the second domain;
2. The dialogue management device according to claim 1, wherein:
前記第1の回答の、前記第1の質問に対する正しい回答を示すグラウンドトゥルースである第1の回答ラベルに対する損失を減らすように前記回答生成部のモデルパラメータを変更することで、前記回答生成部を訓練する回答生成部訓練部、
を更に備えることを特徴とする、請求項2の対話管理装置。
an answer generation unit training unit that trains the answer generation unit by changing model parameters of the answer generation unit so as to reduce the loss of the first answer with respect to a first answer label that is a ground truth indicating a correct answer to the first question;
The dialogue management device of claim 2 further comprising:
前記第2の参照文章の、前記対話データに関する正しい内容を含むグラウンドトゥルースである文章ラベルに対する損失を減らすように前記文章生成部のモデルパラメータを変更することで、前記文章生成部を訓練する文章生成部訓練部、
を更に備えることを特徴とする、請求項2の対話管理装置。
a sentence generator training unit that trains the sentence generator by changing model parameters of the sentence generator so as to reduce loss of the second reference sentence with respect to a sentence label that is a ground truth containing correct content related to the dialogue data;
The dialogue management device of claim 2 further comprising:
前記文章生成部訓練部は、
前記対話データが所定の希少性基準を満たす場合、
前記対話データにおける質問に対する回答を含む元文章から、各回答を抽出し、前記文章ラベルとする、
ことを特徴とする、請求項4に記載の対話管理装置。
The sentence generation unit training unit
If the dialogue data satisfies a predetermined rarity criterion,
extracting each answer from an original sentence containing an answer to a question in the dialogue data, and setting the answer as the sentence label;
5. The dialogue management device according to claim 4, wherein:
前記文章生成部訓練部は、
前記対話データが所定の希少性基準を満たさない場合、
前記対話データと、異なる対話に対応する第2の対話データとから抽出した情報を前記文章ラベルとする、
ことを特徴とする、請求項4に記載の対話管理装置。
The sentence generation unit training unit
If the dialogue data does not meet a predetermined rarity criterion,
information extracted from the dialogue data and second dialogue data corresponding to a different dialogue is used as the sentence label;
5. The dialogue management device according to claim 4, wherein:
前記回答生成部は、
前記文章生成部によって生成される、前記第2のドメインに対応する前記第2の参照文章を用いて、前記第2のドメインに対応する前記第2の質問に対する回答候補を生成し、
生成した前記回答候補の中から、所定の信用度基準を満たす回答を、前記第2の質問に対する正しい回答を示す前記第2の回答ラベルとして抽出し、
前記適応部は、
前記回答生成部によって生成される、前記第2の質問に対する第2の回答の、前記第2の回答ラベルに対する損失を減らすように前記回答生成部を訓練する、
ことを特徴とする、請求項3に記載の対話管理装置。
The answer generation unit
generating answer candidates to the second question corresponding to the second domain using the second reference sentence corresponding to the second domain generated by the sentence generation unit;
extracting an answer that satisfies a predetermined credibility standard from the generated answer candidates as the second answer label that indicates a correct answer to the second question;
The adaptation unit
training the answer generator to reduce a loss for the second answer label of a second answer to the second question generated by the answer generator;
4. The dialogue management device according to claim 3, wherein:
前記適応部は、
ドメインを区別する識別ネットワークを更に含み、
前記第1の質問及び前記第1の参照文章に基づいて、前記第1のドメインに関する第1のドメイン特徴量を前記回答生成部から取得し、
前記第2の質問及び前記第2の参照文章に基づいて、前記第2のドメインに関する第2のドメイン特徴量を前記回答生成部から取得し、
前記第1のドメイン特徴量と、前記第2のドメイン特徴量とに基づいて、前記第1のドメインに関する質問と前記第2のドメインに関する質問とを区別するように前記識別ネットワークを訓練する、
ことを特徴とする、請求項3に記載の対話管理装置。
The adaptation unit
further comprising an identification network for distinguishing the domains;
acquiring first domain features related to the first domain from the answer generation unit based on the first question and the first reference sentence;
acquiring second domain features related to the second domain from the answer generation unit based on the second question and the second reference sentence;
training the discrimination network to distinguish between questions related to the first domain and questions related to the second domain based on the first domain features and the second domain features;
4. The dialogue management device according to claim 3, wherein:
前記回答生成部は、前記識別ネットワークが前記第1のドメインに関する質問と前記第2のドメインに関する質問とを区別するように訓練される、
ことを特徴とする、請求項8に記載の対話管理装置。
the answer generator is configured to train the discrimination network to distinguish between questions about the first domain and questions about the second domain;
9. The dialogue management device according to claim 8, wherein the dialogue management device is a dialogue management device.
前記回答生成部は、前記識別ネットワークが前記第1のドメインに関する質問と前記第2のドメインに関する質問とを区別しづらくなるように訓練される、
ことを特徴とする、請求項8に記載の対話管理装置。
the answer generator is trained to make it difficult for the discrimination network to distinguish between questions about the first domain and questions about the second domain;
9. The dialogue management device according to claim 8, wherein the dialogue management device is a dialogue management device.
対話管理方法であって、
第1のドメインに対応する第1の質問に対する第1の回答を、前記第1のドメインに対応する第1の参照文章に基づいて生成する回答生成部を訓練する工程と、
第2のドメインに対応する質問及び回答を含む第2の対話データに基づいて、前記質問及び回答の内容を含む第2の参照文章を生成する文章生成部を訓練する工程と、
前記第2の参照文章を用いて、前記第2のドメインに対応する第2の質問に対する回答候補を前記回答生成部によって生成する工程と、
生成した前記回答候補の中から、所定の信用度基準を満たす回答を、前記第2の質問に対する正しい回答を示す第2の回答ラベルとして抽出する工程と、
前記第2の対話データと、前記第2の質問に対する正しい回答を示す前記第2の回答ラベルと、前記第2の参照文章とを用いて、前記回答生成部によって生成される、前記第2の質問に対する第2の回答の、前記第2の回答ラベルに対する損失を減らすように前記回答生成部のモデルパラメータを変更することで、前記第2のドメインに対応する質問に対して適切な回答を生成するように、前記回答生成部を訓練する工程と、
を含むことを特徴とする対話管理方法。
1. A dialogue management method, comprising:
training an answer generator to generate a first answer to a first question corresponding to a first domain based on a first reference sentence corresponding to the first domain;
training a sentence generator to generate second reference sentences including the content of the questions and answers based on second dialogue data including questions and answers corresponding to a second domain;
generating answer candidates for a second question corresponding to the second domain by the answer generation unit using the second reference sentence;
extracting, from the generated answer candidates, an answer that satisfies a predetermined reliability standard as a second answer label indicating a correct answer to the second question;
training the answer generation unit to generate appropriate answers to questions corresponding to the second domain by changing model parameters of the answer generation unit using the second dialogue data, the second answer label indicating a correct answer to the second question, and the second reference sentence so as to reduce a loss of the second answer to the second question generated by the answer generation unit for the second answer label;
A dialogue management method comprising:
ユーザの質問に対して適切な応答を出力するクライアント端末と、
前記応答を生成する対話管理装置とが通信ネットワークを介して接続される対話管理システムにおいて、
前記対話管理装置は、
第1のドメインに対応する第1の質問に対する第1の回答を、前記第1のドメインに対応する第1の参照文章に基づいて生成する回答生成部と、
第2のドメインに対応する質問及び回答を含む第2の対話データに基づいて、前記質問及び回答の内容を含む第2の参照文章を生成する文章生成部と、
前記第2の対話データと、前記第2のドメインに対応する第2の質問に対する正しい回答を示す第2の回答ラベルと、前記第2の参照文章とを用いて、前記第2のドメインに対応する質問に対して適切な回答を生成するように前記回答生成部を訓練する適応部と、
を含むことを特徴とする対話管理システム。

a client terminal that outputs appropriate responses to user questions;
a dialogue management system connected to a dialogue management device that generates the response via a communication network,
The dialogue management device
an answer generation unit that generates a first answer to a first question corresponding to a first domain based on a first reference sentence corresponding to the first domain;
a sentence generation unit that generates a second reference sentence including the content of the question and answer based on second dialogue data including the question and answer corresponding to a second domain;
an adaptation unit that trains the answer generation unit to generate appropriate answers to questions corresponding to the second domain using the second dialogue data, second answer labels indicating correct answers to second questions corresponding to the second domain, and the second reference sentences;
Dialogue management system comprising:

JP2022088123A 2022-05-31 2022-05-31 Dialogue management device, dialogue management method, and dialogue management system Active JP7731849B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2022088123A JP7731849B2 (en) 2022-05-31 2022-05-31 Dialogue management device, dialogue management method, and dialogue management system
PCT/JP2023/019238 WO2023234128A1 (en) 2022-05-31 2023-05-24 Conversation management device, conversation management method, and conversation management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022088123A JP7731849B2 (en) 2022-05-31 2022-05-31 Dialogue management device, dialogue management method, and dialogue management system

Publications (2)

Publication Number Publication Date
JP2023176054A JP2023176054A (en) 2023-12-13
JP7731849B2 true JP7731849B2 (en) 2025-09-01

Family

ID=89024851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022088123A Active JP7731849B2 (en) 2022-05-31 2022-05-31 Dialogue management device, dialogue management method, and dialogue management system

Country Status (2)

Country Link
JP (1) JP7731849B2 (en)
WO (1) WO2023234128A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7843565B1 (en) * 2025-08-26 2026-04-10 株式会社D4All Information processing system, information processing method, and information processing program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111259130A (en) 2020-02-14 2020-06-09 支付宝(杭州)信息技术有限公司 Method and apparatus for providing reply sentence in dialog
US20210149994A1 (en) 2019-11-15 2021-05-20 42 Maru Inc. Device and method for machine reading comprehension question and answer
US20210232613A1 (en) 2020-01-24 2021-07-29 Accenture Global Solutions Limited Automatically generating natural language responses to users' questions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210149994A1 (en) 2019-11-15 2021-05-20 42 Maru Inc. Device and method for machine reading comprehension question and answer
US20210232613A1 (en) 2020-01-24 2021-07-29 Accenture Global Solutions Limited Automatically generating natural language responses to users' questions
CN111259130A (en) 2020-02-14 2020-06-09 支付宝(杭州)信息技术有限公司 Method and apparatus for providing reply sentence in dialog

Also Published As

Publication number Publication date
JP2023176054A (en) 2023-12-13
WO2023234128A1 (en) 2023-12-07

Similar Documents

Publication Publication Date Title
US11669918B2 (en) Dialog session override policies for assistant systems
JP6722789B2 (en) System and method for interactive language acquisition
US20250148257A1 (en) Automated assistant invocation of appropriate agent
US20250078676A1 (en) Deep Learning-Based Natural Language Understanding Method and AI Teaching Assistant System
JP6793975B2 (en) Video-based Jobs Job Matching Servers and methods and computer-readable recording media containing programs to perform those methods
CN107291867B (en) Artificial intelligence-based dialog processing method, apparatus, device, and computer-readable storage medium
US12314675B2 (en) System and method for a cognitive conversation service
EP4033393A1 (en) Determining state of automated assistant dialog
WO2019200923A1 (en) Pinyin-based semantic recognition method and device and human-machine conversation system
US10747560B2 (en) Computerized task guidance across devices and applications
Goble et al. A robot that communicates with vocal fillers has… Uhhh… greater social presence
CN107463601A (en) Dialogue based on artificial intelligence understands system constituting method, device, equipment and computer-readable recording medium
EP4075411A1 (en) Device and method for providing interactive audience simulation
CN114860910B (en) Intelligent dialogue method and system
Rao SB et al. Improving asynchronous interview interaction with follow-up question generation
Zoe Cremer et al. Artificial canaries: Early warning signs for anticipatory and democratic governance of AI
KR20190074508A (en) Method for crowdsourcing data of chat model for chatbot
Kumari et al. Domain-specific Chatbot development using the deep learning-based RASA framework
CN119128109A (en) Model training method, question answering method, device and electronic device based on large model
JP7731849B2 (en) Dialogue management device, dialogue management method, and dialogue management system
CN117726011A (en) Model distillation method and device, medium and equipment for natural language processing
CN118378148A (en) Training method of multi-label classification model, multi-label classification method and related device
CN119312910A (en) Human-computer interaction method, device, equipment and medium
Jaya et al. Development of conversational agent to enhance learning experience: Case study in pre university
CN113343668A (en) Method and device for solving selected questions, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20250213

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20250819

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250820

R150 Certificate of patent or registration of utility model

Ref document number: 7731849

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150