SlideShare a Scribd company logo
Stochastic Subgradient Approach for
Solving Linear Support Vector
Machines
Jan Rupnik
Jozef Stefan Institute
Outline
• Introduction
• Support Vector Machines
• Stochastic Subgradient Descent SVM - Pegasos
• Experiments
Introduction
• Support Vector Machines (SVMs) have
become one of the most popular classification
tools in the last decade
• Straightforward implementations could not
handle large sets of training examples
• Recently methods for solving SVMs arose with
linear computational complexity
• Pegasos: primal estimated subgradient
approach for solving SVMs
Hard Margin SVM
Many possible hyperplanes
perfectly separate the two
classes (e.g. red line).
Only one hyperplane with the
maximum margin (blue line).
Support
vectors
Soft Margin SVM
Allow a small number of examples
to be misclassified to find a large
margin classifier.
The trade off between the
classification accuracy on the
training set and the size of the
margin is a parameter for the SVM
Problem setting
• Let S = {(x1,y1),..., (xm, ym)} be the set of input-
output pairs, where xi є RN
and yi є {-1,1}.
• Find the hyperplane with the normal vector w
є RN
and offset b є R that has good
classification accuracy on the training set S
and has a large margin.
• Classify a new example x as sign(w’x – b)
Optimization problem
• Regularized hinge loss:
minw λ/2 w’w + 1/m Σi(1 – yi(w’xi – b))+
Trade off between
margin and loss
Size of the margin
Expected hinge loss
on the training set
Positive for correctly
classified examples,
else negative
(1 – z)+ := max{0, 1-z} (hinge loss)
First summand is a quadratic
function, the sum is a
piecewise linear function. The
whole objective: piecewise
quadratic.
Perceptron
• We ignore the offset parameter b from now
on (b = 0)
• Regularized Hinge Loss (SVM):
minw λ/2 w’w + 1/m Σi(1 – yi(w’xi))+
• Perceptron
minw 1/m Σi(–yi(w’xi))+
0 1
Loss functions
0 1
0 1
Standard 0/1 loss
Perceptron loss
Hinge loss
Penalizes all incorrectly classified
examples with the same amount
Penalizes incorrectly classified
examples x proportionally to the
size of |w’x|
Penalizes incorrectly classified
examples and correctly classified
examples that lie within the margin
Examples that are correctly classified
but fall within the margin
Stochastic Subgradient Descent
• Gradient descent optimization in perceptron
(smooth objective)
• Subgradient descent in pegasos (non
differentiable objective)
Gradient
(unique)
Subgradients (all
equally valid)
Stochastic Subgradient
• Subgradient in perceptron: 1/m Σ–yixi for all
misclassified examples
• Subgradient in SVM: λw + 1/m Σi(1 – yixi) for all
misclassified examples
• For every point w the subgradient is a function of
the training sample S. We can estimate it from a
smaller random subset of S of size k, A,
(stochastic part) and speed up computations.
• Stochastic subgradient in SVM:
λw + 1/k Σ(x,y)єA&&misclassified(1 – yx)
Pegasos – the algorithm
Learning rate
Subsample
Subgradient
step
Projection into a
ball (rescaling)
Subgradient is
zero on other
training points
What’s new in pegasos?
• Sub-gradient descent technique 50 years old
• Soft Margin SVM 14 years old
• Typically the gradient descent methods suffer from
slow convergence
• Authors of Pegasos proved that aggressive decrease in
learning rate μt still leads to convergence.
– Previous works: μt = 1/(λ√t))
– pegasos: μt = 1/ (λt)
• Proved that the solution always lies in a ball of radius
1/√λ
SVM Light
• A popular SVM solver with superlinear
computational complexity
• Solves a large quadratic program
• Solution can be expressed in terms a small subset
of training vectors, called support vectors
• Active set method to find the support vectors
• Solve a series of smaller quadratic problems
• Highly accurate solutions
• Algorithm and implementation by Thorsten
Joachims
T. Joachims, Making large-Scale SVM Learning Practical. Advances in Kernel
Methods - Support Vector Learning, B. Schölkopf and C. Burges and A. Smola (ed.),
MIT Press, 1999
Experiments
• Data
– Reuters RCV2
– Roughly 800.000 news articles
– Already preprocessed to bag of word vectors,
publicly available
– Number of features roughly 50.000
– Sparse vectors
– category CCAT, which consists of 381.327 news
Quick convergence to suboptimal
solutions
•200 iterations
took 9.2 CPU
seconds, the
objective value
was 0.3%
higher than the
optimal
solution
•560 iterations
to get a 0.1%
accurate
solution
•SVM Light
takes roughly 4
hours of CPU
time
Test set error
•Optimizing
the objective
value to a
high
precission is
often not
necessary
•The lowest
error on the
test set is
achieved
much earlier
Parameters k and T
•The product of
kT determines
how close to the
optimal value we
get
•If kT is fixed the
k does not play a
significant role
Conclusions and final notes
• Pegasos – one of the most efficient
suboptimal SVM solvers
• Suboptimal solutions often generalize to new
examples well
• Can take advantage of sparsity
• Linear solver
• Nonlinear extensions have been proposed,
but they suffer from slower convergence
Thank you!

More Related Content

What's hot

SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
karan sati
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transforms
Iffat Anjum
 
Fourier transform
Fourier transformFourier transform
Fourier transform
Chinnannan Periasamy
 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03
Rediet Moges
 
Fft ppt
Fft pptFft ppt
Fft ppt
Puneet Gupta
 
Mit6 094 iap10_lec03
Mit6 094 iap10_lec03Mit6 094 iap10_lec03
Mit6 094 iap10_lec03
Tribhuwan Pant
 
Mit6 094 iap10_lec04
Mit6 094 iap10_lec04Mit6 094 iap10_lec04
Mit6 094 iap10_lec04
Tribhuwan Pant
 
Dft,fft,windowing
Dft,fft,windowingDft,fft,windowing
Dft,fft,windowing
Abhishek Verma
 
Sampling theorem
Sampling theoremSampling theorem
Sampling theorem
Shanu Bhuvana
 
Gradient Descent, Back Propagation, and Auto Differentiation - Advanced Spark...
Gradient Descent, Back Propagation, and Auto Differentiation - Advanced Spark...Gradient Descent, Back Propagation, and Auto Differentiation - Advanced Spark...
Gradient Descent, Back Propagation, and Auto Differentiation - Advanced Spark...
Chris Fregly
 
Mit6 094 iap10_lec01
Mit6 094 iap10_lec01Mit6 094 iap10_lec01
Mit6 094 iap10_lec01
Tribhuwan Pant
 
PhysicsSIG2008-01-Seneviratne
PhysicsSIG2008-01-SeneviratnePhysicsSIG2008-01-Seneviratne
PhysicsSIG2008-01-Seneviratne
Sarath Senevirtatne
 
Fft
FftFft
Fft
akliluw
 
Mit6 094 iap10_lec02
Mit6 094 iap10_lec02Mit6 094 iap10_lec02
Mit6 094 iap10_lec02
Tribhuwan Pant
 
Fast fourier transform
Fast fourier transformFast fourier transform
Fast fourier transform
Ashraf Khan
 
Fourier transforms
Fourier transforms Fourier transforms
Fourier transforms
Fahad B. Mostafa
 
Ecte401 notes week3
Ecte401 notes week3Ecte401 notes week3
Ecte401 notes week3
subhasree konar
 
Ff tand matlab-wanjun huang
Ff tand matlab-wanjun huangFf tand matlab-wanjun huang
Ff tand matlab-wanjun huang
Sagar Ahir
 
Lti system
Lti systemLti system
Lti system
Fariza Zahari
 
The Fast Fourier Transform (FFT)
The Fast Fourier Transform (FFT)The Fast Fourier Transform (FFT)
The Fast Fourier Transform (FFT)
Oka Danil
 

What's hot (20)

SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transforms
 
Fourier transform
Fourier transformFourier transform
Fourier transform
 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03
 
Fft ppt
Fft pptFft ppt
Fft ppt
 
Mit6 094 iap10_lec03
Mit6 094 iap10_lec03Mit6 094 iap10_lec03
Mit6 094 iap10_lec03
 
Mit6 094 iap10_lec04
Mit6 094 iap10_lec04Mit6 094 iap10_lec04
Mit6 094 iap10_lec04
 
Dft,fft,windowing
Dft,fft,windowingDft,fft,windowing
Dft,fft,windowing
 
Sampling theorem
Sampling theoremSampling theorem
Sampling theorem
 
Gradient Descent, Back Propagation, and Auto Differentiation - Advanced Spark...
Gradient Descent, Back Propagation, and Auto Differentiation - Advanced Spark...Gradient Descent, Back Propagation, and Auto Differentiation - Advanced Spark...
Gradient Descent, Back Propagation, and Auto Differentiation - Advanced Spark...
 
Mit6 094 iap10_lec01
Mit6 094 iap10_lec01Mit6 094 iap10_lec01
Mit6 094 iap10_lec01
 
PhysicsSIG2008-01-Seneviratne
PhysicsSIG2008-01-SeneviratnePhysicsSIG2008-01-Seneviratne
PhysicsSIG2008-01-Seneviratne
 
Fft
FftFft
Fft
 
Mit6 094 iap10_lec02
Mit6 094 iap10_lec02Mit6 094 iap10_lec02
Mit6 094 iap10_lec02
 
Fast fourier transform
Fast fourier transformFast fourier transform
Fast fourier transform
 
Fourier transforms
Fourier transforms Fourier transforms
Fourier transforms
 
Ecte401 notes week3
Ecte401 notes week3Ecte401 notes week3
Ecte401 notes week3
 
Ff tand matlab-wanjun huang
Ff tand matlab-wanjun huangFf tand matlab-wanjun huang
Ff tand matlab-wanjun huang
 
Lti system
Lti systemLti system
Lti system
 
The Fast Fourier Transform (FFT)
The Fast Fourier Transform (FFT)The Fast Fourier Transform (FFT)
The Fast Fourier Transform (FFT)
 

Viewers also liked

"Hybrid" KT & Project Planning Template
"Hybrid" KT & Project Planning Template "Hybrid" KT & Project Planning Template
"Hybrid" KT & Project Planning Template
KBHN KT
 
Kepner-Tregoe 2016 Workshop Catalog
Kepner-Tregoe 2016 Workshop CatalogKepner-Tregoe 2016 Workshop Catalog
Kepner-Tregoe 2016 Workshop Catalog
Kepner-Tregoe
 
Problem solving overview
Problem solving overviewProblem solving overview
Problem solving overview
LineView Academy (was OFX Academy)
 
Fusion14 session 202 problem management - making it work for your organization
Fusion14 session 202   problem management - making it work for your organizationFusion14 session 202   problem management - making it work for your organization
Fusion14 session 202 problem management - making it work for your organization
Kepner-Tregoe
 
Kepner tregoe Presentation
Kepner tregoe Presentation Kepner tregoe Presentation
Kepner tregoe Presentation
Alessandro Faidutti
 
Application of Calculus in Real World
Application of Calculus in Real World Application of Calculus in Real World
Application of Calculus in Real World
milanmath
 
Kepner tregoe approach to problem solving
Kepner tregoe approach to problem solvingKepner tregoe approach to problem solving
Kepner tregoe approach to problem solving
Rhenmar Galvez
 
Kt Intro Master V7
Kt Intro Master V7Kt Intro Master V7
Kt Intro Master V7
TedLemmers
 
Problem Solving and Decision Making
Problem Solving and Decision MakingProblem Solving and Decision Making
Problem Solving and Decision Making
Ibrahim M. Morsy
 
Decision Making Process
Decision Making ProcessDecision Making Process
Decision Making Process
Aima Masood
 
Decision making & problem solving
Decision making & problem solvingDecision making & problem solving
Decision making & problem solving
ashish1afmi
 
PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT
Andrew Schwartz
 

Viewers also liked (12)

"Hybrid" KT & Project Planning Template
"Hybrid" KT & Project Planning Template "Hybrid" KT & Project Planning Template
"Hybrid" KT & Project Planning Template
 
Kepner-Tregoe 2016 Workshop Catalog
Kepner-Tregoe 2016 Workshop CatalogKepner-Tregoe 2016 Workshop Catalog
Kepner-Tregoe 2016 Workshop Catalog
 
Problem solving overview
Problem solving overviewProblem solving overview
Problem solving overview
 
Fusion14 session 202 problem management - making it work for your organization
Fusion14 session 202   problem management - making it work for your organizationFusion14 session 202   problem management - making it work for your organization
Fusion14 session 202 problem management - making it work for your organization
 
Kepner tregoe Presentation
Kepner tregoe Presentation Kepner tregoe Presentation
Kepner tregoe Presentation
 
Application of Calculus in Real World
Application of Calculus in Real World Application of Calculus in Real World
Application of Calculus in Real World
 
Kepner tregoe approach to problem solving
Kepner tregoe approach to problem solvingKepner tregoe approach to problem solving
Kepner tregoe approach to problem solving
 
Kt Intro Master V7
Kt Intro Master V7Kt Intro Master V7
Kt Intro Master V7
 
Problem Solving and Decision Making
Problem Solving and Decision MakingProblem Solving and Decision Making
Problem Solving and Decision Making
 
Decision Making Process
Decision Making ProcessDecision Making Process
Decision Making Process
 
Decision making & problem solving
Decision making & problem solvingDecision making & problem solving
Decision making & problem solving
 
PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT
 

Similar to 1629 stochastic subgradient approach for solving linear support vector

Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...
Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...
Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...
Universitat Politècnica de Catalunya
 
Notes relating to Machine Learning and SVM
Notes relating to Machine Learning and SVMNotes relating to Machine Learning and SVM
Notes relating to Machine Learning and SVM
SyedSaimGardezi
 
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Universitat Politècnica de Catalunya
 
ARTIFICIAL-NEURAL-NETWORKMACHINELEARNING
ARTIFICIAL-NEURAL-NETWORKMACHINELEARNINGARTIFICIAL-NEURAL-NETWORKMACHINELEARNING
ARTIFICIAL-NEURAL-NETWORKMACHINELEARNING
mohanapriyastp
 
Machine learning interviews day2
Machine learning interviews   day2Machine learning interviews   day2
Machine learning interviews day2
rajmohanc
 
Support Vector Machines- SVM
Support Vector Machines- SVMSupport Vector Machines- SVM
Support Vector Machines- SVM
Carlo Carandang
 
Support Vector Machines USING MACHINE LEARNING HOW IT WORKS
Support Vector Machines USING MACHINE LEARNING HOW IT WORKSSupport Vector Machines USING MACHINE LEARNING HOW IT WORKS
Support Vector Machines USING MACHINE LEARNING HOW IT WORKS
rajalakshmi5921
 
super vector machines algorithms using deep
super vector machines algorithms using deepsuper vector machines algorithms using deep
super vector machines algorithms using deep
KNaveenKumarECE
 
Support vector machine in data mining.pdf
Support vector machine in data mining.pdfSupport vector machine in data mining.pdf
Support vector machine in data mining.pdf
RubhithaA
 
Extra Lecture - Support Vector Machines (SVM), a lecture in subject module St...
Extra Lecture - Support Vector Machines (SVM), a lecture in subject module St...Extra Lecture - Support Vector Machines (SVM), a lecture in subject module St...
Extra Lecture - Support Vector Machines (SVM), a lecture in subject module St...
Maninda Edirisooriya
 
3. Regression.pdf
3. Regression.pdf3. Regression.pdf
3. Regression.pdf
Jyoti Yadav
 
Svm vs ls svm
Svm vs ls svmSvm vs ls svm
Svm vs ls svm
Pulipaka Sai Ravi Teja
 
Transformation of Random variables & noise concepts
Transformation of Random variables & noise concepts Transformation of Random variables & noise concepts
Transformation of Random variables & noise concepts
Darshan Bhatt
 
Sparsenet
SparsenetSparsenet
Sparsenet
ndronen
 
support vector machine 1.pptx
support vector machine 1.pptxsupport vector machine 1.pptx
support vector machine 1.pptx
surbhidutta4
 
machine learning.pptx
machine learning.pptxmachine learning.pptx
machine learning.pptx
AbdusSadik
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
Rishabh Gupta
 
Undecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsUndecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation Algorithms
Muthu Vinayagam
 
Introduction to dynamic programming
Introduction to dynamic programmingIntroduction to dynamic programming
Introduction to dynamic programming
Amisha Narsingani
 
Machine Learning workshop by GDSC Amity University Chhattisgarh
Machine Learning workshop by GDSC Amity University ChhattisgarhMachine Learning workshop by GDSC Amity University Chhattisgarh
Machine Learning workshop by GDSC Amity University Chhattisgarh
Poorabpatel
 

Similar to 1629 stochastic subgradient approach for solving linear support vector (20)

Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...
Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...
Optimization for Neural Network Training - Veronica Vilaplana - UPC Barcelona...
 
Notes relating to Machine Learning and SVM
Notes relating to Machine Learning and SVMNotes relating to Machine Learning and SVM
Notes relating to Machine Learning and SVM
 
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
Optimization (DLAI D4L1 2017 UPC Deep Learning for Artificial Intelligence)
 
ARTIFICIAL-NEURAL-NETWORKMACHINELEARNING
ARTIFICIAL-NEURAL-NETWORKMACHINELEARNINGARTIFICIAL-NEURAL-NETWORKMACHINELEARNING
ARTIFICIAL-NEURAL-NETWORKMACHINELEARNING
 
Machine learning interviews day2
Machine learning interviews   day2Machine learning interviews   day2
Machine learning interviews day2
 
Support Vector Machines- SVM
Support Vector Machines- SVMSupport Vector Machines- SVM
Support Vector Machines- SVM
 
Support Vector Machines USING MACHINE LEARNING HOW IT WORKS
Support Vector Machines USING MACHINE LEARNING HOW IT WORKSSupport Vector Machines USING MACHINE LEARNING HOW IT WORKS
Support Vector Machines USING MACHINE LEARNING HOW IT WORKS
 
super vector machines algorithms using deep
super vector machines algorithms using deepsuper vector machines algorithms using deep
super vector machines algorithms using deep
 
Support vector machine in data mining.pdf
Support vector machine in data mining.pdfSupport vector machine in data mining.pdf
Support vector machine in data mining.pdf
 
Extra Lecture - Support Vector Machines (SVM), a lecture in subject module St...
Extra Lecture - Support Vector Machines (SVM), a lecture in subject module St...Extra Lecture - Support Vector Machines (SVM), a lecture in subject module St...
Extra Lecture - Support Vector Machines (SVM), a lecture in subject module St...
 
3. Regression.pdf
3. Regression.pdf3. Regression.pdf
3. Regression.pdf
 
Svm vs ls svm
Svm vs ls svmSvm vs ls svm
Svm vs ls svm
 
Transformation of Random variables & noise concepts
Transformation of Random variables & noise concepts Transformation of Random variables & noise concepts
Transformation of Random variables & noise concepts
 
Sparsenet
SparsenetSparsenet
Sparsenet
 
support vector machine 1.pptx
support vector machine 1.pptxsupport vector machine 1.pptx
support vector machine 1.pptx
 
machine learning.pptx
machine learning.pptxmachine learning.pptx
machine learning.pptx
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Undecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsUndecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation Algorithms
 
Introduction to dynamic programming
Introduction to dynamic programmingIntroduction to dynamic programming
Introduction to dynamic programming
 
Machine Learning workshop by GDSC Amity University Chhattisgarh
Machine Learning workshop by GDSC Amity University ChhattisgarhMachine Learning workshop by GDSC Amity University Chhattisgarh
Machine Learning workshop by GDSC Amity University Chhattisgarh
 

More from Dr Fereidoun Dejahang

27 j20 my news punch -dr f dejahang 27-01-2020
27 j20 my news punch -dr f dejahang  27-01-202027 j20 my news punch -dr f dejahang  27-01-2020
27 j20 my news punch -dr f dejahang 27-01-2020
Dr Fereidoun Dejahang
 
28 dej my news punch rev 28-12-2019
28 dej my news punch rev 28-12-201928 dej my news punch rev 28-12-2019
28 dej my news punch rev 28-12-2019
Dr Fereidoun Dejahang
 
16 fd my news punch rev 16-12-2019
16 fd my news punch rev 16-12-201916 fd my news punch rev 16-12-2019
16 fd my news punch rev 16-12-2019
Dr Fereidoun Dejahang
 
029 fast-tracking projects
029 fast-tracking projects029 fast-tracking projects
029 fast-tracking projects
Dr Fereidoun Dejahang
 
028 fast-tracking projects & cost overrun
028 fast-tracking projects & cost overrun028 fast-tracking projects & cost overrun
028 fast-tracking projects & cost overrun
Dr Fereidoun Dejahang
 
027 fast-tracked projects-materials
027 fast-tracked projects-materials027 fast-tracked projects-materials
027 fast-tracked projects-materials
Dr Fereidoun Dejahang
 
026 fast react-productivity improvement
026 fast react-productivity improvement026 fast react-productivity improvement
026 fast react-productivity improvement
Dr Fereidoun Dejahang
 
025 enterprise resources management
025 enterprise resources management025 enterprise resources management
025 enterprise resources management
Dr Fereidoun Dejahang
 
022 b construction productivity-write
022 b construction productivity-write022 b construction productivity-write
022 b construction productivity-write
Dr Fereidoun Dejahang
 
022 a construction productivity (2)
022 a construction productivity (2)022 a construction productivity (2)
022 a construction productivity (2)
Dr Fereidoun Dejahang
 
021 construction productivity (1)
021 construction productivity (1)021 construction productivity (1)
021 construction productivity (1)
Dr Fereidoun Dejahang
 
019 competencies-managers
019 competencies-managers019 competencies-managers
019 competencies-managers
Dr Fereidoun Dejahang
 
018 company productivity
018 company productivity018 company productivity
018 company productivity
Dr Fereidoun Dejahang
 
017 communication
017 communication017 communication
017 communication
Dr Fereidoun Dejahang
 
016 communication in construction sector
016 communication in construction sector016 communication in construction sector
016 communication in construction sector
Dr Fereidoun Dejahang
 
015 changes-process model
015 changes-process model015 changes-process model
015 changes-process model
Dr Fereidoun Dejahang
 
014 changes-cost overrun measurement
014 changes-cost overrun measurement014 changes-cost overrun measurement
014 changes-cost overrun measurement
Dr Fereidoun Dejahang
 
013 changes in construction projects
013 changes in construction projects013 changes in construction projects
013 changes in construction projects
Dr Fereidoun Dejahang
 
012 bussiness planning process
012 bussiness planning process012 bussiness planning process
012 bussiness planning process
Dr Fereidoun Dejahang
 
011 business performance management
011 business performance management011 business performance management
011 business performance management
Dr Fereidoun Dejahang
 

More from Dr Fereidoun Dejahang (20)

27 j20 my news punch -dr f dejahang 27-01-2020
27 j20 my news punch -dr f dejahang  27-01-202027 j20 my news punch -dr f dejahang  27-01-2020
27 j20 my news punch -dr f dejahang 27-01-2020
 
28 dej my news punch rev 28-12-2019
28 dej my news punch rev 28-12-201928 dej my news punch rev 28-12-2019
28 dej my news punch rev 28-12-2019
 
16 fd my news punch rev 16-12-2019
16 fd my news punch rev 16-12-201916 fd my news punch rev 16-12-2019
16 fd my news punch rev 16-12-2019
 
029 fast-tracking projects
029 fast-tracking projects029 fast-tracking projects
029 fast-tracking projects
 
028 fast-tracking projects & cost overrun
028 fast-tracking projects & cost overrun028 fast-tracking projects & cost overrun
028 fast-tracking projects & cost overrun
 
027 fast-tracked projects-materials
027 fast-tracked projects-materials027 fast-tracked projects-materials
027 fast-tracked projects-materials
 
026 fast react-productivity improvement
026 fast react-productivity improvement026 fast react-productivity improvement
026 fast react-productivity improvement
 
025 enterprise resources management
025 enterprise resources management025 enterprise resources management
025 enterprise resources management
 
022 b construction productivity-write
022 b construction productivity-write022 b construction productivity-write
022 b construction productivity-write
 
022 a construction productivity (2)
022 a construction productivity (2)022 a construction productivity (2)
022 a construction productivity (2)
 
021 construction productivity (1)
021 construction productivity (1)021 construction productivity (1)
021 construction productivity (1)
 
019 competencies-managers
019 competencies-managers019 competencies-managers
019 competencies-managers
 
018 company productivity
018 company productivity018 company productivity
018 company productivity
 
017 communication
017 communication017 communication
017 communication
 
016 communication in construction sector
016 communication in construction sector016 communication in construction sector
016 communication in construction sector
 
015 changes-process model
015 changes-process model015 changes-process model
015 changes-process model
 
014 changes-cost overrun measurement
014 changes-cost overrun measurement014 changes-cost overrun measurement
014 changes-cost overrun measurement
 
013 changes in construction projects
013 changes in construction projects013 changes in construction projects
013 changes in construction projects
 
012 bussiness planning process
012 bussiness planning process012 bussiness planning process
012 bussiness planning process
 
011 business performance management
011 business performance management011 business performance management
011 business performance management
 

Recently uploaded

ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
dot55audits
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
Amin Marwan
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 

Recently uploaded (20)

ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 

1629 stochastic subgradient approach for solving linear support vector

  • 1. Stochastic Subgradient Approach for Solving Linear Support Vector Machines Jan Rupnik Jozef Stefan Institute
  • 2. Outline • Introduction • Support Vector Machines • Stochastic Subgradient Descent SVM - Pegasos • Experiments
  • 3. Introduction • Support Vector Machines (SVMs) have become one of the most popular classification tools in the last decade • Straightforward implementations could not handle large sets of training examples • Recently methods for solving SVMs arose with linear computational complexity • Pegasos: primal estimated subgradient approach for solving SVMs
  • 4. Hard Margin SVM Many possible hyperplanes perfectly separate the two classes (e.g. red line). Only one hyperplane with the maximum margin (blue line). Support vectors
  • 5. Soft Margin SVM Allow a small number of examples to be misclassified to find a large margin classifier. The trade off between the classification accuracy on the training set and the size of the margin is a parameter for the SVM
  • 6. Problem setting • Let S = {(x1,y1),..., (xm, ym)} be the set of input- output pairs, where xi є RN and yi є {-1,1}. • Find the hyperplane with the normal vector w є RN and offset b є R that has good classification accuracy on the training set S and has a large margin. • Classify a new example x as sign(w’x – b)
  • 7. Optimization problem • Regularized hinge loss: minw λ/2 w’w + 1/m Σi(1 – yi(w’xi – b))+ Trade off between margin and loss Size of the margin Expected hinge loss on the training set Positive for correctly classified examples, else negative (1 – z)+ := max{0, 1-z} (hinge loss) First summand is a quadratic function, the sum is a piecewise linear function. The whole objective: piecewise quadratic.
  • 8. Perceptron • We ignore the offset parameter b from now on (b = 0) • Regularized Hinge Loss (SVM): minw λ/2 w’w + 1/m Σi(1 – yi(w’xi))+ • Perceptron minw 1/m Σi(–yi(w’xi))+
  • 9. 0 1 Loss functions 0 1 0 1 Standard 0/1 loss Perceptron loss Hinge loss Penalizes all incorrectly classified examples with the same amount Penalizes incorrectly classified examples x proportionally to the size of |w’x| Penalizes incorrectly classified examples and correctly classified examples that lie within the margin Examples that are correctly classified but fall within the margin
  • 10. Stochastic Subgradient Descent • Gradient descent optimization in perceptron (smooth objective) • Subgradient descent in pegasos (non differentiable objective) Gradient (unique) Subgradients (all equally valid)
  • 11. Stochastic Subgradient • Subgradient in perceptron: 1/m Σ–yixi for all misclassified examples • Subgradient in SVM: λw + 1/m Σi(1 – yixi) for all misclassified examples • For every point w the subgradient is a function of the training sample S. We can estimate it from a smaller random subset of S of size k, A, (stochastic part) and speed up computations. • Stochastic subgradient in SVM: λw + 1/k Σ(x,y)єA&&misclassified(1 – yx)
  • 12. Pegasos – the algorithm Learning rate Subsample Subgradient step Projection into a ball (rescaling) Subgradient is zero on other training points
  • 13. What’s new in pegasos? • Sub-gradient descent technique 50 years old • Soft Margin SVM 14 years old • Typically the gradient descent methods suffer from slow convergence • Authors of Pegasos proved that aggressive decrease in learning rate μt still leads to convergence. – Previous works: μt = 1/(λ√t)) – pegasos: μt = 1/ (λt) • Proved that the solution always lies in a ball of radius 1/√λ
  • 14. SVM Light • A popular SVM solver with superlinear computational complexity • Solves a large quadratic program • Solution can be expressed in terms a small subset of training vectors, called support vectors • Active set method to find the support vectors • Solve a series of smaller quadratic problems • Highly accurate solutions • Algorithm and implementation by Thorsten Joachims T. Joachims, Making large-Scale SVM Learning Practical. Advances in Kernel Methods - Support Vector Learning, B. Schölkopf and C. Burges and A. Smola (ed.), MIT Press, 1999
  • 15. Experiments • Data – Reuters RCV2 – Roughly 800.000 news articles – Already preprocessed to bag of word vectors, publicly available – Number of features roughly 50.000 – Sparse vectors – category CCAT, which consists of 381.327 news
  • 16. Quick convergence to suboptimal solutions •200 iterations took 9.2 CPU seconds, the objective value was 0.3% higher than the optimal solution •560 iterations to get a 0.1% accurate solution •SVM Light takes roughly 4 hours of CPU time
  • 17. Test set error •Optimizing the objective value to a high precission is often not necessary •The lowest error on the test set is achieved much earlier
  • 18. Parameters k and T •The product of kT determines how close to the optimal value we get •If kT is fixed the k does not play a significant role
  • 19. Conclusions and final notes • Pegasos – one of the most efficient suboptimal SVM solvers • Suboptimal solutions often generalize to new examples well • Can take advantage of sparsity • Linear solver • Nonlinear extensions have been proposed, but they suffer from slower convergence