Steven C.H. Hoi. Methods and Applications. School of Computer Engineering Nanyang Technological University Singapore 4 May, 2013



Similar documents
Steven C.H. Hoi. School of Computer Engineering Nanyang Technological University Singapore

Online Learning Methods for Big Data Analytics

DUOL: A Double Updating Approach for Online Learning

Simple and efficient online algorithms for real world applications

Online Feature Selection for Mining Big Data

Steven C.H. Hoi School of Information Systems Singapore Management University

Table 1: Summary of the settings and parameters employed by the additive PA algorithm for classification, regression, and uniclass.

Online Learning for Big Data Analytics

Jubatus: An Open Source Platform for Distributed Online Machine Learning

Foundations of Machine Learning On-Line Learning. Mehryar Mohri Courant Institute and Google Research

Challenges of Cloud Scale Natural Language Processing

Support Vector Machines with Clustering for Training with Very Large Datasets

List of Publications by Claudio Gentile

Adaptive Online Gradient Descent

Artificial Neural Networks and Support Vector Machines. CS 486/686: Introduction to Artificial Intelligence

Large Scale Learning to Rank

Online Passive-Aggressive Algorithms on a Budget

Predict Influencers in the Social Network

The Scientific Data Mining Process

Introduction to Online Learning Theory

Support Vector Machine (SVM)

Linear Threshold Units

Parallel Data Mining. Team 2 Flash Coders Team Research Investigation Presentation 2. Foundations of Parallel Computing Oct 2014

Data Mining. Nonlinear Classification

PATTERN RECOGNITION AND MACHINE LEARNING CHAPTER 4: LINEAR MODELS FOR CLASSIFICATION

A Simple Introduction to Support Vector Machines

Lecture 2: The SVM classifier

Big Data - Lecture 1 Optimization reminders

Chapter 6. The stacking ensemble approach

The Artificial Prediction Market

Tensor Methods for Machine Learning, Computer Vision, and Computer Graphics

Statistical Machine Learning

Modelling, Extraction and Description of Intrinsic Cues of High Resolution Satellite Images: Independent Component Analysis based approaches

CS 2750 Machine Learning. Lecture 1. Machine Learning. CS 2750 Machine Learning.

Scalable Developments for Big Data Analytics in Remote Sensing

Support Vector Machines Explained

Linear smoother. ŷ = S y. where s ij = s ij (x) e.g. s ij = diag(l i (x)) To go the other way, you need to diagonalize S

Karthik Sridharan. 424 Gates Hall Ithaca, sridharan/ Contact Information

Semi-Supervised Support Vector Machines and Application to Spam Filtering

Social Media Mining. Data Mining Essentials

A Study Of Bagging And Boosting Approaches To Develop Meta-Classifier

An Overview of Knowledge Discovery Database and Data mining Techniques

Classification of Bad Accounts in Credit Card Industry

Supervised Learning (Big Data Analytics)

Machine Learning Logistic Regression

A General Framework for Mining Concept-Drifting Data Streams with Skewed Distributions

Classifying Large Data Sets Using SVMs with Hierarchical Clusters. Presented by :Limou Wang

Introduction to Data Mining

Ensemble Methods. Knowledge Discovery and Data Mining 2 (VU) ( ) Roman Kern. KTI, TU Graz

Acknowledgments. Data Mining with Regression. Data Mining Context. Overview. Colleagues

Introduction to Support Vector Machines. Colin Campbell, Bristol University

Online Semi-Supervised Learning

Scalable Machine Learning - or what to do with all that Big Data infrastructure

Statistical machine learning, high dimension and big data

Information Management course

Assessment. Presenter: Yupu Zhang, Guoliang Jin, Tuo Wang Computer Vision 2008 Fall

Data Mining Practical Machine Learning Tools and Techniques

Semi-Supervised Learning for Blog Classification

CLASSIFYING NETWORK TRAFFIC IN THE BIG DATA ERA

Constrained Classification of Large Imbalanced Data by Logistic Regression and Genetic Algorithm

Search Taxonomy. Web Search. Search Engine Optimization. Information Retrieval

MapReduce/Bigtable for Distributed Optimization

Learning is a very general term denoting the way in which agents:

Advanced Ensemble Strategies for Polynomial Models

Introduction to Machine Learning Lecture 1. Mehryar Mohri Courant Institute and Google Research

Azure Machine Learning, SQL Data Mining and R

Large-Scale Similarity and Distance Metric Learning

Stochastic Optimization for Big Data Analytics: Algorithms and Libraries

Data Mining - Evaluation of Classifiers

Making Sense of the Mayhem: Machine Learning and March Madness

MACHINE LEARNING IN HIGH ENERGY PHYSICS

STA 4273H: Statistical Machine Learning

1 Introduction. 2 Prediction with Expert Advice. Online Learning Lecture 09

How To Make A Credit Risk Model For A Bank Account

Big Data Analytics: Optimization and Randomization

Introduction to Machine Learning Using Python. Vikram Kamath

A Survey on Pre-processing and Post-processing Techniques in Data Mining

Clustering Big Data. Anil K. Jain. (with Radha Chitta and Rong Jin) Department of Computer Science Michigan State University November 29, 2012

Machine Learning. CUNY Graduate Center, Spring Professor Liang Huang.

KEITH LEHNERT AND ERIC FRIEDRICH

SVM Ensemble Model for Investment Prediction

CI6227: Data Mining. Lesson 11b: Ensemble Learning. Data Analytics Department, Institute for Infocomm Research, A*STAR, Singapore.

Unsupervised Data Mining (Clustering)

Online Passive-Aggressive Algorithms

Machine Learning Introduction

Recognizing Cats and Dogs with Shape and Appearance based Models. Group Member: Chu Wang, Landu Jiang

Ensemble Learning Better Predictions Through Diversity. Todd Holloway ETech 2008

Statistics Graduate Courses

Interactive Machine Learning. Maria-Florina Balcan

Transcription:

Methods and Applications Steven C.H. Hoi School of Computer Engineering Nanyang Technological University Singapore 4 May, 2013 http://libol.stevenhoi.org/

Acknowledgements Peilin Zhao Jialei Wang Rong Jin NTU NTU MSU PhD RA Coauthor Student Bin Li, NTU, PhD Student Hao Xia, NTU, PhD Student Pengcheng Wu, NTU, PhD Student Dayong Wang, NTU, PhD Student 05/04/2013 (Saturday) Online Learning - Steven Hoi 2

Agenda Introduction (25 min) Big Data Mining: Opportunities & Challenges Online Learning: What, Why, Where Online Learning Overview (5 min) Traditional Linear Online Learning (30 min) Non-traditional Linear Online Learning (30 min) Kernel-based Online Learning (30 min) Online Multiple Kernel Learning (30 min) Discussions + Q&A (30 min) 05/04/2013 (Saturday) Online Learning - Steven Hoi 3

From http://visual.ly/big-data 05/04/2013 (Saturday) Online Learning - Steven Hoi 4

Big Data Mining: Opportunities 05/04/2013 (Saturday) Online Learning - Steven Hoi 5

Big Data Mining: Challenges Limited computational capacity & budget (CPU/RAM/DISK) Efficiency Volume Scalability Velocity data size in millions or even billions scale Adaptability Variety Capability of handling diverse information evolving dynamically 28/02/2013 (Thursday) Online Learning - Steven Hoi 6

What is Online Learning? Batch/Offline Learning vs. Learn a model from a batch of training data A test data set is used to validate the model Online Learning Learn a model incrementally from a sequence of instances Make the sequence of online predictions accurately Example: Online Classification Predictor Update 05/04/2013 (Saturday) Online Learning - Steven Hoi 7

Why Online Learning? Avoid re-training when adding new data High efficiency Excellent scalability Strong adaptability to changing environments Simple to understand Trivial to implement Easy to be parallelized Theoretical guarantee 05/04/2013 (Saturday) Online Learning - Steven Hoi 8

Where to apply Online Learning? Social Media Finance Online Learning Internet Security Multimedia Search Computer Vision 05/04/2013 (Saturday) Online Learning - Steven Hoi 9

Online Learning : Applications Social Media Finance Online Learning Internet Security Multimedia Search Computer Vision 05/04/2013 (Saturday) Online Learning - Steven Hoi 10

Online Learning for Social Media Online mining of social media streams Business intelligence applications Public emotion analytics Product sentiment detection Track brand sentiments 05/04/2013 (Saturday) Online Learning - Steven Hoi 11

Online Learning : Applications Social Media Finance Online Learning Internet Security Multimedia Search Computer Vision 05/04/2013 (Saturday) Online Learning - Steven Hoi 12

Online Learning for Internet Security Online Anomaly Detection (outlier/intrusion) Example Detection of fraud credit card transactions Network intrusion detection systems Spam email filtering, etc. 05/04/2013 (Saturday) Online Learning - Steven Hoi 13

Online Learning : Applications Social Media Finance Online Learning Internet Security Multimedia Search Computer Vision 05/04/2013 (Saturday) Online Learning - Steven Hoi 14

Online Learning for Computer Vision Video surveillance application by online learning Real-time object tracking Detect anomalous events from real-time video streams (Basharat et al. 2008) 05/04/2013 (Saturday) Online Learning - Steven Hoi 15

Online Learning : Applications Social Media Finance Online Learning Internet Security Multimedia Search Computer Vision 05/04/2013 (Saturday) Online Learning - Steven Hoi 16

Online Learning for Multimedia Search Web-scale Content-based Multimedia Retrieval Interactive Image/Video Search via online relevance feedback Collaborative Multimedia Search & Annotation Mining massive side info (e.g., search log data) incrementally Example: distance metric learning, online kernel learning, etc. 05/04/2013 (Saturday) Online Learning - Steven Hoi 17

Online Learning : Applications Social Media Finance Online Learning Internet Security Multimedia Search Computer Vision 05/04/2013 (Saturday) Online Learning - Steven Hoi 18

Online Learning for Finance On-line Portfolio Selection Sequential decisions of investing wealth among assets (Li et al. ML 12, ICML 12) 05/04/2013 (Saturday) Online Learning - Steven Hoi 19

Agenda Introduction (25 min) Big Data Mining: Opportunities & Challenges Online Learning: What, Why, Where Online Learning Overview (5 min) Traditional Linear Online Learning (30 min) Non-traditional Linear Online Learning (30 min) Kernel-based Online Learning (30 min) Online Multiple Kernel Learning (30 min) Discussions + Q&A (30 min) 05/04/2013 (Saturday) Online Learning - Steven Hoi 20

Online Learning: Overview Big Data Mining: topic coverage Data Mining Tasks Descriptive Predictive Clustering Association Rule Mining Sequence Pattern Mining Classification Outlier Detection Regression 05/04/2013 (Saturday) Online Learning - Steven Hoi 21

Online Learning: Overview Online Learning Online Learning with Partial Feedback Online Learning with Full Feedback Not covered in this tutorial Bandits ACML12 Tutorial: http://www.princeton.edu/~sbubeck/tutorial.html ICML Tutorial: https://sites.google.com/site/banditstutorial/ Prediction, Learning, and Games (Nicolo Cesa-Bianchi & Gabor Lugosi) Reinforcement learning http://chercheurs.lille.inria.fr/~ghavamza/icml2012-tutorial.html http://hunch.net/~jl/projects/rl/rltheorytutorial.pdf 05/04/2013 (Saturday) Online Learning - Steven Hoi 22

Online Learning: Overview First order OL Second order OL Sparse OL Linear Methods Online AUC Max. Cost-Sensitive OL Online Transfer Learning Traditional Non- Traditional Single Kernel Classification Regression Ranking Multiple Kernels Kernel OL Budget OL Non-Linear Methods Online MKL OMKC OMDL 05/04/2013 (Saturday) Online Learning - Steven Hoi 23

Notation 05/04/2013 (Saturday) Online Learning - Steven Hoi 24

Online Learning: Overview Linear Methods Traditional Non- Traditional Single Kernel Multiple Kernels Non-Linear Methods 05/04/2013 (Saturday) Online Learning - Steven Hoi 25

Traditional Linear Online Learning Online learning protocol for classification The following scenario is repeated indefinitely: The algorithm receives an unlabeled example The algorithm predicts a classification of this example; The algorithm is then told the correct answer The algorithm updates the classifier when appropriate Objective To minimize the mistake rate of online classification 05/04/2013 (Saturday) Online Learning - Steven Hoi 26

Perceptron Algorithm (Rosenblatt Frank, 1958) w 1 w 3 + w 2-05/04/2013 (Saturday) Online Learning - Steven Hoi 27

Traditional Linear Online Learning (cont ) First Order Learning methods Perceptron (Rosenblatt, Frank, 1958) Online Gradient Descent (Zinkevich et al., 2003) Passive Aggressive learning (Crammer et al., 2006) Others (including but not limited) MIRA: Margin Infused Relaxed Algorithm (Crammer and Singer, 2003) NORMA: Naive Online R-reg Minimization Algorithm (Kivinen et al., 2002) ROMMA: Relaxed Online Maximum Margin Algorithm (Li and Long, 2002) ALMA: A New Approximate Maximal Margin Classification Algorithm (Gentile, 2001) 05/04/2013 (Saturday) Online Learning - Steven Hoi 28

Online Gradient Descent Online Convex Optimization (Zinkevich et al., 2003) Consider a convex objective function where is a bounded convex set The update by Online Gradient Descent (OGD) or Stochastic Gradient Descent (SGD): where is called the learning rate 05/04/2013 (Saturday) Online Learning - Steven Hoi 29

Online Gradient Descent (OGD) algorithm Repeat from t=1,2, An unlabeled example arrives Make a prediction based on existing weights Observe the true class label Update the weights by the OGD rule: where is a learning rate 05/04/2013 (Saturday) Online Learning - Steven Hoi 30

Passive Aggressive Online Learning Passive Aggressive learning (Crammer et al., 2006) PA PA-I PA-II 05/04/2013 (Saturday) Online Learning - Steven Hoi 31

Passive Aggressive Online Learning Closed-form solutions can be derived: 05/04/2013 (Saturday) Online Learning - Steven Hoi 32

Traditional Linear Online Learning (cont ) First-Order methods Learn a linear weight vector (first order) of model Pros and Cons Simple and easy to implement Efficient and scalable for high-dimensional data Relatively slow convergence rate 05/04/2013 (Saturday) Online Learning - Steven Hoi 33

Second Order Online Learning methods Key idea Update the weight vector w by maintaining and exploring second order information in addition to the first order information Some representative methods SOP: Second order Perceptron (Cesa-Bianchi et al, 2005) CW: Confidence Weighted learning (Dredze et al, 2008) AROW: Adaptive Regularization of Weights (Crammer, 2009) SCW: Soft Confidence Weighted (SCW) (Wang et al, 2012) Others (but not limited) IELLIP:Online Learning by Ellipsoid Method (Yang et al., 2009) NHERD: Gaussian Herding (Crammer & Lee 2010) NAROW: New variant of AROW algorithm (Orabona & Crammer 2010) 05/04/2013 (Saturday) Online Learning - Steven Hoi 34

SOP: Second Order Perceptron SOP: Second order Perceptron (Cesa-Bianch et al. 2005) Whiten Perceptron (Not incremental!!) Correlation matrix Simply run a standard Perceptron for the following Online algorithm (an incremental variant of Whiten Perceptron) Augmented matrix: Correlation matrix: 05/04/2013 (Saturday) Online Learning - Steven Hoi 35

SOP: Second Order Perceptron SOP: Second order Perceptron (Cesa-Bianch et al. 2005) 05/04/2013 (Saturday) Online Learning - Steven Hoi 36

CW: Confidence Weighted learning CW: Confidence Weighted learning (Dredze et al. 2008) Draw a parameter vector The margin is viewed as a random variable: The probability of a correct prediction is Optimization of CW 05/04/2013 (Saturday) Online Learning - Steven Hoi 37

CW: Confidence Weighted learning can be written as is the cumulative function of the normal distribution. Lemma 1: The optimal value of the Lagrange multiplier is given by 05/04/2013 (Saturday) Online Learning - Steven Hoi 38

AROW: Adaptive Regularization of Weights AROW (Crammer et al. 2009) Extension of CW learning Key properties: large margin training, confidence weighting, and the capacity to handle non-separable data Formulations 05/04/2013 (Saturday) Online Learning - Steven Hoi 39

AROW: Adaptive Regularization of Weights AROW algorithm (Crammer et al. 2009) 05/04/2013 (Saturday) Online Learning - Steven Hoi 40

SCW: Soft Confidence Weighted learning SCW (Wang et al. 2012) Four salient properties Large margin, Non-separable, Confidence weighted (2nd order), Adaptive margin Formulation SCW-I SCW-II 05/04/2013 (Saturday) Online Learning - Steven Hoi 41

SCW: Soft Confidence Weighted learning SCW Algorithms 05/04/2013 (Saturday) Online Learning - Steven Hoi 42

Traditional Linear Online Learning (cont ) Second-Order Methods Learn both first order and second order info Pros and Cons Faster convergence rate Expensive for high-dimensional data Relatively sensitive to noise 05/04/2013 (Saturday) Online Learning - Steven Hoi 43

Traditional Linear Online Learning (cont ) Empirical Results (Wang et al., ICML 12) Online Mistake Rate Online Time Cost 05/04/2013 (Saturday) Online Learning - Steven Hoi 44

Sparse Online Learning Motivation How to induce Sparsity in the weights of online learning algorithms for high-dimensional data Space constraints (memory overflow) Test-time constraints (test computational cost) Some popular existing work Truncated gradient (Langford et al., 2009) FOBOS: Forward Looking Subgradients (Duchi and Singer 2009) Bayesian sparse online learning (Balakrishnan and Madigan 2008) etc. 05/04/2013 (Saturday) Online Learning - Steven Hoi 45

Truncated gradient (Langford et al., 2009) Main Idea Truncated gradient: impose sparsity by modifying the stochastic gradient descent Stochastic Gradient Descent Simple Coefficient Rounding 05/04/2013 (Saturday) Online Learning - Steven Hoi 46

Truncated gradient (Langford et al., 2009) Simple Coefficient Rounding vs. Less aggregative truncation Illustration of the two truncation functions, T0 and T1 05/04/2013 (Saturday) Online Learning - Steven Hoi 47

Truncated gradient (Langford et al., 2009) The amount of shrinkage is measured by a gravity parameter The truncation can be performed every K online steps When the update rule is identical to the standard SGD Loss Functions: Logistic SVM (hinge) Least Square 05/04/2013 (Saturday) Online Learning - Steven Hoi 48

Truncated gradient (Langford et al., 2009) Comparison to other baselines 05/04/2013 (Saturday) Online Learning - Steven Hoi 49

Variants of Sparse Online Learning Online Feature Selection (OFS) A variant of Sparse Online Learning The key difference is that OFS focuses on selecting a fixed subset of features in online learning process Could be used as an alternative tool for batch feature selection when dealing with big data Existing Work Online Feature Selection (Hoi et al, 2012) proposed an OFS scheme by exploring the Sparse Projection to choose a fixed set of active features in online learning 05/04/2013 (Saturday) Online Learning - Steven Hoi 50

Summary of Traditional Linear OL Pros Efficient for computation & memory Extremely scalable Theoretical bounds on the mistake rate Cons Learn Linear prediction models Optimize the mistake rate only 05/04/2013 (Saturday) Online Learning - Steven Hoi 51

Online Learning: Overview Linear Methods Traditional Non- Traditional Single Kernel Multiple Kernels Non-Linear Methods 05/04/2013 (Saturday) Online Learning - Steven Hoi 52

Non-Traditional Linear OL Online AUC Maximization Cost-Sensitive Online Learning Online Transfer Learning 05/04/2013 (Saturday) Online Learning - Steven Hoi 53

Online AUC Maximization Motivation The mistake rate (or classification accuracy) measure could be misleading for many real-world applications Example: Consider a set of 10,000 instances with only 10 positive and 9,990 negative. A naïve classifier that simply declares every instance as negative has 99.9% accuracy. Many applications (e.g., anomaly detection) often adopt other metrics, e.g., AUC (area under the ROC curve). Can online learning directly optimize AUC? 05/04/2013 (Saturday) Online Learning - Steven Hoi 54

Online AUC Maximization What is AUC? AUC (Area Under the ROC Curve) ROC (Receiver Operating Characteristic) curve details the rate of True Positives (TP) against False Positives (FP) over the range of possible thresholds. AUC measures the probability for a randomly drawn positive instance to have a higher decision value than a randomly sampled negative instance ROC was first used in World War II for the analysis of radar signals. 05/04/2013 (Saturday) Online Learning - Steven Hoi 55

Online AUC Maximization Motivation To develop an online learning algorithm for training an online classifier to maximize the AUC metric instead of mistake rate/accuracy Online AUC Maximization (Zhao et al., ICML 11) Key Challenge In math, AUC is expressed as a sum of pairwise losses between instances from different classes, which is quadratic in the number of received training examples Hard to directly solve the AUC optimization efficiently 05/04/2013 (Saturday) Online Learning - Steven Hoi 56

Formulation A data set Positive instances Negative instances Given a classifier w, its AUC on the dataset D: 05/04/2013 (Saturday) Online Learning - Steven Hoi 57

Formulation (cont ) Replace the indicator function I with its convex surrogate, i.e., the hinge loss function Find the optimal classifier w by minimizing It is not difficult to show that (1) 05/04/2013 (Saturday) Online Learning - Steven Hoi 58

Formulation (cont ) Re-writing objective function (1) into: In online learning task, given ( do online update: x, y t t ), we may The loss function is related to all received examples. 59 Have to store all the received training examples!! 05/04/2013 (Saturday) Online Learning - Steven Hoi

Main Idea of OAM Cache a small number of received examples; B B Two buffers of fixed size, and, to cache the t t positive and negative instances; x t Reservoir sampling y t Predictor f ( x t ) Sequential or Gradient Update buffer y 1 y 1 t t Update buffer B t update classifier Buffer + Buffer B t Flow of the proposed online AUC maximization process 05/04/2013 (Saturday) Online Learning - Steven Hoi 60

OAM Framework 05/04/2013 (Saturday) Online Learning - Steven Hoi 61

Update Buffer Reservoir Sampling (J. S. Vitter, 1985) A family of classical sampling algorithms for randomly choosing k samples from a data set with n items, where n is either a very large or unknown number. In general, it takes a random sample set of the desired size in only one pass over the underlying dataset. The UpdateBuffer algorithm is simple and very efficient: 05/04/2013 (Saturday) Online Learning - Steven Hoi 62

Update Classifier Algorithm 1: Sequential update by PA: Follow the idea of Passive aggressive learning (Crammer et al. 06) For each x in buffer B, update the classifier: Algorithm 2: Gradient-based update Follow the idea of online gradient descent For each x in buffer B, update the classifier: 05/04/2013 (Saturday) Online Learning - Steven Hoi 63

Empirical Results of OAM Comparisons Traditional algorithms: Perceptron, PA, Cost-sensitive PA (CPA), CW The proposed OAM algorithms: (i) OAM-seq, OAM-gra, (ii) OAM-inf (infinite buffer size) Evaluation of AUC for Classification tasks 05/04/2013 (Saturday) Online Learning - Steven Hoi 64

Cost-Sensitive Online Learning Motivation Beyond optimizing the mistake rate or accuracy Attempt to optimize the cost-sensitive measures Sum Cost Existing Work Cost-sensitive Online Gradient Descent (Wang et al. 2012) Cost-Sensitive Double Updating Online Learning (Zhao et al. 2013) 05/04/2013 (Saturday) Online Learning - Steven Hoi 65

Cost-Sensitive Online Learning Our goal is to design online learning algorithms to optimize the cost-sensitive metrics directly Proposition 1: Consider a cost-sensitive classification problem, the goal of maximizing the weighted sum or minimizing the weighted cost is equivalent to minimizing the following objective: where for the maximization of the weighted sum; and for the minimization of the cost. 05/04/2013 (Saturday) Online Learning - Steven Hoi 66

Cost-Sensitive Online Learning Convex Relaxation Modified Hinge Loss: Replace the indicator function with modified hinge loss: sum cost 05/04/2013 (Saturday) Online Learning - Steven Hoi 67

Cost-Sensitive Online Gradient Descent CSOGD: Cost-Sensitive Online Gradient Descent Cost-sensitive objective functions where for optimizing sum or for cost Update by Online Gradient Descent 05/04/2013 (Saturday) Online Learning - Steven Hoi 68

Cost-Sensitive Online Gradient Descent CSOGD: Cost-Sensitive Online Gradient Descent Formulate the cost-sensitive objective functions where for optimizing sum or for cost Update by Online Gradient Descent 05/04/2013 (Saturday) Online Learning - Steven Hoi 69

Cost-Sensitive Online Gradient Descent 05/04/2013 (Saturday) Online Learning - Steven Hoi 70

Cost-Sensitive Online Classification Cost Sum 05/04/2013 (Saturday) Online Learning - Steven Hoi 71

Online Transfer Learning Transfer learning (TL) Extract knowledge from one or more source tasks and then apply them to solve target tasks Three ways which transfer might improve learning Two Types of TL tasks Homogeneous vs Heterogeneous TL 05/04/2013 (Saturday) Online Learning - Steven Hoi 72

Online Transfer Learning (Zhao and Hoi 2011) Online Transfer learning (OTL) Assume training data for target domain arrives sequentially Assume a classifier was learnt from a source domain online algorithms for transferring knowledge from source domain to target domain Settings Old/source data space: New/target domain: A sequence of examples from new/target domain OTL on Homogeneous domains OTL on heterogeneous domains 05/04/2013 (Saturday) Online Learning - Steven Hoi 73

Online Transfer Learning (Zhao and Hoi 2011) OTL on Homogeneous domains Key Ideas: explore ensemble learning by combining both source and target classifiers Update rules using any existing OL algorithms (e.g., PA) 05/04/2013 (Saturday) Online Learning - Steven Hoi 74

Online Transfer Learning (Zhao and Hoi 2011) OTL on Heterogeneous domains Assumption: not completely different Each instance in target domain can be split into two views: The key idea is to use a co-regularization principle for online optimizing two classifiers Prediction can be made by 05/04/2013 (Saturday) Online Learning - Steven Hoi 75

Online Transfer Learning (Zhao and Hoi 2011) Heterogeneous OTL algorithm 05/04/2013 (Saturday) Online Learning - Steven Hoi 76

Online Learning: Overview Traditional Single Kernel Linear Methods Non- Traditional Multiple Kernels Non-Linear Methods 05/04/2013 (Saturday) Online Learning - Steven Hoi 77

Kernel-based Online Learning Motivation Linear classifier is limited in certain situations Objective Learn a non-linear model for online classification tasks using the kernel trick 05/04/2013 (Saturday) Online Learning - Steven Hoi 78

Kernel-based Online Learning Kernel Perceptron Related Work Single Updating: Kernel PA, Kernel OGD, etc. Double Updating Online Learning (Zhao et al, 2011) Others (e.g., Online SVM by fully optimal update) 05/04/2013 (Saturday) Online Learning - Steven Hoi 79

Double Updating Online Learning (DUOL) Motivation When a new support vector (SV) is added, the weights of existing SVs remain unchanged (i.e., only the update is applied for a single SV ) How to update the weights of existing SVs in an efficient and effective approach Main idea Update the weight for one more existing SV in addition to the update of the new SV Challenge which existing SV should be updated and how to update? 05/04/2013 (Saturday) Online Learning - Steven Hoi 80

Double Updating Online Learning (DUOL) Denote a new Support Vector as: Choose an auxiliary example Misclassified: Conflict most with new SV: Update the current hypothesis by from existing SVs: How to optimize the weights of the two SVs DUOL formulates the problem as a simple QP task of large margin optimization, and gives closed-form solutions. 05/04/2013 (Saturday) Online Learning - Steven Hoi 81

Double Updating Online Learning (DUOL) 05/04/2013 (Saturday) Online Learning - Steven Hoi 82

Kernel-based Online Learning Challenge The number of support vectors with the kernelbased classification model is often unbounded! Non-scalable and inefficient in practice!! Question Can we bound the number of support vectors? Solution Budget Online Learning 05/04/2013 (Saturday) Online Learning - Steven Hoi 83

Budget Online Learning Problem Kernel-based Online Learning by bounding the number of support vectors for a given budget B Related Work in literature Randomized Budget Perceptron (Cavallanti et al.,2007) Forgetron (Dekel et al.,2005) Projectron (Orabona et al.,2008) Bounded Online Gradient Descent (Zhao et al 2012) Others 05/04/2013 (Saturday) Online Learning - Steven Hoi 84

RBP: Randomized Budget Perceptron (Cavallanti et al.,2007) Idea: maintaining budget by means of randomization Repeat whenever there is a mistake at round t: If the number of SVs <= B, then apply Kernel Perceptron Otherwise randomly discard one existing support vector 05/04/2013 (Saturday) Online Learning - Steven Hoi 85

Forgetron (Dekel et al.,2005) Step (1) - Perceptron 1 2 3...... t-1 t Step (2) Shrinking 1 2 3...... t-1 t 1 2 3...... t-1 t Step (3) Remove Oldest 1 2 3...... t-1 t 05/04/2013 (Saturday) Online Learning - Steven Hoi 86

Projectron (Orabona et al., 2008) The new hypothesis is projected onto the space spanned by How to solve the projection? 05/04/2013 (Saturday) Online Learning - Steven Hoi 87

Bounded Online Gradient Descent (Zhao et al 2012) Limitations of previous work Perceptron-based, heuristic or expensive update Motivation of BOGD Learn the kernel-based model using online gradient descent by constraining the SV size less than a predefined budget B Challenges How to efficiently maintain the budget? How to minimize the impact due to the budget maintenance? 05/04/2013 (Saturday) Online Learning - Steven Hoi 88

Bounded Online Gradient Descent (Zhao et al 2012) Main idea of the BOGD algorithms A stochastic budget maintenance strategy to guarantee One existing SV will be discarded by multinomial sampling Unbiased estimation with only B SVs; Formulation Current hypothesis Construct an unbiased estimator (to ensure ) indicates the i-th SV is selected for removal 05/04/2013 (Saturday) Online Learning - Steven Hoi 89

Bounded Online Gradient Descent (Zhao et al 2012) Z is obtained according a sampling distribution: The final weights of SV: How to choose a proper sampling p? Uniform sampling Non-uniform sampling 05/04/2013 (Saturday) Online Learning - Steven Hoi 90

Empirical Results of BOGD Comparison Baseline: Forgetron, RBP, Projectron, Projectron++ Our algorithms: BOGD (uniform), BOGD++ (non-uniform) Evaluation of budget online learning algorithms Experimental result of varied budget sizes on the codrna data set (n=271617) 05/04/2013 (Saturday) Online Learning - Steven Hoi 91

Summary Pros of BOGD Very efficient due to stochastic strategy Rather scalable State-of-the-art performance Theoretical guarantee Cons of existing BOL Predefined budget size (optimal budget size)? Only learn with a single kernel 05/04/2013 (Saturday) Online Learning - Steven Hoi 92

Online Learning: Overview Linear Methods Traditional Non- Traditional Single Kernel Multiple Kernels Non-Linear Methods 05/04/2013 (Saturday) Online Learning - Steven Hoi 93

Online Multiple Kernel Learning Motivation Kernel defines a similarity measure for two objects Many ways to define a kernel function Example: Multimedia Applications Problem Image: color, texture, shape, local features, etc Video: visual, textural, audio features, etc. Can we learn a kernel-based model incrementally from a sequence of (multi-modal) instances using multiple kernels in an online learning setting? 05/04/2013 (Saturday) Online Learning - Steven Hoi 94

Kernel and Multimodal Representation Kernel trick Mapping observations from a general set S into an inner product space V Kernel function K(x, x ) for any x, x from S Expressed as an inner product between two objects in V Defines a similarity measure between any two objects Example: linear, polynomial, Gaussian, etc. Kernels on structured data: tree, graph, etc, Multi-modal representations for image applications Color features (color histogram, color moment, etc) Texture features (Gabor, GIST, etc) Edge features (edge direction histogram, etc) Local features (bag of SIFT features, bag of words, etc) 05/04/2013 (Saturday) Online Learning - Steven Hoi 95

What is MKL? Multiple Kernel Learning (MKL) Kernel method by an optimal combination of multiple kernels Batch MKL Formulation Hard to solve the convex-concave optimization for big data! Can we avoid having to directly solve the optimization? 05/04/2013 (Saturday) Online Learning - Steven Hoi 96

Online MKL (Hoi et al., ML 12) Objective Learn a kernel-based predictor with multiple kernels from a sequence of (multi-modal) data examples Avoid the need of solving complicated optimizations Main idea: a simple two-step online learning At each learning iteration, if there is a mistake: Step 1: Online learning with each single kernel Kernel Perceptron (Rosenblatt Frank, 1958, Freund 1999) Step 2: Learning to update the combination weights Hedging algorithm 05/04/2013 (Saturday) Online Learning - Steven Hoi 97

Online MKL for Classification Empirical Results of OMKC for classification 05/04/2013 (Saturday) Online Learning - Steven Hoi 98

Online MKL for Multimedia Retrieval Online Multi-Modal Distance Learning (Xia et al 2013) Goal: Learning multi-kernel distance for multimedia retrieval Color Side Info Stream Texture OMDL Contentbased Multimedia Retrieval Local pattern (BoW) 05/04/2013 (Saturday) Online Learning - Steven Hoi 99

Problem Settings Consider a multi-modal object retrieval task A set of n multimedia objects A collection of triplet constraints where each triplet indicates that object is similar to object, but dissimilar to object For simplicity, we will simply denote for the rest of discussion. A set of m predefined kernel functions as 05/04/2013 (Saturday) Online Learning - Steven Hoi 100

Formulation Kernel-based distance measure For each triple constraint Graph Laplacian Regularizer 05/04/2013 (Saturday) Online Learning - Steven Hoi 101

Formulation (cont ) Graph Laplacian Regularization on Target Kernel Loss of violating the Triplet Constraints Difficult to solve the above optimization directly. 05/04/2013 (Saturday) Online Learning - Steven Hoi 102

Online Learning with A Single Kernel For a received triplet at round t Closed-form solutions can be derived with PSD. 05/04/2013 (Saturday) Online Learning - Steven Hoi 103

Online Learning with Multiple Kernels Multi-modal distance functions How to optimize the combination weights? Online Learning for the Optimal Combination is a decay factor The above approach follows the idea of Hedging algorithm for learning with expert advice 05/04/2013 (Saturday) Online Learning - Steven Hoi 104

OMDL-LR: Low-rank Approximation Instead of learning a high dimensional matrix W which is d d, we learn a matrix of dimension We generate a projection matrix P based on a Gaussian distribution, and use to approximate W. Once the random projection matrix P is chosen, it is straightforward for improving the rest of the algorithm by projecting the columns of kernel values accordingly, One could also try other low-rank approximation methods, e.g., Nystrom (Williams and Seeger, 2001). 05/04/2013 (Saturday) Online Learning - Steven Hoi 105

Results (map) for Multi-modal Image Retrieval Selecting Best Modality Concaten ating all the features Simple combine d kernel 05/04/2013 (Saturday) Online Learning - Steven Hoi 106

Summary of OMKL Pros Nonlinear models for tough applications Avoid solving complicated optimization directly Handle multi-modal data Theoretical guarantee Cons Scalability has to be further improved 05/04/2013 (Saturday) Online Learning - Steven Hoi 107

Discussions and Open Issues Challenges of Big Data Volume Explosive growing data: from million to billion scales From a single machine to multiple machines in parallel Velocity Data arrives extremely fast From a normal scheme to a real-time solution Variety Heterogeneous data and diverse sources From centralized approach to distributed solutions 05/04/2013 (Saturday) Online Learning - Steven Hoi 108

Discussions and Open Issues Other Issues High-dimensionality Data sparsity Structural data Noise and incomplete data Concept drifting Domain adaption Incorporation of background knowledge Parallel & distributed computing User interaction Interactive OL vs Passive OL Human computation 05/04/2013 (Saturday) Online Learning - Steven Hoi 109

Discussions and Open Issues Applications of Big Data Mining Web Search and Mining Social Network and Social Media Speech Recognition & Mining (e.g., SIRI) Multimedia Retrieval Computer Vision Medical and Healthcare Informatics Financial Engineering etc 05/04/2013 (Saturday) Online Learning - Steven Hoi 110

Conclusion Introduction of emerging opportunities and challenges for big data mining Introduction of online learning, widely applied for various real-word applications with big data mining Survey of classical and state-of-the-art online learning techniques Traditional Non- Traditional Single Kernel Multiple Kernels 05/04/2013 (Saturday) Online Learning - Steven Hoi 111

Take-Home Message Online learning is promising for big data mining More challenges and opportunities ahead: More smart online learning algorithms Handle more real-world challenges, e.g., concept drifting, noise, sparse data, high-dimensional issues, etc. Scale up for mining billions of instances using distributed computing facilities & parallel programming (e.g., Hadoop) LIBOL: An open-source Library of Online Learning Algorithms http://libol.stevenhoi.org 05/04/2013 (Saturday) Online Learning - Steven Hoi 112

References Steven C.H. Hoi, Rong Jin, Tianbao Yang, Peilin Zhao, "Online Multiple Kernel Classification", Machine Learning (ML), 2013. Hao Xia, Pengcheng Wu, Steven C.H. Hoi, "Online Multi-modal Distance Learning for Scalable Multimedia Retrieval, ACM Intl. Conf. on Web Search and Data Mining (WSDM),2013. Peilin Zhao, Jialei Wang, Pengcheng Wu, Rong Jin, Steven C.H. Hoi, "Fast Bounded Online Gradient Descent Algorithms for Scalable Kernel-Based Online Learning", The 29th International Conference on Machine Learning (ICML), June 26 - July 1, 2012. Jialei Wang, Steven C.H. Hoi, "Exact Soft Confidence-Weighted Learning ", The 29th International Conference on Machine Learning (ICML), June 26 - July 1, 2012. Bin Li, Steven C.H. Hoi, "On-line Portfolio Selection with Moving Average Reversion", The 29th International Conference on Machine Learning (ICML), June 26-July 1, 2012. Jialei Wang, Peilin Zhao, Steven C.H. Hoi, "Cost-Sensitive Online Classification, IEEE International Conference on Data Mining (ICDM), 2012. Bin Li, Peilin Zhao, Steven C.H. Hoi, V. Gopalkrishnan, "PAMR: Passive-Aggressive Mean Reversion Strategy for Portfolio Selection", Machine Learning, vol.87, no.2, pp.221-258, 2012. Steven C.H. Hoi, Jialei Wang, Peilin Zhao, Rong Jin, Online Feature Selection for Big Data Mining, ACM SIGKDD Workshop on Big Data Mining (BigMine), Beijing, China, 2012 Peilin Zhao, Steven C.H. Hoi, Rong Jin, "Double Updating Online Learning", Journal of Machine Learning Research (JMLR), 2011. Peilin Zhao, Steven C.H. Hoi, Rong Jin, Tianbo Yang, "Online AUC Maximization" The 28th International Conference on Machine Learning (ICML), 2011. 05/04/2013 (Saturday) Online Learning - Steven Hoi 113

References Duchi, John C., Hazan, Elad, and Singer, Yoram. Adaptive subgradient methods for online learning and stochastic optimization. JMLR, 12:2121 2159, 2011. Jin, R., Hoi, S. C. H. and Yang, T. Online multiple kernel learning: Algorithms and mistake bounds, ALT, pp. 390 404., 2010. Peilin Zhao and Steven C.H. Hoi, "OTL: A Framework of Online Transfer Learning" The 27th International Conference on Machine Learning, Haifa, Israel, 21-24 June, 2010 Crammer, Koby and D.Lee, Daniel. Learning via gaussian herding. In NIPS, pp. 345 352, 2010. Koby Crammer, Alex Kulesza, and Mark Dredze. Adaptive regularization of weight vectors. In Advances in Neural Information Processing Systems (NIPS), 2009. M. Dredze, K. Crammer, and F. Pereira. Confidence-weighted linear classification. In ICML, pages 264 271, 2008. Ofer Dekel, Shai Shalev-Shwartz, and Yoram Singer. The forgetron: A kernel-based perceptron on a budget. SIAM J. Comput., 37(5):1342 1372, 2008. ISSN 0097-5397. Francesco Orabona, Joseph Keshet, and Barbara Caputo. The projectron: a bounded kernelbased perceptron. In ICML, pages 720 727, 2008. Crammer, Koby, Dredze, Mark, and Pereira, Fernando. Exact convex confidence-weighted learning. In NIPS, pp. 345 352, 2008. Giovanni Cavallanti, Nicolo Cesa-Bianchi, and Claudio Gentile. Tracking the best hyperplane with a simple budget perceptron. Machine Learning, 69(2-3):143 167, 2007. N. Cesa-Bianchi and G. Lugosi. Prediction, Learning, and Games. Cambridge University Press, 2006. 05/04/2013 (Saturday) Online Learning - Steven Hoi 114

References Crammer, Koby, Dekel, Ofer, Keshet, Joseph, Shalev-Shwartz, Shai, and Singer, Yoram. Online passive aggressive algorithms. JMLR, 7:551 585, 2006. Cesa-Bianchi, Nicol`o, Conconi, Alex, and Gentile, Claudio. A second-order perceptron algorithm. SIAM J. Comput., 34(3):640 668, 2005. Koby Crammer, Jaz S. Kandola, and Yoram Singer. Online classification on a budget. In Advances in Neural Information Processing Systems (NIPS), 2003. Claudio Gentile. A new approximate maximal margin classification algorithm. Journal of Machine Learning Research, 2:213 242, 2001. Jyrki Kivinen, Alex J. Smola, and Robert C. Williamson. Online learning with kernels. In Advances in Neural Information Processing Systems (NIPS), pages 785 792, 2001. Yoav Freund and Robert E. Schapire. Large margin classification using the perceptron algorithm. Mach. Learn., 37(3):277 296, 1999. Yi Li and Philip M. Long. The relaxed online maximum margin algorithm. In Advances in Neural Information Processing Systems (NIPS), pages 498 504, 1999. Yoav Freund and Robert E. Schapire. A decision-theoretic generalization of on-line learning and an application to boosting. Journal of Computer and System Sciences, 55(1):119--139, (1997). F. Rosenblatt. The perceptron: A probabilistic model for information storage and organization in the brain. Psychological Review, 65:386 407, 1958. 05/04/2013 (Saturday) Online Learning - Steven Hoi 115