Data, responsibly (part 2) Serge Abiteboul Julia Stoyanovich Inria & ENS, Drexel University

EDBT Summer School, 2017 EDBT Summer School Genova Nervi 1 Data, responsibly

A. Introducon B. Responsible data analysis C. Technical issues D. Societal issues E. Conclusion

2017 EDBT Summer School 2 Responsible data analysis

1. Fairness 2. Diversity 3. Transparency 4. ☞ Neutrality 5. Data protecon

2017 EDBT Summer School 3 B.4 Neutrality

2017 EDBT Summer School 4 Neutrality

• No bias • e.g., in favor of your owner or customers of the owner

• Crical on the internet/web • Objecve criteria such as popularity • Page rank • Number of clicks, likes…

2017 EDBT Summer School 5 Network neutrality

• Net neutrality : the principle that Internet service providers and governments regulang the Internet must treat all data on the Internet the same, not discriminang or charging differenally by user, content, website, plaorm, applicaon, type of aached equipment, or mode of communicaon

≠ Internet service provider Comcast secretly throling (slowing down) uploads from peer-to-peer file sharing (P2P) applicaons by using forged packets

2017 EDBT Summer School 6 Service neutrality

Counterexamples • A recommandaon service that gives beer ranking to paid customers • A smartphone OS that tries to discourage you to use parcular services • A search engine that gives low ranking to services in compeon with its own services Oen difficult to prove

2017 EDBT Summer School 7 8 Why bother?

• A few companies are concentrang all the data and most of the compung power • Threatening fair compeon • Threatening freedom • Control the informaon we get • Guide our choices • Guide our decision An argument against neutrality that does not work

• A newspaper makes editorial choices, chooses what to present, the product to push • But • Google search is used by 90% in Europe • Facebook hosts most of your friends • Android + IOS have most of the smartphone market • Where are the choices?

1 0 Good reasons not to be neutral

• Personalizaon • You look for a pizza or a doctor • Near where you are not in Bay area • Avoid pornography for young public • …

1 1 Correctness: a good argument against neutrality? • Correct errors, block fake news… • Evaluate trustworthiness of sources • Who decides? Experts, governments…

April 2017/ Turkey blocked all access to Wikipedia because Wikipedia "had failed to remove content promong terror and accusing Turkey of cooperaon with various terror groups” to follow in the coming days.”

Wikipedia was menoning the totalitarian nature of the regime 2017 EDBT Summer School 12 B.5 Data protecon

2017 EDBT Summer School 13 Protect data

• Long experience with business data • Access control • DRM (digital rights management) • Much less with personal data

2017 EDBT Summer School 14 Data privacy

• More and more concerns privacy • Limitaons on what data companies can do • Laws to force companies to request authorizaon to build a DB with of personal informaon () • Rules about what users should be able to do • Laws that compel companies (e.g., credit reporng agencies) to let users see and correct informaon about them (US) • Laws in Europe, US… • The laws depend on the country • Their enforcement is difficult

08/09/17 Data Responsibly, Serge Abiteboul 15 Data privacy: usability • There are means to protect data but people oen don’t use them because too complicated and/or not understandable • Tools for cryptography • Access rights • Unreadable EULA • End-User license agreement • Difficulty to change service, portability • Vendor lock in

08/09/17 Data Responsibly, Serge Abiteboul 16 Privacy in data analysis

• When publishing stascs, protect individuals • Already studied a lot if topic is not closed • Anonymizaon • Differenal privacy

08/09/17 Data Responsibly, Serge Abiteboul 17 Protecng data out there

• For the data we have on the Web, we would like to control • By whom it is read • How is transmied • How it is modified • How it is and will be used • We would like to keep some control in this distributed seng • Web-scale access control Lots of open issues

08/09/17 Data Responsibly, Serge Abiteboul 18 Examples of acve data access

• Auto-deleon aer some amount of me • Snapchat • Vanish hps://vanish.cs.washington.edu/ • Deleon and right to be forgoen

• Acve data (acvexml) Provenance is an extensional reference to a source • Acve data is an intensional reference • Reflect modificaons of data and/or access rights

08/09/17 Data Responsibly, Serge Abiteboul 19 Managing access in the distributed setting! • Specifies who can read some data based on its provenance • Data transmied from peer to peer carries its access rights

• Webdamlog [Moffi et al., SIGMOD 2015; Abiteboul et al., ICDT 2016] • Social networks: [Cheng et al., PASSAT 2012; Hu et al., TKDE 2013]

08/09/17 Data Responsibly, Serge Abiteboul 20

A. Introducon B. Responsible data analysis C. ☞ Technical issues D. Societal issues E. Conclusion

C. Technical issues

2017 EDBT Summer School 21 C. Technical issues

1. ☞ Tesng and verificaon 2. Enforcing properes and migang when they don’t hold 3. Provenance, tracing, and reproducibility 4. Explicability or interpretability 5. Open data and open-source soware

2017 EDBT Summer School 22 C.1 Tesng and verificaon

2017 EDBT Summer School 23 The two sides of the problem

Producing data analysis • Assuming people want to work ethically • Tools to help • Collect data responsibly • Process, in parcular analyze, it responsibly • Publish the results so that others can understand and reuse them responsibly Using data analysis produced by others • Tools to help • Find analysis results of interest • Verify that the analysis was performed responsibly Responsibility by design: both are simpler if responsibility is taken into account as early as possible

2017 EDBT Summer School 24 The two sides of assessing whether an analysis was performed responsibly • Verify its code • Proof of mathemacal theorems • E.g., proof of the 4-color theorem • Test its effect • Study of phenomena • E.g., analyze climate changes

2017 EDBT Summer School 25 Verificaon of the code

• Audit of the code by a specialist: difficult • Easy to detect gross violaon such as the use of a protected variable • Hard to detect complex ones especially if the code developer has tried hard to hide them • Automac stac analysis of programs • In the spirit of automated theorem proving • Lots of work in different areas • Security, safety, opmizaon, privacy • Verificaon of the code of a very large subset of C [CompCert] • Lile on responsibility

2017 EDBT Summer School 26 Tesng the effects

• The system is seen as a black box • Its behavior is studied • For instance, for a search engine • One observes the ranking on some queries • One observes the evoluon of the ranking • One tries to reconstruct the ranking funcon: reverse engineering • Typically use data analysis to verify properes • Stascal and big data analysis • Machine learning

2017 EDBT Summer School 27 Difficulty: the specificaon of properes • Some properes are subtle • What kind of fairness is desired? • Recall discussion of fairness (group vs. individual) • Some properes may depend on environment • The same picture may be seen as pornographic in some countries and not in other • Some video may be seen as too violent for a child and OK for an adult

2017 EDBT Summer School 28 C.2 Enforcing properes

2017 EDBT Summer School 29 Enforcing an outcome

• Start from an a priori choice • Select requirements on the result of the analysis • Tune the analysis system (for instance, train a neural net) • This may be for possibly widely different reasons, e.g., • Ethical properes: In some university admission, bring the number of women in each school to 50% • Make sure the services of prefered customers are in top 10 of rankings • Bias the results to « enforce » this to happen

2017 EDBT Summer School 30 C.3 Provenance, tracing, and reproducibility

2017 EDBT Summer School 31 Provenance

• Specifies the data origin and the processing performed • Many movaons • Helps understand the result • Simplify the verificaon/tesng of the results • Enables “reproducibility” • Helps build trust • Common for scienfic data • Publishing results without explanaon is not scienfic • Sll not common for data on the web – many excuses • The value of the data (business advantage) • Publishing the Ranking criteria of Google Search would facilitate the work of those who try to manipulate it

2017 EDBT Summer School 32

Provenance

• Provenance [Green et al., PODS 2007], [Green et al., SIGMOD 2007]! • Provenance and privacy [Davidson et al., ICDT 2011]! !

2017 EDBT Summer School 33 What we would like for web data • Control • By whom it is read • How is transmied • How it is modified • How it is and will be used • We would like to keep some control even in this distributed seng • Web-scale access control

2017 EDBT Summer School 34 Example of distributed access control • Webdamlog • Specifies who can read some data based on its provenance • Datalog (aka declarave) specificaon • Data transmied from peer to peer keeps its access rights

2017 EDBT Summer School 35 C.4 Explicability

2017 EDBT Summer School 36 Do we need explanaons?

• Nelix • Recommendaon for a movie • If the recommendaon is not good, we switch to a different provider • Loan applicaon • Explain why rejected or why a parcular rate was chosen • Release on parole • If denied tenure, you are entled to know why

• Depends on the context • No explanaon may be somemes be socially unacceptable

2017 EDBT Summer School 37 The origin of the problem

• Big data computaon hard to explain • Machine learning computaon even harder • Usually, many steps to reach a result and explanaon wants to capture the whole pipeline

• Each variable alone may not have impact, when together they do • Refer to quantave input influence before

• Hard doesn’t mean impossible (on-going works) • Explain which variables maered in a choice

2017 EDBT Summer School 38 Example: ranking

• Input: collecon of items • Score-based ranker: computes the score of each item using a formula, e.g., monotone aggregaon, then sorts items on score • Output: ranked permutaon of the items

• Transparency: scoring funcon is known • Explicability? not really • What is a good score? What has impact? Would a variaon of the weights have huge impact? …

2017 EDBT Summer School 39 C.5 Open data and open- source soware

2017 EDBT Summer School 40 In sciences

• Sciences progress with the sharing of ideas • The building of trust • Open science • Publicaon in open access • Reproducible experiments • Descripon of the raw data • Descripon of the processing • Open data

2017 EDBT Summer School 41 Open data access

• Publishing data • Finding data • Using data • Based on the licenses CC BY, SA, NC, ND

Can this be a model for society?

08/09/17 Data Responsibly, Serge Abiteboul 42 Open-source soware

• Simplifies/enables verificaon • A large community of users can • Verify the code • Disagree with the policies • Example the APB soware in France • Assignment of students to higher educaon • Opaque procedure for a long while • Now open-source • Lead to a debate on the policy • Useful but not sufficient • Bug in the SSL library of Debian • Weak secrecy of keys for 2 years

2017 EDBT Summer School 43 Open data

• Basis of transparency • Facilitates also verificaon • The publicaon of open data also encourages innovaon • From small companies that could not get the data otherwise

2017 EDBT Summer School 44 Limitaons of “open”

• Dubious: opaqueness is a protecon • Argument used for instance by search engines for not providing their ranking algorithm • Other companies can “re-engineer” the ranking • Opaqueness mostly used to manipulate ranking? • Serious: conflicts with the protecon of private data • Serious: data and soware are somemes main assets for companies • Ways around: providing realisc datasets that preserve privacy

2017 EDBT Summer School 45 A. Introducon B. Responsible data analysis C. Technical issues D. ☞ Societal issues E. Conclusion

D. Societal issues

2017 EDBT Summer School 46 D. Societal issues

1. ☞ Accountability 2. Pims and impact on business models 3. Educaon 4. Associaons 5. Governments 6. Changing the web

2017 EDBT Summer School 47 D.1 Accountability

2017 EDBT Summer School 48 Accountability

• A service must perform as it should according to contract • In parcular, user data should be protected as specified • Difficulty • The contract is typically confusing and imprecise • Manipulaon of nutrional labels, e.g. replace sugar with 3 kinds to confuse consumers • In case of violaon • Legal aspects • Possibly very damaging in terms of reputaon • See further

2017 EDBT Summer School 49 Always the same issues

• As a company, make sure that you do what you promiss • As a user, as a customer, as the government, verify that a service performs as announced / as in the contract • Not easy • Example: in France, government efforts to adress the problem, the TransAlgo instute

2017 EDBT Summer School 50 D.2 Personal informaon management systems A cloud system that manages all the informaon of a person An alternave business model protecng the personal data

2017 EDBT Summer School 51 The Personal Informaon Management System

Web services Your Pims • Each one running on • Your machine some unknown • With your data machines • You have access to all • • Possibly replica of data With your data from systems you like • You don’t know precisely which • Running soware you chose • Some soware • Or wrappers to external services you chose

2017 EDBT Summer School 52 It’s first about data integraon

A m L l z I Integraon of the services i C u a of a user m E l z

i u a localizaon X X webSearch X calendar X mail X X contacts

Facebookfacebook Integraon of the users of a service tripadvisor X X banks X whatsap 2017 EDBT Summer School 53 Many R&D issues

Old problems revisited • Personal informaon integraon • Personalizaon and context awareness • Personal data analysis • Epsilon-principle (epsilon-user-administraon) • Synchronizaon/backups & Task sequencing • Access control & Exchange of informaon • Security (e.g. works @ INRIA Saclay) • Connected objects control

2017 EDBT Summer School 54 Is this is arriving?

• Technical • Price of hosted machines is going down • More and more relevant open-source soware • Economical • More and more startups into it • Big companies interested as well • Societal • People are more and more concerned about privacy ☹ unclear business model � may bring new funconalies

2017 EDBT Summer School 55 D.3 Educaon

2017 EDBT Summer School 56 Educaon

• Computer and data literacy! • Understand computational thinking! • Understand data analysis principles! • Topics: , probability and statistics! • Learn to question and doubt! !

2017 EDBT Summer School 57 Educaon: correlaon, causaon

https://en.wikipedia.org/wiki/File%3aPiratesVsTemp%28en%29.svg! 2017 EDBT Summer School 58 Educaon: data visualizaon

http://www.businessinsider.com/fox-news-obamacare-chart-2014-32017 EDBT Summer School ! 59 Educaon: data visualizaon

http://www.businessinsider.com/fox-news-obamacare-chart-2014-3! 2017 EDBT Summer School 60 D. 4 Associaons

2017 EDBT Summer School 61 Reputaon

• Big companies at the me of the web are extremely concerned with reputaon • Bad image can spread very rapidly • Example • Instagram/FB case in 2012 • Change of a policy • Complaints of customers on the web, who started cancelling their accounts • The company decided to cancel the new policy aer a few days

2017 EDBT Summer School 62 The power of associaons

• Assessment of companies behaviors • Read the EULA (End-user license agreement) • Test/verificaon of the services • Alert a large number of members very rapidly • Start a negave campaign of the web • Possibly engage in class acons

2017 EDBT Summer School 63 D.5 Governments

2017 EDBT Summer School 64 How can government help?

• Laws and regulaons • At least in democrac countries • Prohibit or discourage bad behaviors • Possibly very technical • Service interoperability and vendor lock-in in Europe • Define and encourage good pracce • Publish guidelines • Support research • Provide measurements • Agencies to detect biases • Support to organizaons doing that

2017 EDBT Summer School 65 Issues

• Lack of competence • In parliaments & government agencies • Improving • Lack of agility • Time of digital world vs. me of law • Procedure for reporng and blocking terrorist web sites in France in weeks - new replicaon sites acve in minutes • World-wide problem • Weakness of laws at the planet level • Example: major American companies make huge profits in Europe and pay lile taxes (also an ethical issue)

2017 EDBT Summer School 66 Facebook “like” buon

2017 EDBT Summer School 67 US legal mechanisms

• [Big Data: A tool for inclusion or exclusion? FTC Report; 2016] • hps://www.c.gov/system/files/documents/reports/big-data- tool-inclusion-or-exclusion-understanding-issues/160106big- data-rpt.pdf • Fair Credit Reporng Act - applies to consumer reporng agencies, must ensure correctness, access and ability to correct informaon • Equal opportunity laws - prohibit discriminaon based on race, color, religion, … - plainff must show disparate treatment / disparate impact • FTC Act - prohibits unfair or decepve acts or pracces to companies engaged in data analycs • Lots of gray areas, much work remains, enforcement is problemacs since few auding tools exist

2017 EDBT Summer School 68 EU legal mechanisms

• Transparency • Open data policy: legislaon on re-use of public sector informaon • Open access to research publicaons and data • Neutrality • Net neutrality: a new law, but with some limitaons • Plaorm neutrality: the first case against Google search • Different countries are developing specific laws, e.g., portability against user lock-in (France)

2017 EDBT Summer School 69 D.6 Changing the web

2017 EDBT Summer School 70 The web

• We take it for granted • But it is changing • Smart phones and apps • Presence of private companies: adversement and hunt for private data • Presence of governments: China, Russia, intelligence everywhere • Time for a new web? • Lots of research issues & polical aspects

2017 EDBT Summer School 71 The future of the web

Organizaons are working on it • Internet Government Forum (UN) • Global Internet Policy Observatory (EU) • W3C Technology Policy Internet Group

Researchers should parcipate

2017 EDBT Summer School 72 A. Introducon B. Responsible data analysis C. Technical issues D. Societal issues E. ☞ Conclusion

E. Conclusion

2017 EDBT Summer School 73 Ethical data management

• Major achievements of data management in the passed • Scaling to large volume with good performance • Models and query languages (data, knowledge) • Transacon, reliability • Primarily business data • Now private and social data • We have learnt to manage data • We must learn to do it in an ethical way

2017 EDBT Summer School 74 References

• hp://dataresponsibly.com

• Dagstuhl reports • Data, responsibly • Foundaons of data management • ACM Sigmod Blog, Data, responsibly, JS & SA

2017 EDBT Summer School 75 2017 EDBT Summer School 76 2017 EDBT Summer School 77 2017 EDBT Summer School 78 • Pay aenon and follow R&D codes of ethics • Research on ethical data management • Together with lawyers, philosophers… • Parcipate to the educaon of the populaon on these issues 2017 EDBT Summer School 79 Grazie Merci Thank you

2017 EDBT Summer School 80