<i>In a previous post, I expressed my happiness that I got to present at </i><a href="https://conference.mlinpl.org/"><i>ML in PL</i></a><i> in Warsaw. I had the opportunity to take a step back and reflect a bit on the ethics of what we do as practitioners of data science and builders of machine learning models. It’s an important topic and doesn’t receive the attention that it should. </i> <i>The algorithms we build affect lives. </i> <i>I have researched this topic quite a lot, and during that time I have found a number of stories that made a huge impression on me. Here are six more lessons based on real life examples that I think we should all remember as people working in machine learning, whether you're a researcher, engineer, or a decision-maker. </i> <h3>It’s time to show your Cards </h3> <img class="size-medium wp-image-3247 aligncenter" src="https://wordpress.appsilon.com/wp-content/uploads/2019/12/openAI-example-600x338.png" alt="" width="600" height="338" /> It’s time for a more positive example, a practice we can follow in our daily work. OpenAI has finally released the full <a href="https://openai.com/blog/better-language-models/">GPT-2 model</a> for text generation. OpenAI noticed that the model is so powerful that it could be used in very bad ways (from testing it personally, I can confirm that it is often super realistic). So in February they released a limited version, and started a process. They invited researchers to experiment with the model, they asked people to build detection systems to see the accuracy of the method to detect if something was created by a bot or not. They are also hiring social scientists, because as engineers we should know our limits and we don’t have to understand all implications of models we release. But we can collaborate with those who do. One of the tools that they used is something that we can all use in our daily work -- <b>Model Cards</b>. This was <a href="https://ai.google/research/pubs/pub48120/">suggested by several people at Google</a>. A Model Card shows in a standardized way the intended use and the mis-use cases. It shows how the data was collected, so that researchers can experiment and notice some mistakes in the process. The Card can contain caveats and recommendations. Whether you’re releasing to the public or just internally, I think it’s useful to complete an “M-card.” I think OpenAI did this right. So that brings us to Lesson 6. <b>Lesson 6: Evaluate risks. Communicate intended usage.</b> Onward. I saw this on Twitter last week. Some researchers are showing off a model that will use faces to pay for entrance to the London Underground. <blockquote class="twitter-tweet"> <p dir="ltr" lang="en">Facial recognition could make your commute MUCH easier <a href="https://t.co/B3SISYq0Zb">pic.twitter.com/B3SISYq0Zb</a></p> — Mashable (@mashable) <a href="https://twitter.com/mashable/status/1193088083492630528?ref_src=twsrc%5Etfw">November 9, 2019</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> I was shocked that they didn't mention any risks whatsoever, such as, for example, the potential for law enforcement abuse, privacy issues, surveillance, migrant rights, biases, and abuse by authoritarian states. There are huge implications. So, Lesson 7: it’s easy to get press for a cool model, but we shouldn’t be like those researchers from Bristol. We should make sure that if a video is featured like this, the risks are called out. <blockquote><b>Lesson 7: It’s easy to get media coverage. Make sure risks are communicated. </b> </blockquote> Here's another positive example that I’d like to show you -- it’s a <a href="https://www.youtube.com/watch?v=MqoRzNhrTnQ">talk by Evan Estola</a> who is the lead machine learning engineer at <a href="https://www.meetup.com/">Meetup</a>. He gave a useful talk called “When Recommendation Systems Go Bad” about some of the decisions that they have made. He reminds us of Goodhart’s law: <blockquote>“When a measure becomes a target, it ceases to be a good measure.” </blockquote> “We have an ethical obligation not to teach our machines to be prejudiced,” he adds. For example, in the US, there are more men than women in tech roles. So should the Meetup recommendation model discourage women from attending tech meetups because they are mostly attended by men? Of course not. But if it is not intentionally designed otherwise, a model can easily infer from the data that women aren’t interested in tech events and then turn around and essentially maintain gender stereotypes. So Lesson 8... <blockquote><b>Lesson 8: Remember that a metric is always a proxy for what we care about.</b> </blockquote> And what about the issue of government regulation? The following is the most shocking example to me. Maybe some of you are aware that there was a genocide in Myanmar last year. Thousands of the Rohingya people died at the hands of the military, police, and other members from the majority group. Facebook finally admitted this year that they didn’t do enough -- the platform became a way for people to spread violence and violent content. So basically people from the majority group spread hate about the ethnic minority Rohingya. They practice different religions so that only helped increase the violence. <img class="size-full wp-image-3253 aligncenter" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b022a98587215be0b1b1f0_facebook.webp" alt="" width="512" height="288" /> One of the worst things about the situation was that Facebook executives were warned as early as 2013. After five years, there was a huge outburst of violence. In 2015, after the first warning, Facebook had only four Burmese-speaking contractors reviewing the content -- for sure not enough. They just didn’t care enough. Rachel Thomas compared two reactions from Facebook. One is for Myanmar, where Facebook boasted that they added “dozens” of content reviewers for Burmese. During the same year, they hired 1,500 content reviewers in Germany. Why is that? Because Germany threatened Facebook (and others) with a $50M fine if they didn’t comply with the Hate Speech law. This is an example of how regulations can help, because it makes managers who are mostly focused on profit to treat risks seriously. Here is a personal example about regulation. I have two small children, so I have become an expert about car seats. In the past, it was claimed by many that cars can’t be regulated. Drivers were blamed for safety issues. Fast forward a bit, and it is calculated that children are five times safer in rear-facing car seats as opposed to front-facing. Regulations differ in various countries. In Sweden, they have regulations that essentially favor the use of rear-facing car seats. Consequently, from 1992 to 2013, only 15 children have died in auto accidents. By contrast, in Poland, which does not have such a regulation, 70 to 150 children die <b>each year</b> in auto accidents. Regulation will come to AI eventually. The question is whether it will be wise or stupid. Technical people are often opposed to regulation because it’s often poorly designed and enacted. But I think it’s because we need to make it wise. We will eventually have regulation around AI, but it’s not determined what quality it’ll be and when this will happen. <b>Lesson 8: Regulation is our ally, not our enemy. Advocate for wise regulation.</b> Final example. At <a href="https://appsilon.com/">Appsilon</a> we devote quite a bit of our time to “AI for Good” initiatives. So we work with NGOs to put AI models to work to study climate change, to help protect wildlife and so on, and this is great, I’m happy to see other companies doing that. But we should be aware of a phenomenon called <b>technologism</b>. There’s a book by Kentaro Toyama, it’s titled “<a href="https://geekheresy.org/">Geek Heresy</a>.” Mr. Toyama is a Microsoft engineer who was sent to India to help social change and improve people’s lives through technology. He found that people are making lots of mistakes by applying the Western perspective to try to fix everything through technology. He shows many examples of how high hopes for fixing problems with technology have failed. We should work with domain experts a lot and solve the simple problems <b>first</b> with the right depth, so that we build a common understanding between domain experts and engineers. Engineers need to learn the roots of the problems and the domain experts need to learn what is possible with the technology. Only then can really useful ideas emerge. <blockquote><b>Lesson 10: In AI 4 Good, work closely with domain experts and beware technologism. </b></blockquote> The algorithms we build affect lives. Via the internet and social media they can literally shape how you think. They affect healthcare, jobs, court cases. Given that less than half a percent of the population knows how to code, think what a tiny fraction of that number actually understands AI. So we have the awesome and exciting responsibility to shape the future of our society so that it is bright. <img class="wp-image-3255 size-medium" src="https://wordpress.appsilon.com/wp-content/uploads/2019/12/conclusion-of-Marek-Rogala-prezo-600x338.png" alt="You know about problems other people don't. You are responsible for the shape of our society." width="600" height="338" /> You know about problems other people don't. You are responsible for the shape of our society. Do you have your own “lessons”? Please add them in the comments below. Thanks for reading! Follow me on Twitter <a href="https://twitter.com/marekrog">@marekog</a>. <h4>Follow Appsilon Data Science on Social Media</h4><ul><li>Follow<a href="https://twitter.com/appsilon"> @Appsilon</a> on Twitter</li><li>Follow us on<a href="https://www.linkedin.com/company/appsilon"> LinkedIn</a></li><li>Sign up for our<a href="https://appsilon.com/blog/"> newsletter</a></li><li>Try out our R Shiny<a href="https://appsilon.com/opensource/"> open source</a> packages</li></ul>
Explore Possibilities
Share Your Data Goals with Us
From advanced analytics to platform development and pharma consulting, we craft solutions tailored to your needs.
Talk to our Experts