Next Article in Journal
Silica-Coated Magnetic Nanocomposites for Pb2+ Removal from Aqueous Solution
Next Article in Special Issue
Source Code Assessment and Classification Based on Estimated Error Probability Using Attentive LSTM Language Model and Its Application in Programming Education
Previous Article in Journal
Renewable Energy Sources in a Post-Socialist Transitional Environment: The Influence of Social Geographic Factors on Potential Utilization of Very Shallow Geothermal Energy within Heating Systems in Small Serbian Town of Ub
Previous Article in Special Issue
A Hybrid Deep Learning Model for Protein–Protein Interactions Extraction from Biomedical Literature
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Cooperative Multi-Agent Reinforcement Learning with Conversation Knowledge for Dialogue Management

Center for Intelligence of Science and Technology (CIST), Beijing University of Posts and Telecommunications, Beijing 100876, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2020, 10(8), 2740; https://doi.org/10.3390/app10082740
Submission received: 25 March 2020 / Revised: 8 April 2020 / Accepted: 9 April 2020 / Published: 15 April 2020

Abstract

:
Dialogue management plays a vital role in task-oriented dialogue systems, which has become an active area of research in recent years. Despite the promising results brought from deep reinforcement learning, most of the studies need to develop a manual user simulator additionally. To address the time-consuming development of simulator policy, we propose a multi-agent dialogue model where an end-to-end dialogue manager and a user simulator are optimized simultaneously. Different from prior work, we optimize the two-agents from scratch and apply the reward shaping technology based on adjacency pairs constraints in conversational analysis to speed up learning and to avoid the derivation from normal human-human conversation. In addition, we generalize the one-to-one learning strategy to one-to-many learning strategy, where a dialogue manager can be concurrently optimized with various user simulators, to improve the performance of trained dialogue manager. The experimental results show that one-to-one agents trained with adjacency pairs constraints can converge faster and avoid derivation. In cross-model evaluation with human users involved, the dialogue manager trained in one-to-many strategy achieves the best performance.

1. Introduction

A task-oriented dialogue system can help people accomplish specific goals, such as booking a hotel, seeking a restaurant information. A typical text-based task-oriented dialogue system mainly comprises three parts—Natural Language Understanding (NLU), Dialogue Management (DM), and Natural Language Generation (NLG). DM plays a vital role which infers dialogue state from NLU and provides appropriate action for NLG, and it has attracted much attention in recent years.
Recently, reinforcement learning has been widely studied as a data-driven approach for modeling DM [1,2,3,4,5,6,7,8,9], where a state tracker maintains dialogue states and a policy model chooses a proper action according to the current dialogue state. In most recent studies [4,5,6,7,8,9] on task-oriented dialogue tasks, Deep Reinforcement Learning (DRL) was utilized to train the policy model in order to achieve maximum long-term reward through interacting with a manual user simulator. To this end, most of the studies need the additional development of a user simulator in task-oriented dialogue system.
To address the time-consuming development of simulator policy issue, we propose a Multi-Agent Dialogue Model (MADM) where an end-to-end dialogue manager cooperates with a user simulator to fulfill the dialogue task. Since user simulator is treated as one agent in multi-agent, the simulator policy can be optimized in an automatic manner rather than laboring development. Different from prior work [10], we optimize the cooperative policies concurrently via multi-agent reinforcement learning from scratch without supervised initializing process. For user simulator reward function, we use the reward shaping technique [11] based on the adjacency pairs in conversational analysis [12] to make the simulator learn real user behaviors quickly. In addition, we generalize the one-to-one learning strategy to one-to-many learning strategy where a dialogue manager cooperates with various user simulators to improve the performance of trained dialogue manager. We obtain these various user simulators through changing the adjacency pairs settings, and then we mixture them with a dialogue manager to optimize the cooperative policies via multi-agent reinforcement learning.
Compared with MADM without the constraints, MADM trained with adjacency pairs constraints can converge faster and avoid derivation from normal human-human conversation. The experimental results also show that the dialogue manager trained with one-to-many strategy achieves the best performance in cross-model evaluation with human users involved. To summary, our main contributions in this work are three-fold:
  • We propose an MADM to optimize the cooperative policies between an end-to-end dialogue manager and a user simulator concurrently from scratch.
  • We apply reward shaping technique based on adjacency pairs to user simulator to speed learning and to help the MADM generate normal human-human conversation.
  • We further generalize the one-to-one learning strategy to one-to-many learning strategy to improve the performance for trained dialogue manager.
The rest of the paper is organized as follows—Section 2 gives an overview of related work. Section 3 describes the MADM model in detail. Section 4 discusses the experimental results and evaluations. Section 5 gives the conclusive discussions and the description of future work.

2. Related Work

Data-driven DM has become an active research area in the field of task-oriented dialogue system. In recent years, a lot of promising studies [1,2,4,7,8,9] worked on the policy model in dialogue system pipeline. Meanwhile, some studies [13,14,15] built the DM and NLU into an end-to-end model. In the above studies, the dialogue policy was optimized with a user simulator as a trial-and-error manner in reinforcement learning. However, the development of a user simulator was complex and it took considerable time to built an appropriate user policy. Additionally, some studies [4,5,14,16] relied on considerable supervised data. Reference [16] proposed an end-to-end model by jointly training NLU and DM with supervised learning. References [4,5,14] applied the demonstration data to speed up the convergence in a supervised manner. Preparing such supervised data is also laborious. Although some studies [3,17] could optimize the policy model via on-line human interaction, these methods required considerable human interaction. Meanwhile, the initial performance was still relatively poor, which could impact negatively on the user experience. Different from the above studies, the dialogue management in our framework is optimized from scratch without any laborious preparation for supervised data and development of user policy.
As the user simulator plays a vital role in reinforcement learning for optimizing dialogue policy, the studies on the user simulator also received a lot of attention. References [18,19,20,21,22,23,24] utilized the data-driven approach to develop the user simulator. However, such statistic-based methods required a lot of corpus. Once the training data were not sufficient, the data-driven simulator could only produce a simplex response. Dialogue management trained with such simplex simulator might converge to a solution with poor generalization performance. In addition, the obtained policy was uncontrollable with statistic-based methods. Thus, an alternative approach was based on agenda rules. Reference [25] proposed an agenda-based approach that does not necessarily need training data but can be trained in case such data are available. This agenda-based simulator was realistic enough to successfully test many DRL algorithms [6] and train a dialogue policy. However, the developer must maintain the rules operating on agenda, working as simulation policy, with domain expertise. Different from above studies, user simulator in our framework is optimized from scratch without the need of pre-defined rules or dialogue corpus.
To address the time-consuming development for simulator policy, recent studies [10,26,27] proposed a one-to-one dialogue model where a dialogue manager and a user simulator were optimized concurrently. Different from the above studies, our proposed MADM applies the reward shaping technique [11] based on the adjacency pairs in conversational analysis [12], which can help the cooperative policies learn from scratch quickly. By the method of reward shaping, our proposed MADM avoids running a learning algorithm multiple times in a study [26] and collects the corpora in studies [10,27].
Recently, multi-agent reinforcement learning has been applied in many interesting research areas. References [28,29] proposed a cooperative ‘image guessing’ game between two agents – Q-BOT and A-BOT– who communicate in natural language dialog so that Q-BOT can select an unseen image from a lineup of images. References [30,31] showed it was possible to train a multi-agent model for negotiation where agents with different goals attempt to agree on common decisions. Reference [32] pointed out that a competitive multi-agent environment trained with self-play could produce behaviors that were far more complex than the environment itself. Different from the above studies, we use the multi-agent reinforcement learning to model the cooperation between dialogue manager and user simulator.

3. Model

3.1. Notation

We consider a cooperative multi-agent reinforcement learning as a Decentralized Partially Observable Markov Decision Processes (Dec-POMDP) [33] defined with a tuple ( α , S , { A i } i α , T , { O i } i α , Z , { R i } i α ) , where α is a set of n agents, S is a set of states of the world and the possible joint configuration of all the agents, A i is a set of actions for agent i, the joint action space are defined as A = A 1 × × A n , T : S × A × S [ 0 , 1 ] is a state transition function, O i is a set of observations for agent i, the joint observation space are denoted as O = O 1 × × O n , Z : S × A × O [ 0 , 1 ] is an observation function, S i : S × A × S R is a reward function for agent i. For the cooperative multi-agent reinforcement learning, each agent i has the equal reward in every time step t. Each agent i chooses its own actions according to the policy function π i : O i × A i [ 0 , 1 ] . Each agent i aims to maximize its own long-term discounted reward R i = t = 0 T γ t r i , t , where γ is a discount factor and T is the time horizon.

3.2. Multi-Agent Dialogue Model (MADM)

We propose an MADM where a dialogue manager cooperates with a user simulator to fulfill the dialogue task based on cooperative multi-agent reinforcement learning. The entire architecture is illustrated in Figure 1. The basic MADM has two agents: a dialogue manager and a user simulator. This basic MADM can be generalized to MADM with multiple agents—a dialogue manager and various user simulators. The dialogue manager takes the historical dialogue sequence as input and then produces the selected action. The user simulator takes the action from the dialogue manager and then produces a user utterance back to dialogue manager. The dialogue manager and the user simulator are described in detail, respectively, as follows.

3.2.1. Dialogue Manager

Dialogue manager consists of two parts: an observation encoder and a manager policy as shown in Figure 1. The observation encoder is employed to map historical dialogue sequence to observation representation. As some slot dependent actions (e.g., confirm()) need to combine with slot values from user utterances to make up an integral action, observation encoder also produces the slot values from user utterance through slot filling and intent recognition. The manager policy is applied to map the observation representation to a selected action for responding to user simulator. Observation encoder and manager policy are described in detail, respectively, as follows.
Observation encoder: the historical dialogue sequence h t = [ a 0 m , u 1 , , a t 1 m , u t ] is encoded to an observation representation o t m , meanwhile, the slot values information y t and the intent recognition information z t are output, where a t 1 m denotes the selected action from manager in time step t 1 , u t = [ w t 1 , w t 2 , , w t I ] denotes the user utterance in time step t, w t i denotes the i-th word (or i-th character in Chinese) in the user utterance u t , and y ^ t = [ y ^ t 1 , y ^ t 2 , , y ^ t I ] denotes the slot label information on user utterance u t . To this end, a hierarchical recurrent neural network (HRNN) is applied to model observation encoder. In the bottom layer of HRNN, a bidirectional LSTM [34] with attention pooling is employed to obtain the sentence representation e t m for user utterance u t , which is computed as follows:
c t i = L S T M f w d ( c t i 1 , e ( w t i ) )
c t i = L S T M b w d ( c t i + 1 , e ( w t i ) )
e t i = i = 1 I α i [ c t i c t i ]
α i = exp q t i i = 1 I exp q t i
q t i = g ( [ c t i c t i ] ) ,
where c t i and c t i are the outputs of forward and backward LSTM in bottom layer of HRNN, respectively, e t i denotes the embedding of word w t i , ⊕ is the concatenation operator, α i is the attention weights, and g is a feed-forward neural network. The bidirectional LSTM also outputs the slot values information y ^ t and the intent recognition information z ^ t , which is computed as follows:
y ^ t i = arg max l ( s o f t m a x ( c t i c t i ) )
z ^ t = arg max k ( s o f t m a x ( c t I c t 0 ) ) ,
where l denotes the set of slot labels and k denotes the set of intent labels. In top layer of HRNN, a forward LSTM is applied to integrate the last observation representation o t 1 m , last manager action a t 1 m and current sentence representation e t m into current observation representation o t m , which is computed as follows:
d t m = e t m o ( a t 1 m )
o t m = L S T M o b s ( o t 1 m , d t m ) ,
where d t m is the concatenation of sentence representation e t m and last action representation o ( a t 1 m ) , and o ( a t 1 m ) is a one-hot vector with the corresponding action position set to 1.
Manager policy: the observation representation o t m is projected to the selected action a t m . To this end, a deep neural network (DNN) is applied to model manager policy, which is computed as follows:
π m ( a t m | o t m ) = s o f t m a x ( D N N ( o t m ) ) ,
where policy function π m ( a t m | o t m ) is a probability distribution on the action space. The selected action a t m is drawn from the distribution π m ( a t m | o t m ) . For convenience, π m ( a t m | o t m ; θ m ) is denoted as the policy function of dialogue manager, where θ m are the parameters of the manager policy.

3.2.2. User Simulator

User simulator is composed of four parts: a simulator observation maintainer, a goal generator, a simulator policy, and an NLG as shown in Figure 1. The observation maintainer is applied to obtain the observation representation for user simulator. The goal generator is used to produce the user goal (e.g., slot value) and simulate the goal change during a dialogue. The simulator policy is applied to map the observation representation to a selected action for generating a user utterance. The NLG is applied to generate the next user utterance to dialogue manager. The four parts of user simulator are described in detail, respectively, as follows.
Observation maintainer: the observation representation o t s is a concatenated vector composed of three parts: an embedding o ( a t m ) for manager action a t m , a binary variable b t that indicates whether the slot value in manager action a t m is null, and an indicative vector v t that denotes which type of slot value in confirm-action received from manager is different from user goal g t in time step t.
Goal generator: the user goal is generated at the start of the dialogue by sampling the candidate slot values uniformly. As the initial goal may change in a real user dialogue, the variation of user goals are also simulated during the interaction. For each session, the user goals are sampled from the candidate slot values randomly at the beginning of the dialogue, meanwhile, an indicative vector c c , which counts the number of variations for each slot, is set to be a zeroes vector. This indicative vector c c is used to limit the number of variations for each slot to avoid overly complex conversations. In each turn, a variation probability p v is sampled from [ 0 , 1 ] randomly, if this variation probability p v is bigger than threshold probability p t h , then a random slot is selected to change the corresponding value to another one from candidate slot values. Once a slot value is changed, the corresponding value of variation slot in indicative vector c c is added 1. If the number of variations for some slots exceed the limitation number, those slots will not be changed, even though the variation probability p v is bigger than threshold probability p t h .
Simulator policy: the observation representation o t s is mapped to the selected action a t s . To this end, a multi-layer perceptron (MLP) is applied to model simulator policy, which is computed as follows:
π s ( a t s | o t s ) = s o f t m a x ( M L P ( o t s ) ) ,
where policy function π s ( a t s | o t s ) is a probability distribution on the action space. The selected action a t s is drawn from the distribution π s ( a t s | o t s ) . For convenience, π s ( a t s | o t s ; θ s ) is denoted as policy function of user simulator, where θ s are the parameters of the simulator policy.
NLG: the selected action a t s is projected to next user utterance u t + 1 for replying to dialogue manager. A template-based NLG is used to produce such user utterances. The responding template is drawn from a set of pre-defined templates according to the selected action a t s . To assure the generalization and expressiveness, the templates are delexicalized by replacing concrete slot values with their slot names. For some slot dependent actions (e.g., inform()), the drawn template is lexicalized with the goal slot values to generate the final user utterance. An example of user utterance generation is shown in Figure 2, where B-loc, I-loc and O denote the slot labels of the beginning character of a location, inter character of a location and other characters, respectively.

3.3. Cooperative Training

Policy gradient: the policy gradient is applied to compute an estimate of the gradient of policy parameters in order to maximize the long-term discounted reward. In a cooperative dialogue, the gradient of manager policy and simulator policy are denoted as follows:
θ m J ( θ m ) = E π m , π s [ A m ( a m , o m ) θ m log π m ( a m | o m ) ]
θ s J ( θ s ) = E π m , π s [ A s ( a s , o s ) θ s log π s ( a s | o s ) ] ,
where A m ( a m , o m ) is the advantage function of manager, and A s ( a s , o s ) is the advantage function of simulator. REINFORCE with a baseline algorithm [35] is applied to estimate the advantage functions. Thus, the advantage function A m ( a m , o m ) and the advantage function A m ( a m , o m ) are computed as follows:
A m ( a t m , o t m ) = j = 0 J γ j r t + j V π m ( o t m ; ϕ m )
A s ( a t s , o t s ) = j = 0 J γ j r t + j V π s ( o t s ; ϕ s ) ,
where V π m ( o t m ; ϕ m ) is the value function of manager with parameters ϕ m to estimate the return on observation o t m , and V π s ( o t s ; ϕ s ) is the value function of simulator with parameters ϕ s to estimate the return on observation o t s . The loss functions of V π m ( o t m ; ϕ m ) and V π s ( o t s ; ϕ s ) are computed as follows:
J ( ϕ m ) = 1 2 [ A m ( a t m , o t m ) ] 2
J ( ϕ s ) = 1 2 [ A s ( a t s , o t s ) ] 2 .
The value function V π m ( o t m ; ϕ m ) and policy function π m ( a t m | o t m ; θ m ) share the same parameters, meanwhile, the slot filling and intent recognition are optimized in a supervised manner jointly. To this end, the total loss function of dialogue manager is computed as follows:
J r ( θ m ) = A m ( a m , o m ) θ m log π m ( a m | o m ) + 1 2 [ A m ( a m , o m ) ] 2
J s ( θ m ) = t = 1 T i = 1 I y ^ t i log y t i + t = 1 T z ^ t log z t
J w ( θ m ) = ( 1 λ ) J r ( θ m ) + λ J s ( θ m ) ,
where λ ( 0 , 1 ] is a balance coefficient. Similar to dialogue manager, the value function V π s ( o t s ; ϕ s ) and policy function π s ( a t s | o t s ; θ s ) share the same parameters in user simulator. The total loss function of user simulator is computed as follows:
J w ( θ s ) = A s ( a s , o s ) θ s log π s ( a s | o s ) + 1 2 [ A s ( a s , o s ) ] 2 .
The two total-loss functions are optimized cooperatively after a complete dialogue. In this way, the dialogue manager and the user simulator are optimized cooperatively and simultaneously. The alternate training method was tried to optimize dialogue manager and user simulator, and empirical results show that alternate training method (every 10 training steps alternately) has slower convergence than joint training method and achieves the same performance with training jointly.
Above all, the dialogue manager and the user simulator are optimized cooperatively in a one-to-one manner. To improve the dialogue manager generalization performance, this one-to-one cooperation is generalized to one-to-many cooperation where a dialogue manager cooperates with various user simulators. These various user simulators are obtained through changing the settings of adjacency pairs as described in the next paragraph. For one training step, dialogue manager interacts with one user simulator to fulfill a complete dialogue, then the dialogue manager and the current simulator are optimized via one-to-one training. For next training step, dialogue manger changes to anther simulator to learn the cooperative policies. In this way, the dialogue management and the various user simulators are optimized in a one-to-many manner alternately. We tried to use multi one-to-one parallelly then share the gradient of dialogue manager, and empirically observed that sharing gradient optimization is slower than learning one-by-one.
Reward shaping based on adjacency pairs: In cooperative multi-agent reinforcement learning, each agent has the same reward for every time step. The naive reward function is assigned as follows:
  • Manager reward r ( s t 1 , a t 1 m , s t ) and simulator reward r ( s t 1 , a t 1 s , s t ) are both + 1 , if s t is a successful completed state.
  • Manager reward r ( s t 1 , a t 1 m , s t ) and simulator reward r ( s t 1 , a t 1 s , s t ) are both 1 , if s t is not a successful completed state until the maximum length T in a dialogue.
  • Manager reward r ( s t 1 , a t 1 m , s t ) and simulator reward r ( s t 1 , a t 1 s , s t ) are both 0.01 in otherwise.
This credit-assignment approach is sparse and delayed when a successful cooperative dialogue between dialogue manager and user simulator has a long trajectory. In cold start situation, as the initial cooperative polices are nearly random, the successful dialogue with a long trajectory is easier to be generated than one with a short trajectory. This credit-assignment approach leads to a slow convergence. To alleviate this problem, we use the reward shaping technique [11] based on the adjacency pairs in conversational analysis [12] to substitute the reward in user simulator. The reward based on the adjacency pairs is assigned as follows:
  • Simulator reward r ( s t 1 , a t 1 s , s t ) is 0.01 , if s t is a non-terminal state and the action pair [ a t 1 m , a t 1 s ] does not belong to the set of adjacency pairs.
  • Simulator reward r ( s t 1 , a t 1 s , s t ) is r s , if s t is a non-terminal state and the action pair [ a t 1 m , a t 1 s ] does not belong to the set of adjacency pairs, where r s is the shaping reward greater than 0.01 .
  • Manager reward r ( s t 1 , a t 1 m , s t ) and simulator reward r ( s t 1 , a t 1 s , s t ) are both + 1 , if s t is a successful completed state.
  • Manager reward r ( s t 1 , a t 1 m , s t ) and simulator reward r ( s t 1 , a t 1 s , s t ) are both 1 , if s t is not a successful completed state until the dialogue reaches maximum length T in a dialogue.
  • Manager reward r ( s t 1 , a t 1 m , s t ) is 0.01 , if s t is a non-terminal state.
Through changing the set of adjacency pairs, various user simulators can be obtained. For non-shaped reward setting, each agent has the equal reward every time step. For shaped reward setting, each agent aims to maximize its own long-term discounted reward.

4. Experiment

To assess the performance, cross-model evaluation [36] is applied that is, training on one simulator and testing on the other. In our cross-model evaluation, human users also take part in the test for different dialogue managers. The evaluation is happened on Chinese meeting room booking tasks. It is worth nothing that our proposed framework can be directly utilized on English tasks by substituting Chinese characters to English words as inputs.

4.1. Dataset

The dataset was collected from 300 human-human dialogues on booking Chinese meeting room task. The average length of collected dialogues is approximately 16 turns. For the NLG in user simulator, 255 pre-defined templates and 240 slot values are extracted from collected dialogues. The dialogue manager consists of 7 dialogue acts and 3 slots and the user simulator consists of 10 dialogue acts, as shown in Table 1.

4.2. Cross-Model Evaluation with Human Users Involved

4.2.1. Users for Cross-Model Evaluation

To access the performance on different dialogue managers, simulated users and human users take part in the cross-model evaluation.
A group of user simulators (Group-S): This group of user simulators is obtained through changing the settings of adjacency pairs and is optimized with the dialogue manager in MADM as one-to-many strategy via multi-agent reinforcement learning. The Group-S is composed of five different simulators: all-simulator where all the types of adjacency pairs is applied to reward shaping, ask-simulator where only ask-action adjacency pairs (e.g., ask_loc() to inform_loc()) is applied to reward shaping, confirm-simulator where only confirm-action adjacency pairs (e.g., confirm_loc() to affirm()) is applied to reward shaping, bye-simulator where only bye-action adjacency pairs (e.g., bye() to bye()) is applied to reward shaping and naive-simulator where no adjacency pairs is applied. The shaping reward r s is set to + 0.01 . The probability of simulating goal change is set to 0.5. Each slot is limited to change once to avoid overly complex conversations. For the NLG, the collected pre-defined templates are used to generate the user utterance through lexicalization as described in Section 3.2.2. Different dialogue managers are tested with each simulator in Group-S through interacting 200 episodes.
A rule-based user simulator (Rule-S): This simulator is developed according to the mode proposed in Reference [25,37]. The naive reward function is used in Section 3.3. The same settings in Group-S is used for goal generator and NLG. Different dialogue managers are tested with this Rule-S through interacting 200 episodes.
Human Users: 25 graduate volunteers are recruited to conduct human users test. Comparing different model subjectively on human users always suffers from unfairness and human user may fit in the system gradually. Thus, human users test is conducted in a paralleled manner and is evaluated in objective assessment whether the system can help users accomplish tasks or not. Before testing, the specific user goals are allocated to each users. In the guide of the same allocated goal, the human users use the same natural language to interact with different dialogue managers. Each of the volunteers conducts two parallel tests on different dialogue managers.

4.2.2. Dialogue Managers for Cross-Model Evaluation

To benchmark the dialogue manager from MADM trained as one-to-many strategy, five dialogue managers take part in the cross-model evaluation.
A dialogue manager from MADM trained as one-to-many strategy (M-MADM-OM): This end-to-end dialogue manager is built based on the dialogue manager as described in MADM and optimized with the Group-S concurrently via multi-agent reinforcement learning. The character is used as the model inputs, the size of character embedding is set to 8, the hidden sizes of the LSTM in bottom layer of HRNN and LSTM in bottom layer of HRNN are both set to 16, the sizes of two hidden layers in DNN are both set to 16 and the balance coefficient λ is 0.5.
A dialogue manager trained with Rule-S (Rule-M): This end-to-end dialogue manager is implemented with the same inputs and structures as dialogue manager in MADM and is optimized with the Rule-S through REINFORCE with baseline algorithm.
Yang 2017 [16]: A end-to-end dialogue manager is implemented as those in Reference [16]. The hidden size of the LSTM for NLU and system action prediction are both set to 16. This model is optimized with standard supervised learning.
Zhao 2016 [13]: A end-to-end dialogue manager is implemented with the same inputs and structure as those in Reference [13]. The hidden size of the LSTM is set to 256. The size of hidden layer which maps LSTM output to action is 128. As the model in Reference [13] can only parse a Yes/No answer, we connect this model with additional NLU. This NLU is modeled with a bi-directional LSTM separately. The hidden size of separate bi-directional LSTM is set to 32. This model optimized with REINFORCE with baseline outperforms the one optimized with deep Q-learning after repeated experiments in our dialogue tasks. Thus, REINFORCE with baseline algorithm is used to optimize this model with the Rule-S.
Peng 2018 [9]: A dialogue manager implements a model with the same inputs and structures as dialogue manager in MADM. This dialogue manager is optimized with deep dyna-Q with a world model and a user simulator. The world model is implemented with the same structure as in Reference [9], where the input is the concatenation of an observation representation o t m and an embedding of dialogue manager action a t m , where the size of hidden layer is set to 16. The user simulator uses the same setting in Rule-S.

4.2.3. Results

The results of the cross-model evaluation on success rate and average turns are shown in Table 2. In Group-S test, M-MADM-OM achieves the best performance. In Rule-S test, although M-MADM-OM does not achieve the best performance, it is only 0.2% lower than Rule-M and Peng 2018 [9]. In human users test, M-MADM-OM achieves the best performance. Above all, our proposed M-MADM-OM achieves the best performance in cross-model evaluation.
For the simulators performance, comparing Group-S test with Rule-S test, dialogue managers trained with Rule-S show the bad performance while interacting with Group-S. This phenomenon shows that Group-S may generate some user behaviors that Rule-S are unable to simulate. Comparing Group-S test with human users test, the results of human users are better than Group-S, which means that Group-S generate some user behaviors that human users may not produce. Even so, to our surprise, the Group-S can improve the concurrent dialogue manager performance on human users test.
Since our method applies a dynamic adjusted simulator without extensive involving of human laboring, the built model is more time efficient in a long run, even though it is slower in learning an optimal dialogue manager compared with the one-to-one methods with rule-based user simulator (including the work in Reference [9]). As empirical analysis, we observed that dialogue manager with dynamic adjusted simulator is four hours slower than deep dyna-Q method in Reference [9] as the same experimental settings, finally we obtained the optimized simulator with better generalization ability and without involving any more human efforts.

4.2.4. Good Case Study

Considering the improvement on M-MADM-OM in real scenario, two examples compared between M-MADM-OM and Rule-M are shown in Table 3. The Rule-M may fail in the case that the user always gives irrelevant answer (e.g., system request the number of people and user inform the date of the meeting). On the other hand, the M-MADM-OM can tackle such irrelevant answer and guide the user to inform the rest of slots. This is because the Group-S may generate more user behaviors than Rule-S, and M-MADM-OM can learn more robust policy for real scenario than Rule-M.

4.3. Ablation

The ablation experiments are conducted to evaluate efficiency of the different settings on adjacency pairs for reward shaping and the generalization performance on M-MADM-OM.

4.3.1. Adjacency Pair Performance

Considering reward shaping influence on convergence, the different adjacency pairs settings for reward shaping are compared. There are five settings: all the types of adjacency pairs, only ask-action adjacency pairs, only confirm-action adjacency pairs, only bye-action adjacency pairs and naive reward function. The training curves are shown in Figure 3. These success rate curves are obtained through testing dialogue managers with their respective learning simulator after every 300 training steps. Two settings (i.e., all the types of adjacency pairs and only ask-action adjacency pairs) achieve the best performance on speed up learning.
As the learning from scratch may cause that learned policy deviate from normal human-human conversation, these final dialogue managers are also tested with human users to check whether they deviate from normal human-human conversation or not. The same paralleled test strategy as described in Section 4.2.1 is conducted in human users test. The success rate and average turns are shown in Table 4. Results show that only all the types of adjacency pairs outperform the Rule-M. Other settings show bad performance on human users test. There are two reason for this: slow convergence and derivation from normal human-human conversation. Above results demonstrate that all the types of adjacency pairs for reward shaping can speed learning and avoid derivation from normal human-human conversation.

4.3.2. Comparison of Various Simualtors Settings in One-to-Many Learning

Considering the various simualtors settings in one-to-many learning, we compare the combination of multiple simulators. Since we change the adjacency pairs settings to obtain the different user simulators, we can get 31 combinations based on five seed simulators (i.e., all, ask, confirm, bye and naive). We compare M-MADM-OM with the dialogue managers trained with all combinations containing two simulators, and then show the success rate and average turns in Table 5. We observe that dialogue managers trained with the conbinations containing an all-simulator outperform those dialogue managers trained without the all-simulator on the Group-S and the Rule-S, meanwhile, we observe that all the dialogue managers can achieve the roughly same performance on corresponding trained simulators. We obtain the same results in one-to-three and one-to-four learning. Through the aforementioned results, we think user behaviors generated by the all-simulator can cover user behaviors generated by the Rule-S and the other simulators can generate some user behaviors that the Rule-S can not generate. Thus, we use the combination of five seed simulators to train the M-MADM-OM jointly to improve the robustness and generalization.

4.3.3. One-to-One Learning vs. One-to-Many Learning

Considering the difference between one-to-one learning strategy and one-to-many learning strategy. The cross-model evaluation is conducted on two dialogue managers: M-MADM-OM and M-MADM-OO, where the M-MADM-OO is optimized via one-to-one learning strategy with all the types of adjacency pairs for reward shaping. For the users in cross-model evaluation, a simulator (MADM-S) trained with M-MADM-OO, Group-S, Rule-S and human users are employed. The results of cross-evaluation on comparing M-MADM-OM with M-MADM-OO is shown in Table 6. Results show that M-MADM-OM outperforms M-MADM-OO in cross-model evaluation, which demonstrates that one-to-many learning strategy can improve the generalization performance of dialogue manager.

5. Conclusions

We introduce a MADM, where an end-to-end dialogue manager cooperates with a user simulator to fulfill a dialogue task. For user simulator reward function, we use the reward shaping technique based on the adjacency pairs to make the simulator learn real user behaviors quickly while learning from scratch. The experimental results show that reward shaping technique speeds up learning and avoids derivation from normal human-human conversation. In addition, we generalize the one-to-one learning strategy to one-to-many learning strategy where a dialogue manager cooperates with various user simulators, which are obtained by changing the adjacency pairs settings. The experimental results also show that the dialogue manager from MADM-OM achieves the best performance on human users involving cross-model evaluation.
In our proposed MADM, there are several models that can be applied to get utterance embedding in dialogue manager, such as TextCNN [38], BERT [39] and XLnet [40]. But these contextualized model is orthogonal to MADM. In the future, we are planning to substitute these models to the bottom bidirectional LSTM in dialogue manager. In addition, we will collect more dataset to enrich the templates expressiveness for NLG and train the models iteratively.

Author Contributions

Methodology, S.L.; formal analysis, X.W.; data curation, S.L.; writing–original draft preparation, S.L.; writing–review and editing, C.Y.; funding acquisition, X.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by NSFC (No.61273365).

Acknowledgments

This paper is supported by 111Project (No. B08004), Beijing Advanced Innovation Center for Imaging Technology, Engineering Research Center of Information Networks of MOE, China. The authors would like to thank the reviewers for their comments and suggestions.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
NLUNatural Language Understanding
DMDialogue Management
NLGNatural Language Generation
DRLDeep Reinforcement Learning
MADMMulti-Agent Dialogue Model
HRNNHierarchical Recurrent Neural Network
LSTMLong Short-Term Memory
DNNDeep Neural Network
MLPMulti-Layer Perceptron
STSuccess Rate
ATAverage Turns

References

  1. Williams, J.D.; Young, S. Scaling POMDPs for spoken dialog management. TASLP 2007, 15, 2116–2129. [Google Scholar] [CrossRef] [Green Version]
  2. Young, S.; Gasic, M.; Thomson, B.; Williams, J.D. POMDP-Based Statistical Spoken Dialog Systems: A Review. Proc. IEEE 2013, 5, 1160–1179. [Google Scholar] [CrossRef]
  3. Gašić, M.; Breslin, C.; Henderson, M.; Kim, D.; Szummer, M.; Thomson, B.; Tsiakoulis, P.; Young, S. On-line policy optimisation of bayesian spoken dialogue systems via human interaction. In Proceedings of the 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, Vancouver, BC, Canada, 26–31 May 2013; pp. 8367–8371. [Google Scholar]
  4. Fatemi, M.; Asri, L.E.; Schulz, H.; He, J.; Suleman, K. Policy networks with two-stage training for dialogue systems. arXiv 2016, arXiv:1606.03152. [Google Scholar]
  5. Su, P.H.; Budzianowski, P.; Ultes, S.; Gasic, M.; Young, S. Sample-efficient Actor-Critic Reinforcement Learning with Supervised Data for Dialogue Management. arXiv 2017, arXiv:1707.00130. [Google Scholar]
  6. Casanueva, I.; Budzianowski, P.; Su, P.H.; Mrkšić, N.; Wen, T.H.; Ultes, S.; Rojas-Barahona, L.; Young, S.; Gašić, M. A benchmarking environment for reinforcement learning based task oriented dialogue management. arXiv 2017, arXiv:1711.11023. [Google Scholar]
  7. Weisz, G.; Budzianowski, P.; Su, P.H.; Gasic, M. Sample Efficient Deep Reinforcement Learning for Dialogue Systems With Large Action Spaces. IEEE/ACM Trans. Audio Speech Lang. Process. 2018, 2083–2097. [Google Scholar] [CrossRef]
  8. Peng, B.; Li, X.; Gao, J.; Liu, J.; Chen, Y.N.; Wong, K.F. Adversarial advantage actor-critic model for task-completion dialogue policy learning. In Proceedings of the 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Calgary, AB, Canada, 15–20 April 2018; pp. 6149–6153. [Google Scholar]
  9. Peng, B.; Li, X.; Gao, J.; Liu, J.; Wong, K.F. Deep Dyna-Q: Integrating Planning for Task-Completion Dialogue Policy Learning. arXiv 2018, arXiv:1801.06176. [Google Scholar]
  10. Liu, B.; Lane, I. Iterative policy learning in end-to-end trainable task-oriented neural dialog models. In Proceedings of the 2017 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU), Okinawa, Japan, 16–20 December 2017; pp. 482–489. [Google Scholar]
  11. Ng, A.Y.; Harada, D.; Russell, S. Policy invariance under reward transformations: Theory and application to reward shaping. In Proceedings of the Sixteenth International Conference on Machine Learning (ICML), Bled, Slovenia, 27–30 June 1999; pp. 278–287. [Google Scholar]
  12. Liddicoat, A.J. Adjacency pairs. In An Introduction to Conversation Analysis; Bloomsbury Publishing: London, UK, 2011; pp. 143–145. [Google Scholar]
  13. Zhao, T.; Eskenazi, M. Towards End-to-End Learning for Dialog State Tracking and Management using Deep Reinforcement Learning. arXiv 2016, arXiv:1606.02560. [Google Scholar]
  14. Williams, J.D.; Atui, K.A.; Zweig, G. Hybrid Code Networks: practical and efficient end-to-end dialog control with supervised and reinforcement learning. arXiv 2017, arXiv:1702.03274. [Google Scholar]
  15. Dhingra, B.; Li, L.; Li, X.; Gao, J.; Chen, Y.N.; Ahmad, F.; Deng, L. Towards End-to-End Reinforcement Learning of Dialogue Agents for Information Access. arXiv 2017, arXiv:1609.00777. [Google Scholar]
  16. Yang, X.; Chen, Y.N.; Hakkani-Tür, D.; Crook, P.; Li, X.; Gao, J.; Deng, L. End-to-end joint learning of natural language understanding and dialogue manager. In Proceedings of the 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), New Orleans, LA, USA, 5–9 March 2017; pp. 5690–5694. [Google Scholar]
  17. Pietquin, O.; Geist, M.; Chandramohan, S. Sample efficient on-line learning of optimal dialogue policies with kalman temporal differences. In Proceedings of the Twenty-Second International Joint Conference on Artificial Intelligence, Barcelona, Spain, 16–22 July 2011; pp. 1878–1883. [Google Scholar]
  18. Scheffler, K.; Young, S. Automatic learning of dialogue strategy using dialogue simulation and reinforcement learning. In Proceedings of the Second International Conference on Human Language Technology Research, San Diego, CA, USA, 24–27 March 2002; pp. 12–19. [Google Scholar]
  19. Cuayáhuitl, H.; Renals, S.; Lemon, O.; Shimodaira, H. Human-computer dialogue simulation using hidden markov models. In Proceedings of the IEEE Workshop on Automatic Speech Recognition and Understanding, San Juan, Puerto Rico, 27 November–1 December 2005; pp. 290–295. [Google Scholar]
  20. Pietquin, O.; Dutoit, T. A probabilistic framework for dialog simulation and optimal strategy learning. IEEE Trans. Audio Speech Lang. Process. 2006, 14, 589–599. [Google Scholar] [CrossRef] [Green Version]
  21. Keizer, S.; Gasic, M.; Mairesse, F.; Thomson, B.; Yu, K.; Young, S. Modelling user behaviour in the HIS-POMDP dialogue manager. In Proceedings of the 2008 IEEE Spoken Language Technology Workshop, Goa, India, 15–19 December 2008; pp. 121–124. [Google Scholar]
  22. Chandramohan, S.; Geis, M.; Lefèvre, F.; Pietquin, O. User Simulation in Dialogue Systems Using Inverse Reinforcement Learning. In Proceedings of the 12th Annual Conference of the International Speech Communication Association, Florence, Italy, 27–31 August 2011; pp. 1025–1028. [Google Scholar]
  23. El Asri, L.; Hem, J.; Suleman, K. A Sequence-to-Sequence Model for User Simulation in Spoken Dialogue Systems. Interspeech 2016, 1151–1155. [Google Scholar] [CrossRef] [Green Version]
  24. Kreyssig, F.; Casanueva, I.; Budzianowski, P.; Gasic, M. Neural User Simulation for Corpus-based Policy Optimisation of Spoken Dialogue Systems. arXiv 2018, arXiv:1805.06966. [Google Scholar]
  25. Schatzmann, J.; Thomson, B.; Weilhammer, K.; Ye, H.; Young, S. Agenda-based user simulation for bootstrapping a POMDP dialogue system. NAACL-HLT 2007, 149–152. [Google Scholar] [CrossRef]
  26. English, M.S.; Heeman, P.A. Learning mixed initiative dialog strategies by using reinforcement learning on both conversants. EMNLP 2005, 1011–1018. [Google Scholar] [CrossRef] [Green Version]
  27. Chandramohan, S.; Geist, M.; Lefèvre, F.; Pietquin, O. Co-adaptation in spoken dialogue systems. In Natural Interaction with Robots, Knowbots and Smartphones; Springer: New York, NY, USA, 2014; pp. 343–353. [Google Scholar]
  28. Das, A.; Kottur, S.; Moura, J.M.; Lee, S.; Batra, D. Learning cooperative visual dialog agents with deep reinforcement learning. In Proceedings of the IEEE International Conference on computer Vision, Venice, Italy, 22–29 October 2017; pp. 2951–2960. [Google Scholar]
  29. Kottur, S.; Moura, J.; Lee, S.; Batra, D. Natural language does not emerge ‘naturally’ in multi-agent dialog. arXiv 2017, arXiv:1706.08502. [Google Scholar]
  30. Georgila, K.; Nelson, C.; Traum, D. Single-agent vs. multi-agent techniques for concurrent reinforcement learning of negotiation dialogue policies. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics, Baltimore, MD, USA, 22–27 June 2014; pp. 500–510. [Google Scholar]
  31. Lewis, M.; Yarats, D.; Dauphin, Y.; Parikh, D.; Batra, D. Deal or No Deal? End-to-End Learning of Negotiation Dialogues. arXiv 2017, arXiv:1706.05125. [Google Scholar]
  32. Bansal, T.; Pachocki, J.; Sidor, S.; Sutskever, I.; Mordatch, I. Emergent complexity via multi-agent competition. arXiv 2018, arXiv:1710.03748. [Google Scholar]
  33. Bernstein, D.S.; Givan, R.; Immerman, N.; Zilberstein, S. The complexity of decentralized control of Markov decision processes. Math. Oper. Res. 2002, 27, 819–840. [Google Scholar] [CrossRef]
  34. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  35. Sutton, R.S.; Barto, A.G. Policy gradient methods. In Reinforcement Learning: An Introduction; MIT Press: Cambridge, MA, USA, 1998; pp. 329–331. [Google Scholar]
  36. Schatztnann, J.; Stuttle, M.N.; Weilhammer, K.; Young, S. Effects of the user model on simulation-based learning of dialogue strategies. In Proceedings of the IEEE Workshop on Automatic Speech Recognition and Understanding, San Juan, Puerto Rico, 27 November–1 December 2005; pp. 220–225. [Google Scholar]
  37. Li, X.; Lipton, Z.C.; Dhingra, B.; Li, L.; Gao, J.; Chen, Y.N. A user simulator for task-completion dialogues. arXiv 2016, arXiv:1612.05688. [Google Scholar]
  38. Kim, Y. Convolutional neural networks for sentence classification. arXiv 2014, arXiv:1408.5882. [Google Scholar]
  39. Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv 2019, arXiv:1810.04805. [Google Scholar]
  40. Yang, Z.; Dai, Z.; Yang, Y.; Carbonell, J.; Salakhutdinov, R.R.; Le, Q.V. Xlnet: Generalized autoregressive pretraining for language understanding. In Proceedings of the 2019 Conference on Neural Information Processing Systems, Vancouver Convention Centre, Vancouver, BC, Canada, 8–14 December 2019; pp. 5754–5764. [Google Scholar]
Figure 1. The cooperative multi-agent dialogue model between dialogue manager and user simulator.
Figure 1. The cooperative multi-agent dialogue model between dialogue manager and user simulator.
Applsci 10 02740 g001
Figure 2. An example of user utterance generation.
Figure 2. An example of user utterance generation.
Applsci 10 02740 g002
Figure 3. Training curves for different adjacency pairs settings.
Figure 3. Training curves for different adjacency pairs settings.
Applsci 10 02740 g003
Table 1. Lists all dialogue acts in details.
Table 1. Lists all dialogue acts in details.
Dialogue Acts
Dialogue managerask_date,ask_location,ask_attendance,
confirm_date,confirm_location,confirm_attendance,bye
User simulatorinform_date,inform_location,inform_attendance,update_date,
update_location,update_attendance,affirm,deny,error,hello
Table 2. Cross-model evaluation on Success Rate (SR) and Average Turns (AT).
Table 2. Cross-model evaluation on Success Rate (SR) and Average Turns (AT).
Group-SRule-SHuman Users
SRATSRATSRAT
M-MADM-OM0.90218.860.92517.280.8418.04
Rule-M0.58224.940.94517.040.7619.56
Yang20170.57725.030.86021.560.6821.08
Zhao20160.43327.770.89020.990.6820.02
Peng20180.42827.860.94518.440.7220.32
Table 3. Two sample dialogue sessions on human users comparing M-MADM-OM with Rule-M dialogue manager (SYS: system, USR: human user).
Table 3. Two sample dialogue sessions on human users comparing M-MADM-OM with Rule-M dialogue manager (SYS: system, USR: human user).
3cM-MADM-OMRule-M
1SYS: Hello, where is the meeting?1SYS: Hello, where is the meeting?
2USR: The location is in bupt technology building.2USR: The location is in bupt technology building.
3SYS: Please confirm, the meeting place is in bupt technology building?3SYS: Please confirm, the meeting place is in bupt technology building?
4USR: Yes.4USR: Yes.
5SYS: How many people are there?5SYS: How many people are there?
6USR: The meeting will be held at 10 a.m. on 5 April 2019.6USR: The meeting will be held at 10 a.m. on 5 April 2019.
7SYS: Will the meeting be held at 10 a.m. on 5 April 2019?7SYS: How many people are there?
8USR: Sorry, please change 2 p.m. on 5 April 2019.8USR: The meeting will be held at 10 a.m. on 5 April 2019.
9SYS: Please confirm. the meeting be held at 2 p.m. on 5 April 2019?9SYS: How many people are there?
10USR: Pefect..
11SYS: How many people are there?.
12USR: Eight..
13SYS: Is there eight people to participate?32SYS: How many people are there?
14USR: For sure.
15SYS: Booked at 14:00 on 5 April 2019 Sixth meeting room at bupt technology building for you, if there are any questions, please call 010-52810888, good bye.
SuccessFailure: System does not book the right meeting room within the max turn
Table 4. Human users evaluation on Success Rate (SR) and Average Turns (AT).
Table 4. Human users evaluation on Success Rate (SR) and Average Turns (AT).
HumanUsers
SRAT
All0.8019.80
Ask0.6223.22
Confirm0.3027.30
Bye0.2220.00
Naive0.3221.30
Rule-M0.7619.56
Table 5. The different combinations of seed simulators in one-to-two learning on Success Rate (SR) and Average Turns (AT) (Corresponding-S denotes the corresponding training simulators).
Table 5. The different combinations of seed simulators in one-to-two learning on Success Rate (SR) and Average Turns (AT) (Corresponding-S denotes the corresponding training simulators).
Group-SRule-SCorresponding-S
SRATSRATSRB
M-MADM-OM0.90218.860.92517.280.90218.86
all&ask0.87519.420.89519.010.90518.93
all&confirm0.86019.640.89518.950.91018.92
all&bye0.82520.340.90518.650.90518.85
all&naive0.83520.070.88019.270.90018.94
ask&confirm0.82524.940.64523.730.89518.91
ask&bye0.76021.430.64525.520.90018.89
ask&naive0.81520.020.55024.730.89518.93
confirm&bye0.73022.080.59018.950.89518.91
confirm&naive0.72522.230.50517.040.90518.89
Table 6. Cross-model evaluation on Success Rate (SR) and Average Turns (AT).
Table 6. Cross-model evaluation on Success Rate (SR) and Average Turns (AT).
MADM-SGroup-SRule-SHuman Users
SRATSRATSRATSRAT
M-MADM-OM0.98017.380.90218.860.92517.280.8418.04
M-MADM-OO0.97517.470.77521.270.93518.230.7819.80

Share and Cite

MDPI and ACS Style

Lei, S.; Wang, X.; Yuan, C. Cooperative Multi-Agent Reinforcement Learning with Conversation Knowledge for Dialogue Management. Appl. Sci. 2020, 10, 2740. https://doi.org/10.3390/app10082740

AMA Style

Lei S, Wang X, Yuan C. Cooperative Multi-Agent Reinforcement Learning with Conversation Knowledge for Dialogue Management. Applied Sciences. 2020; 10(8):2740. https://doi.org/10.3390/app10082740

Chicago/Turabian Style

Lei, Shuyu, Xiaojie Wang, and Caixia Yuan. 2020. "Cooperative Multi-Agent Reinforcement Learning with Conversation Knowledge for Dialogue Management" Applied Sciences 10, no. 8: 2740. https://doi.org/10.3390/app10082740

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop