International Master in Computer Vision

Total Page:16

File Type:pdf, Size:1020Kb

International Master in Computer Vision International Master in Computer Vision Fundamentals of machine learning for computer vision Eva Cernadas Contents Machine learning theory (Dr. Jaime Cardoso) Linear regression and optimization (Dr. Jaime Cardoso) Clustering Model selection and evaluation Classical classification models Artificial neural networks Support vector machines (SVM) Ensembles: bagging, boosting and random forest Artificial Neural Networks Eva Cernadas 2 Artificial neural networks ● ANN: Artificial Neural Networks ● Neural network: combination of local processing units (neurons) ● Neuron: simple processing of various inputs and one output. ● Input connections with weights for each input. ● The output is detemined by activation functions from the inputs and weights. ● The weights are persistent: they are the memory of the neural net. ● The neurons are grouped in layers: multi-layers networks: input, hidden (one or various) and output layers. ● The weights are calculated to approximate n-dimensional functions. Artificial Neural Networks Eva Cernadas 3 Neural network ● The term ANN are normally used to multi-layer perceptron (MLP). ● Supervised training: calculate the weights using input patterns and desired outputs. ● In the test: the pattern propagate through the net to calculate the output. ● There are supervised and unsupervised neural networks. Artificial Neural Networks Eva Cernadas 4 Perceptron (I) ● One neuron with n inputs and one output, binary activation function (0,1) (for example, 2-class classification problems): x 1 Step activation function . w . 1 . n . w i z 1 t≥Γ xi Σ . z(x)=f wi xi f (t)= . ∑ . ( i=1 ) {0 t<Γ } wn xn ● Need a threshold Γ (for example Γ=0.5) to calculate the output (0 or 1). Varying the Γ value generate a ROC curve. ● Connection weights w1...wn : iteratively calculated Artificial Neural Networks Eva Cernadas 5 Perceptron (II) ● Gradient descend: minimize the difference between the desired output (y) and predicted (z), : learning speed w (t +1)=w(t)+μ( yi−zi)xi ,i=1,…, N Note that: yi-zi∈{0,1} N ● Repeat until ∑ y i z i = 0 . Converge only when the data i=1 are linearly separated. Artificial Neural Networks Eva Cernadas 6 Perceptron (III) ● Activation f derivable: sigmoid or hyperbolic tangent: Logistic sigmoid function: 0,1 1 f (t)=σ(t)= 1+e−at Hyperbolic tangent function: 1 e−at−eat f (t)=tanh at= eat +e−at Artificial Neural Networks Eva Cernadas 7 Perceptron (V) T ● Kernel perceptron: linear classification z = f ( w ϕ ( x ) + b ) in the multi-dimensional projected hidden space (f : step function): N N w=∑ ai yi ϕ(xi) b=∑ ai yi i=1 i=1 ● Inicially, ai=0, i=1..N; ai=ai+1 if yizi>0 until that N ∑ yi zi=0 i=1 Artificial Neural Networks Eva Cernadas 8 Multi-layer neural network (MLP) ● Each neuron is a linear classifier of the input space (hyperplane). ● Divide the space in two subspaces with outputs 0,1 (sigmoid function) or 1 (hiperbolic function). ● Joining various neurons into one layer, divide the space into regions with piecewise linear borders (surfaces). Artificial Neural Networks Eva Cernadas 9 Multi-layer Layer Perceptron (MLP) 1ª hidden (H-1)ª hidden ● Hidden layer: activation Input .... layer layer pattern Output sigmoidal/tanh layer (Hª) x1 1 1 . ● . 1 z Output layer: step (clasificación) x . 1 1 . ● . We need: training set, cost . x . I z n-1 . H M . function, and derivable activation . xn I1 IH-1 ● k wj : neuron weight j=1..Ik in layer k=1..H ● k k T k-1 k aij =(wj ) hi +bj , i=1..N (pattern), k=1..H (layer), j=1..Ik (neuron) ● k-1 hi : output of layer k-1 (Ik-1 values) for pattern xi ● k k k hi : output of layer k for pattern xi: hij =f(aij ) with j=1..Ik ● Yij =desired output to output neuron j and pattern xi Artificial Neural Networks Eva Cernadas 10 Backpropagation (I) ● Gradient descent: k ∂ J k ∂ J Δ w j=−μ k , Δ b j =−μ k , k=1,…, H ∂ w j ∂ b j N ● Mean squared error Ji : evaluate on output layer J=∑ J i for i pattern: i=1 I H H 2 1 H 2 |yi−hi | J i= ∑ ( yij−hij ) = 2 j=1 2 ● The derivative is: k k ∂ J i ∂ J i ∂ aij ∂ Ji ∂ J i ∂ aij k = k k , k = k k ∂ w j ∂ aij ∂ w j ∂ b j ∂ aij ∂b j Artificial Neural Networks Eva Cernadas 11 Backpropagation (II) k ∂ J i ● Define: δ ij ≡ k ∂ aij ∂ ak ∂ ak ● Thus: ij k−1 ij ak =(wk )Th k-1+bk k =hi , k =1 ij j i j ∂ w j ∂ b j ● So: N N k k k−1 k k Δ w j=−μ∑ δij hi ; Δ b j =−μ∑ δij i=1 i=1 Artificial Neural Networks Eva Cernadas 12 Backpropagation (III) ● For the output layer (k=H): H H H H H h k=f(a k) δij =( yij−hij )f '(aij )=εij f '(aij ) ij ij N k H H k−1 Δ w j=−μ∑ εij f '(aij )hij i=1 N k H H Δ b j=−μ∑ εij f '(aij ) i=1 ● For the layer k<H: I k+1 k+1 I k+1 k +1 k ∂ J i ∂ J i ∂ ail k +1 ∂ ail δij= k =∑ k+1 k =∑ δil k ∂ aij l=1 ∂ ail ∂ aij l=1 ∂ aij Artificial Neural Networks Eva Cernadas 13 Backpropagation (IV) ● k+1 k+1 T k k+1 k k Since ail =(wl ) hi +bl and hij =f(aij ), then: I k k+1 k+1 k+1 k k +1 ∂ ail k+1 k ail =∑ wlm f (aim)+bl k =wlj f '(aij) m=1 ∂ aij ● k k+1 So δij is a recursive function depending on δij and k+1 wl : I k+1 I k+1 k k +1 k+1 k k k+1 k +1 δij=∑ δil wlj f ' (aij)=f ' (aij)∑ δil wlj ,k=K−1,…,1 l=1 l=1 I k+1 k k+1 k +1 k k k ● δ =ε f ' (a ) Denoting ε ij = ∑ δ il w lj , obtain: ij ij ij l=1 ● The derivative is, respectively, f ’(t)=af(t)[1-f(t)] and f ’(t)=a[1-f 2(t)] for sigmoid and tanh activation functions. Artificial Neural Networks Eva Cernadas 14 Backpropagation (V) repeat # epoch loop for i=1:N ● k k for k=1:H # direct propagation Initial weights (wj , bj ) for j=1:Ik randomly low k k T k-1 k k k aij =(wj ) hi +bj ; hij =f(aij ) ● endfor Stop criterion: 1) J or gradient endfor of J lower than a threshold; 2) maximum of epochs for j=1:IH ε H=y -h H; δ H=ε H f ’(a H) ij ij ij ij ij ij ● Speed μ intermediate: avoid endfor slowness and oscilations for k=H-1:-1:1 # backpropagation I for j=1:I k +1 k k k +1 k+1 ● Fall into local minimum which εij= δil wlj ; δ k=ε k f ’(a k+1) ∑ ij ij ij has high J: select the best l=1 endfor among different initializations endfor endfor ● Update the weights pattern by for k=1:H # weights update pattern (online): it can avoid for j=1:Ik N N k k k−1 k k local minimums and converges Δ w j =−μ∑ δij hi ; Δb j=−μ∑ δij faster i=1 i=1 k k k k k k wj =wj +Δwj ; bj =bj +Δbj endfor endfor Bach processing until stop criterion Artificial Neural Networks Eva Cernadas 15 Enhacement over backpropagation (I) ● Preprocessing: inputs using 0 mean and the same variance as the activation range f(t). ● Symmetrical activation (tanh) instead of the sigmoid function. ● Moment (α ): inertia in the learning: N k k k k−1 Δ w j (t+1)=α Δ w j (t)−μ∑ δij hi i=1 k t=iteraction; α∈[0.7-0.95]; Δwj reduce aprox. in 1-α Artificial Neural Networks Eva Cernadas 16 Enhacement over backpropagation (II) ● RMSProp (root mean square propagation): use a second order moment instead of first order moment; η,β: hyper- parameters epoch=presentation of training set S =0;S =0 w b Use the squared for epoch=1:nepoch gradient to scale the learning speed. calculate Δw and Δb 2 2 Sw=βSw+(1-β)|Δw| ;Sb=βSb+(1-β)Δb ηΔ w ηΔ b w (t+1)=w(t)− ;b(t +1)=b(t)− ε+√Sw ε+√Sb endfor Artificial Neural Networks Eva Cernadas 17 Enhacement over backpropagation (III) ● Adaptive learning speed: μ(t=0)∈[0.03-0.1] – μ(t+1)=(1+εi)μ(t) if J(t+1)<J(t) – μ(t+1)=(1-εd)μ(t) and a=0 if J(t+1)>(1+εc)J(t), with εi=0.05, εd=0.3 e εc=0.04 ● Speed reduction: t=epoch; μ0,β,k: hyper-parameters μ k μ μ(t)= 0 μ(t)=0.95t μ μ(t)= 0 1+t β 0 √t Artificial Neural Networks Eva Cernadas 18 Enhacement over backpropagation (IV) ● Different speed for each weight: increase μ when the gradient of that weight has the same sign in two iteractions. ● Desired outputs yij corresponding with activation function (sigmoid or hyperbolic). ● If yij∈[0,1], they can be seen as probabilities and cross entropy can be use as cost function: N I H H H J=−∑∑ [ yij ln hij +(1− yij)ln(1−hij )] i=1 j=1 Artificial Neural Networks Eva Cernadas 19 Enhacement over backpropagation (V) ● Karhunen-Loewe divergence or relative entropy, using softmax activations for the output, can also be considered as cost function: H aij N I H H H e hij hij = I H J=−∑∑ yij ln H ail i=1 j=1 yij ∑ e l=1 ● The number H of layers and neurons Ik in each layer k=1..H must be decided: tunned hyper-parameters.
Recommended publications
  • Designing Algorithms for Machine Learning and Data Mining
    Designing Algorithms for Machine Learning and Data Mining Antoine Cornuéjols and Christel Vrain Abstract Designing Machine Learning algorithms implies to answer three main questions: First, what is the space H of hypotheses or models of the data that the algorithm considers? Second, what is the inductive criterion used to assess the merit of a hypothesis given the data? Third, given the space H and the inductive crite- rion, how is the exploration of H carried on in order to find a as good as possible hypothesis?Anylearningalgorithmcanbeanalyzedalongthesethreequestions.This chapter focusses primarily on unsupervised learning, on one hand, and supervised learning, on the other hand. For each, the foremost problems are described as well as the main existing approaches. In particular, the interplay between the structure that can be endowed over the hypothesis space and the optimisation techniques that can in consequence be used is underlined. We cover especially the major existing methods for clustering: prototype-based, generative-based, density-based, spectral based, hierarchical, and conceptual and visit the validation techniques available. For supervised learning, the generative and discriminative approaches are contrasted and awidevarietyoflinearmethodsinwhichweincludetheSupportVectorMachines and Boosting are presented. Multi-Layer neural networks and deep learning methods are discussed. Some additional methods are illustrated, and we describe other learn- ing problems including semi-supervised learning, active learning, online learning, transfer learning, learning to rank, learning recommendations, and identifying causal relationships. We conclude this survey by suggesting new directions for research. 1 Introduction Machine Learning is the science of, on one hand, discovering the fundamental laws that govern the act of learning and, on the other hand, designing machines that learn from experiences, in the same way as physics is both the science of uncovering the A.
    [Show full text]
  • Mistake Bounds for Binary Matrix Completion
    Mistake Bounds for Binary Matrix Completion Mark Herbster Stephen Pasteris University College London University College London Department of Computer Science Department of Computer Science London WC1E 6BT, UK London WC1E 6BT, UK [email protected] [email protected] Massimiliano Pontil Istituto Italiano di Tecnologia 16163 Genoa, Italy and University College London Department of Computer Science London WC1E 6BT, UK [email protected] Abstract We study the problem of completing a binary matrix in an online learning setting. On each trial we predict a matrix entry and then receive the true entry. We propose a Matrix Exponentiated Gradient algorithm [1] to solve this problem. We provide a mistake bound for the algorithm, which scales with the margin complexity [2, 3] of the underlying matrix. The bound suggests an interpretation where each row of the matrix is a prediction task over a finite set of objects, the columns. Using this we show that the algorithm makes a number of mistakes which is comparable up to a logarithmic factor to the number of mistakes made by the Kernel Perceptron with an optimal kernel in hindsight. We discuss applications of the algorithm to predicting as well as the best biclustering and to the problem of predicting the labeling of a graph without knowing the graph in advance. 1 Introduction We consider the problem of predicting online the entries in an m × n binary matrix U. We formulate this as the following game: nature queries an entry (i1; j1); the learner predicts y^1 2 {−1; 1g as the matrix entry; nature presents a label y1 = Ui1;j1 ; nature queries the entry (i2; j2); the learner predicts y^2; and so forth.
    [Show full text]
  • Kernel Methods and Factorization for Image and Video Analysis
    KERNEL METHODS AND FACTORIZATION FOR IMAGE AND VIDEO ANALYSIS Thesis submitted in partial fulfillment of the requirements for the degree of Master of Science (by Research) in Computer Science by Ranjeeth Dasineni 200507017 ranjith [email protected] International Institute of Information Technology Hyderabad, India November 2007 INTERNATIONAL INSTITUTE OF INFORMATION TECHNOLOGY Hyderabad, India CERTIFICATE It is certified that the work contained in this thesis, titled \Kernel Methods and Factorization for Image and Video Analysis" by Ranjeeth Dasineni, has been carried out under my supervision and is not submitted elsewhere for a degree. Date Advisor: Dr. C. V. Jawahar Copyright c Ranjeeth Dasineni, 2007 All Rights Reserved To IIIT Hyderabad, where I learnt all that I know of Computers and much of what I know of Life Acknowledgments I would like to thank Dr. C. V. Jawahar for introducing me to the fields of computer vision and machine learning. I gratefully acknowledge the motivation, technical and philosophical guidance that he has given me throughout my undergraduate and graduate education. His knowledge and valuable suggestions provided the foundation for the work presented in this thesis. I thank Dr P. J. Narayanan for providing an excellent research environment at CVIT, IIIT Hyderabad. His advice on research methodology helped me in facing the challenges of research. I am grateful to the GE Foundation and CVIT for funding my graduate education at IIIT Hyderabad. I am also grateful to fellow lab mates at CVIT and IIIT Hyderabad for their stimulating company during the past years. While working on this thesis, few researchers across the world lent their valuable time validate my work, check the correctness of my implementations, and provide critical suggestions.
    [Show full text]
  • COMS 4771 Perceptron and Kernelization
    COMS 4771 Perceptron and Kernelization Nakul Verma Last time… • Generative vs. Discriminative Classifiers • Nearest Neighbor (NN) classification • Optimality of k-NN • Coping with drawbacks of k-NN • Decision Trees • The notion of overfitting in machine learning A Closer Look Classification x O Knowing the boundary is enough for classification Linear Decision Boundary male data Height female data Weight Assume binary classification y= {-1,+1} (What happens in multi-class case?) Learning Linear Decision Boundaries g = decision boundary d=1 case: general: +1 if g(x) ≥ 0 f = linear classifier -1 if g(x) < 0 # of parameters to learn in Rd? Dealing with w0 = . bias homogeneous “lifting” The Linear Classifier popular nonlinearities non-linear threshold Σi wi xi+w0 linear sigmoid 1 x1 x2 … xd bias A basic computational unit in a neuron Can Be Combined to Make a Network … Amazing fact: Can approximate any smooth function! … x x … 1 x2 3 xd An artificial neural network How to Learn the Weights? Given labeled training data (bias included): Want: , which minimizes the training error, i.e. How do we minimize? • Cannot use the standard technique (take derivate and examine the stationary points). Why? Unfortunately: NP-hard to solve or even approximate! Finding Weights (Relaxed Assumptions) Can we approximate the weights if we make reasonable assumptions? What if the training data is linearly separable? Linear Separability Say there is a linear decision boundary which can perfectly separate the training data distance of the closest point to the boundary (margin γ ) Finding Weights Given: labeled training data S = Want to determine: is there a which satisfies (for all i) i.e., is the training data linearly separable? Since there are d+1 variables and |S| constraints, it is possible to solve efficiently it via a (constraint) optimization program.
    [Show full text]
  • Kernel Methods for Pattern Analysis
    This page intentionally left blank Kernel Methods for Pattern Analysis Pattern Analysis is the process of finding general relations in a set of data, and forms the core of many disciplines, from neural networks to so-called syn- tactical pattern recognition, from statistical pattern recognition to machine learning and data mining. Applications of pattern analysis range from bioin- formatics to document retrieval. The kernel methodology described here provides a powerful and unified framework for all of these disciplines, motivating algorithms that can act on general types of data (e.g. strings, vectors, text, etc.) and look for general types of relations (e.g. rankings, classifications, regressions, clusters, etc.). This book fulfils two major roles. Firstly it provides practitioners with a large toolkit of algorithms, kernels and solutions ready to be implemented, many given as Matlab code suitable for many pattern analysis tasks in fields such as bioinformatics, text analysis, and image analysis. Secondly it furnishes students and researchers with an easy introduction to the rapidly expanding field of kernel-based pattern analysis, demonstrating with examples how to handcraft an algorithm or a kernel for a new specific application, while covering the required conceptual and mathematical tools necessary to do so. The book is in three parts. The first provides the conceptual foundations of the field, both by giving an extended introductory example and by cov- ering the main theoretical underpinnings of the approach. The second part contains a number of kernel-based algorithms, from the simplest to sophis- ticated systems such as kernel partial least squares, canonical correlation analysis, support vector machines, principal components analysis, etc.
    [Show full text]
  • Fast Kernel Classifiers with Online and Active Learning
    Journal of Machine Learning Research (2005) to appear Submitted 3/05; Published 10?/05 Fast Kernel Classifiers with Online and Active Learning Antoine Bordes [email protected] NEC Laboratories America, 4 Independence Way, Princeton, NJ08540, USA, and Ecole Sup´erieure de Physique et Chimie Industrielles, 10 rue Vauquelin, 75231 Paris CEDEX 05, France. Seyda Ertekin [email protected] The Pennsylvania State University, University Park, PA 16802, USA Jason Weston [email protected] NEC Laboratories America, 4 Independence Way, Princeton, NJ08540, USA. L´eon Bottou [email protected] NEC Laboratories America, 4 Independence Way, Princeton, NJ08540, USA. Editor: Nello Cristianini Abstract Very high dimensional learning systems become theoretically possible when training ex- amples are abundant. The computing cost then becomes the limiting factor. Any efficient learning algorithm should at least pay a brief look at each example. But should all examples be given equal attention? This contribution proposes an empirical answer. We first presents an online SVM algorithm based on this premise. LASVM yields competitive misclassification rates after a single pass over the training examples, outspeeding state-of-the-art SVM solvers. Then we show how active example selection can yield faster training, higher accuracies, and simpler models, using only a fraction of the training example labels. 1. Introduction Electronic computers have vastly enhanced our ability to compute complicated statistical models. Both theory and practice have adapted to take into account the essential com- promise between the number of examples and the model capacity (Vapnik, 1998). Cheap, pervasive and networked computers are now enhancing our ability to collect observations to an even greater extent.
    [Show full text]
  • The Teaching Dimension of Kernel Perceptron
    The Teaching Dimension of Kernel Perceptron Akash Kumar Hanqi Zhang Adish Singla Yuxin Chen MPI-SWS University of Chicago MPI-SWS University of Chicago Abstract et al.(2020)). One of the most studied scenarios is the case of teaching a version-space learner (Goldman & Kearns, 1995; Anthony et al., 1995; Zilles et al., Algorithmic machine teaching has been stud- 2008; Doliwa et al., 2014; Chen et al., 2018; Mansouri ied under the linear setting where exact teach- et al., 2019; Kirkpatrick et al., 2019). Upon receiving ing is possible. However, little is known for a sequence of training examples from the teacher, a teaching nonlinear learners. Here, we estab- version-space learner maintains a set of hypotheses that lish the sample complexity of teaching, aka are consistent with the training examples, and outputs teaching dimension, for kernelized perceptrons a random hypothesis from this set. for different families of feature maps. As a warm-up, we show that the teaching complex- As a canonical example, consider teaching a 1- ity is Θ(d) for the exact teaching of linear dimensional binary threshold function fθ∗ (x) = d k 1 perceptrons in R , and Θ(d ) for kernel per- x θ∗ for x [0; 1]. For a learner with a finite (or f − g 2 i ceptron with a polynomial kernel of order k. countable infinite) version space, e.g., θ i=0;:::;n 2 f n g Furthermore, under certain smooth assump- where n Z+ (see Fig. 1a), a smallest training set i 2 i+1 i i+1 tions on the data distribution, we establish a is ; 0 ; ; 1 where θ∗ < ; thus the f n n g n ≤ n rigorous bound on the complexity for approxi- teaching dimension is 2.
    [Show full text]
  • Online Passive-Aggressive Algorithms on a Budget
    Online Passive-Aggressive Algorithms on a Budget Zhuang Wang Slobodan Vucetic Dept. of Computer and Information Sciences Dept. of Computer and Information Sciences Temple University, USA Temple University, USA [email protected] [email protected] Abstract 1 INTRODUCTION The introduction of Support Vector Machines (Cortes In this paper a kernel-based online learning and Vapnik, 1995) generated signi¯cant interest in ap- algorithm, which has both constant space plying the kernel methods for online learning. A large and update time, is proposed. The approach number of online algorithms (e.g. perceptron (Rosen- is based on the popular online Passive- blatt, 1958) and PA (Crammer et al., 2006)) can be Aggressive (PA) algorithm. When used in easily kernelized. The online kernel algorithms have conjunction with kernel function, the num- been popular because they are simple, can learn non- ber of support vectors in PA grows with- linear mappings, and could achieve state-of-the-art ac- out bounds when learning from noisy data curacies. Perhaps surprisingly, online kernel classi¯ers streams. This implies unlimited memory can place a heavy burden on computational resources. and ever increasing model update and pre- The main reason is that the number of support vectors diction time. To address this issue, the pro- that need to be stored as part of the prediction model posed budgeted PA algorithm maintains only grows without limit as the algorithm progresses. In ad- a ¯xed number of support vectors. By intro- dition to the potential of exceeding the physical mem- ducing an additional constraint to the origi- ory, this property also implies an unlimited growth in nal PA optimization problem, a closed-form model update and perdition time.
    [Show full text]
  • Mistake Bounds for Binary Matrix Completion
    Mistake Bounds for Binary Matrix Completion Mark Herbster Stephen Pasteris University College London University College London Department of Computer Science Department of Computer Science London WC1E 6BT, UK London WC1E 6BT, UK [email protected] [email protected] Massimiliano Pontil Istituto Italiano di Tecnologia 16163 Genoa, Italy and University College London Department of Computer Science London WC1E 6BT, UK [email protected] Abstract We study the problem of completing a binary matrix in an online learning setting. On each trial we predict a matrix entry and then receive the true entry. We propose a Matrix Exponentiated Gradient algorithm [1] to solve this problem. We provide a mistake bound for the algorithm, which scales with the margin complexity [2, 3] of the underlying matrix. The bound suggests an interpretation where each row of the matrix is a prediction task over a finite set of objects, the columns. Using this we show that the algorithm makes a number of mistakes which is comparable up to a logarithmic factor to the number of mistakes made by the Kernel Perceptron with an optimal kernel in hindsight. We discuss applications of the algorithm to predicting as well as the best biclustering and to the problem of predicting the labeling of a graph without knowing the graph in advance. 1 Introduction We consider the problem of predicting online the entries in an m × n binary matrix U. We formulate this as the following game: nature queries an entry (i1; j1); the learner predicts y^1 2 {−1; 1g as the matrix entry; nature presents a label y1 = Ui1;j1 ; nature queries the entry (i2; j2); the learner predicts y^2; and so forth.
    [Show full text]
  • Output Neuron
    COMPUTATIONAL INTELLIGENCE (CS) (INTRODUCTION TO MACHINE LEARNING) SS16 Lecture 4: • Neural Networks Perceptron Feedforward Neural Network Backpropagation algorithM HuMan-level intelligence (strong AI) • SF exaMple: Marvin the Paranoid Android • www.youtube.coM/watch?v=z9Yp6D1ASnI HuMan-level intelligence (strong AI) • Robots that exhibit coMplex behaviour, as skilful and flexible as huMans, capable of: • CoMMunicating in natural language • Reasoning • Representing knowledge • Planning • Learning • Consciousness • Self-awareness • EMotions.. • How to achieve that? Any idea? NEURAL NETWORKS MOTIVATION The brain • Enables us to do soMe reMarkable things such as: • learning froM experience • instant MeMory (experiences) search • face recognition (~100Ms) • adaptation to a new situation • being creative.. • The brain is a biological neural network (BNN): • extreMely coMplex and highly parallel systeM • consisting of 100 billions of neurons coMMunicating via 100 trillions of synapses (each neuron connected to 10000 other neurons on average) • MiMicking the brain could be the way to build an (huMan level) intelligent systeM! Artificial Neural Networks (ANN) • ANN are coMputational Models that Model the way brain works • Motivated and inspired by BNN, but still only siMple iMitation of BNN! • ANN MiMic huMan learning by changing the strength of siMulated neural connections on the basis of experience • What are the different types of ANNs? • What level of details is required? • How do we iMpleMent and siMulate theM? ARTIFICIAL NEURAL NETWORKS
    [Show full text]
  • A Review of Learning Planning Action Models Ankuj Arora, Humbert Fiorino, Damien Pellier, Marc Etivier, Sylvie Pesty
    A Review of Learning Planning Action Models Ankuj Arora, Humbert Fiorino, Damien Pellier, Marc Etivier, Sylvie Pesty To cite this version: Ankuj Arora, Humbert Fiorino, Damien Pellier, Marc Etivier, Sylvie Pesty. A Review of Learning Planning Action Models. Knowledge Engineering Review, Cambridge University Press (CUP), 2018, 33, 10.1017/S0269888918000188. hal-02010536 HAL Id: hal-02010536 https://hal.archives-ouvertes.fr/hal-02010536 Submitted on 7 Feb 2019 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. The Knowledge Engineering Review, Vol. 00:0, 1{24. c 2004, Cambridge University Press DOI: 10.1017/S000000000000000 Printed in the United Kingdom A Review of Learning Planning Action Models ANKUJ ARORA* HUMBERT FIORINO* DAMIEN PELLIER* MARC METIVIER**´ SYLVIE PESTY* *Univ. Grenoble Alpes, CNRS, Grenoble INP, LIG, 38000 Grenoble, France E-mail: fi[email protected] **Paris Descartes University, LIPADE, 45 rue des Saints-P´res75006 Paris, France E-mail: [email protected] Abstract Automated planning has been a continuous field of study since the 1960s, since the notion of accomplishing a task using an ordered set of actions resonates with almost every known activity domain.
    [Show full text]
  • Explaining RNN Predictions for Sentiment Classification
    2018 Fall CSCE 638 Course Project Explaining RNN Predictions for Sentiment Classification Ninghao Liu and Qingquan Song 2018-11-29 1 Why Recurrent Neural Network? Architectures Applications RNNs have made lots of progress in NLP domain. 2 Why Interpretation? Self-driving cars NNs are regarded as black box Medical diagnosis “Interpreting Machine Learning Models”. Medium.com, 2017. 3 Why Interpretation? Self-driving cars NNs are regarded as black box Decisions made by RNNs sometimes could be critical, interpretation can increase trust. Medical diagnosis “Interpreting Machine Learning Models”. Medium.com, 2017. 4 Target Models and Settings Target Models: Long-Short Time Memory & Gated Recurrent Unit Dataset: Stanford The corpus contains 11,855 sentences extracted from Sentiment Treebank movie reviews. [Train: 6920; Dev.: 872; Test: 1821] • Hidden Unit: 150 Prediction Accuracy • Learning Rate: 1e-3 • Training Epoch: 20 • Loss: Neg. Log-Loss 5 Developed Interpretation Methods Naive Explanation (NaiveExp): The response score to the t-th input word: Motivation: Utilize the prediction change on time stamp t. Drawback: Over-simplify the internal forgetting mechanism of RNN. Vanilla Gradient (VaGrad): Motivation: Post-hoc explanation using gradient, i.e., local prediction change w.r.t. the input. Drawback: (1) Easily affected by noise; (2) Does not distinguish between positive and negative contribution. 6 Developed Interpretation Methods Integrated Gradient (InteGrad): Denoising Gradient Times Embedding (EmbGrad): Directional (Polarized) Integrated
    [Show full text]