Git Product home page Git Product logo

alfasvmlib's Introduction

ALFASVMLib

A Matlab Library on Adversarial Label Flip Attacks on SVM

Introduction

ALFASVMLib is an open source Matlab Library for researchers in the domain of adversarial machine learning, and, in particular, for who is interested in understanding the vulnerability of SVM learning algorithms to adversarial label flips (i.e., worst-case label noise). It library relies on Libsvm (ver>3.17) and on the CVX solver. The goal of the included label flip attack algorithms is to maximally decrease the SVM's classification accuracy on unseen data, by flipping a number of labels in the training data. We publish this library for researchers who are interested in exploring possible weaknesses of machine learning algorithms and in designing more robust learning-based systems. If you download and use this library, especially for research purposes, please cite our related work as follows:

Xiao, Huang, Battista Biggio, Blaine Nelson, Han Xiao, Claudia Eckert, and Fabio Roli.
Support Vector Machines under Adversarial Label Contamination.
Neurocomputing, Special Issue on Advances in Learning with Label Noise, 2014.

More updated details on the publication, along with the paper itself and bibtex citation, can be found here: http://pralab.diee.unica.it/biggio14-neurocomputing

System Requirements

You need at least following programs/libs installed on your machine.

Add pathes of libsvm and cvx in your matlab path, no installation required.

File list

File name Description
./@CPerfEval/ Class for performance evaluation
./datasets/ Folder of toy data sets
./CAttacker.m Abstract class of classifier - attacker
./CAttackerSVM.m Parent class of SVM attacker
./CAttackerSVMAlfa.m ALFA class of SVM attacker
./CAttackerSVMAlfaCr.m Continuous label relaxation attacker
./CAttackerSVMCorrClusters.m Correlated cluster label attacker
./CAttackerSVMDist.m Distance based ALFA attacker
./CClassifier.m Abstract class of classifier
./CClassifierSVM.m Class of SVM
./CKernel.m Class of Kernel
./README.txt README file
./COPYRIGHT.txt Copyright disclaim
./LICENSE.txt License information
./demo.m Demo file of HOWTO
./paper_exp1.m Script for the experiment in Sec. 4.1 of the paper [1]
./paper_exp2.m Script for the experiment in Sec. 4.2 of the paper [1]

Usage

mySVM = CClassifierSVM('rbf');
params = {'C', 'gamma'};
values = {2.^[-5,3], 2.^[-5,3]};
best = mySVM.crossval(y_tr, x_tr, ...
                      params, values, 'cperf', 'accuracy', 'kfold', 5);
best_c = best{1};       % best C for SVM
best_g = best{2};       % best gamma for SVM

% training SVM and classify on test set
mySVM.train(y_tr, x_tr);
y_tt = mySVM.classify(x_ts);

See more details in demo.m

Authors

Author #1 Author #2
Xiao, Huang Biggio, Battista
[email protected] [email protected]
Technical University of Munich
Computer Science
University of Cagliari
Electronic and Electrical Eng., DIEE

Copyright 2014-07 Huang Xiao and Battista Biggio.
ALFASVMLib: A Matlab library for adversarial label flip attacks against SVMs

Website: http://pralab.diee.unica.it/ALFASVMLib

References

[1] Xiao, Huang, Battista Biggio, Blaine Nelson, Han Xiao, Claudia Eckert, and Fabio Roli. Support Vector Machines under Adversarial Label Contamination. Journal of Neurocomputing, Special Issue on Advances in Learning with Label Noise, 2014.

alfasvmlib's People

Contributors

feuerchop avatar ghadireraisha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.