<!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>Indexing 100M Images with Deep Features and MI-File</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Giuseppe Amato</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fabrizio Falchi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Claudio Gennaro</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fausto Rabitti</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>ISTI-CNR via G. Moruzzi</institution>
          ,
          <addr-line>1 - 56124 Pisa</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In the context of the Multimedia Commons initiative, we extracted and indexed deep features of about 100M images uploaded on Flickr between 2004 and 2014 and published under a Creative Commons commercial or noncommercial license. The extracted features and an online demo built using the MI-File approximated data structure are both publicly available. The online CBIR system demonstrates the e ectiveness of the deep features and the e ciency of the indexing approach.</p>
      </abstract>
      <kwd-group>
        <kwd>Deep Features</kwd>
        <kwd>MI-File</kwd>
        <kwd>Content-Based Image Retrieval</kwd>
        <kwd>Similarity Search</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Deep Convolutional Neural Networks (DCNNs) have recently shown impressive
performance on a number of multimedia information retrieval tasks [
        <xref ref-type="bibr" rid="ref4 ref6 ref9">6, 9, 4</xref>
        ]. In
particular, the activation of the DCNN hidden layers has been also used in the
context of transfer learning and conten-based image retrieval [
        <xref ref-type="bibr" rid="ref3 ref8">3, 8</xref>
        ]. In fact, Deep
Learning methods are \representation-learning methods with multiple levels of
representation, obtained by composing simple but non-linear modules that each
transform the representation at one level (starting with the raw input) into a
representation at a higher, slightly more abstract level" [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. These representations
can be successfully used as features in generic recognition or visual similarity
search tasks.
      </p>
      <p>
        In this paper we present a public online Content-Based Image Retrieval
system indexing about 100M images. The dataset is the YFCC100M which is the
largest Creative Commons image dataset available today. The deep features were
extracted using a public available DCNN using the Ca e[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] framwork and can
be downloaded from http://www.deepfeatures.org. The 4,096-dimensional
features vectors were indexed using MI-File[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], a permutation-based approximated
data structure. The online demo is available at http://mi le.deepfeatures.org. A
screenshot of the web bases interface can be seen in Figure 1
      </p>
    </sec>
    <sec id="sec-2">
      <title>The YFCC100M</title>
    </sec>
    <sec id="sec-3">
      <title>Deep Features Dataset</title>
      <p>
        The Yahoo Flickr Creative Commons 100 Million (YFCC100M) dataset1 was
created in 2014 as part of the Yahoo Webscope program. YFCC100M consists
of 99.2 million photos and 0.8 million videos uploaded to Flikcr between 2004
and 2014 published under a Creative Commons commercial or noncommercial
license. More information about the dataset can be found in the recent article
in Communications of the ACM [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>
        For extracting deep features we used the Ca e [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] deep learning framework. In
particular we used the neural network Hybrid-CNN whose model and weights are
public available in the Ca e Model Zoo2. The Hybrid-CNN was trained on 1,183
categories (205 scene categories from Places Database and 978 object categories
from the train data of ILSVRC2012 (ImageNet) with 3.6 million images [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
The architecture is the same as Ca e reference network. The deep features we
have extracted are the activation of the fc6 layer.
      </p>
      <p>We have made them public available at http://www.deepfeatures.org and
they will be soon included in the Multimedia Commons initiative corpus. The
Multimedia Commons initiative3 is an e ort to develop and share sets of
computed features and ground-truths for the YFCC100M.
3</p>
    </sec>
    <sec id="sec-4">
      <title>MI-File</title>
      <p>Recently, permutation based indexes have attracted interest in the area of
similarity search. The basic idea of permutation based indexes is that data objects
are represented as appropriately generated permutations of a set of pivots (or
reference objects). Similarity queries are executed by searching for data objects
whose permutation representation is similar to that of the query. This, of course
assumes that similar objects are represented by similar permutations of the
pivots.</p>
      <p>
        One of the most promising permutation based approach is the The Metric
Inverted File (MI-File) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. It uses an inverted le to store relationships between
permutations. It also uses some approximations and optimizations to improve
both e ciency and e ectiveness. The basic idea is that entries (the lexicon) of
the inverted le are the pivots P . The posting list associated with an entry
pi 2 P is a list of pairs (o; o 1(i)); o 2 C, i.e. a list where each object o of the
dataset C is associated with the position of the pivot pi in o.
      </p>
      <p>
        As already mentioned, in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] it was observed that truncated permutations
can be used without huge lost of e ectiveness. MI-File allows truncating the
permutation of both data and query objects independently. We denote with lx
the length of the permutation used for indexing and with ls the one used for
searching (i.e. the length of the query permutation).
      </p>
      <sec id="sec-4-1">
        <title>1 http://bit.ly/yfcc100md 2 http://github.com/BVLC/ca e/wiki/Model-Zoo 3 http://multimediacommons.wordpress.com/</title>
        <p>The MI-File also uses a strategy to read just a small portion of the accessed
posting lists, containing the most promising objects, further reducing the search
cost. The most promising data objects in a posting list, associated with a pivot
pi for a query q, are those whose position of the pivot pi, in their associated
permutation, is closer to the position of pi in the permutation associated with
q. That is, the promising objects are the objects o, in the posting list, having
a small j o 1(i) q 1(i)j. To control this, a parameter is used to specify a
threshold on the maximum allowed position di erence (mpd) among pivots in
data and query objects. Provided that entries in posting lists are maintained
sorted according to the position of the associated pivot, small values of mpd
imply accessing just a small portion of the posting lists.</p>
        <p>Finally, in order to improve e ectiveness of the approximate search, when the
MI-File execute a k-NN query, it rst retrieves k amp objects using the inverted
le, then selects, from these, the best k objects according to the original distance.
The factor amp 1, is used to specify the size of the set of candidate objects
to be retrieved using the permutation based technique, which will be reordered
according to the original distance, to retrieve the best k objects.</p>
        <p>The MI-File search algorithm computes incrementally a relaxed version of
the Footrule Distance with location parameter l between the query and data
objects retrieved from the read portions of the accessed posting lists.
In this work, we presented an online CBIR system which indexes, using MI-File,
a dataset of deep features extracted from 100M images that are part of the
wellknown and public available YFCC100M dataset. This system demonstrate the
e ectiveness of the features extracted and the e ciency of the MI-File indexing
approach.</p>
        <p>
          In the future, we plan to release results obtained sequentially scanning the
entire set of deep features in order to measure e ectiveness of approximate
indexing approaches. We hope that our deep features corpus will become the new
reference for content-based image retrieval on a large scale updating our
previous CoPhIR[
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] dataset. CoPhIR4 also consists of about 100M images taken from
Flickr. However, it also contains copyrighted images and deep features for the
images are not available.
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>4 http://cophir.isti.cnr.it/</title>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Amato</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gennaro</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Savino</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Mi- le: using inverted les for scalable approximate similarity search</article-title>
          .
          <source>Multimedia tools and applications</source>
          <volume>71</volume>
          (
          <issue>3</issue>
          ),
          <volume>1333</volume>
          {
          <fpage>1362</fpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bolettieri</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Esuli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Falchi</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lucchese</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Perego</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Piccioli</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rabitti</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Cophir: a test collection for content-based image retrieval</article-title>
          .
          <source>arXiv preprint arXiv:0905.4627</source>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Donahue</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jia</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vinyals</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ho</surname>
            <given-names>man</given-names>
          </string-name>
          , J., Zhang, N.,
          <string-name>
            <surname>Tzeng</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Darrell</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Decaf: A deep convolutional activation feature for generic visual recognition</article-title>
          .
          <source>arXiv preprint arXiv:1310.1531</source>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>He</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ren</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sun</surname>
          </string-name>
          , J.:
          <article-title>Deep residual learning for image recognition</article-title>
          .
          <source>arXiv preprint arXiv:1512.03385</source>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Jia</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shelhamer</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Donahue</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karayev</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Long</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Girshick</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guadarrama</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Darrell</surname>
          </string-name>
          , T.:
          <article-title>Ca e: Convolutional architecture for fast feature embedding</article-title>
          .
          <source>arXiv preprint arXiv:1408.5093</source>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Krizhevsky</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sutskever</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hinton</surname>
          </string-name>
          , G.E.:
          <article-title>Imagenet classi cation with deep convolutional neural networks</article-title>
          .
          <source>In: Advances in neural information processing systems</source>
          . pp.
          <volume>1097</volume>
          {
          <issue>1105</issue>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>LeCun</surname>
          </string-name>
          , Y.,
          <string-name>
            <surname>Bengio</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hinton</surname>
          </string-name>
          , G.:
          <article-title>Deep learning</article-title>
          .
          <source>Nature</source>
          <volume>521</volume>
          (
          <issue>7553</issue>
          ),
          <volume>436</volume>
          {
          <fpage>444</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Razavian</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Azizpour</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sullivan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Carlsson</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Cnn features o -the-shelf: an astounding baseline for recognition</article-title>
          .
          <source>In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops</source>
          . pp.
          <volume>806</volume>
          {
          <issue>813</issue>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Simonyan</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zisserman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Very deep convolutional networks for large-scale image recognition</article-title>
          .
          <source>arXiv preprint arXiv:1409.1556</source>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Thomee</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Elizalde</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shamma</surname>
            ,
            <given-names>D.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ni</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Friedland</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Poland</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borth</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>L.J.:</given-names>
          </string-name>
          <article-title>Yfcc100m: The new data in multimedia research</article-title>
          .
          <source>Communications of the ACM</source>
          <volume>59</volume>
          (
          <issue>2</issue>
          ),
          <volume>64</volume>
          {
          <fpage>73</fpage>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Zhou</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lapedriza</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiao</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Torralba</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Oliva</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Learning deep features for scene recognition using places database</article-title>
          .
          <source>In: Advances in neural information processing systems</source>
          . pp.
          <volume>487</volume>
          {
          <issue>495</issue>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>