Machine Reading and Reasoning with Neural Program Interpreters - - PowerPoint PPT Presentation

machine reading and reasoning with neural program
SMART_READER_LITE
LIVE PREVIEW

Machine Reading and Reasoning with Neural Program Interpreters - - PowerPoint PPT Presentation

Machine Reading and Reasoning with Neural Program Interpreters Sebastian Riedel @riedelcastro Machine Reading Collaborators Pontus Stenetorp Marzieh Saeidi Max Bartolo Johannes Welbl (Bloomsbury AI) (UCL) (UCL) (Bloomsbury AI)


slide-1
SLIDE 1

Machine Reading and Reasoning with Neural Program Interpreters

Sebastian Riedel

Machine Reading

@riedelcastro

slide-2
SLIDE 2

Collaborators

2

Tim Rocktäschel Matko Bosnjak Pontus Stenetorp

(now at Oxford) (UCL) (UCL)

Johannes Welbl

(UCL)

Jason Naradowsky

(now Johns Hopkins University)

Marzieh Saeidi Max Bartolo Guillaume Bouchard

(Bloomsbury AI) (Bloomsbury AI) (Bloomsbury AI)

slide-3
SLIDE 3

3

The “Classic” NLP Paradigm

slide-4
SLIDE 4

3

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language]

The “Classic” NLP Paradigm

slide-5
SLIDE 5

3

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language] [Meaning]

The “Classic” NLP Paradigm

Tesla Prague movedTo

slide-6
SLIDE 6

3

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language] [Meaning]

What city did Tesla move to in 1880?

[Information Need]

The “Classic” NLP Paradigm

Tesla Prague movedTo

slide-7
SLIDE 7

3

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language] [Meaning]

What city did Tesla move to in 1880?

[Information Need]

Prague

The “Classic” NLP Paradigm

Tesla Prague movedTo

slide-8
SLIDE 8

3

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language] [Meaning]

What city did Tesla move to in 1880?

[Information Need]

Prague

The “Classic” NLP Paradigm

Tesla Prague movedTo +reusable cache +interpretable +supports reasoning

slide-9
SLIDE 9

3

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language] [Meaning]

What city did Tesla move to in 1880?

[Information Need]

Prague

The “Classic” NLP Paradigm

Tesla Prague movedTo +reusable cache +interpretable +supports reasoning

  • misses details
  • error prone
  • engineering heavy
slide-10
SLIDE 10

“Should we separate meaning from language?”

3

Chris Manning @AKBC 2013

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language] [Meaning]

What city did Tesla move to in 1880?

[Information Need]

Prague

Tesla Prague movedTo +reusable cache +interpretable +supports reasoning

  • misses details
  • error prone
  • engineering heavy
slide-11
SLIDE 11

“Should we separate meaning from language?”

3

Chris Manning @AKBC 2013

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language] [Meaning]

What city did Tesla move to in 1880?

[Information Need]

Prague

[Maybe not?]

Tesla Prague movedTo +reusable cache +interpretable +supports reasoning

  • misses details
  • error prone
  • engineering heavy
slide-12
SLIDE 12

“Should we separate meaning from language?”

4

Chris Manning @AKBC 2013

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language] [Meaning]

What city did Tesla move to in 1880?

[Information Need]

Prague

[Maybe not?]

Tesla Prague movedTo

slide-13
SLIDE 13

End-to-End Reading and Comprehension

5

(Hermann et. al 2015, Seo et al., 2016, Rajpurkar et al., 2016, Weissenborn 2016…)

In January 1880, two of Tesla's uncles put together enough money to help him leave Gospić for Prague where he was to

  • study. Unfortunately, he arrived

too late to enrol at Charles- Ferdinand University; he never studied Greek, a required subject; and he was illiterate in Czech, another required subject. Tesla did, however, attend lectures at the university, although, as an auditor, he did not receive grades for the courses.

[Language]

What city did Tesla move to in 1880? Prague

[Information Need]

slide-14
SLIDE 14

Rules: Entertainment Offers of entertainment may be accepted or made where they are necessary to develop and maintain

  • utside contacts relevant to work responsibilities…

disproportionately lavish. Invitations to expensive or exclusive sporting or cultural events should not be accepted.

  • 3. Invitations from institutions supervised by the Bank
  • r the FCA, or from professional advisers, should not

be accepted without prior agreement of an Executive Director or Governor ….

Machine Reading & Comprehension

6

Would it be appropriate for me to accept court side seating tickets to an NBA event?

slide-15
SLIDE 15

Rules: Entertainment Offers of entertainment may be accepted or made where they are necessary to develop and maintain

  • utside contacts relevant to work responsibilities…

disproportionately lavish. Invitations to expensive or exclusive sporting or cultural events should not be accepted.

  • 3. Invitations from institutions supervised by the Bank
  • r the FCA, or from professional advisers, should not

be accepted without prior agreement of an Executive Director or Governor ….

Machine Reading & Comprehension

6

Rules: Entertainment Offers of entertainment may be accepted or made where they are necessary to develop and maintain

  • utside contacts relevant to work responsibilities…

disproportionately lavish. Invitations to expensive or exclusive sporting or cultural events should not be accepted.

  • 3. Invitations from institutions supervised by the Bank
  • r the FCA, or from professional advisers, should not

be accepted without prior agreement of an Executive Director or Governor …. Would it be appropriate for me to accept court side seating tickets to an NBA event? Invitations to expensive or exclusive sporting or cultural events should not be accepted

slide-16
SLIDE 16

… Archiving Inbox Items Once an inbox item has been archived it will no longer appear in the list of inbox items returned by cape.client.CapeClient.get_inbox(). To archive an item call cape.client.CapeClient.archive_inbox() with the ID of the inbox item to archive: from cape.client import CapeClient cc = CapeClient() cc.login('username', 'password') cc.archive_inbox('4123')

Machine Reading & Comprehension

7

Which function do I call for storing items in cape?

slide-17
SLIDE 17

… Archiving Inbox Items Once an inbox item has been archived it will no longer appear in the list of inbox items returned by cape.client.CapeClient.get_inbox(). To archive an item call cape.client.CapeClient.archive_inbox() with the ID of the inbox item to archive: from cape.client import CapeClient cc = CapeClient() cc.login('username', 'password') cc.archive_inbox('4123') … Archiving Inbox Items Once an inbox item has been archived it will no longer appear in the list of inbox items returned by cape.client.CapeClient.get_inbox(). To archive an item call cape.client.CapeClient.archive_inbox() with the ID of the inbox item to archive: from cape.client import CapeClient cc = CapeClient() cc.login('username', 'password') cc.archive_inbox('4123')

Machine Reading & Comprehension

7

Which function do I call for storing items in cape? cape.client.CapeClient.archive_inbox()

slide-18
SLIDE 18

How to read and reason end-to-end?

8

slide-19
SLIDE 19

Learning to Read and Aggregate

9

Which medical specialty deals with pituitary ACTH hypersecretion?

slide-20
SLIDE 20

Learning to Read and Aggregate

9

Which medical specialty deals with pituitary ACTH hypersecretion? Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary …

slide-21
SLIDE 21

Learning to Read and Aggregate

9

Which medical specialty deals with pituitary ACTH hypersecretion? Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ...

slide-22
SLIDE 22

Learning to Read and Aggregate

9

Which medical specialty deals with pituitary ACTH hypersecretion? Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

slide-23
SLIDE 23

Learning to Read and Aggregate

9

Which medical specialty deals with pituitary ACTH hypersecretion? Endocrinology Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

slide-24
SLIDE 24

Learning to Read and Aggregate

9

Which medical specialty deals with pituitary ACTH hypersecretion? Endocrinology Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Part 1

slide-25
SLIDE 25

Learning to Read and Aggregate

9

Which medical specialty deals with pituitary ACTH hypersecretion? Endocrinology Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Part 1

NIPS 2017, TACL 2018

slide-26
SLIDE 26

Learning to Read and Calculate

10

How many pictures were in each of the albums? Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album.

slide-27
SLIDE 27

Learning to Read and Calculate

10

How many pictures were in each of the albums? 2 Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album.

slide-28
SLIDE 28

Learning to Read and Calculate

10

How many pictures were in each of the albums? 2 Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album.

Part 2

slide-29
SLIDE 29

Learning to Read and Calculate

10

How many pictures were in each of the albums? 2 Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album.

Part 2

ICML 2017

slide-30
SLIDE 30

Learning to Interpret Rules

11

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-31
SLIDE 31

Learning to Interpret Rules

11

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Yes If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-32
SLIDE 32

Learning to Interpret Rules

11

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance?

Part 3

Yes If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-33
SLIDE 33

And Ask Clarification Questions

12

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance?

Part 3

If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-34
SLIDE 34

And Ask Clarification Questions

12

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance?

Part 3

Have you been working abroad 52 weeks or less? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-35
SLIDE 35

And Ask Clarification Questions

12

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance?

Part 3

Have you been working abroad 52 weeks or less? Yes If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-36
SLIDE 36

And Ask Clarification Questions

12

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance?

Part 3

Have you been working abroad 52 weeks or less? Yes Yes If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-37
SLIDE 37

And Ask Clarification Questions

12

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance?

Part 3

Have you been working abroad 52 weeks or less? Yes Yes

ONGOING

If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-38
SLIDE 38

Part 1: Learning to Aggregate

13

Tim Rocktäschel Johannes Welbl Pontus Stenetorp

slide-39
SLIDE 39

Neural Theorem Provers

14

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … Which medical specialty deals with pituitary ACTH hypersecretion? A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

slide-40
SLIDE 40

Neural Theorem Provers

15

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … Which medical specialty deals with pituitary ACTH hypersecretion? A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent

slide-41
SLIDE 41

Neural Theorem Provers

15

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … Which medical specialty deals with pituitary ACTH hypersecretion? A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter

slide-42
SLIDE 42

Neural Theorem Provers

15

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … Which medical specialty deals with pituitary ACTH hypersecretion? A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader

slide-43
SLIDE 43

Neural Theorem Provers

15

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … Which medical specialty deals with pituitary ACTH hypersecretion? A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question Code

[translates questions]

slide-44
SLIDE 44

Neural Theorem Provers

16

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

What is ACTH hypersecretion created by? Which medical specialty deals with pituitary ACTH hypersecretion?

Code

[translates questions]

slide-45
SLIDE 45

Neural Theorem Provers

16

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

What is ACTH hypersecretion created by? Which medical specialty deals with pituitary ACTH hypersecretion?

Code

[translates questions]

slide-46
SLIDE 46

Neural Theorem Provers

17

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

Which specialty deals with pituitary ACTH hypersecretion?

Question

What is the pituitary a part of? Which medical specialty deals with pituitary ACTH hypersecretion?

Code

[translates questions]

slide-47
SLIDE 47

Neural Theorem Provers

17

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

Which specialty deals with pituitary ACTH hypersecretion?

Question

What is the pituitary a part of? Which medical specialty deals with pituitary ACTH hypersecretion?

Code

[translates questions]

slide-48
SLIDE 48

Neural Theorem Provers

18

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

Which specialty deals with pituitary ACTH hypersecretion?

Question

What is the pituitary a part of?

Question

What topic covers the endocrine system? Which medical specialty deals with pituitary ACTH hypersecretion?

Code

[translates questions]

slide-49
SLIDE 49

Neural Theorem Provers

18

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

Which specialty deals with pituitary ACTH hypersecretion?

Question

What is the pituitary a part of?

Question

What topic covers the endocrine system? Which medical specialty deals with pituitary ACTH hypersecretion?

Code

[translates questions]

slide-50
SLIDE 50

Code

Vectors Correspond to Interpretable Rules

19

Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

Which specialty deals with pituitary ACTH hypersecretion?

Question

What is the pituitary a part of?

Question

What topic covers the endocrine system?

X deals with Y if Y produced by Z Z is a part of U X deals with U

Which medical specialty deals with pituitary ACTH hypersecretion?

slide-51
SLIDE 51

Catch: Currently only Works on Relational Data

20

createdBy(hypersecretion, anterior pituitary) dealsWith(hypersecretion, X) partOf(endocrine system, anterior pituitary) dealsWith(endocrine system, endocrinology)

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

Which specialty deals with pituitary ACTH hypersecretion?

Question

What is the pituitary a part of?

Question

covers(endocrine system, X)

Code

X deals with Y if Y produced by Z Z is a part of U X deals with U

slide-52
SLIDE 52

Why Program Interpreter/Theorem Prover?

21

createdBy(hypersecretion, anterior pituitary) partOf(endocrine system, anterior pituitary) dealsWith(endocrine system, endocrinology)

Rocktäschel and Riedel NIPS 2017

Agent

Amounts the Backward Chaining algorithm used in Prolog Interpreters

dealsWith(hypersecretion, X)

slide-53
SLIDE 53

Why Neural? Supports Soft Unification

22

createdBy(hypersecretion, anterior pituitary) dealsWith(hypersecretion, X) partOf(endocrine system, anterior pituitary) dealsWith(endocrine system, endocrinology)

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

Which specialty deals with pituitary ACTH hypersecretion?

Question

What is the pituitary a part of?

Question

covers(endocrine system, X)

Code

X deals with Y if Y produced by Z Z is a part of U X covers U

slide-54
SLIDE 54

Why Neural? Supports Soft Unification

22

createdBy(hypersecretion, anterior pituitary) dealsWith(hypersecretion, X) partOf(endocrine system, anterior pituitary) dealsWith(endocrine system, endocrinology)

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

Which specialty deals with pituitary ACTH hypersecretion?

Question

What is the pituitary a part of?

Question

covers(endocrine system, X)

Code

X deals with Y if Y produced by Z Z is a part of U X covers U

slide-55
SLIDE 55

Learn Rules by Learning Symbol Representations

23

createdBy(hypersecretion, anterior pituitary) dealsWith(hypersecretion, X) partOf(endocrine system, anterior pituitary) dealsWith(endocrine system, endocrinology)

Rocktäschel and Riedel NIPS 2017

Agent Program Interpreter Reader Question

Which specialty deals with pituitary ACTH hypersecretion?

Question

What is the pituitary a part of?

Question

rel62(endocrine system, X)

Code

X rel32 Y if Y rel42 Z Z rel51 U X rel62 U

slide-56
SLIDE 56

Before Learning

24

rel32 X rel32 Y if Y rel42 Z Z rel51 U X rel62 U rel42 rel51 rel62 X deals with Y if Y produced by Z Z is a part of U X deals with U deals with produced by is a part of covers

slide-57
SLIDE 57

After Learning

25

rel32 X rel32 Y if Y rel42 Z Z rel51 U X rel62 U rel42 rel51 rel62 X deals with Y if Y produced by Z Z is a part of U X deals with U deals with produced by is a part of covers

slide-58
SLIDE 58

Results on Benchmark (Rank of Correct Answer)

26

Rocktäschel and Riedel NIPS 2017

slide-59
SLIDE 59

Results on Benchmark (Rank of Correct Answer)

26

25 50 75 100 Countries S3 UMLS Nations Complex NTP Complex NTP Complex NTP

Rocktäschel and Riedel NIPS 2017

slide-60
SLIDE 60

Results on Benchmark (Rank of Correct Answer)

26

25 50 75 100 Countries S3 UMLS Nations Complex NTP Complex NTP Complex NTP

86 96 48.4

Rocktäschel and Riedel NIPS 2017

slide-61
SLIDE 61

Results on Benchmark (Rank of Correct Answer)

26

25 50 75 100 Countries S3 UMLS Nations Complex NTP Complex NTP Complex NTP

89 99 77.3 86 96 48.4

Rocktäschel and Riedel NIPS 2017

slide-62
SLIDE 62

Results on Benchmark (Rank of Correct Answer)

26

25 50 75 100 Countries S3 UMLS Nations Complex NTP Complex NTP Complex NTP

89 99 77.3 86 96 48.4

Comparable or Better than Baselines, and interpretable Rocktäschel and Riedel NIPS 2017

slide-63
SLIDE 63

Limitations

Scalability

Currently only works for KBs with < 10k facts (solved!) Small proof depth (getting there)

Still requires relational representation (ongoing)

27

slide-64
SLIDE 64

How to create Datasets for Multihop Reading and Reasoning?

28

Johannes Welbl Pontus Stenetorp

slide-65
SLIDE 65

Dataset Construction Method

29

TACL 2018

slide-66
SLIDE 66

Dataset Construction Method

29

Unlabelled Text Knowledge Base TACL 2018

slide-67
SLIDE 67

Dataset Construction Method

29

Unlabelled Text Knowledge Base Dataset Construction Method TACL 2018

slide-68
SLIDE 68

Dataset Construction Method

29

Unlabelled Text Knowledge Base Dataset Construction Method TACL 2018

Multihop Dataset

slide-69
SLIDE 69

Dataset Construction Method

30

Documents Entities KB Triple Instance

slide-70
SLIDE 70

Dataset Construction Method

30

Documents Entities

Jamie Burnett, citizenship, Scotland

KB Triple Instance

slide-71
SLIDE 71

Dataset Construction Method

30

Documents Entities

Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-72
SLIDE 72

Dataset Construction Method

30

Documents Entities

Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-73
SLIDE 73

Dataset Construction Method

30

Documents Entities

Jamie Burnett Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-74
SLIDE 74

Dataset Construction Method

30

Documents Entities

Jamie Burnett

described in

Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-75
SLIDE 75

Dataset Construction Method

30

Documents Entities

Jamie Burnett

described in

Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-76
SLIDE 76

Dataset Construction Method

30

Documents Entities

Jamie Burnett

described in mentions

Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-77
SLIDE 77

Dataset Construction Method

30

Documents Entities

Jamie Burnett

described in mentions

Hamilton Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-78
SLIDE 78

Dataset Construction Method

30

Documents Entities

Jamie Burnett

described in mentions described in

Hamilton Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-79
SLIDE 79

Dataset Construction Method

30

Documents Entities

Jamie Burnett

described in mentions described in

Hamilton Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-80
SLIDE 80

Dataset Construction Method

30

Documents Entities

Jamie Burnett

described in mentions described in mentions

Hamilton Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

slide-81
SLIDE 81

Dataset Construction Method

30

Documents Entities

Jamie Burnett Scotland

described in mentions described in mentions

Hamilton Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

Scotland

slide-82
SLIDE 82

Dataset Construction Method

30

Documents Entities

Jamie Burnett Scotland

described in mentions described in mentions

Hamilton Jamie Burnett, citizenship, Scotland What is the nationality of Jamie Burnett?

KB Triple Instance

Scotland

slide-83
SLIDE 83

Dataset Construction Method

30

Documents Entities

Jamie Burnett Scotland

described in mentions described in mentions

Hamilton Jamie Burnett, citizenship, Scotland Yixing Open What is the nationality of Jamie Burnett?

KB Triple Instance

Scotland

slide-84
SLIDE 84

Dataset Construction Method

30

Documents Entities

Jamie Burnett Scotland

described in mentions described in mentions

Hamilton Jamie Burnett, citizenship, Scotland Yixing Open What is the nationality of Jamie Burnett?

KB Triple Instance

Scotland

slide-85
SLIDE 85

Dataset Construction Method

30

Documents Entities

Jamie Burnett Scotland

described in mentions described in mentions

Hamilton Jamie Burnett, citizenship, Scotland Yixing Open What is the nationality of Jamie Burnett?

KB Triple Instance

Scotland

slide-86
SLIDE 86

Dataset Construction Method

30

Documents Entities

Jamie Burnett Scotland

described in mentions described in mentions

Hamilton Jamie Burnett, citizenship, Scotland Yixing Open What is the nationality of Jamie Burnett?

KB Triple Instance

Scotland

slide-87
SLIDE 87

Dataset Construction Method

30

Documents Entities

Jamie Burnett Scotland

described in mentions described in mentions

Hamilton Jamie Burnett, citizenship, Scotland Yixing Open China What is the nationality of Jamie Burnett?

KB Triple Instance

Scotland China

slide-88
SLIDE 88

Dataset Construction Method

31

Unlabelled Text Knowledge Base Dataset Construction Method [Conditionally Accepted to TACL]

Multihop Dataset

slide-89
SLIDE 89

Dataset Construction Method

32

Dataset Construction Method

WikiHop

Unlabelled Text Knowledge Base

slide-90
SLIDE 90

Dataset Construction Method

33

Dataset Construction Method

MedHop

Unlabelled Text Knowledge Base

slide-91
SLIDE 91

Baseline Results

34

slide-92
SLIDE 92

Baseline Results

34

Accuracy [%]

8.333 16.667 25 33.333 41.667 50 WikiHop MedHop

Random TF-IDF BiDAF

slide-93
SLIDE 93

Baseline Results

34

Accuracy [%]

8.333 16.667 25 33.333 41.667 50 WikiHop MedHop

Random TF-IDF BiDAF

13.9 11.5

slide-94
SLIDE 94

Baseline Results

34

Accuracy [%]

8.333 16.667 25 33.333 41.667 50 WikiHop MedHop

Random TF-IDF BiDAF

9 25.6 13.9 11.5

slide-95
SLIDE 95

Baseline Results

34

Accuracy [%]

8.333 16.667 25 33.333 41.667 50 WikiHop MedHop

Random TF-IDF BiDAF

47.8 42.9 9 25.6 13.9 11.5

slide-96
SLIDE 96

Reduction to Traditional Machine Comprehension

35

Which medical specialty deals with pituitary ACTH hypersecretion? Endocrinology Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

slide-97
SLIDE 97

Reduction to Traditional Machine Comprehension

36

Which medical specialty deals with pituitary ACTH hypersecretion? Endocrinology A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

slide-98
SLIDE 98

Do Neural Reading Models Aggregate?

37

Which medical specialty deals with pituitary ACTH hypersecretion? Endocrinology A major organ of the endocrine system, the anterior pituitary is the glandular, anterior lobe that ... Pituitary ACTH hypersecretion ... is a form of hyperpituitarism characterized by an abnormally high level of ACTH produced by the anterior pituitary … The endocrine system is ... ... The field of study dealing with the endocrine system and its disorders is endocrinology, a branch of internal medicine.

slide-99
SLIDE 99

Removing Relevant Documents, Keep Answer Documents

38

Accuracy [%]

25 30 35 40 45 50 55 WikiHop MedHop

30.4 44.6 33.7 54.5

BIDAF BIDAF doc-rem

10%

slide-100
SLIDE 100

39

TACL 2018

slide-101
SLIDE 101

Phil’s View?

Good:

You cannot just do context matching We spent a lot of efforts in removing biases We have extra information at annotation time we don’t release

Bad:

It is still multiple choice Test set comes from the same process as training (kinda—-see above)

40

slide-102
SLIDE 102

Part 2: Learning to Read and Calculate

41

Tim Rocktäschel Matko Bosnjak Jason Naradowsky

slide-103
SLIDE 103

Machine Reading and Reasoning: Math

42

How many pictures were in each of the albums? 2 Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album.

slide-104
SLIDE 104

Differentiable Program Interpreters

43

Program Interpreter

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

slide-105
SLIDE 105

Differentiable Program Interpreters

43

Program Interpreter

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

slide-106
SLIDE 106

Differentiable Program Interpreters

43

Program Interpreter

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

slide-107
SLIDE 107

Differentiable Program Interpreters

43

Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

slide-108
SLIDE 108

Differentiable Program Interpreters

43

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

slide-109
SLIDE 109

Differentiable Program Interpreters

43

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

slide-110
SLIDE 110

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

Differentiable Program Interpreters

44

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 4 2 3

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

slide-111
SLIDE 111

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

Differentiable Program Interpreters

45

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 4 2 3

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 6 3

d

Stack

slide-112
SLIDE 112

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

Differentiable Program Interpreters

46

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 4 2 3

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 6 3

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 3 6

d

Stack

slide-113
SLIDE 113

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

Differentiable Program Interpreters

47

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 4 2 3

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 6 3

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 3 6

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 2

d

Stack

slide-114
SLIDE 114

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

Training

48

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 4 2 3

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 6 3

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 3 6

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 2

d

Stack

slide-115
SLIDE 115

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

Training

49

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 4 2 3

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 6 3

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 3 6

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 2

d

Stack

slide-116
SLIDE 116

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

Training

50

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 4 2 3

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 6 3

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 3 6

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 2

d

Stack

slide-117
SLIDE 117

1 2 3 4 5 6 7 8 9 3 4 2

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

Training

51

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 4 2 3

d

Stack Program Interpreter

1 2 3 4 5 6 7 8 9

Heap

Bosnjak et al. ICML 2017

Reader Model

Isabel uploaded 2 pictures from her phone and 4 from her camera to facebook. She sorted the pics into 3 different albums with the same amount of pics in each album. How many pictures were in each of the albums?

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 6 3

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 3 6

d

Stack

1 2 3 4 5 6 7 8 9

p

Code

1 2 3 4 5 6 7 8 9 2

d

Stack

def solve(x): {+|-|%|*} solve(y)

slide-118
SLIDE 118

Results on Math Problems (Accuracy)

52

Bosnjak et al. ICML 2017

slide-119
SLIDE 119

Results on Math Problems (Accuracy)

52

Bosnjak et al. ICML 2017

50 61.5 73 84.5 96 Ours Seq2Seq

slide-120
SLIDE 120

Results on Math Problems (Accuracy)

52

Bosnjak et al. ICML 2017

50 61.5 73 84.5 96 Ours Seq2Seq

96

slide-121
SLIDE 121

Results on Math Problems (Accuracy)

52

Bosnjak et al. ICML 2017

50 61.5 73 84.5 96 Ours Seq2Seq

95 96

slide-122
SLIDE 122

Results on Math Problems (Accuracy)

52

Bosnjak et al. ICML 2017

50 61.5 73 84.5 96 Ours Seq2Seq

95 96 How many pictures were in each of the albums? (2 + 4) / 3

Seq2Seq solves simpler problem

slide-123
SLIDE 123

Limitations

Continuous relaxations difficult to train

Hard to learn long programs Hard to learn with recursive function calls

Need better understanding of SGD for networks with discrete/stochastic activations

53

slide-124
SLIDE 124

Part 3: Learning to Interpret Rules and Ask Clarification Questions

54

Marzieh Saeidi Max Bartolo Guillaume Bouchard Tim Rocktäschel

slide-125
SLIDE 125

Learning to Interpret Rules

55

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Yes If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-126
SLIDE 126

And Ask Clarification Questions

56

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? Yes Yes If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-127
SLIDE 127

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-128
SLIDE 128

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-129
SLIDE 129

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? No If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-130
SLIDE 130

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? No No If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-131
SLIDE 131

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? No No If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

slide-132
SLIDE 132

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? No No If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

Are you working for an employer outside of the EEA?

slide-133
SLIDE 133

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? No No If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

Are you working for an employer outside of the EEA?

No

slide-134
SLIDE 134

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? No No If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

Are you working for an employer outside of the EEA?

No No

slide-135
SLIDE 135

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? No No If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

Are you working for an employer outside of the EEA?

No Yes No

slide-136
SLIDE 136

Generating a Corpus

57

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? No No If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

Are you working for an employer outside of the EEA?

No Yes No Yes

slide-137
SLIDE 137

Generating a Corpus

58

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

Are you working for an employer outside of the EEA?

Yes Yes

slide-138
SLIDE 138

Generating a Corpus

59

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

Are you working for an employer outside of the EEA?

Yes Yes

slide-139
SLIDE 139

Generating a Corpus

60

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

slide-140
SLIDE 140

Generating a Corpus

61

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

Are you working for an employer outside of the EEA?

Yes Yes

slide-141
SLIDE 141

Generating a Corpus

62

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes

Are you working for an employer outside of the EEA?

Yes Yes

slide-142
SLIDE 142

Generating a Corpus

63

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes Yes

slide-143
SLIDE 143

Generating a Corpus

64

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes Yes

slide-144
SLIDE 144

Generating a Corpus

64

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Have you been working abroad 52 weeks or less? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA. Yes Yes

Created ~40k instances this way

slide-145
SLIDE 145

Seq2Seq?

65

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-146
SLIDE 146

Seq2Seq?

65

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Were you laid before earning at least the lower earnings limit? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

slide-147
SLIDE 147

Seq2Seq?

65

I am working for an employer in Canada since December 2017. Do I need to carry on paying UK national insurance? Were you laid before earning at least the lower earnings limit? If you’re self-employed You might be able to carry on paying National Insurance if you’re:

  • usually self-employed in the UK
  • working abroad temporarily

If you do, you won’t have to pay social security contributions in the country where you’re working. You can check this by completing form CA9107. Working in any other country You’ll carry on paying National Insurance for the first 52 weeks you’re abroad if you’re working for an employer outside the EEA.

Seq2Seq with attention 
 (to your needs)

slide-148
SLIDE 148

Conclusion

66

slide-149
SLIDE 149

Conclusion

Great Progress in End-to-End Reading Comprehension

66

slide-150
SLIDE 150

Conclusion

Great Progress in End-to-End Reading Comprehension Reasoning (aggregation, calculation etc.) and conversation end-to-end is still very challenging

66

slide-151
SLIDE 151

Conclusion

Great Progress in End-to-End Reading Comprehension Reasoning (aggregation, calculation etc.) and conversation end-to-end is still very challenging Our Approaches

66

slide-152
SLIDE 152

Conclusion

Great Progress in End-to-End Reading Comprehension Reasoning (aggregation, calculation etc.) and conversation end-to-end is still very challenging Our Approaches

cast reasoning as program learning and execution

66

slide-153
SLIDE 153

Conclusion

Great Progress in End-to-End Reading Comprehension Reasoning (aggregation, calculation etc.) and conversation end-to-end is still very challenging Our Approaches

cast reasoning as program learning and execution are end-to-end differentiable (can be trained on downstream loss)

66

slide-154
SLIDE 154

Conclusion

Great Progress in End-to-End Reading Comprehension Reasoning (aggregation, calculation etc.) and conversation end-to-end is still very challenging Our Approaches

cast reasoning as program learning and execution are end-to-end differentiable (can be trained on downstream loss) are inspired and tied to traditional symbolic formalisms (Forth, Prolog/Datalog)

66

slide-155
SLIDE 155

Conclusion

Great Progress in End-to-End Reading Comprehension Reasoning (aggregation, calculation etc.) and conversation end-to-end is still very challenging Our Approaches

cast reasoning as program learning and execution are end-to-end differentiable (can be trained on downstream loss) are inspired and tied to traditional symbolic formalisms (Forth, Prolog/Datalog) are learnt models are interpretable

66

slide-156
SLIDE 156

Conclusion

Great Progress in End-to-End Reading Comprehension Reasoning (aggregation, calculation etc.) and conversation end-to-end is still very challenging Our Approaches

cast reasoning as program learning and execution are end-to-end differentiable (can be trained on downstream loss) are inspired and tied to traditional symbolic formalisms (Forth, Prolog/Datalog) are learnt models are interpretable allow injection of prior knowledge

66

slide-157
SLIDE 157

Conclusion

Great Progress in End-to-End Reading Comprehension Reasoning (aggregation, calculation etc.) and conversation end-to-end is still very challenging Our Approaches

cast reasoning as program learning and execution are end-to-end differentiable (can be trained on downstream loss) are inspired and tied to traditional symbolic formalisms (Forth, Prolog/Datalog) are learnt models are interpretable allow injection of prior knowledge create datasets

66