1 of 36

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

2 of 36

Motivation

Human audio is rich with information and complex nuances

Can we use this to accelerate learning with Artificial Agents?

2

3 of 36

Voice Assisted Tech. Today

LLM Powered Robots

Google Home

Alexa

3

4 of 36

pros·o·dy

The patterns of stress and intonation in a language

Used to describe the rate, rhythm, and melody of our speech

4

5 of 36

Overview of Our Study

Interactive RL: TAMER

  • 28 participants (14 pairs)�
  • Restricted to only Yes/No
  • RoboTaxi Domain

Inverse RL: T-REX

  • 1 participant playing 10 min. over 3 games (30 min. total)
  • Restricted to only Yes/No
  • Atari on the Web (JavaAtari)

Can we use prosody as a good teaching signal?

How can we use the teaching signal for learning agents?

5

6 of 36

Table of Contents

Introduction

Interactive RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Inverse RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Conclusions

6

7 of 36

Reinforcement Learning

A1�R = -5

A0

R = +10

A2

R = +8

A3

R = +20

Markovian Decision Processes (MDP)

7

S0

S3

S2

S1

8 of 36

Table of Contents

Introduction

Interactive RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Inverse RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Conclusions

8

9 of 36

Interactive RL (IntRL)

Action: At

Reward: Rt

State: St

Rt+1

S+1

Online Human Feedback HF

9

Environment

Agent

10 of 36

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

❌

✅

✅

✅

❌

✅

11 of 36

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

12 of 36

Participants spoke louder and with higher energy when saying “No”

Yes

No

Yes

No

12

13 of 36

Advantage Function

Advantage Function: Relative quality of an action in the long term

13

Value Function for

State and Action

Value Function

for State

14 of 36

Correlations found with Loudness,

Energy, & Pitch

  • 3/14 correlations of loudness and energy were significant
  • Repetition and Duration are not significantly correlated
  • 1/14 correlation of pitch were significant

**: p < 0.001

*: p < 0.05

14

15 of 36

Table of Contents

Introduction

Interactive RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Inverse RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Conclusions

15

16 of 36

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!

17 of 36

How to Add Prosody to TAMER

17

Since there are more No signal than Yes, we need to balance the difference!

18 of 36

Success in Adding Prosody to TAMER

Prosody does affect the mean and variance of the overall performance for Interactive RL!

N = 4

18

19 of 36

Table of Contents

Introduction

Interactive RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Inverse RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Conclusions

19

20 of 36

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

❌

21 of 36

JavaScript Atari

21

22 of 36

JavaScript Atari

Enemy

Agent

22

23 of 36

Analysis

  • Positive Spearman correlation between mean pitch & cumulative sum of GT rewards for “Yes”
  • Negative Spearman correlation between mean pitch & cumulative sum of GT rewards for “No”

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**

24 of 36

Table of Contents

Introduction

Interactive RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Inverse RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Conclusions

24

25 of 36

Introducing T-REX

Yes!

No!

No!

No!

+0.5

-1

-1

-1

25

26 of 36

Contrastive Audio Loss (CAL)

26

no_74.mp4

no_37.mp4

no_56.mp4

yes_130.mp4

yes_108.mp4

yes_110.mp4

✅

✅

✅

✅

27 of 36

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)

28 of 36

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

29 of 36

Table of Contents

Introduction

Interactive RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Inverse RL

  • Does prosody carry relevant task information?
  • How can we use this as a teaching signal?

Conclusions

29

30 of 36

Summary

  • Prosody served as a suitable teaching signal to assist with data sample efficiency
  • Agent performance can improve by leveraging prosody with simple changes
  • A novel domain which assists in producing rich audio signals in a peer-to-peer environment

30

31 of 36

Future Work / Limitations

  • Expand the binary verbal input of “Yes”/”No” to more everyday speech
  • This research was conducted only in the Offline setting
  • Could expand to include adaptive learning systems and personalize to individual user’s speaking styles

31

32 of 36

Thank you for your time!

32

33 of 36

Appendix

33

34 of 36

Yes/No Utterances

Much more positive feedback than negative

Ground Truth correlates with Yes/No

34

35 of 36

RoboTaxi System Diagram

36 of 36

CAL - In Depth

36

T-REX

Contrastive Audio Loss

Similarity in Prosody

Similarity in GT Reward