annotate writeup/techreport.tex @ 583:ae77edb9df67

DIRO techreport, sent to arXiv
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Sat, 18 Sep 2010 16:44:46 -0400
parents 9ebb335ca904
children 81c6fde68a8a
rev   line source
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1 \documentclass{article} % For LaTeX2e
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
2 \usepackage{times}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
3 \usepackage{wrapfig}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
4 \usepackage{amsthm,amsmath,bbm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
5 \usepackage[psamsfonts]{amssymb}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
6 \usepackage{algorithm,algorithmic}
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
7 \usepackage[utf8]{inputenc}
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
8 \usepackage{graphicx,subfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
9 \usepackage[numbers]{natbib}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
10
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
11 \addtolength{\textwidth}{10mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
12 \addtolength{\evensidemargin}{-5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
13 \addtolength{\oddsidemargin}{-5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
14
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
15 %\setlength\parindent{0mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
16
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
17 \title{Deep Self-Taught Learning for Handwritten Character Recognition}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
18 \author{
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
19 Frédéric Bastien \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
20 Yoshua Bengio \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
21 Arnaud Bergeron \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
22 Nicolas Boulanger-Lewandowski \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
23 Thomas Breuel \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
24 Youssouf Chherawala \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
25 Moustapha Cisse \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
26 Myriam Côté \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
27 Dumitru Erhan \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
28 Jeremy Eustache \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
29 Xavier Glorot \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
30 Xavier Muller \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
31 Sylvain Pannetier Lebeuf \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
32 Razvan Pascanu \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
33 Salah Rifai \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
34 Francois Savard \and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
35 Guillaume Sicard
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
36 }
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
37 \date{June 8th, 2010, Technical Report 1353, Dept. IRO, U. Montreal}
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
38
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
39 \begin{document}
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
40
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
41 %\makeanontitle
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
42 \maketitle
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
43
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
44 %\vspace*{-2mm}
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
45 \begin{abstract}
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
46 Recent theoretical and empirical work in statistical machine learning has
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
47 demonstrated the importance of learning algorithms for deep
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
48 architectures, i.e., function classes obtained by composing multiple
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
49 non-linear transformations. Self-taught learning (exploiting unlabeled
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
50 examples or examples from other distributions) has already been applied
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
51 to deep learners, but mostly to show the advantage of unlabeled
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
52 examples. Here we explore the advantage brought by {\em out-of-distribution examples}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
53 For this purpose we
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
54 developed a powerful generator of stochastic variations and noise
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
55 processes for character images, including not only affine transformations
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
56 but also slant, local elastic deformations, changes in thickness,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
57 background images, grey level changes, contrast, occlusion, and various
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
58 types of noise. The out-of-distribution examples are obtained from these
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
59 highly distorted images or by including examples of object classes
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
60 different from those in the target test set.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
61 We show that {\em deep learners benefit
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
62 more from them than a corresponding shallow learner}, at least in the area of
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
63 handwritten character recognition. In fact, we show that they reach
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
64 human-level performance on both handwritten digit classification and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
65 62-class handwritten character recognition.
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
66 \end{abstract}
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
67 %\vspace*{-3mm}
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
68
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
69 \section{Introduction}
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
70 %\vspace*{-1mm}
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
71
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
72 {\bf Deep Learning} has emerged as a promising new area of research in
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
73 statistical machine learning (see~\citet{Bengio-2009} for a review).
392
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
74 Learning algorithms for deep architectures are centered on the learning
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
75 of useful representations of data, which are better suited to the task at hand.
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
76 This is in part inspired by observations of the mammalian visual cortex,
392
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
77 which consists of a chain of processing elements, each of which is associated with a
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
78 different representation of the raw visual input. In fact,
392
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
79 it was found recently that the features learnt in deep architectures resemble
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
80 those observed in the first two of these stages (in areas V1 and V2
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
81 of visual cortex)~\citep{HonglakL2008}, and that they become more and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
82 more invariant to factors of variation (such as camera movement) in
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
83 higher layers~\citep{Goodfellow2009}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
84 Learning a hierarchy of features increases the
392
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
85 ease and practicality of developing representations that are at once
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
86 tailored to specific tasks, yet are able to borrow statistical strength
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
87 from other related tasks (e.g., modeling different kinds of objects). Finally, learning the
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
88 feature representation can lead to higher-level (more abstract, more
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
89 general) features that are more robust to unanticipated sources of
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
90 variance extant in real data.
5f8fffd7347f possible image for illustrating perturbations
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 381
diff changeset
91
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
92 {\bf Self-taught learning}~\citep{RainaR2007} is a paradigm that combines principles
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
93 of semi-supervised and multi-task learning: the learner can exploit examples
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
94 that are unlabeled and possibly come from a distribution different from the target
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
95 distribution, e.g., from other classes than those of interest.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
96 It has already been shown that deep learners can clearly take advantage of
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
97 unsupervised learning and unlabeled examples~\citep{Bengio-2009,WestonJ2008-small},
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
98 but more needs to be done to explore the impact
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
99 of {\em out-of-distribution} examples and of the multi-task setting
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
100 (one exception is~\citep{CollobertR2008}, which uses a different kind
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
101 of learning algorithm). In particular the {\em relative
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
102 advantage} of deep learning for these settings has not been evaluated.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
103 The hypothesis discussed in the conclusion is that a deep hierarchy of features
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
104 may be better able to provide sharing of statistical strength
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
105 between different regions in input space or different tasks.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
106
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
107 \iffalse
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
108 Whereas a deep architecture can in principle be more powerful than a
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
109 shallow one in terms of representation, depth appears to render the
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
110 training problem more difficult in terms of optimization and local minima.
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
111 It is also only recently that successful algorithms were proposed to
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
112 overcome some of these difficulties. All are based on unsupervised
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
113 learning, often in an greedy layer-wise ``unsupervised pre-training''
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
114 stage~\citep{Bengio-2009}. One of these layer initialization techniques,
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
115 applied here, is the Denoising
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
116 Auto-encoder~(DA)~\citep{VincentPLarochelleH2008-very-small} (see Figure~\ref{fig:da}),
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
117 which
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
118 performed similarly or better than previously proposed Restricted Boltzmann
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
119 Machines in terms of unsupervised extraction of a hierarchy of features
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
120 useful for classification. Each layer is trained to denoise its
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
121 input, creating a layer of features that can be used as input for the next layer.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
122 \fi
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
123 %The principle is that each layer starting from
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
124 %the bottom is trained to encode its input (the output of the previous
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
125 %layer) and to reconstruct it from a corrupted version. After this
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
126 %unsupervised initialization, the stack of DAs can be
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
127 %converted into a deep supervised feedforward neural network and fine-tuned by
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
128 %stochastic gradient descent.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
129
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
130 %
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
131 In this paper we ask the following questions:
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
132
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
133 %\begin{enumerate}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
134 $\bullet$ %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
135 Do the good results previously obtained with deep architectures on the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
136 MNIST digit images generalize to the setting of a much larger and richer (but similar)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
137 dataset, the NIST special database 19, with 62 classes and around 800k examples?
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
138
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
139 $\bullet$ %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
140 To what extent does the perturbation of input images (e.g. adding
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
141 noise, affine transformations, background images) make the resulting
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
142 classifiers better not only on similarly perturbed images but also on
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
143 the {\em original clean examples}? We study this question in the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
144 context of the 62-class and 10-class tasks of the NIST special database 19.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
145
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
146 $\bullet$ %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
147 Do deep architectures {\em benefit more from such out-of-distribution}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
148 examples, i.e. do they benefit more from the self-taught learning~\citep{RainaR2007} framework?
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
149 We use highly perturbed examples to generate out-of-distribution examples.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
150
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
151 $\bullet$ %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
152 Similarly, does the feature learning step in deep learning algorithms benefit more
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
153 from training with moderately different classes (i.e. a multi-task learning scenario) than
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
154 a corresponding shallow and purely supervised architecture?
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
155 We train on 62 classes and test on 10 (digits) or 26 (upper case or lower case)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
156 to answer this question.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
157 %\end{enumerate}
420
a3a4a9c6476d added transformations description and began dataset descriptions
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 417
diff changeset
158
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
159 Our experimental results provide positive evidence towards all of these questions.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
160 To achieve these results, we introduce in the next section a sophisticated system
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
161 for stochastically transforming character images and then explain the methodology,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
162 which is based on training with or without these transformed images and testing on
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
163 clean ones. We measure the relative advantage of out-of-distribution examples
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
164 for a deep learner vs a supervised shallow one.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
165 Code for generating these transformations as well as for the deep learning
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
166 algorithms are made available.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
167 We also estimate the relative advantage for deep learners of training with
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
168 other classes than those of interest, by comparing learners trained with
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
169 62 classes with learners trained with only a subset (on which they
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
170 are then tested).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
171 The conclusion discusses
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
172 the more general question of why deep learners may benefit so much from
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
173 the self-taught learning framework.
407
fe2e2964e7a3 description des transformations en cours ajout d un fichier special.bib pour des references specifiques
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 393
diff changeset
174
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
175 %\vspace*{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
176 \newpage
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
177 \section{Perturbation and Transformation of Character Images}
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
178 \label{s:perturbations}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
179 %\vspace*{-2mm}
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
180
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
181 \begin{wrapfigure}[8]{l}{0.15\textwidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
182 %\begin{minipage}[b]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
183 %\vspace*{-5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
184 \begin{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
185 \includegraphics[scale=.4]{images/Original.png}\\
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
186 {\bf Original}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
187 \end{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
188 \end{wrapfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
189 %%\vspace{0.7cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
190 %\end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
191 %\hspace{0.3cm}\begin{minipage}[b]{0.86\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
192 This section describes the different transformations we used to stochastically
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
193 transform $32 \times 32$ source images (such as the one on the left)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
194 in order to obtain data from a larger distribution which
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
195 covers a domain substantially larger than the clean characters distribution from
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
196 which we start.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
197 Although character transformations have been used before to
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
198 improve character recognizers, this effort is on a large scale both
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
199 in number of classes and in the complexity of the transformations, hence
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
200 in the complexity of the learning task.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
201 More details can
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
202 be found in this technical report~\citep{ift6266-tr-anonymous}.
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
203 The code for these transformations (mostly python) is available at
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
204 {\tt http://anonymous.url.net}. All the modules in the pipeline share
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
205 a global control parameter ($0 \le complexity \le 1$) that allows one to modulate the
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
206 amount of deformation or noise introduced.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
207 There are two main parts in the pipeline. The first one,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
208 from slant to pinch below, performs transformations. The second
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
209 part, from blur to contrast, adds different kinds of noise.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
210 %\end{minipage}
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
211
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
212 %\vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
213 \subsection{Transformations}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
214 %{\large\bf 2.1 Transformations}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
215 %\vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
216
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
217 \subsubsection*{Thickness}
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
218
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
219 %\begin{wrapfigure}[7]{l}{0.15\textwidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
220 \begin{minipage}[b]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
221 %\centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
222 \begin{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
223 \vspace*{-5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
224 \includegraphics[scale=.4]{images/Thick_only.png}\\
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
225 %{\bf Thickness}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
226 \end{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
227 \vspace{.6cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
228 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
229 \hspace{0.3cm}\begin{minipage}[b]{0.86\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
230 %\end{wrapfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
231 To change character {\bf thickness}, morphological operators of dilation and erosion~\citep{Haralick87,Serra82}
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
232 are applied. The neighborhood of each pixel is multiplied
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
233 element-wise with a {\em structuring element} matrix.
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
234 The pixel value is replaced by the maximum or the minimum of the resulting
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
235 matrix, respectively for dilation or erosion. Ten different structural elements with
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
236 increasing dimensions (largest is $5\times5$) were used. For each image,
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
237 randomly sample the operator type (dilation or erosion) with equal probability and one structural
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
238 element from a subset of the $n=round(m \times complexity)$ smallest structuring elements
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
239 where $m=10$ for dilation and $m=6$ for erosion (to avoid completely erasing thin characters).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
240 A neutral element (no transformation)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
241 is always present in the set.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
242 %%\vspace{.4cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
243 \end{minipage}
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
244
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
245 \vspace{2mm}
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
246
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
247 \subsubsection*{Slant}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
248 \vspace*{2mm}
420
a3a4a9c6476d added transformations description and began dataset descriptions
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 417
diff changeset
249
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
250 \begin{minipage}[b]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
251 \centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
252 \includegraphics[scale=.4]{images/Slant_only.png}\\
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
253 %{\bf Slant}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
254 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
255 \hspace{0.3cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
256 \begin{minipage}[b]{0.83\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
257 %\centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
258 To produce {\bf slant}, each row of the image is shifted
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
259 proportionally to its height: $shift = round(slant \times height)$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
260 $slant \sim U[-complexity,complexity]$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
261 The shift is randomly chosen to be either to the left or to the right.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
262 \vspace{5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
263 \end{minipage}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
264 %\vspace*{-4mm}
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
265
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
266 %\newpage
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
267
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
268 \subsubsection*{Affine Transformations}
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
269
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
270 \begin{minipage}[b]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
271 %\centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
272 %\begin{wrapfigure}[8]{l}{0.15\textwidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
273 \begin{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
274 \includegraphics[scale=.4]{images/Affine_only.png}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
275 \vspace*{6mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
276 %{\small {\bf Affine \mbox{Transformation}}}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
277 \end{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
278 %\end{wrapfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
279 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
280 \hspace{0.3cm}\begin{minipage}[b]{0.86\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
281 \noindent A $2 \times 3$ {\bf affine transform} matrix (with
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
282 parameters $(a,b,c,d,e,f)$) is sampled according to the $complexity$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
283 Output pixel $(x,y)$ takes the value of input pixel
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
284 nearest to $(ax+by+c,dx+ey+f)$,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
285 producing scaling, translation, rotation and shearing.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
286 Marginal distributions of $(a,b,c,d,e,f)$ have been tuned to
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
287 forbid large rotations (to avoid confusing classes) but to give good
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
288 variability of the transformation: $a$ and $d$ $\sim U[1-3
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
289 complexity,1+3\,complexity]$, $b$ and $e$ $\sim U[-3 \,complexity,3\,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
290 complexity]$, and $c$ and $f \sim U[-4 \,complexity, 4 \,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
291 complexity]$.\\
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
292 \end{minipage}
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
293
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
294 %\vspace*{-4.5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
295 \subsubsection*{Local Elastic Deformations}
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
296
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
297 %\begin{minipage}[t]{\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
298 %\begin{wrapfigure}[7]{l}{0.15\textwidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
299 %\hspace*{-8mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
300 \begin{minipage}[b]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
301 %\centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
302 \begin{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
303 \vspace*{5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
304 \includegraphics[scale=.4]{images/Localelasticdistorsions_only.png}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
305 %{\bf Local Elastic Deformation}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
306 \end{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
307 %\end{wrapfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
308 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
309 \hspace{3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
310 \begin{minipage}[b]{0.85\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
311 %%\vspace*{-20mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
312 The {\bf local elastic deformation}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
313 module induces a ``wiggly'' effect in the image, following~\citet{SimardSP03-short},
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
314 which provides more details.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
315 The intensity of the displacement fields is given by
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
316 $\alpha = \sqrt[3]{complexity} \times 10.0$, which are
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
317 convolved with a Gaussian 2D kernel (resulting in a blur) of
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
318 standard deviation $\sigma = 10 - 7 \times\sqrt[3]{complexity}$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
319 \vspace{2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
320 \end{minipage}
415
1e9788ce1680 Added the parts concerning the transformations I'd announced I'd do: Local elastic deformations; occlusions; gimp transformations; salt and pepper noise; background images
fsavard
parents: 411
diff changeset
321
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
322 \vspace*{4mm}
415
1e9788ce1680 Added the parts concerning the transformations I'd announced I'd do: Local elastic deformations; occlusions; gimp transformations; salt and pepper noise; background images
fsavard
parents: 411
diff changeset
323
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
324 \subsubsection*{Pinch}
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
325
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
326 \begin{minipage}[b]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
327 %\centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
328 %\begin{wrapfigure}[7]{l}{0.15\textwidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
329 %\vspace*{-5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
330 \begin{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
331 \includegraphics[scale=.4]{images/Pinch_only.png}\\
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
332 \vspace*{15mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
333 %{\bf Pinch}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
334 \end{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
335 %\end{wrapfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
336 %%\vspace{.6cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
337 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
338 \hspace{0.3cm}\begin{minipage}[b]{0.86\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
339 The {\bf pinch} module applies the ``Whirl and pinch'' GIMP filter with whirl set to 0.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
340 A pinch is ``similar to projecting the image onto an elastic
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
341 surface and pressing or pulling on the center of the surface'' (GIMP documentation manual).
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
342 For a square input image, draw a radius-$r$ disk
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
343 around its center $C$. Any pixel $P$ belonging to
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
344 that disk has its value replaced by
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
345 the value of a ``source'' pixel in the original image,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
346 on the line that goes through $C$ and $P$, but
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
347 at some other distance $d_2$. Define $d_1=distance(P,C)$
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
348 and $d_2 = sin(\frac{\pi{}d_1}{2r})^{-pinch} \times
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
349 d_1$, where $pinch$ is a parameter of the filter.
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
350 The actual value is given by bilinear interpolation considering the pixels
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
351 around the (non-integer) source position thus found.
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
352 Here $pinch \sim U[-complexity, 0.7 \times complexity]$.
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
353 %%\vspace{1.5cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
354 \end{minipage}
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
355
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
356 %\vspace{1mm}
416
5f9d04dda707 Correction d'une erreur pour pinch et ajout d'une ref bibliographique
fsavard
parents: 415
diff changeset
357
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
358 %{\large\bf 2.2 Injecting Noise}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
359 \subsection{Injecting Noise}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
360 %\vspace{2mm}
415
1e9788ce1680 Added the parts concerning the transformations I'd announced I'd do: Local elastic deformations; occlusions; gimp transformations; salt and pepper noise; background images
fsavard
parents: 411
diff changeset
361
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
362 \subsubsection*{Motion Blur}
415
1e9788ce1680 Added the parts concerning the transformations I'd announced I'd do: Local elastic deformations; occlusions; gimp transformations; salt and pepper noise; background images
fsavard
parents: 411
diff changeset
363
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
364 %%\vspace*{-.2cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
365 \begin{minipage}[t]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
366 \centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
367 \vspace*{0mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
368 \includegraphics[scale=.4]{images/Motionblur_only.png}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
369 %{\bf Motion Blur}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
370 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
371 \hspace{0.3cm}\begin{minipage}[t]{0.83\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
372 %%\vspace*{.5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
373 \vspace*{2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
374 The {\bf motion blur} module is GIMP's ``linear motion blur'', which
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
375 has parameters $length$ and $angle$. The value of
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
376 a pixel in the final image is approximately the mean of the first $length$ pixels
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
377 found by moving in the $angle$ direction,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
378 $angle \sim U[0,360]$ degrees, and $length \sim {\rm Normal}(0,(3 \times complexity)^2)$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
379 %\vspace{5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
380 \end{minipage}
420
a3a4a9c6476d added transformations description and began dataset descriptions
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 417
diff changeset
381
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
382 %\vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
383
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
384 \subsubsection*{Occlusion}
420
a3a4a9c6476d added transformations description and began dataset descriptions
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 417
diff changeset
385
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
386 \begin{minipage}[t]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
387 \centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
388 \vspace*{3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
389 \includegraphics[scale=.4]{images/occlusion_only.png}\\
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
390 %{\bf Occlusion}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
391 %%\vspace{.5cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
392 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
393 \hspace{0.3cm}\begin{minipage}[t]{0.83\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
394 %\vspace*{-18mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
395 The {\bf occlusion} module selects a random rectangle from an {\em occluder} character
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
396 image and places it over the original {\em occluded}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
397 image. Pixels are combined by taking the max(occluder, occluded),
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
398 i.e. keeping the lighter ones.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
399 The rectangle corners
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
400 are sampled so that larger complexity gives larger rectangles.
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
401 The destination position in the occluded image are also sampled
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
402 according to a normal distribution (more details in~\citet{ift6266-tr-anonymous}).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
403 This module is skipped with probability 60\%.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
404 %%\vspace{7mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
405 \end{minipage}
415
1e9788ce1680 Added the parts concerning the transformations I'd announced I'd do: Local elastic deformations; occlusions; gimp transformations; salt and pepper noise; background images
fsavard
parents: 411
diff changeset
406
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
407 %\vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
408 \subsubsection*{Gaussian Smoothing}
426
a7fab59de174 change order of transformations
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 425
diff changeset
409
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
410 %\begin{wrapfigure}[8]{l}{0.15\textwidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
411 %\vspace*{-6mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
412 \begin{minipage}[t]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
413 \begin{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
414 %\centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
415 \vspace*{6mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
416 \includegraphics[scale=.4]{images/Bruitgauss_only.png}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
417 %{\bf Gaussian Smoothing}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
418 \end{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
419 %\end{wrapfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
420 %%\vspace{.5cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
421 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
422 \hspace{0.3cm}\begin{minipage}[t]{0.86\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
423 With the {\bf Gaussian smoothing} module,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
424 different regions of the image are spatially smoothed.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
425 This is achieved by first convolving
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
426 the image with an isotropic Gaussian kernel of
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
427 size and variance chosen uniformly in the ranges $[12,12 + 20 \times
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
428 complexity]$ and $[2,2 + 6 \times complexity]$. This filtered image is normalized
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
429 between $0$ and $1$. We also create an isotropic weighted averaging window, of the
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
430 kernel size, with maximum value at the center. For each image we sample
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
431 uniformly from $3$ to $3 + 10 \times complexity$ pixels that will be
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
432 averaging centers between the original image and the filtered one. We
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
433 initialize to zero a mask matrix of the image size. For each selected pixel
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
434 we add to the mask the averaging window centered on it. The final image is
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
435 computed from the following element-wise operation: $\frac{image + filtered\_image
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
436 \times mask}{mask+1}$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
437 This module is skipped with probability 75\%.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
438 \end{minipage}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
439
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
440 %\newpage
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
441
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
442 %\vspace*{-9mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
443 \subsubsection*{Permute Pixels}
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
444
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
445 %\hspace*{-3mm}\begin{minipage}[t]{0.18\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
446 %\centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
447 \begin{minipage}[t]{0.14\textwidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
448 %\begin{wrapfigure}[7]{l}{
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
449 %\vspace*{-5mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
450 \begin{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
451 \vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
452 \includegraphics[scale=.4]{images/Permutpixel_only.png}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
453 %{\small\bf Permute Pixels}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
454 \end{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
455 %\end{wrapfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
456 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
457 \hspace{3mm}\begin{minipage}[t]{0.86\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
458 \vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
459 %%\vspace*{-20mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
460 This module {\bf permutes neighbouring pixels}. It first selects a
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
461 fraction $\frac{complexity}{3}$ of pixels randomly in the image. Each
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
462 of these pixels is then sequentially exchanged with a random pixel
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
463 among its four nearest neighbors (on its left, right, top or bottom).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
464 This module is skipped with probability 80\%.\\
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
465 %\vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
466 \end{minipage}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
467
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
468 %\vspace{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
469
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
470 \subsubsection*{Gaussian Noise}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
471
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
472 \begin{minipage}[t]{0.14\textwidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
473 %\begin{wrapfigure}[7]{l}{
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
474 %%\vspace*{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
475 \begin{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
476 %\hspace*{-3mm}\begin{minipage}[t]{0.18\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
477 %\centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
478 \vspace*{0mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
479 \includegraphics[scale=.4]{images/Distorsiongauss_only.png}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
480 %{\small \bf Gauss. Noise}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
481 \end{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
482 %\end{wrapfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
483 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
484 \hspace{0.3cm}\begin{minipage}[t]{0.86\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
485 \vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
486 %\vspace*{12mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
487 The {\bf Gaussian noise} module simply adds, to each pixel of the image independently, a
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
488 noise $\sim Normal(0,(\frac{complexity}{10})^2)$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
489 This module is skipped with probability 70\%.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
490 %%\vspace{1.1cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
491 \end{minipage}
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
492
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
493 %\vspace*{1.2cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
494
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
495 \subsubsection*{Background Image Addition}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
496
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
497 \begin{minipage}[t]{\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
498 \begin{minipage}[t]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
499 \centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
500 \vspace*{0mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
501 \includegraphics[scale=.4]{images/background_other_only.png}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
502 %{\small \bf Bg Image}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
503 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
504 \hspace{0.3cm}\begin{minipage}[t]{0.83\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
505 \vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
506 Following~\citet{Larochelle-jmlr-2009}, the {\bf background image} module adds a random
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
507 background image behind the letter, from a randomly chosen natural image,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
508 with contrast adjustments depending on $complexity$, to preserve
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
509 more or less of the original character image.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
510 %%\vspace{.8cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
511 \end{minipage}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
512 \end{minipage}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
513 %%\vspace{-.7cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
514
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
515 \subsubsection*{Salt and Pepper Noise}
420
a3a4a9c6476d added transformations description and began dataset descriptions
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 417
diff changeset
516
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
517 \begin{minipage}[t]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
518 \centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
519 \vspace*{0mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
520 \includegraphics[scale=.4]{images/Poivresel_only.png}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
521 %{\small \bf Salt \& Pepper}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
522 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
523 \hspace{0.3cm}\begin{minipage}[t]{0.83\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
524 \vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
525 The {\bf salt and pepper noise} module adds noise $\sim U[0,1]$ to random subsets of pixels.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
526 The number of selected pixels is $0.2 \times complexity$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
527 This module is skipped with probability 75\%.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
528 %%\vspace{.9cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
529 \end{minipage}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
530 %%\vspace{-.7cm}
420
a3a4a9c6476d added transformations description and began dataset descriptions
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 417
diff changeset
531
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
532 %\vspace{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
533 \subsubsection*{Scratches}
462
f59af1648d83 cleaner le techreport
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 461
diff changeset
534
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
535 \begin{minipage}[t]{0.14\textwidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
536 %\begin{wrapfigure}[7]{l}{
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
537 %\begin{minipage}[t]{0.14\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
538 %\centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
539 \begin{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
540 \vspace*{4mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
541 %\hspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
542 \includegraphics[scale=.4]{images/Rature_only.png}\\
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
543 %{\bf Scratches}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
544 \end{center}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
545 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
546 %\end{wrapfigure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
547 \hspace{0.3cm}\begin{minipage}[t]{0.86\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
548 %%\vspace{.4cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
549 The {\bf scratches} module places line-like white patches on the image. The
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
550 lines are heavily transformed images of the digit ``1'' (one), chosen
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
551 at random among 500 such 1 images,
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
552 randomly cropped and rotated by an angle $\sim Normal(0,(100 \times
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
553 complexity)^2$ (in degrees), using bi-cubic interpolation.
541
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
554 Two passes of a grey-scale morphological erosion filter
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
555 are applied, reducing the width of the line
8aad1c6ec39a reduction espace
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 479
diff changeset
556 by an amount controlled by $complexity$.
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
557 This module is skipped with probability 85\%. The probabilities
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
558 of applying 1, 2, or 3 patches are (50\%,30\%,20\%).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
559 \end{minipage}
428
9fcd0215b8d5 Added text for ratures filter
fsavard
parents: 427
diff changeset
560
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
561 %\vspace*{1mm}
428
9fcd0215b8d5 Added text for ratures filter
fsavard
parents: 427
diff changeset
562
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
563 \subsubsection*{Grey Level and Contrast Changes}
428
9fcd0215b8d5 Added text for ratures filter
fsavard
parents: 427
diff changeset
564
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
565 \begin{minipage}[t]{0.15\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
566 \centering
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
567 \vspace*{0mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
568 \includegraphics[scale=.4]{images/Contrast_only.png}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
569 %{\bf Grey Level \& Contrast}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
570 \end{minipage}%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
571 \hspace{3mm}\begin{minipage}[t]{0.85\linewidth}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
572 \vspace*{1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
573 The {\bf grey level and contrast} module changes the contrast by changing grey levels, and may invert the image polarity (white
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
574 to black and black to white). The contrast is $C \sim U[1-0.85 \times complexity,1]$
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
575 so the image is normalized into $[\frac{1-C}{2},1-\frac{1-C}{2}]$. The
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
576 polarity is inverted with probability 50\%.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
577 %%\vspace{.7cm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
578 \end{minipage}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
579 %\vspace{2mm}
420
a3a4a9c6476d added transformations description and began dataset descriptions
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 417
diff changeset
580
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
581
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
582 \iffalse
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
583 \begin{figure}[ht]
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
584 \centerline{\resizebox{.9\textwidth}{!}{\includegraphics{images/example_t.png}}}\\
393
4c840798d290 added examples of figure and table of results
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 392
diff changeset
585 \caption{Illustration of the pipeline of stochastic
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
586 transformations applied to the image of a lower-case \emph{t}
393
4c840798d290 added examples of figure and table of results
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 392
diff changeset
587 (the upper left image). Each image in the pipeline (going from
4c840798d290 added examples of figure and table of results
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 392
diff changeset
588 left to right, first top line, then bottom line) shows the result
4c840798d290 added examples of figure and table of results
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 392
diff changeset
589 of applying one of the modules in the pipeline. The last image
4c840798d290 added examples of figure and table of results
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 392
diff changeset
590 (bottom right) is used as training example.}
4c840798d290 added examples of figure and table of results
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 392
diff changeset
591 \label{fig:pipeline}
4c840798d290 added examples of figure and table of results
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 392
diff changeset
592 \end{figure}
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
593 \fi
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
594
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
595 %\vspace*{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
596 \section{Experimental Setup}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
597 %\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
598
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
599 Much previous work on deep learning had been performed on
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
600 the MNIST digits task~\citep{Hinton06,ranzato-07-small,Bengio-nips-2006,Salakhutdinov+Hinton-2009},
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
601 with 60~000 examples, and variants involving 10~000
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
602 examples~\citep{Larochelle-jmlr-toappear-2008,VincentPLarochelleH2008}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
603 The focus here is on much larger training sets, from 10 times to
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
604 to 1000 times larger, and 62 classes.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
605
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
606 The first step in constructing the larger datasets (called NISTP and P07) is to sample from
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
607 a {\em data source}: {\bf NIST} (NIST database 19), {\bf Fonts}, {\bf Captchas},
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
608 and {\bf OCR data} (scanned machine printed characters). Once a character
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
609 is sampled from one of these sources (chosen randomly), the second step is to
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
610 apply a pipeline of transformations and/or noise processes described in section \ref{s:perturbations}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
611
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
612 To provide a baseline of error rate comparison we also estimate human performance
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
613 on both the 62-class task and the 10-class digits task.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
614 We compare the best Multi-Layer Perceptrons (MLP) against
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
615 the best Stacked Denoising Auto-encoders (SDA), when
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
616 both models' hyper-parameters are selected to minimize the validation set error.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
617 We also provide a comparison against a precise estimate
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
618 of human performance obtained via Amazon's Mechanical Turk (AMT)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
619 service (http://mturk.com).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
620 AMT users are paid small amounts
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
621 of money to perform tasks for which human intelligence is required.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
622 Mechanical Turk has been used extensively in natural language processing and vision.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
623 %processing \citep{SnowEtAl2008} and vision
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
624 %\citep{SorokinAndForsyth2008,whitehill09}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
625 AMT users were presented
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
626 with 10 character images (from a test set) and asked to choose 10 corresponding ASCII
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
627 characters. They were forced to choose a single character class (either among the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
628 62 or 10 character classes) for each image.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
629 80 subjects classified 2500 images per (dataset,task) pair,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
630 with the guarantee that 3 different subjects classified each image, allowing
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
631 us to estimate inter-human variability (e.g a standard error of 0.1\%
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
632 on the average 18.2\% error done by humans on the 62-class task NIST test set).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
633
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
634 %\vspace*{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
635 \subsection{Data Sources}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
636 %\vspace*{-2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
637
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
638 %\begin{itemize}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
639 %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
640 {\bf NIST.}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
641 Our main source of characters is the NIST Special Database 19~\citep{Grother-1995},
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
642 widely used for training and testing character
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
643 recognition systems~\citep{Granger+al-2007,Cortes+al-2000,Oliveira+al-2002-short,Milgram+al-2005}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
644 The dataset is composed of 814255 digits and characters (upper and lower cases), with hand checked classifications,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
645 extracted from handwritten sample forms of 3600 writers. The characters are labelled by one of the 62 classes
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
646 corresponding to ``0''-``9'',``A''-``Z'' and ``a''-``z''. The dataset contains 8 parts (partitions) of varying complexity.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
647 The fourth partition (called $hsf_4$, 82587 examples),
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
648 experimentally recognized to be the most difficult one, is the one recommended
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
649 by NIST as a testing set and is used in our work as well as some previous work~\citep{Granger+al-2007,Cortes+al-2000,Oliveira+al-2002-short,Milgram+al-2005}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
650 for that purpose. We randomly split the remainder (731668 examples) into a training set and a validation set for
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
651 model selection.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
652 The performances reported by previous work on that dataset mostly use only the digits.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
653 Here we use all the classes both in the training and testing phase. This is especially
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
654 useful to estimate the effect of a multi-task setting.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
655 The distribution of the classes in the NIST training and test sets differs
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
656 substantially, with relatively many more digits in the test set, and a more uniform distribution
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
657 of letters in the test set (whereas in the training set they are distributed
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
658 more like in natural text).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
659 %\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
660
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
661 %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
662 {\bf Fonts.}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
663 In order to have a good variety of sources we downloaded an important number of free fonts from:
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
664 {\tt http://cg.scs.carleton.ca/\textasciitilde luc/freefonts.html}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
665 % TODO: pointless to anonymize, it's not pointing to our work
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
666 Including the operating system's (Windows 7) fonts, there is a total of $9817$ different fonts that we can choose uniformly from.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
667 The chosen {\tt ttf} file is either used as input of the Captcha generator (see next item) or, by producing a corresponding image,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
668 directly as input to our models.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
669 %\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
670
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
671 %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
672 {\bf Captchas.}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
673 The Captcha data source is an adaptation of the \emph{pycaptcha} library (a python based captcha generator library) for
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
674 generating characters of the same format as the NIST dataset. This software is based on
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
675 a random character class generator and various kinds of transformations similar to those described in the previous sections.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
676 In order to increase the variability of the data generated, many different fonts are used for generating the characters.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
677 Transformations (slant, distortions, rotation, translation) are applied to each randomly generated character with a complexity
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
678 depending on the value of the complexity parameter provided by the user of the data source.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
679 %Two levels of complexity are allowed and can be controlled via an easy to use facade class. %TODO: what's a facade class?
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
680 %\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
681
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
682 %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
683 {\bf OCR data.}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
684 A large set (2 million) of scanned, OCRed and manually verified machine-printed
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
685 characters where included as an
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
686 additional source. This set is part of a larger corpus being collected by the Image Understanding
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
687 Pattern Recognition Research group led by Thomas Breuel at University of Kaiserslautern
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
688 ({\tt http://www.iupr.com}), and which will be publicly released.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
689 %TODO: let's hope that Thomas is not a reviewer! :) Seriously though, maybe we should anonymize this
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
690 %\end{itemize}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
691
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
692 %\vspace*{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
693 \subsection{Data Sets}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
694 %\vspace*{-2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
695
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
696 All data sets contain 32$\times$32 grey-level images (values in $[0,1]$) associated with a label
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
697 from one of the 62 character classes.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
698 %\begin{itemize}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
699 %\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
700
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
701 %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
702 {\bf NIST.} This is the raw NIST special database 19~\citep{Grother-1995}. It has
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
703 \{651668 / 80000 / 82587\} \{training / validation / test\} examples.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
704 %\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
705
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
706 %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
707 {\bf P07.} This dataset is obtained by taking raw characters from all four of the above sources
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
708 and sending them through the transformation pipeline described in section \ref{s:perturbations}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
709 For each new example to generate, a data source is selected with probability $10\%$ from the fonts,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
710 $25\%$ from the captchas, $25\%$ from the OCR data and $40\%$ from NIST. We apply all the transformations in the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
711 order given above, and for each of them we sample uniformly a \emph{complexity} in the range $[0,0.7]$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
712 It has \{81920000 / 80000 / 20000\} \{training / validation / test\} examples.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
713 %\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
714
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
715 %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
716 {\bf NISTP.} This one is equivalent to P07 (complexity parameter of $0.7$ with the same proportions of data sources)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
717 except that we only apply
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
718 transformations from slant to pinch. Therefore, the character is
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
719 transformed but no additional noise is added to the image, giving images
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
720 closer to the NIST dataset.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
721 It has \{81920000 / 80000 / 20000\} \{training / validation / test\} examples.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
722 %\end{itemize}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
723
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
724 %\vspace*{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
725 \subsection{Models and their Hyperparameters}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
726 %\vspace*{-2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
727
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
728 The experiments are performed using MLPs (with a single
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
729 hidden layer) and SDAs.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
730 \emph{Hyper-parameters are selected based on the {\bf NISTP} validation set error.}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
731
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
732 {\bf Multi-Layer Perceptrons (MLP).}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
733 Whereas previous work had compared deep architectures to both shallow MLPs and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
734 SVMs, we only compared to MLPs here because of the very large datasets used
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
735 (making the use of SVMs computationally challenging because of their quadratic
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
736 scaling behavior).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
737 The MLP has a single hidden layer with $\tanh$ activation functions, and softmax (normalized
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
738 exponentials) on the output layer for estimating $P(class | image)$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
739 The number of hidden units is taken in $\{300,500,800,1000,1500\}$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
740 Training examples are presented in minibatches of size 20. A constant learning
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
741 rate was chosen among $\{0.001, 0.01, 0.025, 0.075, 0.1, 0.5\}$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
742 %through preliminary experiments (measuring performance on a validation set),
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
743 %and $0.1$ (which was found to work best) was then selected for optimizing on
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
744 %the whole training sets.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
745 %\vspace*{-1mm}
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
746
422
e7790db265b1 Basic text for section 3, add a bit more detail to section 4.2.2
Arnaud Bergeron <abergeron@gmail.com>
parents: 417
diff changeset
747
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
748 {\bf Stacked Denoising Auto-Encoders (SDA).}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
749 Various auto-encoder variants and Restricted Boltzmann Machines (RBMs)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
750 can be used to initialize the weights of each layer of a deep MLP (with many hidden
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
751 layers)~\citep{Hinton06,ranzato-07-small,Bengio-nips-2006},
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
752 apparently setting parameters in the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
753 basin of attraction of supervised gradient descent yielding better
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
754 generalization~\citep{Erhan+al-2010}. It is hypothesized that the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
755 advantage brought by this procedure stems from a better prior,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
756 on the one hand taking advantage of the link between the input
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
757 distribution $P(x)$ and the conditional distribution of interest
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
758 $P(y|x)$ (like in semi-supervised learning), and on the other hand
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
759 taking advantage of the expressive power and bias implicit in the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
760 deep architecture (whereby complex concepts are expressed as
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
761 compositions of simpler ones through a deep hierarchy).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
762
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
763 \begin{figure}[ht]
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
764 %\vspace*{-2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
765 \centerline{\resizebox{0.8\textwidth}{!}{\includegraphics{images/denoising_autoencoder_small.pdf}}}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
766 %\vspace*{-2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
767 \caption{Illustration of the computations and training criterion for the denoising
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
768 auto-encoder used to pre-train each layer of the deep architecture. Input $x$ of
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
769 the layer (i.e. raw input or output of previous layer)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
770 s corrupted into $\tilde{x}$ and encoded into code $y$ by the encoder $f_\theta(\cdot)$.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
771 The decoder $g_{\theta'}(\cdot)$ maps $y$ to reconstruction $z$, which
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
772 is compared to the uncorrupted input $x$ through the loss function
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
773 $L_H(x,z)$, whose expected value is approximately minimized during training
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
774 by tuning $\theta$ and $\theta'$.}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
775 \label{fig:da}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
776 %\vspace*{-2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
777 \end{figure}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
778
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
779 Here we chose to use the Denoising
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
780 Auto-encoder~\citep{VincentPLarochelleH2008} as the building block for
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
781 these deep hierarchies of features, as it is simple to train and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
782 explain (see Figure~\ref{fig:da}, as well as
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
783 tutorial and code there: {\tt http://deeplearning.net/tutorial}),
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
784 provides efficient inference, and yielded results
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
785 comparable or better than RBMs in series of experiments
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
786 \citep{VincentPLarochelleH2008}. During training, a Denoising
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
787 Auto-encoder is presented with a stochastically corrupted version
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
788 of the input and trained to reconstruct the uncorrupted input,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
789 forcing the hidden units to represent the leading regularities in
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
790 the data. Here we use the random binary masking corruption
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
791 (which sets to 0 a random subset of the inputs).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
792 Once it is trained, in a purely unsupervised way,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
793 its hidden units' activations can
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
794 be used as inputs for training a second one, etc.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
795 After this unsupervised pre-training stage, the parameters
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
796 are used to initialize a deep MLP, which is fine-tuned by
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
797 the same standard procedure used to train them (see previous section).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
798 The SDA hyper-parameters are the same as for the MLP, with the addition of the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
799 amount of corruption noise (we used the masking noise process, whereby a
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
800 fixed proportion of the input values, randomly selected, are zeroed), and a
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
801 separate learning rate for the unsupervised pre-training stage (selected
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
802 from the same above set). The fraction of inputs corrupted was selected
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
803 among $\{10\%, 20\%, 50\%\}$. Another hyper-parameter is the number
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
804 of hidden layers but it was fixed to 3 based on previous work with
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
805 SDAs on MNIST~\citep{VincentPLarochelleH2008}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
806
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
807 %\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
808
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
809 \begin{figure}[ht]
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
810 %\vspace*{-2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
811 \centerline{\resizebox{.99\textwidth}{!}{\includegraphics{images/error_rates_charts.pdf}}}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
812 %\vspace*{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
813 \caption{SDAx are the {\bf deep} models. Error bars indicate a 95\% confidence interval. 0 indicates that the model was trained
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
814 on NIST, 1 on NISTP, and 2 on P07. Left: overall results
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
815 of all models, on NIST and NISTP test sets.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
816 Right: error rates on NIST test digits only, along with the previous results from
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
817 literature~\citep{Granger+al-2007,Cortes+al-2000,Oliveira+al-2002-short,Milgram+al-2005}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
818 respectively based on ART, nearest neighbors, MLPs, and SVMs.}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
819 \label{fig:error-rates-charts}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
820 %\vspace*{-2mm}
479
6593e67381a3 Added transformation figure
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 477
diff changeset
821 \end{figure}
6593e67381a3 Added transformation figure
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 477
diff changeset
822
6593e67381a3 Added transformation figure
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 477
diff changeset
823
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
824 \begin{figure}[ht]
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
825 %\vspace*{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
826 \centerline{\resizebox{.99\textwidth}{!}{\includegraphics{images/improvements_charts.pdf}}}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
827 %\vspace*{-3mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
828 \caption{Relative improvement in error rate due to self-taught learning.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
829 Left: Improvement (or loss, when negative)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
830 induced by out-of-distribution examples (perturbed data).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
831 Right: Improvement (or loss, when negative) induced by multi-task
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
832 learning (training on all classes and testing only on either digits,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
833 upper case, or lower-case). The deep learner (SDA) benefits more from
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
834 both self-taught learning scenarios, compared to the shallow MLP.}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
835 \label{fig:improvements-charts}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
836 %\vspace*{-2mm}
452
b0622f78cfec Add a small paragraph mentionning the distribution differences and a figure illustrating the difference.
Arnaud Bergeron <abergeron@gmail.com>
parents: 444
diff changeset
837 \end{figure}
b0622f78cfec Add a small paragraph mentionning the distribution differences and a figure illustrating the difference.
Arnaud Bergeron <abergeron@gmail.com>
parents: 444
diff changeset
838
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
839 \section{Experimental Results}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
840 %\vspace*{-2mm}
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
841
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
842 %%\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
843 %\subsection{SDA vs MLP vs Humans}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
844 %%\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
845 The models are either trained on NIST (MLP0 and SDA0),
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
846 NISTP (MLP1 and SDA1), or P07 (MLP2 and SDA2), and tested
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
847 on either NIST, NISTP or P07, either on the 62-class task
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
848 or on the 10-digits task. Training (including about half
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
849 for unsupervised pre-training, for DAs) on the larger
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
850 datasets takes around one day on a GPU-285.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
851 Figure~\ref{fig:error-rates-charts} summarizes the results obtained,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
852 comparing humans, the three MLPs (MLP0, MLP1, MLP2) and the three SDAs (SDA0, SDA1,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
853 SDA2), along with the previous results on the digits NIST special database
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
854 19 test set from the literature, respectively based on ARTMAP neural
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
855 networks ~\citep{Granger+al-2007}, fast nearest-neighbor search
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
856 ~\citep{Cortes+al-2000}, MLPs ~\citep{Oliveira+al-2002-short}, and SVMs
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
857 ~\citep{Milgram+al-2005}. More detailed and complete numerical results
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
858 (figures and tables, including standard errors on the error rates) can be
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
859 found in Appendix I of the supplementary material.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
860 The deep learner not only outperformed the shallow ones and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
861 previously published performance (in a statistically and qualitatively
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
862 significant way) but when trained with perturbed data
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
863 reaches human performance on both the 62-class task
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
864 and the 10-class (digits) task.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
865 17\% error (SDA1) or 18\% error (humans) may seem large but a large
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
866 majority of the errors from humans and from SDA1 are from out-of-context
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
867 confusions (e.g. a vertical bar can be a ``1'', an ``l'' or an ``L'', and a
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
868 ``c'' and a ``C'' are often indistinguishible).
438
a6d339033d03 added AMT
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 437
diff changeset
869
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
870 In addition, as shown in the left of
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
871 Figure~\ref{fig:improvements-charts}, the relative improvement in error
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
872 rate brought by self-taught learning is greater for the SDA, and these
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
873 differences with the MLP are statistically and qualitatively
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
874 significant.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
875 The left side of the figure shows the improvement to the clean
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
876 NIST test set error brought by the use of out-of-distribution examples
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
877 (i.e. the perturbed examples examples from NISTP or P07).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
878 Relative percent change is measured by taking
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
879 $100 \% \times$ (original model's error / perturbed-data model's error - 1).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
880 The right side of
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
881 Figure~\ref{fig:improvements-charts} shows the relative improvement
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
882 brought by the use of a multi-task setting, in which the same model is
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
883 trained for more classes than the target classes of interest (i.e. training
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
884 with all 62 classes when the target classes are respectively the digits,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
885 lower-case, or upper-case characters). Again, whereas the gain from the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
886 multi-task setting is marginal or negative for the MLP, it is substantial
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
887 for the SDA. Note that to simplify these multi-task experiments, only the original
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
888 NIST dataset is used. For example, the MLP-digits bar shows the relative
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
889 percent improvement in MLP error rate on the NIST digits test set
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
890 is $100\% \times$ (single-task
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
891 model's error / multi-task model's error - 1). The single-task model is
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
892 trained with only 10 outputs (one per digit), seeing only digit examples,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
893 whereas the multi-task model is trained with 62 outputs, with all 62
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
894 character classes as examples. Hence the hidden units are shared across
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
895 all tasks. For the multi-task model, the digit error rate is measured by
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
896 comparing the correct digit class with the output class associated with the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
897 maximum conditional probability among only the digit classes outputs. The
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
898 setting is similar for the other two target classes (lower case characters
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
899 and upper case characters).
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
900 %%\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
901 %\subsection{Perturbed Training Data More Helpful for SDA}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
902 %%\vspace*{-1mm}
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
903
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
904 %%\vspace*{-1mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
905 %\subsection{Multi-Task Learning Effects}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
906 %%\vspace*{-1mm}
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
907
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
908 \iffalse
460
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
909 As previously seen, the SDA is better able to benefit from the
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
910 transformations applied to the data than the MLP. In this experiment we
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
911 define three tasks: recognizing digits (knowing that the input is a digit),
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
912 recognizing upper case characters (knowing that the input is one), and
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
913 recognizing lower case characters (knowing that the input is one). We
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
914 consider the digit classification task as the target task and we want to
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
915 evaluate whether training with the other tasks can help or hurt, and
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
916 whether the effect is different for MLPs versus SDAs. The goal is to find
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
917 out if deep learning can benefit more (or less) from multiple related tasks
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
918 (i.e. the multi-task setting) compared to a corresponding purely supervised
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
919 shallow learner.
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
920
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
921 We use a single hidden layer MLP with 1000 hidden units, and a SDA
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
922 with 3 hidden layers (1000 hidden units per layer), pre-trained and
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
923 fine-tuned on NIST.
437
479f2f518fc9 added Training with More Classes than Necessary
Guillaume Sicard <guitch21@gmail.com>
parents: 434
diff changeset
924
460
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
925 Our results show that the MLP benefits marginally from the multi-task setting
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
926 in the case of digits (5\% relative improvement) but is actually hurt in the case
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
927 of characters (respectively 3\% and 4\% worse for lower and upper class characters).
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
928 On the other hand the SDA benefited from the multi-task setting, with relative
460
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
929 error rate improvements of 27\%, 15\% and 13\% respectively for digits,
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
930 lower and upper case characters, as shown in Table~\ref{tab:multi-task}.
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
931 \fi
460
fe292653a0f8 ajoute dernier tableau de resultats
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 458
diff changeset
932
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
933
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
934 %\vspace*{-2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
935 \section{Conclusions and Discussion}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
936 %\vspace*{-2mm}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
937
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
938 We have found that the self-taught learning framework is more beneficial
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
939 to a deep learner than to a traditional shallow and purely
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
940 supervised learner. More precisely,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
941 the answers are positive for all the questions asked in the introduction.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
942 %\begin{itemize}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
943
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
944 $\bullet$ %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
945 {\bf Do the good results previously obtained with deep architectures on the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
946 MNIST digits generalize to a much larger and richer (but similar)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
947 dataset, the NIST special database 19, with 62 classes and around 800k examples}?
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
948 Yes, the SDA {\em systematically outperformed the MLP and all the previously
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
949 published results on this dataset} (the ones that we are aware of), {\em in fact reaching human-level
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
950 performance} at around 17\% error on the 62-class task and 1.4\% on the digits.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
951
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
952 $\bullet$ %\item
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
953 {\bf To what extent do self-taught learning scenarios help deep learners,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
954 and do they help them more than shallow supervised ones}?
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
955 We found that distorted training examples not only made the resulting
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
956 classifier better on similarly perturbed images but also on
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
957 the {\em original clean examples}, and more importantly and more novel,
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
958 that deep architectures benefit more from such {\em out-of-distribution}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
959 examples. MLPs were helped by perturbed training examples when tested on perturbed input
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
960 images (65\% relative improvement on NISTP)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
961 but only marginally helped (5\% relative improvement on all classes)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
962 or even hurt (10\% relative loss on digits)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
963 with respect to clean examples . On the other hand, the deep SDAs
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
964 were significantly boosted by these out-of-distribution examples.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
965 Similarly, whereas the improvement due to the multi-task setting was marginal or
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
966 negative for the MLP (from +5.6\% to -3.6\% relative change),
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
967 it was quite significant for the SDA (from +13\% to +27\% relative change),
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
968 which may be explained by the arguments below.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
969 %\end{itemize}
437
479f2f518fc9 added Training with More Classes than Necessary
Guillaume Sicard <guitch21@gmail.com>
parents: 434
diff changeset
970
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
971 In the original self-taught learning framework~\citep{RainaR2007}, the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
972 out-of-sample examples were used as a source of unsupervised data, and
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
973 experiments showed its positive effects in a \emph{limited labeled data}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
974 scenario. However, many of the results by \citet{RainaR2007} (who used a
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
975 shallow, sparse coding approach) suggest that the {\em relative gain of self-taught
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
976 learning vs ordinary supervised learning} diminishes as the number of labeled examples increases.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
977 We note instead that, for deep
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
978 architectures, our experiments show that such a positive effect is accomplished
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
979 even in a scenario with a \emph{large number of labeled examples},
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
980 i.e., here, the relative gain of self-taught learning is probably preserved
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
981 in the asymptotic regime.
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
982
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
983 {\bf Why would deep learners benefit more from the self-taught learning framework}?
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
984 The key idea is that the lower layers of the predictor compute a hierarchy
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
985 of features that can be shared across tasks or across variants of the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
986 input distribution. Intermediate features that can be used in different
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
987 contexts can be estimated in a way that allows to share statistical
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
988 strength. Features extracted through many levels are more likely to
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
989 be more abstract (as the experiments in~\citet{Goodfellow2009} suggest),
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
990 increasing the likelihood that they would be useful for a larger array
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
991 of tasks and input conditions.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
992 Therefore, we hypothesize that both depth and unsupervised
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
993 pre-training play a part in explaining the advantages observed here, and future
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
994 experiments could attempt at teasing apart these factors.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
995 And why would deep learners benefit from the self-taught learning
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
996 scenarios even when the number of labeled examples is very large?
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
997 We hypothesize that this is related to the hypotheses studied
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
998 in~\citet{Erhan+al-2010}. Whereas in~\citet{Erhan+al-2010}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
999 it was found that online learning on a huge dataset did not make the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1000 advantage of the deep learning bias vanish, a similar phenomenon
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1001 may be happening here. We hypothesize that unsupervised pre-training
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1002 of a deep hierarchy with self-taught learning initializes the
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1003 model in the basin of attraction of supervised gradient descent
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1004 that corresponds to better generalization. Furthermore, such good
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1005 basins of attraction are not discovered by pure supervised learning
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1006 (with or without self-taught settings), and more labeled examples
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1007 does not allow the model to go from the poorer basins of attraction discovered
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1008 by the purely supervised shallow models to the kind of better basins associated
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1009 with deep learning and self-taught learning.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1010
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1011 A Flash demo of the recognizer (where both the MLP and the SDA can be compared)
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1012 can be executed on-line at {\tt http://deep.host22.com}.
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1013
583
ae77edb9df67 DIRO techreport, sent to arXiv
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 582
diff changeset
1014 %\newpage
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1015 {
583
ae77edb9df67 DIRO techreport, sent to arXiv
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 582
diff changeset
1016 \bibliography{strings,strings-short,strings-shorter,ift6266_ml,specials,aigaion-shorter}
582
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1017 %\bibliographystyle{plainnat}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1018 \bibliographystyle{unsrtnat}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1019 %\bibliographystyle{apalike}
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1020 }
9ebb335ca904 techreport.tex
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents: 541
diff changeset
1021
379
a21a174c1c18 added writeup skeleton
Yoshua Bengio <bengioy@iro.umontreal.ca>
parents:
diff changeset
1022
407
fe2e2964e7a3 description des transformations en cours ajout d un fichier special.bib pour des references specifiques
Xavier Glorot <glorotxa@iro.umontreal.ca>
parents: 393
diff changeset
1023 \end{document}