Bing LiuCS Department, UIC1 Learning from Positive and Unlabeled Examples Bing Liu Department of Computer Science University of Illinois at Chicago Joint.

Slides:



Advertisements
Similar presentations
A Comparison of Implicit and Explicit Links for Web Page Classification Dou Shen 1 Jian-Tao Sun 2 Qiang Yang 1 Zheng Chen 2 1 Department of Computer Science.
Advertisements

A Simple Probabilistic Approach to Learning from Positive and Unlabeled Examples Dell Zhang (BBK) and Wee Sun Lee (NUS)
PEBL: Web Page Classification without Negative Examples Hwanjo Yu, Jiawei Han, Kevin Chen- Chuan Chang IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING,
Pseudo-Relevance Feedback For Multimedia Retrieval By Rong Yan, Alexander G. and Rong Jin Mwangi S. Kariuki
Support Vector Machine
Document Summarization using Conditional Random Fields Dou Shen, Jian-Tao Sun, Hua Li, Qiang Yang, Zheng Chen IJCAI 2007 Hao-Chin Chang Department of Computer.
Sequential Minimal Optimization Advanced Machine Learning Course 2012 Fall Semester Tsinghua University.
ICML Linear Programming Boosting for Uneven Datasets Jurij Leskovec, Jožef Stefan Institute, Slovenia John Shawe-Taylor, Royal Holloway University.
SVM—Support Vector Machines
Fuzzy Support Vector Machines (FSVMs) Weijia Wang, Huanren Zhang, Vijendra Purohit, Aditi Gupta.
Chapter 5: Partially-Supervised Learning
Chapter 7: Text mining UIC - CS 594 Bing Liu 1 1.
Prénom Nom Document Analysis: Linear Discrimination Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Optimizing F-Measure with Support Vector Machines David R. Musicant Vipin Kumar Aysel Ozgur FLAIRS 2003 Tuesday, May 13, 2003 Carleton College.
Support Vector Machines Based on Burges (1998), Scholkopf (1998), Cristianini and Shawe-Taylor (2000), and Hastie et al. (2001) David Madigan.
Prénom Nom Document Analysis: Data Analysis and Clustering Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Active Learning with Support Vector Machines
Support Vector Machines Kernel Machines
Semi-Supervised Clustering Jieping Ye Department of Computer Science and Engineering Arizona State University
Dept. of Computer Science & Engineering, CUHK Pseudo Relevance Feedback with Biased Support Vector Machine in Multimedia Retrieval Steven C.H. Hoi 14-Oct,
Presented by Zeehasham Rasheed
Bing LiuCS Department, UIC1 Chapter 8: Semi-Supervised Learning Also called “partially supervised learning”
Linear Discriminant Functions Chapter 5 (Duda et al.)
Greg GrudicIntro AI1 Support Vector Machine (SVM) Classification Greg Grudic.
Large-Scale Text Categorization By Batch Mode Active Learning Steven C.H. Hoi †, Rong Jin ‡, Michael R. Lyu † † CSE Department, Chinese University of Hong.
Relevance Feedback Content-Based Image Retrieval Using Query Distribution Estimation Based on Maximum Entropy Principle Irwin King and Zhong Jin The Chinese.
Final review LING572 Fei Xia Week 10: 03/11/
Transfer Learning From Multiple Source Domains via Consensus Regularization Ping Luo, Fuzhen Zhuang, Hui Xiong, Yuhong Xiong, Qing He.
Learning from Imbalanced, Only Positive and Unlabeled Data Yetian Chen
Active Learning for Class Imbalance Problem
Learning with Positive and Unlabeled Examples using Weighted Logistic Regression Wee Sun Lee National University of Singapore Bing Liu University of Illinois,
CS 8751 ML & KDDSupport Vector Machines1 Support Vector Machines (SVMs) Learning mechanism based on linear programming Chooses a separating plane based.
ADVANCED CLASSIFICATION TECHNIQUES David Kauchak CS 159 – Fall 2014.
Machine Learning CSE 681 CH2 - Supervised Learning.
Selective Block Minimization for Faster Convergence of Limited Memory Large-scale Linear Models Kai-Wei Chang and Dan Roth Experiment Settings Block Minimization.
Xiaoxiao Shi, Qi Liu, Wei Fan, Philip S. Yu, and Ruixin Zhu
1 CS546: Machine Learning and Natural Language Discriminative vs Generative Classifiers This lecture is based on (Ng & Jordan, 02) paper and some slides.
Universit at Dortmund, LS VIII
A Language Independent Method for Question Classification COLING 2004.
Partially Supervised Classification of Text Documents by Bing Liu, Philip Yu, and Xiaoli Li Presented by: Rick Knowles 7 April 2005.
ICML2004, Banff, Alberta, Canada Learning Larger Margin Machine Locally and Globally Kaizhu Huang Haiqin Yang, Irwin King, Michael.
Greedy is not Enough: An Efficient Batch Mode Active Learning Algorithm Chen, Yi-wen( 陳憶文 ) Graduate Institute of Computer Science & Information Engineering.
Artificial Intelligence Research Laboratory Bioinformatics and Computational Biology Program Computational Intelligence, Learning, and Discovery Program.
Web Mining ( 網路探勘 ) WM05 TLMXM1A Wed 8,9 (15:10-17:00) U705 Partially Supervised Learning ( 部分監督式學習 ) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授.
Learning from Positive and Unlabeled Examples Investigator: Bing Liu, Computer Science Prime Grant Support: National Science Foundation Problem Statement.
Bing LiuCS Department, UIC1 Chapter 8: Semi-supervised learning.
1  The Problem: Consider a two class task with ω 1, ω 2   LINEAR CLASSIFIERS.
Supervised Learning. CS583, Bing Liu, UIC 2 An example application An emergency room in a hospital measures 17 variables (e.g., blood pressure, age, etc)
Multiple Instance Learning for Sparse Positive Bags Razvan C. Bunescu Machine Learning Group Department of Computer Sciences University of Texas at Austin.
Support Vector Machines
1  Problem: Consider a two class task with ω 1, ω 2   LINEAR CLASSIFIERS.
Text Categorization With Support Vector Machines: Learning With Many Relevant Features By Thornsten Joachims Presented By Meghneel Gore.
Classification Course web page: vision.cis.udel.edu/~cv May 14, 2003  Lecture 34.
NTU & MSRA Ming-Feng Tsai
PARTIALLY SUPERVISED CLASSIFICATION OF TEXT DOCUMENTS authors: B. Liu, W.S. Lee, P.S. Yu, X. Li presented by Rafal Ladysz.
Feature Selction for SVMs J. Weston et al., NIPS 2000 오장민 (2000/01/04) Second reference : Mark A. Holl, Correlation-based Feature Selection for Machine.
Machine Learning in Practice Lecture 10 Carolyn Penstein Rosé Language Technologies Institute/ Human-Computer Interaction Institute.
Support Vector Machines Reading: Ben-Hur and Weston, “A User’s Guide to Support Vector Machines” (linked from class web page)
 Effective Multi-Label Active Learning for Text Classification Bishan yang, Juan-Tao Sun, Tengjiao Wang, Zheng Chen KDD’ 09 Supervisor: Koh Jia-Ling Presenter:
Unsupervised Learning Part 2. Topics How to determine the K in K-means? Hierarchical clustering Soft clustering with Gaussian mixture models Expectation-Maximization.
Partially Supervised Classification of Text Documents
Semi-Supervised Clustering
MIRA, SVM, k-NN Lirong Xia. MIRA, SVM, k-NN Lirong Xia.
Chapter 8: Semi-Supervised Learning
Regularized risk minimization
J. Zhu, A. Ahmed and E.P. Xing Carnegie Mellon University ICML 2009
PEBL: Web Page Classification without Negative Examples
Pattern Recognition CS479/679 Pattern Recognition Dr. George Bebis
Unsupervised Learning II: Soft Clustering with Gaussian Mixture Models
MIRA, SVM, k-NN Lirong Xia. MIRA, SVM, k-NN Lirong Xia.
Presentation transcript:

Bing LiuCS Department, UIC1 Learning from Positive and Unlabeled Examples Bing Liu Department of Computer Science University of Illinois at Chicago Joint work with: Yang Dai, Wee Sun Lee, Xiaoli Li and Philip S. Yu Based on our papers in: ICML-02, ICML-03, IJCAI-03 and ICDM-03 Papers & system:

Bing LiuCS Department, UIC2 Classic Supervised Learning Given a set of labeled training examples of n classes, the system uses this set to build a classifier. The classifier is then used to classify new data into the n classes. Although this traditional model is very useful, in practice one also encounters another (related) problem.

Bing LiuCS Department, UIC3 Learning from Positive & Unlabeled data (PU-learning) Positive examples: One has a set of examples of a class P, and Unlabeled set: also has a set U of unlabeled (or mixed) examples with instances from P and also not from P (negative examples). Build a classifier: Build a classifier to classify the examples in U and/or future (test) data. Key feature of the problem: no labeled negative training data. We call this problem, PU-learning.

Bing LiuCS Department, UIC4 Applications of the problem With the growing volume of online texts available through the Web and digital libraries, one often wants to find those documents that are related to one's work or one's interest. For example, given a ICML proceedings, find all machine learning papers from AAAI, IJCAI, KDD No labeling of negative examples from each of these collections. Similarly, given one's bookmarks (positive documents), identify those documents that are of interest to him/her from Web sources.

Bing LiuCS Department, UIC5 Direct Marketing Company has database with details of its customer – positive examples, but no information on those who are not their customers, i.e., no negative examples. Want to find people who are similar to their customers for marketing Buy a database consisting of details of people, some of whom may be potential customers – unlabeled examples.

Bing LiuCS Department, UIC6 Are Unlabeled Examples Helpful? Function known to be either x 1 0 Which one is it? x 1 < 0 x 2 > u u u u u u u u u u u “Not learnable” with only positive examples. However, addition of unlabeled examples makes it learnable.

Bing LiuCS Department, UIC7 Related Works Denis (1998) shows that function classes learnable in the statistical query model is learnable from positive and unlabeled examples. Muggleton (2001) shows that learning from positive examples is possible if the distribution of inputs is known. Liu et. al. (2002) gives sample complexity bounds and also an algorithm based on a Spy technique and EM. Yu et. al. (2002, 2003) gives an algorithm that runs SVM iteratively. Denis et al (2002) gives a Naïve Bayesian method. Li and Liu (2003) gives a Rocchio and SVM based method. Lee and Liu (2003) presents a weighted logistic regression technique. Liu et al (2003) presents a biased-SVM technique.

Bing LiuCS Department, UIC8 Theoretical foundations (Liu et al 2002) (X, Y): X - input vector, Y  {1, -1} - class label. f : classification function We rewrite the probability of error Pr[f(X)  Y] = Pr[f(X) = 1 and Y = -1] + (1) Pr[f(X) = -1 and Y = 1] We have Pr[f(X) = 1 and Y = -1] = Pr[f(X) = 1] – Pr[f(X) = 1 and Y = 1] = Pr[f(X) = 1] – (Pr[Y = 1] – Pr[f(X) = -1 and Y = 1]). Plug this into (1), we obtain Pr[f(X)  Y] = Pr[f(X) = 1] – Pr[Y = 1] (2) + 2Pr[f(X) = -1|Y = 1]Pr[Y = 1]

Bing LiuCS Department, UIC9 Theoretical foundations (cont) Pr[f(X)  Y] = Pr[f(X) = 1] – Pr[Y = 1] (2) + 2Pr[f(X) = -1|Y = 1] Pr[Y = 1] Note that Pr[Y = 1] is constant. If we can hold Pr[f(X) = -1|Y = 1] small, then learning is approximately the same as minimizing Pr[f(X) = 1]. Holding Pr[f(X) = -1|Y = 1] small while minimizing Pr[f(X) = 1] is approximately the same as minimizing Pr u [f(X) = 1] while holding Pr P [f(X) = 1] ≥ r (where r is recall) if the set of positive examples P and the set of unlabeled examples U are large enough. Theorem 1 and Theorem 2 in [Liu et al 2002] state these formally in the noiseless case and in the noisy case.

Bing LiuCS Department, UIC10 Put it simply A constrained optimization problem. A reasonably good generalization (learning) result can be achieved If the algorithm tries to minimize the number of unlabeled examples labeled as positive subject to the constraint that the fraction of errors on the positive examples is no more than 1-r.

Bing LiuCS Department, UIC11 Existing 2-step strategy Step 1: Identifying a set of reliable negative documents from the unlabeled set. S-EM [Liu et al, 2002] uses a Spy technique, PEBL [Yu et al, 2002] uses a 1-DNF technique Roc-SVM [Li & Liu, 2003] uses the Rocchio algorithm. Step 2: Building a sequence of classifiers by iteratively applying a classification algorithm and then selecting a good classifier. S-EM uses the Expectation Maximization (EM) algorithm, with an error based classifier selection mechanism PEBL uses SVM, and gives the classifier at convergence. I.e., no classifier selection. Roc-SVM uses SVM with a heuristic method for selecting the final classifier.

Bing LiuCS Department, UIC12 Step 1 Step 2 positivenegative Reliable Negative (RN) Q =U - RN U P positive Using P, RN and Q to build the final classifier iteratively or Using only P and RN to build a classifier

Bing LiuCS Department, UIC13 Step 1: The Spy technique Sample a certain % of positive examples and put them into unlabeled set to act as “spies”. Run a classification algorithm assuming all unlabeled examples are negative, we will know the behavior of those actual positive examples in the unlabeled set through the “spies”. We can then extract reliable negative examples from the unlabeled set more accurately.

Bing LiuCS Department, UIC14 Step 1: Other methods 1-DNF method: Find the set of words W that occur in the positive documents more frequently than in the unlabeled set. Extract those documents from unlabeled set that do not contain any word in W. These documents form the reliable negative documents. Rocchio method from information retrieval Naïve Bayesian method.

Bing LiuCS Department, UIC15 Step 2: Running EM or SVM iteratively (1) Running a classification algorithm iteratively Run EM using P, RN and Q until it converges, or Run SVM iteratively using P, RN and Q until this no document from Q can be classified as negative. RN and Q are updated in each iteration, or … (2) Classifier selection.

Bing LiuCS Department, UIC16 Do they follow the theory? Yes, heuristic methods because Step 1 tries to find some initial reliable negative examples from the unlabeled set. Step 2 tried to identify more and more negative examples iteratively. The two steps together form an iterative strategy of increasing the number of unlabeled examples that are classified as negative while maintaining the positive examples correctly classified.

Bing LiuCS Department, UIC17 Can SVM be applied directly? Can we use SVM to directly deal with the problem of learning with positive and unlabeled examples, without using two steps? Yes, with a little re-formulation. The theory says that if the sample size is large enough, minimizing the number of unlabeled examples classified as positive while constraining the positive examples to be correctly classified will give a good classifier.

Bing LiuCS Department, UIC18 Support Vector Machines Support vector machines (SVM) are linear functions of the form f(x) = w T x + b, where w is the weight vector and x is the input vector. Let the set of training examples be {(x 1, y 1 ), (x 2, y 2 ), …, (x n, y n )}, where x i is an input vector and y i is its class label, y i  {1, -1}. To find the linear function: Minimize: Subject to:

Bing LiuCS Department, UIC19 Soft margin SVM To deal with cases where there may be no separating hyperplane due to noisy labels of both positive and negative training examples, the soft margin SVM is proposed: Minimize: Subject to: where C  0 is a parameter that controls the amount of training errors allowed.

Bing LiuCS Department, UIC20 Biased SVM (noiseless case) (Liu et al 2003) Assume that the first k-1 examples are positive examples (labeled 1), while the rest are unlabeled examples, which we label negative (-1). Minimize: Subject to:  i  0, i = k, k+1…, n

Bing LiuCS Department, UIC21 Biased SVM (noisy case) If we also allow positive set to have some noisy negative examples, then we have: Minimize: Subject to:  i  0, i = 1, 2, …, n. This turns out to be the same as the asymmetric cost SVM for dealing with unbalanced data. Of course, we have a different motivation.

Bing LiuCS Department, UIC22 Estimating performance We need to estimate the performance in order to select the parameters. Since learning from positive and negative examples often arise in retrieval situations, we use F score as the classification performance measure F = 2pr / (p+r) (p: precision, r: recall). To get a high F score, both precision and recall have to be high. However, without labeled negative examples, we do not know how to estimate the F score.

Bing LiuCS Department, UIC23 A performance criterion (Lee & Liu 2003) Performance criteria pr/Pr[Y=1]: It can be estimated directly from the validation set as r 2 /Pr[f(X) = 1] Recall r = Pr[f(X)=1| Y=1] Precision p = Pr[Y=1| f(X)=1] To see this Pr[f(X)=1|Y=1] Pr[Y=1] = Pr[Y=1|f(X)=1] Pr[f(X)=1]  // both side times r Behavior similar to the F-score (= 2pr / (p+r))

Bing LiuCS Department, UIC24 A performance criterion (cont …) r 2 /Pr[f(X) = 1] r can be estimated from positive examples in the validation set. Pr[f(X) = 1] can be obtained using the full validation set. This criterion actually reflects our theory very well.

Bing LiuCS Department, UIC25 Empirical Evaluation Two-step strategy: We implemented a benchmark system, called LPU, which is available at Step 1: Spy 1-DNF Rocchio Naïve Bayesian (NB) Step 2: EM with classifier selection SVM-one: Run SVM once. SVM-I: Run SVM iteratively and give converged classifier. SVM-IS: Run SVM iteratively with classifier selection Biased-SVM (we used SVM light package)

Bing LiuCS Department, UIC26

Bing LiuCS Department, UIC27 Results of Biased SVM

Bing LiuCS Department, UIC28 Some discussions All the current two-step methods are applicable only to text data. Biased-SVM (Liu et al 2003) and Weighted Logistic Regression (Lee & Liu 2003) are applicable to any types of data. Learning from positive and unlabeled data may be useful when the training data and test data have different distributions. Can we ignore negative training data? Under study …

Bing LiuCS Department, UIC29 Conclusions Gave an overview of the theory on learning with positive and unlabeled examples. Described the existing two-step strategy for learning. Presented an more principled approach to solve the problem based on a biased SVM formulation. Presented a performance measure pr/P(Y=1) that can be estimated from data. Experimental results using text classification show the superior classification power of Biased-SVM. Some more experimental work are being performed to compare Biased-SVM with weighted logistic regression method [Lee & Liu 2003].