Top Banner
Symbolic Logic meets Machine Learning: Towards Transparent and Responsible AI Vaishak Belle University of Edinburgh & Alan Turing Institute
52

Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Sep 22, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Symbolic Logic meets Machine Learning:

Towards Transparent and Responsible AI

Vaishak Belle University of Edinburgh & Alan Turing Institute

Page 2: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

What’s on for today?

Symbolic Logic

Machine Learning

Page 3: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Overview• Motivation & challenges

• Symbolic approaches for transparency & interpretability

• Symbolic approaches for ethical reasoning

• Perspectives and conclusion

Page 4: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Motivation & challenges

Page 5: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Why?

Machine Learning:

• Inductive generalization • Big data • I.i.d. random variables

Symbolic Logic:

• Deduction • Succinct assertions • Relational structure

• Transparency • Interpretability • Ethical responsibility

Page 6: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Distinguished history• Philosophy of science: Boole, De Finetti, Carnap, etc.

• AI: relational learning, inductive logic programming, probabilistic logical modeling, statistical relational learning, etc.

• The world is relational, consisting of objects, which have properties

• Need to reason about hard and soft symbolic knowledge

Page 7: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Gene expressions, gene protein interactions

Biomine

Page 8: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Questions in life sciences• Is gene X involved in disease Y?

• What is the probability of involvement?

• Which genes are similar to X conditioned on Y?

• Which subgraphs are most relevant for studying Y?

De Raedt (2009)

Page 9: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Social interactions

θ1 ∀x, y[Smokes(x) ∧ Friends(x, y) ⊃ Smokes(y)]

θ2 ∀x[Smokes(x) ⊃ Coughs(x)]

Richardson & Domingos (2005)

Page 10: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Reasoning & elaboration• Adding new knowledge:

• Evidential:

• Causal:

• Interventional:

• Counterfactual:

Not just specify & compute, but also learn from data

∀x, y[Smokes(x) ∧ Family(x, y) ⊃ Smokes(y)]

Pr(Smokes(A) ∣ Friends(A, B) ∧ Smokes(B))

Pr(Coughs(A) ∣ Smokes(A))

Pr(Coughs(A) ∣ do(ReduceByHalf(A)))

Pr(Coughs(A) ∣ NeverSmoked(A))

Page 11: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Some broader issues to consider with blackbox

models

Page 12: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Easy to fool

Goodfellow et al. (2014)

Page 13: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Difficult to contextualize

In a recent prediction model for inferring the risk of death for patients who developed pneumonia, a counterintuitive model was learnt that suggested that asthmatics are less likely to die from pneumonia, owing to a policy that asthmatics with pneumonia should be administered aggressive treatment immediately

Caruana et al. (2015)

Page 14: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Pedagogical reasons• Game playing: what’s the best strategy, which move

should be chosen and why?

• Self-driving cars: when to accelerate? To swerve?

• Tutoring & interaction: posit a model of the user

• Semantic understanding in language & vision

Page 15: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Legal and ethical reasons• An applicant was denied his credit card application. Why?

• A self-driving car causes damage. Who is to blame, and what was the cause (so that it does not repeat)?

• It is not sufficient to say we act in good faith, we need to explain why our action was morally right

Page 16: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Opportunities• Allow human input via hard & soft constraints

• Enable context-dependent/user-specific interpretability

• Reason about semantics, choices and models

Hybrid systems integrating symbolic reasoning & learning

Page 17: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Strategies• Logic is discrete, noise-free: upgrade to continuous, noisy

• Integrate low-level learning with high-level reasoning

• Inject symbolic knowledge or extract symbolic knowledge from learning methods

Page 18: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Upgrading to noisy & continuous

Page 19: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Spread of disease

conditioneffect

Page 20: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

With noise model

Probabilistic programming: https://dtai.cs.kuleuven.be/problog/

conditionrandom variable

Page 21: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Continuous distributionsrandom variable distribution conditions

Page 22: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Nitti, Belle & De Raedt (2015)

Reasoning + sensor fusion

Page 23: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)
Page 24: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

From low-level learning to high-level reasoning

Page 25: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Probabilistic model

Conditioning (observation) Query

Dries, Kimmig, Davis, Belle, De Raedt (2017)

Page 26: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

From parsing to programs

Page 27: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Can we learn such programs?

I.e., extract symbolic knowledge from data?

Page 28: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Tabular data ID IQ Grade for

Course ALength (hrs) for A

...

1 105 Low 40 ...

2 110 Mid 50 ...

3 120 High 50 ...

... ... ... ...

Learn the (continuous) spread of values

Learn correlations

Learn the (discrete) distribution on entities

Background knowledge: first years can only take courses of length < 90 hours

Page 29: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

minH

loss(H, B, D)

Speichert & Belle (2019)

Page 30: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

From interpretable representations to

expressive querying

Page 31: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

What if structure is hard to understand?

• Very large, very granular, etc.

• Perhaps we only need to provide a query interface

• We would like to learn and reason efficiently

Pr(satisfaction = high |nr_hours > 200) = ?

Page 32: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Compilation perspective

Bayesian networks

Markov logic networks Factor graphs

Probabilistic databases

Probabilistic logics

Weighted model counting (via circuits: expensive offline, cheap online)

What if we learn such circuits directly?

Page 33: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Deep probabilistic models

Kisa et al. (2014)

Page 34: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Deep probabilistic models • Leaf nodes: tractable univariate

distributions

• Weighted sums of products (i.e., weighted mixtures)

• Computing marginals can be done by single pass

Poon & Domingos (2011)

standard deep models P(y ∣ x) vs here: P(x, y)

Page 35: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Discrete to continuous

Bueff, Speichert & Belle (2018); Molina et al. (2018)

Page 36: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Missing Values

Levray & Belle (2018)

Page 37: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Tractable models for interpreting deep

learning

Fuxjaeger & Belle (2019)

Page 38: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Autoencoder set up• Find a way to minimize reconstruction loss between

feature layer e(x) and reconstruction d(e(x))

• Construct circuit Pr(x) for feature layer

Data Feature Layer

Encoder

Circuit

Decoder

Page 39: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Generate prototypes for labels via Pr(x,y)

Page 40: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Functional tasks• Given first image, generate

second image such that: • Given first image, generate

second image such that:

digit(img1) XOR digit(img2) = 1 digit(img1) XOR digit(img2) = 0

Page 41: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Recent developments• How expressive are such tractable models for causal

reasoning?

• What are the computational advantages if we avoid an explicit hypothesis/model construction?

Papantonis & Belle (2019); Belle & Juba (2019)

Page 42: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Ethical AI (via tractable models)

Page 43: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Implementing fairness

Varley and Belle (2019)

Pr(y ∣ ap) = Pr(y ∣ ¬ap)

Protected attributes + dependent variables

Page 44: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)
Page 45: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Too extreme?• “Germany recently proposed a code for driverless cars.

The proposal specified, among other things, that a driverless car should always opt for property damage over personal injury. Is this reasonable?”

• “Should an autonomous vehicle swerve and kill its passenger when otherwise it would kill 5 pedestrians?”

Halpern (2018)

Page 46: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Formal framework• Causal model to capture variables, actions and costs

• E.g., T1 (people on track #1 die) = 1 - A (lever pulled)

• Thus, T2 = A

• Degree of blame <- attempt actions with lower costs

Halpern & Kleiman-Weiner (2018)

Page 47: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Can you learn models of moral scenarios?

Can judgements be computed tractably?

Hammond & Belle (2018)

Page 48: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Learn costs by surveying people (or, say, experts)

5

¬L¬W

1

L �

0

5

¬LW

1

L �

0

5

L¬W

0.5

¬L¬W

0.5

3

0.278 0.167 0.556

1

¬R¬U

1

R �

0

1

R¬U

1

¬R�

0

1

R U

0.6

¬RU

0.4

Page 49: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Alignment of decisions

Best friend on main track

Page 50: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Learned utilities

Page 51: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Responsibility and AI• Not meant to be prescriptive, but towards a shared

computational framework for moral judgements (i.e., “ethics bot”)

• Automated decision making can be extremely useful, but also raises many concerns touching on philosophically vexing themes

• Unclear if formal definitions fully capture various viewpoints

• Perhaps AI can help us understand if alignment is even possible between human agenda and machine objectives

Page 52: Symbolic Logic meets Machine Learning...Responsibility and AI • Not meant to be prescriptive, but towards a shared computational framework for moral judgements (i.e., “ethics bot”)

Summary & outlook• Explainability, robustness, responsibility challenging

topics

• Symbolic frameworks to specify, interpret and contextualize machine learning models

• Taking steps towards human-in-the-loop decision making