# Ethics in ML

## About this lecture

### You are part of it!
This lecture will be delivered as a flipped-classroom. 

```{admonition} What is a flipped-classroom?
:class: note
A flipped-classroom is a pedagogical strategy consisting of reversing the traditional teaching scheme: instead of learning in class and practising at home, students are given material to study themselves beforehand and the in-class time is dedicated for debates, discussions and problem solving.
This approach gives more autonomy to the students, enhances self-learning skills and promotes active participation and expression.

If you are curious and want to learn more, the [Wikipedia article](https://en.wikipedia.org/wiki/Flipped_classroom) gives a good overview and describes some [examples of flipped-classroom](https://en.wikipedia.org/wiki/Flipped_classroom#Examples) by field of study.

```

You will be asked to read some of the online articles listed in the Section {ref}`ethics:readingmaterial` below. During the class we will focus on discussions and debates about each case study. Then we will extract the key terms and synthetize together to reach conclusive remarks about ethics in machine learning.

The lecture will end with a graded short essay. 

More information is given in the following section.

### Schedule

__Part One: What is ethics? What is ethics in machine learning?__  
At home, you will think of a definition of "ethics in machine learning" in __your own words__. We will start the lecture by sharing our findings and will agree on a definition together.  

__Part Two: Case Study__  
In groups, you will discuss a given case study according to the points provided in the Section {ref}`ethics:guidance` below. 

__Part Three: Presentations__  
Each group will present the outcomes of their discussion on the case study in an oral presentation.

__Part Four: Synthesis__  
As a class, we will extract together the key elements from the case studies and use them to draw conclusive remarks.

__Part Five: Essay (graded)__  
After a deserved break, you will be presented three questions dealing with ethics in machine learning. Choose the one you prefer and write a short essay of minimum 300 words. In your essay you should clearly articulate your answer, bring a nuanced argumentation considering the different perspectives and illustrate as much as possible your arguments with examples.

(ethics:readingmaterial)=
## Reading Material
There is no reading material for part one (definition exercise) yet some hints. Wikipedia is also a good place to start. The UN agency UNESCO has written on the topic.

For the case studies: read at least the material for one. But if you have time, try to read another case study.

```{admonition} Bring Your Own Case Study
:class: tip
If you are already captivated by a tool employing machine learning and are curious to explore its ethical aspects and implications, contact the instructor as soon as possible (before the third week). If there is enough interest to form a group, an additional case study could be added to the debate.
```

````{margin}
```{warning}
It is crucial for you to have absorbed the material before the course. Make sure you have done so in advance to arrive in class prepared for the discussions. 
```
````
### Case Study: Timnit Gebru on societal implications of natural language processing (NLP) technology

__Timnit Gebru: The Computer Scientist Fighting for a Fairer World__  
[Article from historyofdatascience.com](https://www.historyofdatascience.com/timnit-gebru-the-computer-scientist-fighting-for-a-fairer-world/)

__On the Dangers of Stochastic Parrots: Can Language Models Be Too Big? 🦜__  
[Paper](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922).

__Behind the Paper That Led to a Google Researcher’s Firing__  
[Article from www.wired.com](https://www.wired.com/story/behind-paper-led-google-researchers-firing/ )

__(Optional) What Really Happened When Google Ousted Timnit Gebru__  
[(very long) article from www.wired.com](https://www.wired.com/story/google-timnit-gebru-ai-what-really-happened/)


### Case Study: Facebook

__How Facebook got addicted to spreading misinformation__  
[Article on www.technologyreview.com](https://www.technologyreview.com/2021/03/11/1020600/facebook-responsible-ai-misinformation/)

__Shoshana Zuboff: Surveillance Capitalism and Democracy__  
[YouTube Video](https://www.youtube.com/watch?v=5AvtUrHxg8A).


### Case Study: AI Weaponry

__UN fails to agree on ‘killer robot’ ban as nations pour billions into autonomous weapons research__  
[Article from theconversation.com](https://theconversation.com/un-fails-to-agree-on-killer-robot-ban-as-nations-pour-billions-into-autonomous-weapons-research-173616)

__What you need to know about autonomous weapons__  
[Article from International Committee of the Red Cross (ICRC)](https://www.icrc.org/en/document/what-you-need-know-about-autonomous-weapons)

__AI-Influenced Weapons Need Better Regulation__  
[Article from Scientific American](https://www.scientificamerican.com/article/ai-influenced-weapons-need-better-regulation/)

(ethics:guidance)=
## Guidance
These questions will help you extract the important information from the material and anticipate the discussion.

* What are the different agents/actors? (think of professions and also societal entities)
* How impartial can instances such as companies or organizations be?

A recommended framework to analyse each case study would be a table with:
* the type(s) of machine learning implementation(s) and/or algorithms
* the domain(s) (medical, language, internet, data science)
* the recipients/beneficiaries
* the good: how is it beneficial for the recipients/users
* the harms: what are the ethical issues?
* the solutions: how to tackle and address those issues?


## More (extra, not needed for the class)

If you are curious about ethics in AI, or even think of pursuing this topic professionally, find below some articles, organizations and companies that specialize in ethics in AI:

### Courses
* [Intro to AI Ethics on Kaggle](https://www.kaggle.com/learn/intro-to-ai-ethics)

### Articles
* [Microsoft’s Kate Crawford: ‘AI is neither artificial nor intelligent’](https://www.theguardian.com/technology/2021/jun/06/microsofts-kate-crawford-ai-is-neither-artificial-nor-intelligent)
* [AI Data Laundering: How Academic and Nonprofit Researchers Shield Tech Companies from Accountability](https://waxy.org/2022/09/ai-data-laundering-how-academic-and-nonprofit-researchers-shield-tech-companies-from-accountability/)

### Organisations
* [AI for Good](https://aiforgood.itu.int/): digital platform of the United Nations for learning, discussing, and connecting in order to identify practical AI solutions that can help advance the UN's Sustainable Development Goals.
* [Center for Human-Compatible Artificial Intelligence (CHAI)](https://humancompatible.ai/): multi-institution research group based at UC Berkeley, USA, focusing on advanced artificial intelligence safety methods.
* [Montreal AI Ethics Institute](https://montrealethics.ai/): international non-profit organization democratizing AI ethics literacy.

### Companies
* [AlgorithmWatch](https://algorithmwatch.org): non-profit research and advocacy organization that is committed to watch, unpack and analyze automated decision-making (ADM) systems and their impact on society.
* [DataKind](https://www.datakind.org). Global nonprofit that harnesses the power of data science and AI in the service of humanity. 
* [Ethically Aligned AI](https://www.ethicallyalignedai.com/): an example of a company providing training, consulting and public speaking about ethics in AI.
