On-device ML: Artificial Intelligence in your pocket
Priyanka Kulkarni21:592023
Няколкостотин мегабайта модел могат да погубят едно мобилно приложение
Типичният модел за дълбоко обучение заема няколкостотин мегабайта, а проучванията показват, че липсата на място и изтощаването на батерията са най-честите причини хората да деинсталират приложения. Екипите, които пренасят AI от облака на телефоните, трябва едновременно да спечелят по отношение на памет, скорост и сигурност, често на устройства от среден и нисък клас. Priyanka Kulkarni, Senior Machine Learning Engineer в Adobe, очертава терена: как да смалим, ускорим и защитим модел, който живее в джоба на клиента?
Научете стратегиите за компресия, ускоряване и водни знаци, които правят ML на устройството практически приложимо
Priyanka Kulkarni, Senior Machine Learning Engineer в Adobe, обяснява какво е нужно, за да се пренесат модели за дълбоко обучение от облачните сървъри на телефони и други edge устройства. Тя разглежда три предизвикателства (размер на модела, ефективност на модела и сигурност) и представя компресия, търсене на невронни архитектури, хардуерни ускорители, водни знаци в модели и федеративно обучение като начини да се справим с тях.
“Големият размер на приложението е смъртна присъда за мобилните устройства.”
“Затова поддържането на малък размер на мобилния модел и ниска латентност наистина не подлежи на компромис.”
What you will learn
Преценете ползите по отношение на разходи, латентност, свързаност и поверителност от изпълнението на модели на устройството вместо в облака.
Избирайте подходящи за мобилни устройства архитектури като EfficientNet, MobileNet или MobileViT и ги смалявайте чрез pruning, дестилация на знания и квантизация.
Използвайте търсене на невронни архитектури и мащабируеми мрежи от типа Once-for-All, за да покриете различни хардуерни среди, без всеки път да започвате отначало.
Диагностицирайте jank, причинен от натоварване на GPU, и адаптирайте слоевете на модела към хардуерни ускорители като XNNPACK или Apple Neural Engine.
Защитете интелектуалната собственост на внедрените модели чрез криптиране, обфускация, ограничаване на заявките и водни знаци в невронни мрежи.
Details
Level
Intermediate
Format
Talk
Technical depth
Practitioner
For
Mid-career, Senior individual contributor
Length
21:59
Published
June 2023
Questions this talk answers
Защо машинното обучение да се изпълнява на устройството, а не в облака?
Инференцията на устройството спестява разходи за центрове за данни и трафик и работи независимо от свързаността. Тя дава на потребителите резултати в реално време и запазва данните им поверителни, защото те никога не се изпращат или съхраняват на сървър.
Защо размерът на модела е толкова критично ограничение при мобилните устройства?
Типичният модел за дълбоко обучение е няколкостотин мегабайта, а големият размер на приложението е фатален за мобилните устройства, особено на развиващите се пазари, където преобладават телефоните от среден и нисък клас. Лекторката цитира проучвания, според които липсата на място и изтощаването на батерията са най-честите причини за деинсталиране.
Какво е jank и как екипите, работещи с ML на устройството, могат да го намалят?
Jank е накъсването на кадрите, което се появява, когато GPU едновременно рендерира потребителския интерфейс и изпълнява инференция на модела. Екипите могат да го профилират с инструментите за разработчици на iOS и Android, да адаптират слоевете към хардуерни ускорители и да разпределят изчисленията на слоевете между ускорителите.
Как една компания може да защити модел, след като е внедрен на устройството на потребителя?
Честите практики включват криптиране, обфускация и ограничаване на броя заявки, за да се възпрат атаките. Водните знаци в невронни мрежи добавят скрити сигнали за собственост, които не влияят на точността и са устойчиви на премахване.
Как би могъл да работи воден знак в езиков модел като ChatGPT?
Една предложена техника избира определени токени от случаен набор и леко ги предпочита при генерирането. Обикновените читатели не биха забелязали, но изследовател би могъл да проследи избора на токени и да докаже, че текстът е създаден от модела.
Защо размерът на приложението е смъртна присъда за мобилните устройства (48 s)
Защита на AI модели, които живеят на потребителските устройства (63 s)
Как би могъл да работи скрит воден знак в ChatGPT (43 s)
All right. I guess we can get started. Hello, everyone. Hope you're all doing well. And thank you for attending this session. I'm Priyanka Kulkarni, and I specialize in building neural networks for on-device deployments at Adobe. Today, I'm going to talk about building on-device machine learning solutions to create, and I'm going to talk about building on-device machine learning solutions to create new technologies.
An AI-powered future that is fast, reliable, and secure. It's no surprise that mobile has become a predominant surface for AI interactions. We all want machine learning-powered magic at our fingertips everywhere we go. You all have probably used some form of AI on your phones for work, for travel, for shopping, or simply because you're bored. And there's tremendous demand rising for apps like digital assistants or face recognition and augmented reality.
An AI-powered technology, where people are reaching for their phones to engage with AI daily. An AI-powered technology. This has led to a huge uptick in the mobile AI market, now worth billions of dollars and rising. Recent studies have shown that applications that have advertised their association with OpenAI or ChatGPT, have seen their revenues jump dramatically in the past few months, as consumer demand around these technologies have skyrocketed. As more and more apps are incorporating machine learning into their offerings, This intelligence is moving closer to the edge where the computations are locally rather than in the cloud.
So in today's talk, I'll touch upon why on-device machine learning is important and relevant today more than ever, understanding the risks and challenges that come with the fabric of mobile platforms, including the security ones, and strategies that we can adopt to push the boundaries of neural network deployment across edge surfaces. The typical state-of-the-art neural networks are so large and computationally expensive that they require huge data centers with clusters of CPUs and GPUs to be able to run them.
They are too big to fit on edge devices and expensive to even run inference. So add to this bandwidth costs of transferring the data from the user's devices to the cloud, and you can tell that all of this adds up really quickly. On-device machine learning means that you can save all of these costs. This is also great for customers because now they can enjoy the benefits of access everywhere, regardless of connectivity, get instantaneous or real-time results, and assure data privacy.
Nobody likes the delay when the data is being streamed to the cloud, processed over there, and then sent back. And we can skip this whole hassle with on-device models. And because the data doesn't have to be sent to the server or stored there, there are fewer opportunities for cyber criminals to exploit any vulnerabilities, which also helps to preserve the sanctity of the data.
Now, integrating machine learning on the edge is nothing new, but the explosion of ML models in the world around us poses an increasingly difficult challenge to fit all of these intelligent systems onto resource-constrained devices like our mobile phones, which have limited compute, battery, memory, storage. Add to this mix, the generative AI race. I'm guessing you all have seen or heard about the mania around ChatGPT, DALI, mid-journey, and their mind-boggling abilities to write essays or create art.
I mean, I've been hooked to those apps for too many hours. And as generative AI is booming, so are the costs of running these models. They are way too large by smartphone standards and cannot be just taken off the shelf and run on our phones. So you can guess what the first challenge with on-device machine learning is, the model size and capacity.
We need a model that's small and fast, yet can provide high accuracy on the intended task. A large app size is the death knell on mobile. This is especially so in emerging markets around the world, where mid to low range smartphones are the majority. So we can't have our machine learning models driving up the app sizes by a few hundred megabytes, which is a typical size of a deep learning model.
A smaller size of the model also means we have fewer parameters than usual for the model to learn the task effectively. And in addition to this, we need to invest in accelerating the model inference so that we can provide users with low latency. These challenges are highlighted by innumerable surveys that show that a lack of storage space or battery running apps are the most common reasons for mobile app uninstalls.
So keeping the mobile model size low and the latency low is really non-negotiable. Finding this trade off between model accuracy and latency has become key in research as well. For instance, this chart tells us the relationship between a model's accuracy and its latency as we scale up the size. Each color here represents a specific architecture. And from looking at this, we know that the purple architecture gives us a really big boost for accuracy for a comparatively small increase in latency.
So it must be a really efficient model. And so happens that this model is also named efficient net. So it seems like a really good candidate for on-device models. In the bubble chart on the right, the size of each bubble represents how many parameters each model has. Here we see that the older models called BGG nets are the biggest models here and were created with a staggeringly high number of parameters.
Over time, though, research has taken machine learning models towards the direction of using fewer parameters and fewer operations while maximizing accuracy. And this is evident from the concentration of the models towards the top left section of the chart compared to where the old BGG models had started out. So it's great news that literature and industry is taking notice of how models can be made smaller as well as more efficient, which bodes well for on-device ML.
Typically, we've seen so far that convolutional neural networks remain the dominant choice for mobile deployments, where a majority of the deep learning models on mobile devices were some variant of mobile net. Mobile net architectures were developed with the intention to address the resource bottleneck seen on mobile. But over the past couple of years, the landscape of deep learning has been completely revolutionized with the advent of transformer based models.
These models have several advantages over CNNs, including introduction of attention layers for better information mapping and learning, as well as nuanced understanding of language. Following this, there's also been an interest of adapting transformers for mobile. However, they have been far more challenging to convert and run on device as compared to CNNs because they have more complex layers, higher floating point ops, and also exhibit much higher memory usage.
In attempts to optimize transformer models, so far we have seen that we've achieved varying degrees of mobile friendliness. This has raised the question if we can design architectures that are as mobile friendly as continents, but as efficient and accurate as transformers. A number of hybrid architecture designs have been proposed for combining advantages of CNNs with transformers for maximum efficiency, and mobile VIT is one of them where local processing done in convolutions are replaced with global processing using transformers.
Now, the selection of model architecture is crucial, but we also need to optimize the model further by shrinking it as much as we can. For this, we can use model compression techniques. This domain has seen various techniques developed over time and is widely being used already in literature and industry. These include things like network pruning to get rid of redundant or less important neurons, knowledge distillation from a teacher model to a smaller student model, as well as quantization to lower precision values.
As effective as these techniques have been, they are not that easy to automate, and it involves a lot of manual cumbersome tweaking and tuning to squeeze out every bit of optimization we can get, which is indispensable and goes a long way for mobile deployments. To combat manual tuning of models, you may have heard about the rise in popularity of neural architecture search.
So this is the process of automating the design of neural networks, where you search amongst various combinations of layers to create an architecture for your model requiring minimal human intervention. This is a fantastic way to find an optimal and efficient model where we can search for architectures that would work great for mobile. But what happens when we have diverse deployment scenarios on the edge like mobile browser or web.
These all present different resources as well as limitations for deployment. So we could deploy the same model across all of them, but then we'd be limited by the most constrained environment and end up being wasteful or inefficient in the others. So why not use neural architecture search to find a model tuned for each specific hardware environment. So this is a great idea.
But as these environments increase and scale, instead of rerunning neural architecture searches each time, we would want to find an effective way of walking the accuracy and latency curve for these models so that we can have greater flexibility and velocity to market. There has been interesting research in this field of scalable architectures, one research group at MIT has published a solution called once for all that attempts to tackle this problem.
And what they've proposed is training a single giant network, which we can then sample for smaller specialized sub networks of different sizes and different capacity, and then deploy them in various scenarios and target hardware. Also, not to forget that scalable architectures are like once for all ensure we're heading into the next generation of AI responsibly, because then these searches are targeted and optimized, so they are far better for the environment than traditional neural architecture search engines.
The second challenge with on-device ML is model efficiency. Due to resource limited environments on edge devices, our model needs to maximize its efficiency to consume the least amount of resources it can. This could be compute or memory. The on-device hardware landscape is also very diverse, especially on Android, where there are so many different manufacturers and hardware makers, leading to a spectrum of diverse resource limitations across all devices.
On mobile, this resource limitation often results in a contention problem, which if not handled properly can result in a symptom observed called jank. Consider a scenario where the GPU is simultaneously being called upon for UI graphics rendering requests, as well as running inference on machine learning models. This is common with real-time or interactive ML features where a user could be scrolling on his or her phone while the machine learning model is running simultaneously in the background.
In this case, you would get an experience like you see on the left-hand side, where there are more stuttering frames during the scroll. And this is called jank. While the right side presents a smoother scrolling experience for the user. There are now a lot of mobile developer tools available on iOS and Android to help us profile as well as measure jank.
We can mitigate against it. The CPU and GPU are not the only resources available on mobile. There are diverse set of hardware accelerators available across all platforms. One example is the XNN pack on TensorFlow Lite, which is a highly optimized library that enables faster CPU performance, including speed up of quantized models. Likewise, on iOS, the Apple neural engine is a special type of processor unit that you can leverage to make your ML models really fast by accelerating operations like convolutions and matrix multiplies.
There are a lot of other companies besides Apple developing their own AI accelerator chips, and you might have heard of Google's sensor processing unit as well. Even with all of these diverse hardware accelerators, there's a possibility that your ML model may not be able to use all of them. Many common layers seen in machine learning models may not be supported.
So we need to tailor our models to make the layers compatible with the accelerators that we intend to use. We can also parallelize the inference by developing an intelligent system to delegate and distribute the load of computing different layers using different accelerators. And this becomes even more critical when we have to run multiple ML models in parallel where they're all contending for the same device resources.
The third challenge of on-device ML is security. A significant amount of time, costs, data, and resources go into the development of each deep learning model, and it's critical to protect its intellectual property. When we deploy a deep learning model to the edge or on-client devices, they are far more vulnerable there than when they're queried using APIs in the cloud.
Thinking about the cybersecurity aspect of model protection is crucial. There are a lot of common best practices to safeguarding your deep learning model, like encryption, obfuscation, as well as limiting the number of requests to curb the potential for adversarial attacks. There's also research being done for embedding ownership signals into deep learning models directly, called watermarking. So this is similar to the watermarking techniques used to protect creator rights for digital images, video, and audio, and it has been a really effective technique to prove the ownership, authenticity, or integrity of these creations.
Neural network watermarking is a bleeding edge area of research to incorporate IP protection into deep learning models. These techniques aim at embedding ownership signals by inserting watermarks or backdoors into models that are so well disguised that it's hard to detect them. Aside from acting as the ownership proof, they do not affect the accuracy of the model and exhibit no other behavior.
And lastly, the watermark also persists against adversarial attacks, which makes it difficult or impossible to remove it. There's been some exciting research in extending this domain for watermarking generative AI models too. Watermarking gen AI is imperative not only to protect intellectual property, but also to prevent potential future malicious uses of language models like plagiarism, misattribution, misuse, or abuse of the outputs.
Recently, OpenAI also announced that they are planning to stop ChatGPT users from cheating on their homework or making social media bots by watermarking outputs produced by their models so that you can have a trace back to identify that they originated from ChatGPT. There are also recent research papers that have proposed frameworks for watermarking proprietary language models and already proven that the watermark can be embedded with negligible impact on the text quality in the outputs.
There are other challenges and security risks of generative AI models that need to be addressed. One is their vulnerability to training data extraction attacks. There is a potential risk that these models leak details about the data on which they've been trained. This point was raised in a research paper where they showed that if one prompts the GPT-2 language model with a particular prefix, it auto-completes a long block of text that contains sensitive and personally identifiable information, including contact details and the physical address of a particular person whose information was included in the model's training data.
There have been a lot of exciting developments in the field of optimizing and scaling down generative AI models, which will help pave the way for eventual on-device deployment. We're already seeing that these generative language models of different sizes and capacities can accomplish a variety of different tasks. So, while the larger models can pass college level exams or the bar exam, the smaller models can still achieve the ability of reading comprehension and logical deduction.
This is a great sign and helps us understand how to fine tune these models for business specific tasks or use cases and how we can optimize them for on-device. There's also a lot of promising evidence of running large scale AI with fewer parameters. For instance, the models like stable LM and Meta's Lama model have only around a few billion parameters.
This sounds like a lot, but these are vastly optimized models compared to the GPT models, which have hundreds of billions of parameters and have no hope in the world of running on smartphones. More recently, Web LLM is a project that brings large language models and chatbots to web browsers. So, everything is run inside the browser without any server support and it also leverages Web GPU acceleration.
Recently, Squeezebits also claim that they have optimized image generation models from stable diffusion to be able to run it on an Android phone, which is just astonishing. And why stop at only inference for on-device ML? We can also train and update these models locally without the data ever leaving the user's devices. Models can be fine-tuned to achieve better flexibility as well as offer personalization.
This concept can then extend to federated learning, which marries the advantages of on-device training with cloud training. So, you get the privacy benefit and the scale of on-device learning by keeping the data local closer to the user. And you get the benefit of learning from diverse data across users by having the cloud aggregate many locally trained models.
I'm so excited to see the proliferation of AI based services around us and the ability of running these lightweight personalized models locally on our phones will help us unlock the full potential. So, thank you all for listening. And with that, I'm happy to take any questions. Please feel free to drop any questions in the Q&A chat pod as well, and I can get to them offline too.
Okay, so we have a question from Sandra. What could be an example of a watermark in chat GPT? So, that's a great question, Sandra. One of the language models behind all of these chat GPT and prior technologies have a proposed watermarking technique, which the company isn't currently using, but the architecture behind these language models involve the use of transformers.
Which are composed of blocks that leverage tokens. And an example of a watermark is to select specific tokens from random set and softly promote the use of those specific tokens when generating the output. So, these watermarks would not be visible to a layman when chat GPT produces certain outputs. But if I'm someone who's a legal authority who would want to then investigate and trace it back, I can run reverse engineering using the token selection to be able to uncover and prove that this watermark originated from chat GPT.
But if I'm just a general user who's just going through a paragraph produced by chat GPT, it would be sort of masked from me. I have another question from Deborah. Can you explain a bit about the on-device and consolidated data with an example? Sure. So, you can think of it as each of us having smaller localized models with fewer parameters that learns to give us specific types of responses.
So, I might be having slightly different tolerance for bias or outputs of a language model compared to someone else. So, that would be really important. So, I think it would be very important. It would be very important to reflect my interests, my ethics, my values. Whereas, the larger models would get an aggregated version of all of our phones to reflect what general customers, you know, the mean average of customers would expect.
So, that helps to keep data local to me and a model that's personalized to my beliefs and my interests while also updating the larger models on server that reflects the aggregate data across all of the users without infringing privacy. I hope that helps answer your question. Thank you. And I think we're out of time. Thank you all for attending this session.
I really appreciate it. And please feel free to connect with me. All right. Have a great day, everyone.
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
Какво е нужно, за да работи дълбоко обучение на телефон
Priyanka Kulkarni от Adobe разделя машинното обучение на устройството на три предизвикателства (размер, ефективност и сигурност) и техниките, които отговарят на всяко от тях.
Накратко
Изпълнението на AI на устройството вместо в облака намалява разходите за сървъри и трафик, премахва латентността и запазва поверителността на потребителските данни, но само ако моделът е малък, ефективен и защитен. Priyanka Kulkarni, Senior Machine Learning Engineer в Adobe, описва ML на устройството като триатлон от памет, скорост и поверителност и разглежда архитектурите, методите за компресия, хардуерните ускорители и техниките за водни знаци, които го правят възможно.
Основни изводи
Научете как да ускорите пътя от сървъра до мобилното устройство при внедряване на невронни мрежи за дълбоко обучение.
Разберете рисковете и предизвикателствата при внедряване на невронни мрежи на устройството.
Разберете последиците за сигурността от внедряването на невронни мрежи на устройството и кои решения и стратегии да приложите, за да защитите интелектуалната си собственост.
Разберете устройството на платформите за мобилно внедряване за Android и iOS.
Разширете границите на машинното обучение на мобилни устройства.
Защо AI напуска сървъра
Kulkarni започва с наблюдението, че мобилните устройства са станали основна среда за взаимодействие с AI, от дигитални асистенти до разпознаване на лица и добавена реалност. Най-съвременните невронни мрежи обаче са създадени за центрове за данни, пълни с CPU и GPU. Ако добавим и разходите за пренасяне на потребителските данни до облака и обратно, сметката бързо расте.
Машинното обучение на устройството премахва тези разходи и дава на потребителите нещо по-добро: достъп независимо от свързаността, резултати в реално време и по-добра поверителност. По думите ѝ: „Никой не обича забавянето, когато данните се изпращат към облака, обработват се там и после се връщат обратно.“ (2:38) Тъй като данните не трябва да се изпращат или съхраняват на сървър, възможностите за атакуващите също са по-малко.
Първо предизвикателство: размер и капацитет на модела
Телефоните имат ограничени изчислителна мощ, батерия, памет и място за съхранение, а бумът на генеративния AI само направи моделите по-големи. Kulkarni е категорична за последиците: „Големият размер на приложението е смъртна присъда за мобилните устройства.“ (3:50) Тя отбелязва, че типичният модел за дълбоко обучение е няколкостотин мегабайта и че това има най-голямо значение на развиващите се пазари, където телефоните от среден и нисък клас са мнозинство. Според цитираните от лекторката проучвания липсата на място и изтощаването на батерията са най-честите причини хората да деинсталират приложения. Нейният извод: „Затова поддържането на малък размер на мобилния модел и ниска латентност наистина не подлежи на компромис.“ (4:38)
Изборът на архитектура е първият лост. С помощта на графики от изследвания тя посочва EfficientNet като модел, който печели много точност срещу малко увеличение на латентността, и показва как областта се е отдалечила от VGG мрежите с огромен брой параметри. Досега вариантите на MobileNet доминират на мобилните устройства, а трансформърите носят attention слоеве и по-добро разбиране на езика, но са по-трудни за изпълнение на устройството. Хибридни решения като MobileViT се опитват да съчетаят най-доброто от двата свята.
Компресията е вторият лост: премахване (pruning) на излишни неврони, дестилиране на знания от голям модел учител в по-малък модел ученик и квантизация до по-ниска точност. Тъй като тази настройка е ръчна и тромава, тя набляга на търсенето на невронни архитектури, което автоматизира проектирането на мрежите. Когато моделът трябва да работи в няколко среди, например мобилна, браузър и уеб, един модел налага компромис: „Можем да внедрим един и същ модел във всички тях, но тогава ще сме ограничени от най-ограничената среда и ще бъдем разточителни или неефективни в останалите.“ (8:45) Тя описва Once-for-All, разработен от изследователска група в MIT, който обучава една голяма мрежа и извлича по-малки специализирани подмрежи за всяка целева платформа, подход, който според нея е и по-щадящ за околната среда от многократните търсения.
Второ предизвикателство: ефективност, jank и ускорители
Второто предизвикателство е да се извлече максимумът от оскъден и силно разнообразен хардуер, особено при многото производители на Android устройства. Когато GPU трябва едновременно да рендерира интерфейса и да изпълнява инференция, потребителите виждат накъсани кадри, известни като jank. Инструментите за разработчици на iOS и Android вече помагат на екипите да го профилират и измерват.
Kulkarni посочва хардуерни ускорители отвъд CPU и GPU: XNNPACK в TensorFlow Lite за по-бърза работа на CPU и за квантизирани модели, Apple Neural Engine за операции като конволюции и матрични умножения и Tensor Processing Unit на Google. Не всеки слой се поддържа навсякъде, затова „трябва да адаптираме моделите си, така че слоевете да са съвместими с ускорителите, които възнамеряваме да използваме.“ (12:21) Екипите могат също да изградят системи, които разпределят слоевете между ускорителите, което става критично, когато няколко модела се конкурират за едно и също устройство.
Трето предизвикателство: сигурност и водни знаци
Всеки модел представлява значително вложено време, данни и пари, а доставянето му до потребителските устройства го излага на риск. „Когато внедряваме модел за дълбоко обучение на edge или клиентски устройства, той е много по-уязвим там, отколкото когато към него се изпращат заявки чрез API в облака.“ (12:47) Стандартните защити включват криптиране, обфускация и ограничаване на заявките, за да се възпрат атаките.
След това тя се спира на водните знаци в невронни мрежи, авангардна област на изследване, при която в модела се вграждат скрити сигнали за собственост или задни вратички. Добрият воден знак не влияе на точността, не проявява друго поведение и устоява на опити за премахването му. Идеята се разширява и към генеративния AI, където би могла да помогне срещу плагиатство, погрешно приписване на авторство и злоупотреби. Тя споменава, че OpenAI обяви планове за водни знаци в резултатите на ChatGPT, както и изследване, показващо, че GPT-2 може да бъде подтикнат да разкрие лична информация от данните, с които е обучен. В сесията с въпроси тя обяснява една предложена техника: леко предпочитане на определени токени, избрани от случаен набор, невидимо за читателите, но проследимо от изследовател.
Генеративен AI и федеративно обучение на устройството
Kulkarni завършва с напредъка в смаляването на генеративните модели. Модели като StableLM и LLaMA на Meta имат няколко милиарда параметъра, в сравнение със стотици милиарди при GPT моделите; WebLLM изпълнява езикови модели в браузъра чрез WebGPU; а SqueezeBits твърди, че изпълнява генериране на изображения със Stable Diffusion на Android телефон. След това тя отива още по-далеч: „И защо да спираме само до инференцията при ML на устройството? Можем също да обучаваме и обновяваме тези модели локално, без данните изобщо да напускат устройствата на потребителите.“ (17:06) Федеративното обучение съчетава тази локална, поверителна персонализация с агрегиране в облака на много локално обучени модели, така че общият модел се учи от разнообразни потребители, без да събира техните данни.
Гледайте лекцията
„On-device ML: Artificial Intelligence in your pocket“ от Priyanka Kulkarni, 22 минути: https://www.womentech.net/video/device-ml-artificial-intelligence-in-your-pocket
За лектора
Priyanka Kulkarni е Senior Machine Learning Engineer в Adobe, където работи по иновации в AI от следващо поколение за мобилни устройства и създава невронни мрежи за внедряване на устройства и в edge среда. През последните пет години тя прилага дълбоко обучение в обучението, компресията, оптимизацията, защитата на интелектуалната собственост и мобилното внедряване на модели за анализ и разпознаване на изображения на документи и има магистърска степен от Carnegie Mellon University със специализация в мобилни и повсеместни изчисления.
Въпроси, на които отговаря лекцията
Защо машинното обучение да се изпълнява на устройството, а не в облака?
Защо размерът на модела е толкова критично ограничение при мобилните устройства?
Какво е jank и как екипите, работещи с ML на устройството, могат да го намалят?
Как една компания може да защити модел, след като е внедрен на устройството на потребителя?
Как би могъл да работи воден знак в езиков модел като ChatGPT?
Изготвено с помощта на AI въз основа на транскрипцията на лекцията. Предстои редакторски преглед.
Frameworks and ideas mentioned
Neural architecture search
Once-for-All
Network pruning
Knowledge distillation
Quantization
Neural network watermarking
Federated learning
Resources mentioned
TensorFlow Lite XNNPACK
Apple Neural Engine
Once-for-All (MIT)
WebLLM
Cite this talk
Priyanka Kulkarni. "On-device ML: Artificial Intelligence in your pocket." WomenTech Network, 2023. https://www.womentech.net/video/device-ml-artificial-intelligence-in-your-pocket