{"id":4335,"date":"2022-02-09T15:31:00","date_gmt":"2022-02-09T15:31:00","guid":{"rendered":"https:\/\/rjbarrett.redirectme.net\/?p=4335"},"modified":"2022-02-09T15:31:00","modified_gmt":"2022-02-09T15:31:00","slug":"andrew-ng-farewell-big-data","status":"publish","type":"post","link":"https:\/\/rjbarrett.redirectme.net\/?p=4335","title":{"rendered":"Andrew Ng: Farewell, Big Data"},"content":{"rendered":"<p><br \/>\n<br \/><img decoding=\"async\" src=\"https:\/\/spectrum.ieee.org\/media-library\/andrew-ng-listens-during-the-power-of-data-sooner-than-you-think-global-technology-conference-in-brooklyn-new-york-on-wednes.jpg?id=29206806&amp;width=980\" \/><\/p>\n<div>\n<p><strong>Andrew Ng has serious street cred<\/strong> in artificial intelligence. He pioneered the use of graphics processing units (GPUs) to train deep learning models in the late 2000s with his students at Stanford University, cofounded Google Brain in 2011, and then served for three years as chief scientist for Baidu, where he helped build the Chinese tech giant\u2019s AI group. So when he says he has identified the next big shift in artificial intelligence, people listen. And that\u2019s what he told <em>IEEE Spectrum<\/em> in an exclusive Q&amp;A.<\/p>\n<hr\/>\n<p>\n\tNg\u2019s current efforts are focused on his company<br \/>\n\tLanding AI, which built a platform called LandingLens to help manufacturers improve visual inspection with computer vision. He has also become something of an evangelist for what he calls the data-centric AI movement, which he says can yield \u201csmall data\u201d solutions to big issues in AI, including model efficiency, accuracy, and bias.\n<\/p>\n<p>\n\tAndrew Ng on&#8230;\n<\/p>\n<p><strong>The great advances in deep learning over the past decade or so have been powered by ever-bigger models crunching ever-bigger amounts of data. Some people argue that that\u2019s an unsustainable trajectory. Do you agree that it can\u2019t go on that way?<\/strong><\/p>\n<p><strong>Andrew Ng: <\/strong>This is a big question. We\u2019ve seen foundation models in NLP [natural language processing]. I\u2019m excited about NLP models getting even bigger, and also about the potential of building foundation models in computer vision. I think there\u2019s lots of signal to still be exploited in video: We have not been able to build foundation models yet for video because of compute bandwidth and the cost of processing video, as opposed to tokenized text. So I think that this engine of scaling up deep learning algorithms, which has been running for something like 15 years now, still has steam in it. Having said that, it only applies to certain problems, and there\u2019s a set of other problems that need small data solutions.\n<\/p>\n<p><strong>When you say you want a foundation model for computer vision, what do you mean by that?<\/strong><\/p>\n<p><strong>Ng:<\/strong> This is a term coined by Percy Liang and some of my friends at Stanford to refer to very large models, trained on very large data sets, that can be tuned for specific applications. For example, GPT-3 is an example of a foundation model [for NLP]. Foundation models offer a lot of promise as a new paradigm in developing machine learning applications, but also challenges in terms of making sure that they\u2019re reasonably fair and free from bias, especially if many of us will be building on top of them.\n<\/p>\n<p><strong>What needs to happen for someone to build a foundation model for video?<\/strong><\/p>\n<p><strong>Ng:<\/strong> I think there is a scalability problem. The compute power needed to process the large volume of images for video is significant, and I think that\u2019s why foundation models have arisen first in NLP. Many researchers are working on this, and I think we\u2019re seeing early signs of such models being developed in computer vision. But I\u2019m confident that if a semiconductor maker gave us 10 times more processor power, we could easily find 10 times more video to build such models for vision.\n<\/p>\n<p>\n\tHaving said that, a lot of what\u2019s happened over the past decade is that deep learning has happened in consumer-facing companies that have large user bases, sometimes billions of users, and therefore very large data sets. While that paradigm of machine learning has driven a lot of economic value in consumer software, I find that that recipe of scale doesn\u2019t work for other industries.\n<\/p>\n<p>Back to top<\/p>\n<p><strong>It\u2019s funny to hear you say that, because your early work was at a consumer-facing company with millions of users.<\/strong><\/p>\n<p><strong>Ng: <\/strong>Over a decade ago, when I proposed starting the Google Brain project to use Google\u2019s compute infrastructure to build very large neural networks, it was a controversial step. One very senior person pulled me aside and warned me that starting Google Brain would be bad for my career. I think he felt that the action couldn\u2019t just be in scaling up, and that I should instead focus on architecture innovation.\n<\/p>\n<p class=\"pull-quote\">\n\t\u201cIn many industries where giant data sets simply don\u2019t exist, I think the focus has to shift from big data to good data. Having 50 thoughtfully engineered examples can be sufficient to explain to the neural network what you want it to learn.\u201d<br \/>\u2014Andrew Ng, CEO &amp; Founder, Landing AI\n<\/p>\n<p>\n\tI remember when my students and I published the first<br \/>\n\tNeurIPS workshop paper advocating using CUDA, a platform for processing on GPUs, for deep learning\u2014a different senior person in AI sat me down and said, \u201cCUDA is really complicated to program. As a programming paradigm, this seems like too much work.\u201d I did manage to convince him; the other person I did not convince.\n<\/p>\n<p><strong>I expect they\u2019re both convinced now.<\/strong><\/p>\n<p><strong>Ng:<\/strong> I think so, yes.\n<\/p>\n<p>\n\tOver the past year as I\u2019ve been speaking to people about the data-centric AI movement, I\u2019ve been getting flashbacks to when I was speaking to people about deep learning and scalability 10 or 15 years ago. In the past year, I\u2019ve been getting the same mix of \u201cthere\u2019s nothing new here\u201d and \u201cthis seems like the wrong direction.\u201d\n<\/p>\n<p>Back to top<\/p>\n<p><strong>How do you define data-centric AI, and why do you consider it a movement?<\/strong><\/p>\n<p><strong>Ng:<\/strong> Data-centric AI is the discipline of systematically engineering the data needed to successfully build an AI system. For an AI system, you have to implement some algorithm, say a neural network, in code and then train it on your data set. The dominant paradigm over the last decade was to download the data set while you focus on improving the code. Thanks to that paradigm, over the last decade deep learning networks have improved significantly, to the point where for a lot of applications the code\u2014the neural network architecture\u2014is basically a solved problem. So for many practical applications, it\u2019s now more productive to hold the neural network architecture fixed, and instead find ways to improve the data.\n<\/p>\n<p>\n\tWhen I started speaking about this, there were many practitioners who, completely appropriately, raised their hands and said, \u201cYes, we\u2019ve been doing this for 20 years.\u201d This is the time to take the things that some individuals have been doing intuitively and make it a systematic engineering discipline.\n<\/p>\n<p>\n\tThe data-centric AI movement is much bigger than one company or group of researchers. My collaborators and I organized a<br \/>\n\tdata-centric AI workshop at NeurIPS, and I was really delighted at the number of authors and presenters that showed up.\n<\/p>\n<p><strong>You often talk about companies or institutions that have only a small amount of data to work with. How can data-centric AI help them?<\/strong><\/p>\n<p><strong>Ng: <\/strong>You hear a lot about vision systems built with millions of images\u2014I once built a face recognition system using 350 million images. Architectures built for hundreds of millions of images don\u2019t work with only 50 images. But it turns out, if you have 50 really good examples, you can build something valuable, like a defect-inspection system. In many industries where giant data sets simply don\u2019t exist, I think the focus has to shift from big data to good data. Having 50 thoughtfully engineered examples can be sufficient to explain to the neural network what you want it to learn.\n<\/p>\n<p><strong>When you talk about training a model with just 50 images, does that really mean you\u2019re taking an existing model that was trained on a very large data set and fine-tuning it? Or do you mean a brand new model that\u2019s designed to learn only from that small data set?<\/strong><\/p>\n<p><strong>Ng: <\/strong>Let me describe what Landing AI does. When doing visual inspection for manufacturers, we often use our own flavor of RetinaNet. It is a pretrained model. Having said that, the pretraining is a small piece of the puzzle. What\u2019s a bigger piece of the puzzle is providing tools that enable the manufacturer to pick the right set of images [to use for fine-tuning] and label them in a consistent way. There\u2019s a very practical problem we\u2019ve seen spanning vision, NLP, and speech, where even human annotators don\u2019t agree on the appropriate label. For big data applications, the common response has been: If the data is noisy, let\u2019s just get a lot of data and the algorithm will average over it. But if you can develop tools that flag where the data\u2019s inconsistent and give you a very targeted way to improve the consistency of the data, that turns out to be a more efficient way to get a high-performing system.\n<\/p>\n<p class=\"pull-quote\">\n\t\u201cCollecting more data often helps, but if you try to collect more data for everything, that can be a very expensive activity.\u201d<br \/>\u2014Andrew Ng\n<\/p>\n<p>\n\tFor example, if you have 10,000 images where 30 images are of one class, and those 30 images are labeled inconsistently, one of the things we do is build tools to draw your attention to the subset of data that\u2019s inconsistent. So you can very quickly relabel those images to be more consistent, and this leads to improvement in performance.\n<\/p>\n<p><strong>Could this focus on high-quality data help with bias in data sets? If you\u2019re able to curate the data more before training?<\/strong><\/p>\n<p><strong>Ng:<\/strong> Very much so. Many researchers have pointed out that biased data is one factor among many leading to biased systems. There have been many thoughtful efforts to engineer the data. At the NeurIPS workshop, Olga Russakovsky gave a really nice talk on this. At the main NeurIPS conference, I also really enjoyed Mary Gray\u2019s presentation, which touched on how data-centric AI is one piece of the solution, but not the entire solution. New tools like Datasheets for Datasets also seem like an important piece of the puzzle.\n<\/p>\n<p>\n\tOne of the powerful tools that data-centric AI gives us is the ability to engineer a subset of the data. Imagine training a machine-learning system and finding that its performance is okay for most of the data set, but its performance is biased for just a subset of the data. If you try to change the whole neural network architecture to improve the performance on just that subset, it\u2019s quite difficult. But if you can engineer a subset of the data you can address the problem in a much more targeted way.\n<\/p>\n<p><strong>When you talk about engineering the data, what do you mean exactly?<\/strong><\/p>\n<p><strong>Ng: <\/strong>In AI, data cleaning is important, but the way the data has been cleaned has often been in very manual ways. In computer vision, someone may visualize images through a Jupyter notebook and maybe spot the problem, and maybe fix it. But I\u2019m excited about tools that allow you to have a very large data set, tools that draw your attention quickly and efficiently to the subset of data where, say, the labels are noisy. Or to quickly bring your attention to the one class among 100 classes where it would benefit you to collect more data. Collecting more data often helps, but if you try to collect more data for everything, that can be a very expensive activity.\n<\/p>\n<p>\n\tFor example, I once figured out that a speech-recognition system was performing poorly when there was car noise in the background. Knowing that allowed me to collect more data with car noise in the background, rather than trying to collect more data for everything, which would have been expensive and slow.\n<\/p>\n<p>Back to top<\/p>\n<p><strong>What about using synthetic data, is that often a good solution?<\/strong><\/p>\n<p><strong>Ng: <\/strong>I think synthetic data is an important tool in the tool chest of data-centric AI. At the NeurIPS workshop, Anima Anandkumar gave a great talk that touched on synthetic data. I think there are important uses of synthetic data that go beyond just being a preprocessing step for increasing the data set for a learning algorithm. I\u2019d love to see more tools to let developers use synthetic data generation as part of the closed loop of iterative machine learning development.\n<\/p>\n<p><strong>Do you mean that synthetic data would allow you to try the model on more data sets?<\/strong><\/p>\n<p><strong>Ng: <\/strong>Not really. Here\u2019s an example. Let\u2019s say you\u2019re trying to detect defects in a smartphone casing. There are many different types of defects on smartphones. It could be a scratch, a dent, pit marks, discoloration of the material, other types of blemishes. If you train the model and then find through error analysis that it\u2019s doing well overall but it\u2019s performing poorly on pit marks, then synthetic data generation allows you to address the problem in a more targeted way. You could generate more data just for the pit-mark category.\n<\/p>\n<p class=\"pull-quote\">\n\t\u201cIn the consumer software Internet, we could train a handful of machine-learning models to serve a billion users. In manufacturing, you might have 10,000 manufacturers building 10,000 custom AI models.\u201d<br \/>\u2014Andrew Ng\n<\/p>\n<p>\n\tSynthetic data generation is a very powerful tool, but there are many simpler tools that I will often try first. Such as data augmentation, improving labeling consistency, or just asking a factory to collect more data.\n<\/p>\n<p>Back to top<\/p>\n<p><strong>To make these issues more concrete, can you walk me through an example? When a company approaches Landing AI and says it has a problem with visual inspection, how do you onboard them and work toward deployment?<\/strong><\/p>\n<p><strong>Ng: <\/strong>When a customer approaches us we usually have a conversation about their inspection problem and look at a few images to verify that the problem is feasible with computer vision. Assuming it is, we ask them to upload the data to the LandingLens platform. We often advise them on the methodology of data-centric AI and help them label the data.\n<\/p>\n<p>\n\tOne of the foci of Landing AI is to empower manufacturing companies to do the machine learning work themselves. A lot of our work is making sure the software is fast and easy to use. Through the iterative process of machine learning development, we advise customers on things like how to train models on the platform, when and how to improve the labeling of data so the performance of the model improves. Our training and software supports them all the way through deploying the trained model to an edge device in the factory.\n<\/p>\n<p><strong>How do you deal with changing needs? If products change or lighting conditions change in the factory, can the model keep up?<\/strong><\/p>\n<p><strong>Ng:<\/strong> It varies by manufacturer. There is data drift in many contexts. But there are some manufacturers that have been running the same manufacturing line for 20 years now with few changes, so they don\u2019t expect changes in the next five years. Those stable environments make things easier. For other manufacturers, we provide tools to flag when there\u2019s a significant data-drift issue. I find it really important to empower manufacturing customers to correct data, retrain, and update the model. Because if something changes and it\u2019s 3 a.m. in the United States, I want them to be able to adapt their learning algorithm right away to maintain operations.\n<\/p>\n<p>\n\tIn the consumer software Internet, we could train a handful of machine-learning models to serve a billion users. In manufacturing, you might have 10,000 manufacturers building 10,000 custom AI models. The challenge is, how do you do that without Landing AI having to hire 10,000 machine learning specialists?\n<\/p>\n<p><strong>So you\u2019re saying that to make it scale, you have to empower customers to do a lot of the training and other work.<\/strong><\/p>\n<p><strong>Ng: <\/strong>Yes, exactly! This is an industry-wide problem in AI, not just in manufacturing. Look at health care. Every hospital has its own slightly different format for electronic health records. How can every hospital train its own custom AI model? Expecting every hospital\u2019s IT personnel to invent new neural-network architectures is unrealistic. The only way out of this dilemma is to build tools that empower the customers to build their own models by giving them tools to engineer the data and express their domain knowledge. That\u2019s what Landing AI is executing in computer vision, and the field of AI needs other teams to execute this in other domains.\n<\/p>\n<p><strong>Is there anything else you think it\u2019s important for people to understand about the work you\u2019re doing or the data-centric AI movement?<\/strong><\/p>\n<p><strong>Ng: <\/strong>In the last decade, the biggest shift in AI was a shift to deep learning. I think it\u2019s quite possible that in this decade the biggest shift will be to data-centric AI. With the maturity of today\u2019s neural network architectures, I think for a lot of the practical applications the bottleneck will be whether we can efficiently get the data we need to develop systems that work well. The data-centric AI movement has tremendous energy and momentum across the whole community. I hope more researchers and developers will jump in and work on it.\n<\/p>\n<p>Back to top<\/p>\n<p><em>This article appears in the April 2022 print issue as \u201cAndrew Ng, AI Minimalist<\/em><em>.\u201d<\/em><\/p>\n<div class=\"around-the-web\">\n<p>From Your Site Articles<\/p>\n<p>Related Articles Around the Web<\/p>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Andrew Ng has serious street cred in artificial intelligence. He pioneered the use of graphics processing units (GPUs) to train deep learning models in the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4336,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/spectrum.ieee.org\/media-library\/andrew-ng-listens-during-the-power-of-data-sooner-than-you-think-global-technology-conference-in-brooklyn-new-york-on-wednes.jpg?id=29206806&width=980","fifu_image_alt":"","footnotes":""},"categories":[1],"tags":[3525,3524,3523,3526],"class_list":["post-4335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rj","tag-andrew-ng","tag-artificial-intelligence","tag-deep-learning","tag-type-cover"],"_links":{"self":[{"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=\/wp\/v2\/posts\/4335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4335"}],"version-history":[{"count":0,"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=\/wp\/v2\/posts\/4335\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=\/wp\/v2\/media\/4336"}],"wp:attachment":[{"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rjbarrett.redirectme.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}