Prosody as a Teaching Signal for Agent Learning: Exploratory
Studies and Algorithmic Implications
Matilda Knierim, Sahil Jain, Murat Han Aydoğan, Kenneth Mitra, Kush Desai, Akanksha Saran, Kim Baraka
1
Motivation
Human audio is rich with information and complex nuances
Can we use this to accelerate learning with Artificial Agents?
2
Voice Assisted Tech. Today
LLM Powered Robots
Google Home
Alexa
3
pros·o·dy
The patterns of stress and intonation in a language
Used to describe the rate, rhythm, and melody of our speech
4
Overview of Our Study
Interactive RL: TAMER
Inverse RL: T-REX
Can we use prosody as a good teaching signal?
How can we use the teaching signal for learning agents?
5
Table of Contents
Introduction
Interactive RL
Inverse RL
Conclusions
6
Reinforcement Learning
A1�R = -5
A0
R = +10
A2
R = +8
A3
R = +20
Markovian Decision Processes (MDP)
7
S0
S3
S2
S1
Table of Contents
Introduction
Interactive RL
Inverse RL
Conclusions
8
Interactive RL (IntRL)
Action: At
Reward: Rt
State: St
Rt+1
S+1
Online Human Feedback HF
9
Environment
Agent
Interactive RL Setup
Synchronization over a WebSocket
Teacher
Wizard
Can see the full environment
Cannot control environment
Say Yes/No into microphone
Cannot see the environment
Can control environment with Keyboard
Hear Yes/No from Teacher
10
❌
✅
✅
✅
❌
✅
Prosodic Features
11
The frequency at which the utterance was said
Used a Fundamental Frequency Estimation YIN
Pitch
The recurrence of that utterance in a sequence
COUNT(𝚫t)
Utterance Repetition
The length of a particular Yes/No utterance
𝚫t =
tend - tstart
Utterance Duration
The sound energy from the acoustic signal
Energy
The sound pressure recorded by the microphone
Loudness
Participants spoke louder and with higher energy when saying “No”
Yes
No
Yes
No
12
Advantage Function
Advantage Function: Relative quality of an action in the long term
13
Value Function for
State and Action
Value Function
for State
Correlations found with Loudness,
Energy, & Pitch
**: p < 0.001
*: p < 0.05
14
Table of Contents
Introduction
Interactive RL
Inverse RL
Conclusions
15
What is TAMER?
16
W. B. Knox and P. Stone, “TAMER: Training an agent manually via evaluative reinforcement,” in 2008 7th IEEE International Conference on Development and Learning, Aug 2008, pp. 292–297.
We can feed Pitch, Loudness, & Energy into a Learning Agent!
How to Add Prosody to TAMER
17
Since there are more No signal than Yes, we need to balance the difference!
Success in Adding Prosody to TAMER
Prosody does affect the mean and variance of the overall performance for Interactive RL!
N = 4
18
Table of Contents
Introduction
Interactive RL
Inverse RL
Conclusions
19
Inverse RL
Action: At
Reward: Rt
State: St
Rt+1
S+1
Rewards are hard to design!
Can we use a model instead?
20
Environment
Agent
❌
JavaScript Atari
21
JavaScript Atari
Enemy
Agent
22
Analysis
Mean Pitch correlations against Ground Truth
23
| Yes | No |
Ms. Pacman | 0.13 | -0.12 |
Seaquest | 0.2* | -0.77* |
Space Invaders | 0.37** | -0.38** |
Table of Contents
Introduction
Interactive RL
Inverse RL
Conclusions
24
Introducing T-REX
Yes!
No!
No!
No!
+0.5
-1
-1
-1
25
Contrastive Audio Loss (CAL)
26
no_74.mp4
no_37.mp4
no_56.mp4
yes_130.mp4
yes_108.mp4
yes_110.mp4
✅
✅
✅
✅
Formalizing CAL
Nudges loss towards similar Pitched Yes/Yes with similar GT Reward
and similar Pitched No/No with similar GT Reward
27
Similarity of the Cumulative GT Reward
Similarity of the Cumulative GT Reward
Similarity of the Prosody (Pitch)
Similarity of the Prosody (Pitch)
CAL Helps Performance in T-REX
Agent Performance (Max. of 3 Seeds across 30 runs)
28
| T-REX | T-REX + CAL |
Ms. Pacman | 414.0 ± 14.9 | 663.3 ± 121.3 |
Seaquest | 679.3 ± 14.3 | 704.0 ± 6.0 |
Space Invaders | 1235.2 ± 102.3 | 1781.3 ± 127.7 |
Table of Contents
Introduction
Interactive RL
Inverse RL
Conclusions
29
Summary
30
Future Work / Limitations
31
Thank you for your time!
32
Appendix
33
Yes/No Utterances
Much more positive feedback than negative
Ground Truth correlates with Yes/No
34
RoboTaxi System Diagram
CAL - In Depth
36
T-REX
Contrastive Audio Loss
Similarity in Prosody
Similarity in GT Reward