Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Effective Learning: The Future of AI

DZone's Guide to

Effective Learning: The Future of AI

Walk through the challenges that are the main roadblocks for developing a real-world solution using artificial intelligence and see how effective learning can help.

· AI Zone
Free Resource

Insight for I&O leaders on deploying AIOps platforms to enhance performance monitoring today. Read the Guide.

There is certainly no doubt that the ultimate future of AI is to reach and surpass human intelligence. But this is a far-fetched feat to achieve. Even the most optimistic ones among us bet that human-level AI (AGI or ASI) to be as far as 10-15 years from now with skeptics even willing to bet that it is going to take centuries, if even possible. Well, this is not what the post is about (you should rather read this post if you are interested in learning about super-intelligence). Here, we are going to talk about a more tangible, closer future and discuss the emerging and potent AI algorithms and techniques which, in our opinion, are going to shape the near future of AI.

AI has started bettering humans in a few selected and specific tasks — for example, beating doctors at diagnosing skin cancer and defeating Go players at the world championship. But the same systems and models will fail in performing the tasks different from the ones they were trained to solve. This is why, in the long run, a generally intelligent system that performs a set of tasks efficiently without the need of reassessment is dubbed as future of AI. But in the near future of AI, way before the AGI comes up, how will scientists possibly make AI-powered algorithm overcome the problems they face today to come out of labs and become everyday usage objects?

When you look around, AI is winning one castle at a time (read our posts on how AI is outpacing humans — part one and part two). What could possibly go wrong in such a win-win game? Humans are producing more and more data (which is the fodder that AI consumes) with time and our hardware capabilities are getting better as well. After all, data and better computation are the reasons deep learning revolution started in 2012 right? The truth is that faster than the growth of data and computation is the growth of human expectations. Data scientists would have to think of solutions beyond what exists right now to solve real-world problems. For example, image classification as most people would think is scientifically a solved problem (if we resist the urge to say 100% accuracy or GTFO). We can classify images (let’s say into cat images or dog images) matching human capacity using AI. But can this be used for real-world use cases already? Can AI deliver a solution for more practical problems humans are facing? In some cases, yes, but in a lot of cases, we are not there yet.

We’ll walk you through the challenges which are the main roadblocks for developing a real-world solution using AI. Let’s say you want to classify images of cats and dogs. We’ll be using this example throughout the post.

Future of AI Catdog

Our example algorithm: Classifying the images of cats and dogs.

The graphic below summarizes the challenges:

Future of AI roadblocks

Challenges involved in developing a real-world AI.

Let's discuss these challenges in detail.

Learning with less data:

  • The training data that most successful deep learning algorithms consume requires it to be labeled according to the content/feature it contains. This process is called annotation.
  • The algorithms cannot use the naturally found data around you. Annotation of a few hundred (or a few thousand data points) is easy, but our human level image classification algorithm took a million annotated images to learn well.
  • So the question is, whether annotating a million images is possible? If not, then how can AI scale with a lesser quantity of annotated data?

Solving diverse real-world problems:

  • While datasets are fixed, real-world usage is more diverse (say, for example, an algorithm trained on colored images might fail badly on greyscale images unlike humans).
  • While we have improved the Computer Vision algorithms to detect objects to match humans. But as mentioned earlier, these algorithms solve a very specific problem as compared to human intelligence which is far more generic in many senses.
  • Our example AI algorithm, which classifies cats and dogs, will not able to identify a rare dog species if not fed with images of that species.

Adjusting the incremental data:

  • Another major challenge is incremental data. In our example, if we are trying to recognize cats and dogs we might train our AI for a number of cat and dog images of different species while we first deploy. But on the discovery of a new species altogether, we need to train the algorithm to recognize “Kotpies” along with the previous species.
  • While the new species might be more similar to others than we think and can be easily trained to adapt the algorithm on, there are points where this is harder and requires complete re-training and re-assessment.
  • The question is can we make the AI at least adaptable to these small changes?

To make AI immediately usable, the idea is to solve the aforementioned challenges by a set of approaches called effective learning (please note that it is not an official term, I am just making it up to avoid writing meta-learning, transfer learning, few-shot learning, adversarial learning, and multi-task learning every time). We at ParallelDots are now using these approaches to solve narrow problems with AI, winning small battles while gearing up for more comprehensive AI to conquer bigger wars. Let us introduce you to these techniques one at a time.

Noticeably, most of these techniques of Effective Learning are not something new. They just are seeing a resurgence now. SVM (Support Vector Machines) researchers have been using these techniques for a lot of time. Adversarial Learning, on the other hand, is something came out of Goodfellow’s recent work in GANs and Neural Reasoning is a new set of techniques for which datasets have become available very recently. Let’s deep dive into how these techniques are going to help in shaping the future of AI.

Transfer Learning

As the name suggests, the learning is transferred from one task to the other within the same algorithm in Transfer Learning. Algorithms trained on one task (source task) with larger dataset can be transferred with or without modification as a part of algorithm trying to learn a different task (target task) on a (relatively) smaller dataset.

Future of AI Transfer Learning

Traditional Learning vs Transfer Learning. Credits: Credits: IEEE Computer Society

Some Examples

Using parameters of an image classification algorithm as a feature extractor in different tasks like object detection is a simple application of transfer learning. In contrast, it can also be used to perform complex tasks. The algorithm Google developed to classify diabetic retinopathy better than doctors just sometime back was made using Transfer Learning. Surprisingly, the diabetic retinopathy detector was actually a real world image classifier (dog/cat image classifier) Transfer Learning to classify eye scans.

You will find data scientists calling such transferred parts of neural networks from source to target task as pre-trained networks in deep learning literature. Fine Tuning is when errors of target task are mildly backpropagated into the pre-trained net instead of using the pre-trained network unmodified. A good technical introduction to transfer learning in computer vision can be seen here. This simple concept of transfer learning is very important in our set of effective learning methodologies.

Multi-Task Learning

In multi-task learning, multiple learning tasks are solved at the same time, while exploiting commonalities and differences across tasks. It is surprising, but sometimes learning two or more tasks together (also called main task and auxiliary tasks) can make results better for the tasks. Please note that not every pair or triplet or quartet of tasks can be considered auxiliary. But when it works, it is a free increment in accuracy.

Future of AI Multi-transfer Learning

Performing three tasks with MTL. Credits: Sebastian Ruder

Some Examples

For example, at ParallelDots, our Sentiment, Intent and Emotion Detection classifiers were trained as Multi-Task Learning which increased their accuracy compared to if we trained them separately. The best Semantic Role Labelling and POS tagging system in NLP we know is a Multi-Task Learning System, so is one of the best systems for semantic and instance segmentation in Computer Vision. Google came up with multimodal multi-task learners (one model to rule them all) that can learn from both vision and text datasets in the same shot

A very important aspect of multi-task learning that is seen in real-world applications is where training any task to become bulletproof, we need to respect many domains data is coming from (also called domain adaptation). An example of our cat and dog use cases will be an algorithm that can recognize images of different sources (say VGA cameras and HD cameras or even infrared cameras). In such cases an auxiliary loss of domain classification (where the images came in from) can be added to any task and then the machine learns such that the algorithm keeps getting better at the main task(classifying images into cat or dog images), but purposely getting worse at the auxiliary task (this is done by backpropagating the reverse error gradient from the domain classification task). The idea is that the algorithm learns discriminative features for the main task, but forgets features that differentiate domains and this would make it better. Multi-Task Learning and its Domain Adaption cousins are one of the most successful Effective Learning techniques we know of and have a big role to play in shaping the future of AI.

Adversarial Learning

Adversarial learning as a field evolved from the research work of Ian Goodfellow. While the most popular applications of Adversarial Learning is no doubt generative adversarial networks (GANs) which can be used to generate stunning images, there are multiple other ways this set of techniques. Typically this game theory inspired technique has two algorithms a generator and a disriminator, whose aim is to fool each other while they are training. The generator can be used to generate new novel images as we discussed but can also generate representations of any other data to hide details from discriminator. The latter is why this concept is of so much interest to us.

Future of AI adversarial

Generative Adversarial Networks. Credits: O’Reilly

Some Examples

This is a new field and the image generation capacity is probably what most interested people like astronomers focus on. But we believe this will evolve newer use cases too as we tell later.

The domain adaptation game can be bettered using the GAN loss. The auxiliary loss here is a GAN system instead of pure domain classification, where a discriminator tries to classify which domain the data came from and a generator component tries to fool it by presenting random noise as data. In our experience, this works better than plain domain adaptation (which is also more erratic to code).

Few-Shot Learning

Few-shot learning is a study of techniques which make deep learning (or any machine learning algorithm) algorithms learn with less number of examples as compared to what a traditional algorithm would do. One Shot Learning is basically learning with one example of a category, inductively k-shot learning means learning with k examples of each category.

Future of AI one shot

One-shot learning using few examples of a class. Credits: Google DeepMind

Some Examples

Few-shot learning as a field is seeing an influx of papers in all major Deep Learning conferences and there are now specific datasets to benchmark results on, just like MNIST and CIFAR are for normal machine learning. One-shot learning is seeing a number of applications in certain image classification tasks such as feature detection and representation.

There are multiple methods that are used for few-shot learning, including transfer learning, multi-task learning as well as meta-learning as all or part of the algorithm. There are other ways, like having clever loss function, using dynamic architectures, or using optimization hacks. Zero-shot learning, a class of algorithms which claim to predict answers for categories that the algorithm has not even seen, are basically algorithms that can scale with a new type of data.

Meta-Learning

Meta-learning is exactly what it sounds like, an algorithm that trains such that, on seeing a dataset, it yields a new machine learning predictor for that particular dataset. The definition is very futuristic if you give it a first glance. You say, “Whoa! That’s what a data scientist does!” and it is automating the “sexiest job of 21st century,” and in some senses, meta-learners have started to do that (refer this blog post from Google and this research paper).

Future of AI Meta Learning

Example meta-learning set-up for few-shot image classification. Credits: Ravi et.al

Some Examples

Meta-learning has become a hot topic in Deep Learning recently, with a lot of research papers coming out, most commonly using the technique for hyperparameter and neural network optimization, finding good network architectures, Few-Shot image recognition, and fast reinforcement learning. You can find a more comprehensive article on use cases here.

Some people refer to this full automation of deciding both parameters and hyperparameters like network architecture as autoML and you might find people referring to meta-learning and AutoML as different fields. Despite all the hype around them, the truth is that Meta Learners are still algorithms and pathways to scale Machine Learning with data’s complexity and variety going up.

Most meta-learning papers are clever hacks, which according to Wikipedia have following properties:

  • The system must include a learning subsystem, which adapts with experience.
  • Experience is gained by exploiting meta-knowledge extracted either in a previous learning episode on a single dataset or from different domains or problems.
  • Learning bias must be chosen dynamically.

The subsystem basically is a setup that adapts when meta-data of a domain (or an entirely new domain) is introduced to it. This metadata can tell about increasing number of classes, complexity, change in colors and textures and objects (in images), styles, language patterns (natural language) and other similar features. Check out some super cool papers here: meta-learning shared hierarchies and meta-learning using temporal convolutions. You can also build few-shot or zero-shot algorithms using meta-learning architectures. Meta-learning is one of the most promising techniques which will help in shaping the future of AI.

Neural Reasoning

Neural reasoning is next big thing in image classification problems. Neural reasoning is a step above pattern recognition where algorithms are moving beyond the idea of simply identifying and classifying text or images. Neural reasoning is solving more generic questions in text analytics or visual analytics. For example, the image below represents a set of questions neural reasoning can answer from an image.

Future of AI reasoning

Example Neural Reasoning questions. Credits: CLEVR

This new set of techniques is coming up after the release of Facebook’s bAbi dataset or the recent CLEVR dataset. The techniques coming up to decipher relations and not just patterns have immense potential to solve not just Neural Reasoning but also multiple other hard problems including few-shot learning problems.

Now that we know what are the techniques, let us go back and see how they solve the base problems we started with. The table below gives the snapshot of the capabilities of effective learning techniques to tackle the challenges:

Effective Learning Table

Capabilities of effective learning techniques

  • All the techniques mentioned above help solve training with a lesser amount of data in some way or the other. While meta-learning would give architectures that would just mold with data, transfer learning is making knowledge from some other domain useful to compensate for fewer data. Few-shot learning is dedicated to the problem as a scientific discipline. Adversarial Learning can help enhance the datasets.
  • Domain Adaptation (a type of multi-task learning), Adversarial learning and (sometimes) meta-learning architectures help solve problems arising from data diversity.
  • Meta-learning and few-shot learning help solve problems of incremental data.
  • Neural reasoning algorithms have immense potential to solve real-world problems when incorporated as meta-learners or few-shot learners.

Please note that these effective learning techniques are not new deep learning/machine learning techniques, but augment the existing techniques as hacks making them more bang for the buck. Hence, you will still see our regular tools such as convolutional neural networks and LSTMs in action, but with the added spices. These effective learning techniques which work with fewer data and performs many tasks at a go can help in easier production and commercialization of AI-powered products and services. At ParallelDots, we are recognizing the power of efficient learning and incorporating it as one of the main features of our research philosophy.

TrueSight is an AIOps platform, powered by machine learning and analytics, that elevates IT operations to address multi-cloud complexity and the speed of digital transformation.

Topics:
ai ,machine learning ,deep learning ,effective learning ,tutorial

Published at DZone with permission of Parth Shrivastava. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}