<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Sample Noise Impact on Active Learning</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>L´eo Dreyfus-Schmidt</string-name>
          <email>leo.dreyfus-schmidt@dataiku.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dataiku</institution>
          ,
          <addr-line>Paris</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <fpage>80</fpage>
      <lpage>88</lpage>
      <abstract>
        <p>This work explores the effect of noisy sample selection in active learning strategies. We show on both synthetic problems and reallife use-cases that knowledge of the sample noise can significantly improve the performance of active learning strategies. Building on prior work, we propose a robust sampler, Incremental Weighted K-Means that brings significant improvement on the synthetic tasks but only a marginal uplift on real-life ones. We hope that the questions raised in this paper are of interest to the community and could open new paths for active learning research.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        When training machine learning models, data quality is undoubtedly the most
fundamental requirement. A recent study [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] has shown that pervasive errors in
the test set of famous datasets could lead to selecting a suboptimal model. In
active learning, where a small number of samples are selected to be labeled by an
oracle, it becomes paramount as selecting samples of poor quality may worsen
the model’s performance.
      </p>
      <p>
        Sample diversity in the training set is also essential and has been the main
focus of recent active learning strategies. Performance improvements come from
new ways of combining uncertainty and diversity in a single framework.
BatchBALD [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] adds diversity by minimizing the joint mutual information between
batch samples. Core-sets [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] and [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] use a clustering approach to scatter the
selected samples across the sample space. The method proposed in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] minimizes
the similarity between the samples of the batch while minimizing the similarity
with already labeled samples. The most common explanation for the observed
performance uplift when enforcing diversity is that a homogeneous set of
samples contains much redundant information while a diverse one informs the model
with several classification patterns.
      </p>
      <p>
        Enforcing diversity entails selecting samples where uncertainty is not
maximal. Therefore, the selected samples are further away from the decision boundary
and easier to classify. We hypothesize that this side-effect of diversity contributes
to its success. In classification, mislabeled or very ambiguous samples – like five
that looks like six in MNIST – can be detrimental to the model [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. As the
density of such samples is higher near the classification boundary, we increase the
chances of obtaining meaningful samples by selecting samples further away.
      </p>
      <p>© 2021 for this paper by its authors. Use permitted under CC BY 4.0.</p>
      <p>This paper proposes a metric to evaluate the quantity of such noisy samples
in a dataset, and we design a query strategy to avoid them. We first validate
our approach by showing the existence of these samples on a synthetic example
and observe that diversity-based methods are less likely to select those. We show
that our results obtained on synthetic data do not generalize well to real tasks,
propose an explanation and ideas to mitigate the problem.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Sample-noise robust strategies</title>
      <p>In the following, D designates a dataset and h a probabilistic classifier. A
subscript indicates the nature of datasets: L stands for labeled samples, U unlabeled,
T test, and B designates a batch of samples. Iterations are indicated with a
superscript when pertinent.
2.1</p>
      <sec id="sec-2-1">
        <title>The pervasiveness of sample noise</title>
        <p>
          In his seminal work on active learning, Settles [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] defines the most valuable
samples at iteration i as the one with the lowest maximum predicted probability
among classes:
        </p>
        <p>lowest confidence(x) “ 1 ´ hi1pxq</p>
        <p>With hik being the k-th probability predicted by the classifier learned at
iteration i in descending order, so that hi1 is the maximum predicted probability
at iteration i. This definition assumes that each sample can reach a predicted
probability of 1. The difference between 1 and the predicted probability
represents the information that the model is expected to gain when the sample gets
labeled.</p>
        <p>However, classifiers do not always reach a predicted probability of 1 for all
samples. Fig. 1 shows the distribution of predicted probabilities on various
standard tasks (see details in section 3). If some datasets like LDPA present an
almost uniform distribution, MNIST is very polarized towards 1 while having
outliers below 0.5.</p>
        <p>We call noisy the samples located at the boundary between two classes, which
commonly have a low predicted probability for their class. Noisy samples can be
due to signal noise in the data that makes them hard-to-classify, labeling errors,
or to a genuine ambiguity such as a four that looks like a nine in MNIST (see
Fig. 1, right). Noisy samples are a challenge in active learning as they may get
overly selected by uncertainty-based methods despite their low quality. At a given
iteration of an active learning experiment, noisy samples occur for two reasons.
First, those samples may be easy to classify, but our current classifier lacks the
knowledge to do so. Labeling this sample could be useful as it would help the
model determine if the ideal decision boundary is close or not. This type of
uncertainty is called epistemic and can be reduced with more samples. However,
1.0
0.8
0.6
0.4
0.2
0.0
LDPA</p>
        <p>CIFAR-100</p>
        <p>CIFAR-10</p>
        <p>CIFAR-10 SimCLR</p>
        <p>Fashion</p>
        <p>MNIST
it may also be that this sample is ambiguous and that an ideal classifier would
not do any better. The noise is then due to aleatoric uncertainty that cannot be
reduced.</p>
        <p>Let us call h8 this ideal classifier obtained by training the model on all
available training data . We use it to define the theoretical informed lowest
confidence sampler (denoted by IConfidence) based on the following score:
ιpxq “ h8pxq ´ hi1pxq</p>
        <p>We expect this sampler to account for aleatoric uncertainty and therefore
focus only on reducing epistemic uncertainty. If h8 is unknown at experiment
time, it can be estimated in a research context where all labels are known. Such
an oracle can be useful in active learning research by providing a golden standard
of the maximum achievable accuracy in an experiment.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Measuring sample noise</title>
        <p>
          Misclassified samples are a source of sample noise, and [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] proposes to
identify them using human annotation. This approach can be considered a golden
standard but is hard to perform because of human labeling costs.
        </p>
        <p>
          We previously suggested that sample noise could be measured as the
maximum probability predicted by a good enough classifier. In order to extend this
measure to a set of samples, we propose to rely on a metric previously introduced
in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] called reverse batch accuracy or RBA for short. RBA measures how easy
samples are to classify by training a classifier on the test set and measuring its
accuracy on sample batches. The lower the RBA score, the harder samples are
to classify for the model, so the noisier are the samples.
2.3
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Incremental Weighted K-Means (IWKMeans)</title>
        <p>The goal of batch active learning strategies is to select batches of samples DB
representative of the unlabeled data DB „ DU . For a given notion of similarity
sim between batches, this leads to the following maximization objective:
argmaxDB simpDB, DU q
(1)</p>
        <p>
          In [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], the similarity is taken as ´ řuPDU dpDB, uq with d being the squared
distance to the closest point in the set dpDB, uq “ minbPDB }b ´ u}2. This
corresponds to the inertia objective of the K-Means clustering. The authors propose
to use it in a two-step procedure called Weighted K-Means (WKMeans) where
a set of samples are preselected using margin sampling, and then the final batch
is selected by using K-Means.
        </p>
        <p>The above objective does not consider already labeled data and can lead to
suboptimal batches lying in regions of high-density of labeled samples. A natural
refinement is to additionally impose that the selected batch differs from already
labeled data, i.e. to minimise similarity simpDB, DLq:
argmaxDB simpDB, DU q</p>
        <p>
          subject to argminDB simpDB, DLq
In the context of K-Means, minimizing this similarity is equivalent to
preventing points close to labeled data to drag the centroids toward them. This is done
by adding the labeled points in the reference set used to compute distances in
the K-Means objective that becomes ´ řuPDU dpDB Y DL, uq. This translates
algorithmically by adding cluster centers corresponding to already labeled
samples and keeping them fixed during optimization. We refer to this approach as
Incremental Weighted K-Means or IWKMeans for short, and it is described in
Alg. 1. IWKMeans tends to repel batch samples from already selected samples,
including the noisy ones. A similar approach is proposed in [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] where the values
in the matrix of similarity between batch and selected samples are minimized.
Potential concerns. The fact that the method repels all selected samples and
not only the noisy ones can be debated. We tested variants of this method that
repels noisy samples only, or noisy and very easy to classify samples as they can
also be considered detrimental [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]. Since all variants had similar performances,
we present here the simplest one. Another concern is the convergence of this
modified version of K-Means. It is easy to imagine in two dimensions how fixed
centers can prevent a moving one to reach its minimum. From our experience,
the K-Means++ initialization prevents most of these problems, and Fig. 2 proves
end
Data: DL0, DU0
Result: hniter
for i Ð 1 to niter do
        </p>
        <p>Margin sampling to pre-select βk samples among the unlabeled ones:
P i “ arg maxDUi 1 ´ phi1pxq ´ hi2pxqq
Perform K-Means on P i with k moving and DLi fixed centroids:
DBi “ arg minDBiĂP i řxPP i dpDBi Y DLi, xq
Update all sets and train the classifier:
DLi`1 Ð DLi Y DBi DUi`1 Ð DUi zDBi hi`1 Ð hi ` DBi</p>
        <p>Algorithm 1: IWKmeans algorithm
the method’s efficiency in a two-dimensional setting. For the sake of clarity and
concision, we refer the reader to this online study of IWKMeans convergence1.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Experiments</title>
      <p>
        We perform active learning experiments on synthetic and natural datasets
following the framework described in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Random sampling (Random) is the baseline.
We use KCenterGreedy (KCenter) as a proxy for Core-sets [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] since there is no
open implementation available. Note that the latter uses the activation of the
penultimate layer of neural networks, so we have adapted it to random forests
by considering a PCA-reduced forest embedding. We compare lowest confidence
sampling (Confidence) as described above to its informed counterpart
IConfidence. We also compare Weighted K-Means[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] (WKMeans) with β “ 10 to our
proposed IWKMeans. BatchBALD[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] was not considered due to its prohibitive
computational time of several hours compared to less than one minute for others.
      </p>
      <p>
        We run ten iterations using five repeated two-fold cross-validation for each
task. Reported results include means and confidence intervals at 10th and 90th
quantiles. Cifar10 and Cifar100 tasks are run on ImageNet embeddings, Cifar10
SimCLR is run on embeddings learned using contrastive learning [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], and other
tasks are run using raw data. A Random Forest is used on the LDPA task, all
others use a multi-layer perceptron with hidden layers of size 128 and 64. More
details can be found on the code repository2 or in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
3.1
      </p>
      <sec id="sec-3-1">
        <title>Synthetic problem with noisy samples</title>
        <p>To create noisy samples, we design a task where samples from a given class
are not distinguishable from those of another class. We create a 10-class task
composed of spatially isolated blobs. Some blobs are composed of regular samples
that all belong to the same class. Other blobs are composed of samples randomly
1 https://dataiku-research.github.io/cardinal/auto_examples/plot_incr_
kmeans.html
2 https://github.com/dataiku-research/paper_ial_2021
assigned to two different classes; we call them noisy blobs since their samples are
impossible to classify. We create a low-dimensional problem with 10000 samples,
2 features, 10 classes, 200 blobs, half of which are noisy. The active learning
experiment uses 20 batches of 20 samples. We also create a high-dimensional
problem with the same characteristics except that the data has 40 features, and
we generate 90 blobs, 30 of which are noisy. We use accuracy AUC over the whole
experiment to measure strategy performances. In this synthetic experiment, we
know which samples are noisy by construction and therefore report the ratio of
noisy samples (NSR) as a measure of sample noise instead of its proxy RBA.
Note that RBA is strongly correlated (ą 0.95) with NSR. Results are reported
in Fig. 2.</p>
        <p>0.60
0.50
y
c
a
ru0.40
c
c
A
0.30
0.20
0.80
0.70</p>
        <p>In terms of performances, IWKMeans dominates all methods, which is what
was expected. KCenter is closely following which is surprising since the model
here is a random forest and we did not expect our quick adaptation to this
model to perform well. We would have expected Confidence to select more noisy
samples and perform poorly because of that. Instead, it seems to be penalized
by its lack of diversity and exploration. IConfidence minimizes the number of
noisy samples selected, as expected, and yet it performs as badly as Confidence
for the same reasons. In the end, this experiment shows that diversity can be
as crucial as sample noise, and we expect a sweet spot to exist. Overall, we also
observe that IWKMeans seem to be more robust to noisy samples. More insights
are available in appendix Fig. A4.
Dataset Metric Random KCenter Confidence IConfidence WKMeans IWKMeans
LDPA AUC 59.0 (0.5) 57.2 (0.5) 51.9 (1.1) 51.2 (0.8) 63.1 (0.3) 63.6 (0.3)
LDPA RBA 67.1 (0.7) 49.3 (2.3) 51.6 (2.0) 98.9 (0.1) 67.8 (1.1) 67.6 (1.1)
Cifar10 AUC 80.9 (0.2) 82.0 (0.2) 81.9 (0.2) 82.9 (0.4) 81.8 (0.2) 81.6 (0.2)
Cifar10 RBA 91.5 (4.8) 81.5 (10.7) 80.5 (12.6) 94.9 (3.5) 85.2 (9.0) 85.3 (9.1)
Cifar10S AUC 88.8 (0.2) 89.2 (0.2) 89.5 (0.2) 89.6 (0.3) 89.4 (0.2) 89.5 (0.3)
Cifar10S RBA 93.5 (1.3) 87.5 (1.8) 80.0 (3.6) 96.5 (0.8) 86.2 (2.8) 87.9 (2.3)
MNIST AUC 90.9 (0.2) 91.2 (0.3) 93.5 (0.2) 93.8 (0.3) 94.2 (0.1) 94.2 (0.1)
MNIST RBA 97.6 (0.2) 96.6 (0.4) 92.3 (8.1) 97.7 (2.5) 88.1 (0.4) 86.9 (0.6)
Fashion AUC 82.4 (0.2) 79.3 (0.3) 83.5 (0.3) 85.0 (1.0) 84.3 (0.1) 84.3 (0.1)
Fashion RBA 88.1 (0.4) 90.8 (9.7) 82.3 (15.9) 91.3 (7.3) 70.6 (0.7) 69.2 (0.7)
Cifar100 AUC 48.5 (0.3) 48.3 (0.2) 46.2 (0.2) 50.8 (0.6) 48.9 (0.2) 49.0 (0.3)
Cifar100 RBA 69.4 (9.2) 71.2 (14.1) 55.6 (15.6) 88.8 (5.8) 70.7 (9.2) 70.0 (9.9)
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Real datasets</title>
        <p>We now analyze the samplers behaviors on our collection of real-life datasets.</p>
        <p>
          Informed lowest confidence. IConfidence is equivalent or better than
confidence in all cases. It is also the best strategy for all tasks except MNIST and
LDPA. Note that the RBA of this method is much higher than the other
strategies. It reveals that getting too close to the decision boundary may not be
required for good performance. Even more, this oracle method does not enforce
diversity but yet overpowers diversity enforcing methods. This questions the
fundamental hypothesis that enforcing diversity is mandatory to obtain good
performances. Further work will investigate further this sampler and try to
reproduce its behavior online with proxy metrics proposed in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
        </p>
        <p>IWKMeans. WKMeans and IWKMeans bring a significant uplift against
random and all other uncertainty-based or unsupervised methods in all tasks
except CIFAR10 with SimCLR embeddings. IWKMeans outperforms WKMeans
on LDPA only, making it hard to draw a definitive conclusion on real tasks.
Further experiments are needed to investigate these behaviors. Early
investigations suggest that the variation in density of noisy samples in multiclass settings
0.88
0.85
0.83
0.80
can tamper with adverse-to-noise samplers. For example, a general strategy can
be hard to find on the MNIST dataset where few noisy samples exist between
classes zero and four, while their density is high between classes three and five.</p>
        <p>SimCLR embedding. An unexpected conclusion of these experiments is
that contrastive-based embeddings can bring an uplift significantly higher than
choosing the best query sampling strategy.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>In active learning, noisy samples that are hard to classify by the model can be
detrimental to the performance. To prove this, we have designed a metric to
measure them and a synthetic problem to test the robustness of query strategies
to their presence. IWKmeans, the proposed noise-adverse sampling strategy, has
been proven effective on synthetic data, but not on real tasks where it marginally
improves WKMeans on which it is based. If IWKMeans’ performance seems
correlated to the number of noisy samples selected, there may be more than
meets the eye in this problem, and more investigations are needed. Our study
also shows that a sampler as simple as confidence sampling can outperform all
other samplers if informed by a good enough classifier. Whether or not this
uplift can be reproduced in real conditions using a proxy must be investigated
in further work.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Alexandre</given-names>
            <surname>Abraham</surname>
          </string-name>
          and L´eo Dreyfus-Schmidt.
          <article-title>“Rebuilding Trust in Active Learning with Actionable Metrics”</article-title>
          .
          <source>In: 2020 IEEE International Conference on Data Mining Workshops (ICDMW)</source>
          (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Ting</given-names>
            <surname>Chen</surname>
          </string-name>
          et al. “
          <article-title>A simple framework for contrastive learning of visual representations”</article-title>
          .
          <source>In: International conference on machine learning. PMLR</source>
          .
          <year>2020</year>
          , pp.
          <fpage>1597</fpage>
          -
          <lpage>1607</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Bo</given-names>
            <surname>Du</surname>
          </string-name>
          et al. “
          <article-title>Exploring representativeness and informativeness for active learning”</article-title>
          .
          <source>In: IEEE transactions on cybernetics 47</source>
          .1 (
          <issue>2015</issue>
          ), pp.
          <fpage>14</fpage>
          -
          <lpage>26</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Andreas</given-names>
            <surname>Kirsch</surname>
          </string-name>
          , Joost Van Amersfoort,
          <string-name>
            <given-names>and Yarin</given-names>
            <surname>Gal</surname>
          </string-name>
          . “Batchbald:
          <article-title>Efficient and diverse batch acquisition for deep bayesian active learning”</article-title>
          . In: arXiv preprint arXiv:
          <year>1906</year>
          .
          <volume>08158</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Curtis</surname>
            <given-names>G Northcutt</given-names>
          </string-name>
          ,
          <article-title>Anish Athalye, and Jonas Mueller. “Pervasive label errors in test sets destabilize machine learning benchmarks”</article-title>
          .
          <source>In: arXiv preprint arXiv:2103.14749</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Ozan</given-names>
            <surname>Sener</surname>
          </string-name>
          and
          <string-name>
            <given-names>Silvio</given-names>
            <surname>Savarese</surname>
          </string-name>
          . “
          <article-title>Active learning for convolutional neural networks: A core-set approach”</article-title>
          .
          <source>In: arXiv preprint arXiv:1708.00489</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Burr</given-names>
            <surname>Settles</surname>
          </string-name>
          .
          <article-title>Active learning literature survey</article-title>
          .
          <source>Tech. rep</source>
          . Department of Computer Sciences, University of Wisconsin-Madison,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Fedor</given-names>
            <surname>Zhdanov</surname>
          </string-name>
          . “
          <article-title>Diverse mini-batch Active Learning”</article-title>
          . In: arXiv preprint arXiv:
          <year>1901</year>
          .
          <volume>05954</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>