ML Club sessions
A Glimpse into the World of AI

Community session · Epoch, IIT Hyderabad · Aug 13, 2022

A brief introduction to all the domains in AI: computer vision, NLP, reinforcement learning and more.

Slide 1 of 79
1 / 79

A Glimpse into the World of AI

Community session · Epoch, IIT Hyderabad · Aug 13, 2022

A brief introduction to all the domains in AI: computer vision, NLP, reinforcement learning and more.

  1. A Glimpse into the World of Artificial Intelligence By Epoch Team, IIT Hyderabad
  2. We don’t do definitions, We do memes
  3. What is Artificial Intelligence? Artificial intelligence is the simulation of human intelligence processes by machines, especially computer systems. Some standard applications of AI are: Natural Language Processing (NLP) Computer Vision (CV)
  4. What is Machine Learning? Machine learning is a branch of artificial intelligence (AI) and computer science which focuses on the use of data and algorithms to imitate the way that humans learn, gradually improving its accuracy. “Machine Learning is the study of computer algorithms that improve automatically through experience.” - Tom Mitchell
  5. What is Data Science? Data science is the field of applying advanced analytics techniques and scientific principles to extract valuable information from data for business, decision-making, strategic planning and other uses.
  6. (image slide)
  7. Brief insight of these libraries Numpy - to work with arrays and vectors Pandas - to work with the dataset (.csv files) Matplotlib & Seaborn - for visualization Tensorflow - to create deep learning models
  8. (image slide)
  9. Why machine learning? Image Recognition - Google lens Medical Diagnostics - Medical image processing Stock Market - Stock price prediction Content Personalization - Netflix, Spotify, Youtube Traffic Prediction - Google Maps Speech Recognition - Virtual assistant like Alexa
  10. Type of Machine Learning Supervised Learning vs Unsupervised Learning Supervised learning trains a model on known input and output data so that it can predict future outputs whereas unsupervised learning finds hidden patterns or intrinsic structures in input data. Or in other words, supervised learning make predictions based on labeled training data & unsupervised learning itself identifies relationships between the unlabeled training data. Train/Test : The data set is splitted into two sets: a training set and a testing set. Say, 80% for training, and 20% for testing. The model is trained using the training set and tested using the testing set.
  11. How exactly does a model learn? Setting aside the mathematical jargon, a supervised model basically learns a function that maps the inputs X to the outputs Y. In supervised learning, we give the model a certain set of parameters, that it continuously tune, so that it can learn an appropriate function that does well on the input dataset.
  12. Loss function Loss function predicts the deviation of the predicted outcome from the actual result. It measures how well the machine learning algorithm models the training dataset. We convert the machine learning problem into an optimization problem, by defining the loss function and then gradually optimizing the algorithm so that the loss function is minimized. One of the common loss functions is mean squared error (MSE).
  13. Now, what is gradient descent… Gradient descent is an optimization algorithm/technique commonly used to train machine learning models. The key idea behind this algorithm is to take the fastest route towards the minimum of the function from current point to converge fast. So, we take repeated steps in the opposite direction of the gradient of the function as that is the steepest descent possible.
  14. Gradient descent 1. Compute the slope (gradient) that is the first-order derivative of the function at the current point 2. Move-in the opposite direction of the slope increase from the current point by the computed amount
  15. (image slide)
  16. Computer Vision - 101 No, it’s not about the webcam. Computer vision is a field of artificial intelligence (AI) that enables computers and systems to derive meaningful information from digital images, videos and other visual inputs — and take actions or make recommendations based on that information.
  17. (image slide)
  18. Classification - The Holy Grail One of the first tasks that was tackled “Computer Vision” involved simple Classification of Hand-written digits. Later on (after a lot of effort) the ImageNet dataset was created and it was being used for benchmarking models. There were many models working on it , each achieving only 40 -50 % accuracies at best. During 2012, Alex Krizhevsky invented the AlexNet (You may call this the advent of the real “Deep learning”, it smashed the competition by nearly 10.8 % difference in the top-5 error rate.)
  19. The ImageNet dataset
  20. Neural Networks You know the story, These Machine Learning Models were “inspired” from how the brain actually works. However we aren’t even close to actually achieving human performance yet.
  21. Structure of a Neural network
  22. Convolutional Neural Networks Sharing of parameters and the ability to learn deeper aspects of a particular image, like edges and even later, faces.
  23. A few Different Model Names that fly around
  24. ImageNet Performance charts over a few years
  25. A few “Deep” Architectures AlexNet - Highly optimized using GPU’s
  26. The RELU non-linearity really became popular after the AlexNet paper. GPU’s have the ability to perform computations in parallel with several cores, Think about Matrix multiplication, things could speed if each row and column vector dot products happen simultaneously. This difference starts to become apparent. When the number of parameters become huge (Deep Neural Networks). AlexNet had ~ 61M parameters ! : () It was nearly 4 times as fast compared to the CPU version. Why was AlexNet so damn good!
  27. Recognize the Celebs!
  28. Sike , Image generation using GAN’s All of These images are generated by Generative Adversarial Networks
  29. Semantic Segmentation The goal of Semantic Segmentation is to label every single pixel of an image with a particular class. This is used in Autonomous driving!
  30. Image Captioning Image captioning involves finding a “caption” that suits or describes a particular image, Microsoft COCO is the dataset that’s widely used. Okay? But how do we go about this ?
  31. Recursive Neural Networks
  32. The structure of a “Vanilla” RNN
  33. Character Level RNN’s
  34. Sequence to Sequence Sampling
  35. Doing random Stuff with RNN’s Since RNN’s work on sequenced data, you pretty much have the freedom to put any sort of sequenced data straight into the RNN’s. Including Shakespeare’s Sonnets, LaTeX Source code for a book on Algebraic Topology, or even the entire source code of Linux. :)
  36. The Sonnets
  37. Shakespeare-> RNN-> Output Courtesy: CS231N
  38. Algebraic Topology -> RNN -> Output Courtesy: CS231N (Stanford)
  39. Finally! Image Captioning with RNN’s
  40. Natural Language Processing Natural Language processing is the ability of a machine to interpret human language.
  41. Chatbot
  42. (image slide)
  43. Speech to Text
  44. Question Answering
  45. Spell Correction
  46. Machine Translation
  47. Closed Domain Question Answering
  48. Reinforcement Learning
  49. How did you learn to cycle
  50. How did you learn to cycle ● Not supervised learning
  51. How did you learn to cycle ● Not supervised learning ● Not unsupervised learning
  52. How did you learn to cycle ● Not supervised learning ● Not unsupervised learning ● Learning by Trial & Error
  53. (image slide)
  54. What is it?
  55. What is it? ● A policy defines the learning agent’s way of behaving at a given time
  56. What is it? ● A policy defines the learning agent’s way of behaving at a given time ● A reward signal defines the goal of a reinforcement learning problem
  57. What is it? ● A policy defines the learning agent’s way of behaving at a given time ● A reward signal defines the goal of a reinforcement learning problem ● A value function specifies what is good in the long run
  58. Reinforcement learning: An Example
  59. Courtesy: MIT 6.S091: Introduction to Deep Reinforcement Learning (Deep RL)
  60. (image slide)
  61. (image slide)
  62. (image slide)
  63. (image slide)
  64. (image slide)
  65. Conclusion Important parameters
  66. Conclusion Important parameters 1) Environment
  67. Conclusion Important parameters 1) Environment 2) Reward
  68. Applications
  69. Applications
  70. doi:10.1038/nature14236
  71. Alpha Zero & Alpha Go
  72. Why is this important?
  73. Why is this important? ● IBM Deep Blue vs Gary Kasparov
  74. Why is this important? ● IBM Deep Blue vs Gary Kasparov ● AlphaGo vs Lee Sedol. Is it any different?
  75. Why is this important? ● IBM Deep Blue vs Gary Kasparov ● AlphaGo vs Lee Sedol. Is it any different? ● Ability to replicate intuitive pattern recognition is a big deal
  76. Recent Progress in ML Computer Vision / Image Recognition ImageNet, CNNs, Autonomous driving Speech Recognition Voice assistants Language Models GPT-3, PaLM Game Playing / Deep Reinforcement Learning AlphaGo, AlphaZero Text-to-Image Models Dall-E, ImaGen
  77. How to approach Machine Learning? 1. Python/R and libraries like NumPy, SciPy, Matplotlib, Seaborn, Scikit-Learn, Pandas, TensorFlow, PyTorch 2. Mathematics for ML Probability & Statistics - Random variables, Expectations, Distributions Linear Algebra & Matrix Calculus - Gradients/Hessians, Eigenvalue/vector 1. Understand the internals of ML algorithms 2. Build ML applications to know which algorithms to use when 3. Can read some ML research papers Some good resources are mentioned at the last slide.
  78. Resources! 1. 3b1b Series on Neural Network 2. CS229 3. CS244D 4. CS231N 5. CS224N 6. Pattern Recognition and Machine Learning: Bishop
  79. Social Media Follow our social media handles for regular updates Instagra m Twitter YouTube WhatsAp p