-
Notifications
You must be signed in to change notification settings - Fork 0
/
ccbr.Rmd
347 lines (236 loc) · 13.4 KB
/
ccbr.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
---
title: "Conversational CBR"
subtitle: "Foundations & Research in CBR Seminar"
author: "Layla Bouzoubaa"
date: "Last Updated: `r Sys.Date()`"
output:
xaringan::moon_reader:
lib_dir: libs
css: ["xaringan-themer.css", "custom.css"]
nature:
beforeInit: "assets/macros.js"
slideNumberFormat: "%current%"
highlightStyle: github
highlightLines: true
ratio: 16:9
countIncrementalSlides: true
---
```{r xaringan-themer, include = FALSE, warning=FALSE}
library(xaringanthemer)
style_duo_accent(
primary_color = "#002F6C",
secondary_color = "#FFC600",
inverse_header_color = "#FFFFFF",
header_font_google = google_font("Josefin Sans"),
text_font_google = google_font("Montserrat", "300", "300i"),
code_font_google = google_font("Droid Mono"),
)
```
# Objectives
- Understand what a CCBR system is
- Discover applications of CCBR
- Identify knowledge containers
- Discuss latest works
---
class: inverse center middle
# What is CCBR?
---
## Conversational Case Base Reasoning
> CBR systems that interact with users in order to capture the problem in a
conversation
#### Typical Flow:
- ask user for initial description of problem
- system attempts to understand at least part of query
- system uses partial match to continue dialogue with user
- series of questions and answers ensue until the most useful case is selected to solve the user's problem
???
in most CBR systems, problem formation is the first step and prerequisite to remaining steps however in ccbr systems, the problem requires a series of steps, a dialogue, in order to formulate.
steps: the interaction by asking users for an initial description of the problem. The system then attempts to utilize its understanding of such a description in order record a partial description of the query. It then uses this partial description to start a dialogue with the user. The dialogue typically consists of questions and answers. The system needs to find questions that will help determine the most useful case that will solve the user’s problem.
---
## IRL
.pull-left[
![:scale 50%](img/ew.png)
]
.pull-right[
![:scale 50%](img/ew2.png)
]
---
## Considerations
.pull-left[
- System Acceptance
- explanation core of research = can system justify solution?
- CCBR must also explain the relevance of the results
- CCBR systems aim to reduce the amount of questions asked before a solution is reached
- Balancing the accuracy and efficiency trade-off is important in fault diagnosis and classification problems
]
.pull-right[
![](img/tradeoff.png)
]
???
we know that in cbr systems, the ability to provide accurate and timely solutions is critical in building user's trust to a system. Additionally, the ability to explain its reasoning.
one of the biggest benefits of CBR is that a systems conclusions can be justified from past experiences.
However, CCBR systems are not only expected to explain the conclusions but also the relevance of test results from which conclusions are based
balancing the trade-offs between accuracy and efficiency is an important challenge in CCBR- specifically in test selection. the absence of a specific goal or hypothesis makes it difficult to explain the relevance of questions the user is asked (i.e., why they are considered useful
by the system)
---
## Charateristics
.pull-left[
- Test selection based on strategies
- maximize information gain to better explain relevance of question asked by user
- Case bases are typically heterogeneous
- different attributes are used to describe different cases
- Irreducible
- Unique solutions
- Evaluated by precision & recall
- vs accuracy
- Description of the problem is not assumed to be available in advanced
.footnote[*Conversational case-based reasoning in medical decision making]
]
.pull-right[
![:scale 68%](img/interaction.png)
]
???
test selection in CCBR is based on strategies so not having a specific goal or hypothesis makes it difficult to explain the relevance of questions that is asked by the user
case bases are heterogeneous = different cases have difference attributes ---> in real world
but ideally you have questions that can be reused in a hierarchical structure
irreducible = each case has a unique solution
measures like precision (What proportion of positive identifications (TP + FP) was actually correct?) and recall aka sensitivity (What proportion of actual positives(TP + FN) was identified correctly?) are used to evaluate CCBR systems instead of accuracy for classification systems
In contrast to traditional CBR approaches, a description of the problem to be solved is not assumed to be available in advance in CCBR.
---
class: inverse center middle
# CCBR Applications
---
## Speech Recognition
### What is it?
> Speech recognition focuses on the translation of speech from a verbal format to a text one whereas voice recognition just seeks to identify an individual user’s voice <sup>1</sup>
> Sensor data in time series play a major role in many applications. They are
generalizations of static observations and often crucial for the diagnosis of faults and
diseases....Speech by its very nature falls into this category because it produces signal data and
happens in a temporal development <sup>2</sup>
.pull-left[
- *Vocabulary* container = versatile
- *Similarity*
- Phonetic similarity
- contains subjective elements
- Symbolic similarity
- on the word level - symbols generated from feature level
- related to semantic issues
.footnote[1.https://www.ibm.com/cloud/learn/speech-recognition]
]
.pull-right[
- *Adaptation*
- Query: cleaning data to identify outliers
- Solution: used to correct errors in the messages on a higher level as they cannot be detected on lower levels
- *Cases*
- Contain feature vectors
- Contain words, phrases and sentences
.footnote[2.Richter MM, Weber RO (2011) Case-based reasoning: a textbook. Springer. Berlin]
]
???
vocabulary container in this kind of system is versatile as there are degrees of freedom when formulating an expression - meaning there are different ways to formulate an expression, which is good for minimizing recognition errors - for example the usage of synonyms
similarity:
The phonetic measure contains subjective elements like pronunciations.
the symbolic measure is related to semantics - text is static while speech is nearly impossible to repeat
adaptation: two kinds
query: takes place regularly - step of cleaning data
solution: takes place on the symbolic and the overall levels. The goal
is to correct errors in the messages
queries are spoken commands and solutions are symbolic commands that have to be performed
cases:
The feature vectors can be compared with a similarity measure. They denote actually occurring queries or solutions
---
class: inverse center middle
# Knowledge Containers
---
## Vocabulary
- The most important container
- dictates the language used in the interactions between the user and the conversational system
- Can get as complex as converting user's language to the language of the case base
- requires several additional transformations but allows for versatility and increased user acceptance
???
most important bc the conversation has to be conducted with the terms of the vocabulary container
dictates the language used the entire interaction - from the the language used in the initial description to the language that the system will return in the dialogue
---
## Similarity
- Relative relevance of features must be established
- Concurrent alteration of weights
???
similar to other systems with a few distinctions: Relative relevance of features must be established as part of the similarity measure
weights may have to be adjusted based on user feedback - for example, they only want to see solutions that do not include covid-19 tests (irl example)
---
## Adaptation
- Adaptation rarely occurs as it may lead to solutions (i.e. products) that may not exist
- In cases where modification is required, alternate values to specific features may be used
- User frustration
- when no other answer would retrieve a valid case for a user
- a.k.a query failure
- can be amended by creating a new dialogue cycle to change one answer
???
It is not very common for a user to be offered a suitable solution and adaptation is required, however in some cases, if a user requests a modification, a way to proceed is by searching locally, from a reduced set of cases, for alternate values to specific features
user frustration:
when the dialogue strategy recognizes that no other answer would retrieve a valid case for a user - this is also called "query failure". this can rectified by creating a new dialogue cycle to demonstrate to the user how many cases become available after one answer value is changed.
---
## Case Base
- May use question-answer pairs rather than feature-value pairs
- Heterogeneous collection of indices
???
as mentioned previously, one of the biggest distinctions is the inability to use the same
questions throughout the entire case base. heterogeneous cases make for heterogeneous indexing therefore come with a different collections of indices from which to pull solutions as opposed to other CBR systems.
---
class: inverse center middle
# Works
---
## Dialogue Management for CCBR
.pull-left[
- Key issues in dialogue management
- conversational agents engage in spoken dialogues that are mixed-initiative
- human to human complexities like anaphora and ellipses
- requires solving two families of issues: speech proccessing and NLP
- Known architectures
- graph-based
- slot-filling
- plan-based
- Discourse Goal Stack Model (DGSM)
- symmetry between goals that trigger CBR & those that arise
- RealDialog
- web-based conversational agent
]
.pull-right[
![:scale 90%](img/dm_ccbr.png)
]
???
Most works in CCBR have focused on minimizing the num of questions illicted to the user, giving users more control on which initiative is held by the system and enabling the system to answer why a question was asked and how it retrieved the solution.
There are several more distinct issues with CCBR that this paper hopes to address.
this paper presents a general architecture for CCBR called the Discourse Goal Stack Model (DGSM).
Main objective: interact with humans in a 2-way natural language dialogue in persuit of creating conversational interfaces that can serve as the front-end to other, often complex, automated reasoning systems.
Key issues:
- conversational agents engage in spoken dialogues that are mixed-initiative meaning either the human or the system can have control of the dialogue at a particular turn. this inserts the complexities of human-human dialogue like the use of anaphora (use of things like pronouns - depend on context) and ellipses (using phrases that leave off key components that are implied)
- requires solving two big issues: speech processing and nlp
known architectures:
1. graph: graph-based architectures employ finite machines to guide all interactions. the advantage is well-structured dialogues whose interaction can be anticipated in advance.
2. slot: employ a feature vector with values to be determined during the course of the conversation
3. plan: most general. employs a planner to create domain-specific plans to solve the user's problem
DGSM:
the core of this architecture is handling the each of the essential ccbr tasks as discourse goals (selecting cases, elicting case descriptions, and responding to requests).it is consistent with the standard CCBR model in assuming that each case is specified by a unique set of
attribute/value pairs.
the goals are addressed through a goal stack that (1) all dialogue goals handled uniformly and (2) handles interruptions and subgoals, even when nested to arbitrary depth
builds on the observation that there is a symmetry between the discourse goals that trigger CBR and the discourse goals that arise in CBR when the facts of a problem description are being elicited
realdialog:
implementation of DGSM: realdialog - web-based conversational agent for customer relationship management Users type queries into a text eld, and answers are displayed in a conversation area. behind the scenes: tokenizes users input (spell-correction and interpretation of apostrophes), development of a parse-tree (result of tokenization, part of speech tagging, and parsing) however what theyve found is that it often requires reference resolution.
---
## References
```{r, load_refs, echo=FALSE, message=FALSE}
library(RefManageR)
bib <- ReadBib("./assets/S0933365711000480.bib", check = FALSE)
ui <- "- "
```
```{r, print_refs, results='asis', echo=FALSE, warning=FALSE, message=FALSE}
writeLines(ui)
print(bib[key = "MCSHERRY201159"],
.opts = list(check.entries = FALSE,
style = "html",
bib.style = "authoryear"))
```
- Richter M.M., Weber R.O. (2013) Conversational CBR. In: Case-Based Reasoning. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-40167-1_20
- Gu, M., Aamodt, A.: Dialog learning in conversational cbr. In: Proceedings ofthe 19th International Florida Artificial Intelligence Research Society Conference,Florida, USA, AAAI Press (2006) 358–363
- Branting K., Lester J., Mott B. (2004) Dialogue Management for Conversational Case-Based Reasoning. In: Funk P., González Calero P.A. (eds) Advances in Case-Based Reasoning. ECCBR 2004. Lecture Notes in Computer Science, vol 3155. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-28631-8_7