<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article
  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="3.0" xml:lang="en">
  <front>
    <journal-meta><journal-id journal-id-type="nlm-ta">PLoS ONE</journal-id><journal-id journal-id-type="publisher-id">plos</journal-id><journal-id journal-id-type="pmc">plosone</journal-id><issn pub-type="epub">1932-6203</issn><publisher>
        <publisher-name>Public Library of Science</publisher-name>
        <publisher-loc>San Francisco, USA</publisher-loc>
      </publisher></journal-meta>
    <article-meta><article-id pub-id-type="publisher-id">PONE-D-11-23384</article-id><article-id pub-id-type="doi">10.1371/journal.pone.0039857</article-id><article-categories>
        <subj-group subj-group-type="heading">
          <subject>Research Article</subject>
        </subj-group>
        <subj-group subj-group-type="Discipline-v2">
          <subject>Biology</subject>
          <subj-group>
            <subject>Computational biology</subject>
            <subj-group>
              <subject>Computational neuroscience</subject>
            </subj-group>
          </subj-group>
        </subj-group>
        <subj-group subj-group-type="Discipline-v2">
          <subject>Computer science</subject>
          <subj-group>
            <subject>Computer modeling</subject>
          </subj-group>
        </subj-group>
        <subj-group subj-group-type="Discipline-v2">
          <subject>Engineering</subject>
          <subj-group>
            <subject>Signal processing</subject>
            <subj-group>
              <subject>Image processing</subject>
            </subj-group>
          </subj-group>
        </subj-group>
        <subj-group subj-group-type="Discipline-v2">
          <subject>Mathematics</subject>
          <subj-group>
            <subject>Probability theory</subject>
            <subj-group>
              <subject>Probability density</subject>
              <subject>Probability distribution</subject>
              <subject>Random variables</subject>
            </subj-group>
          </subj-group>
        </subj-group>
        <subj-group subj-group-type="Discipline">
          <subject>Computational Biology</subject>
          <subject>Computer Science</subject>
          <subject>Mathematics</subject>
        </subj-group>
      </article-categories><title-group><article-title>Mixtures of Conditional Gaussian Scale Mixtures Applied to Multiscale Image Representations</article-title><alt-title alt-title-type="running-head">Mixtures of Conditional Gaussian Scale Mixtures</alt-title></title-group><contrib-group>
        <contrib contrib-type="author" xlink:type="simple">
          <name name-style="western">
            <surname>Theis</surname>
            <given-names>Lucas</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">
            <sup>1</sup>
          </xref>
          <xref ref-type="aff" rid="aff2">
            <sup>2</sup>
          </xref>
          <xref ref-type="corresp" rid="cor1">
            <sup>*</sup>
          </xref>
        </contrib>
        <contrib contrib-type="author" xlink:type="simple">
          <name name-style="western">
            <surname>Hosseini</surname>
            <given-names>Reshad</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">
            <sup>2</sup>
          </xref>
        </contrib>
        <contrib contrib-type="author" xlink:type="simple">
          <name name-style="western">
            <surname>Bethge</surname>
            <given-names>Matthias</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">
            <sup>1</sup>
          </xref>
          <xref ref-type="aff" rid="aff2">
            <sup>2</sup>
          </xref>
          <xref ref-type="aff" rid="aff3">
            <sup>3</sup>
          </xref>
        </contrib>
      </contrib-group><aff id="aff1">
        <label>1</label>
        <addr-line>Werner Reichardt Centre for Integrative Neuroscience, Tübingen, Germany</addr-line>
      </aff><aff id="aff2">
        <label>2</label>
        <addr-line>Max Planck Institute for Biological Cybernetics, Tübingen, Germany</addr-line>
      </aff><aff id="aff3">
        <label>3</label>
        <addr-line>Bernstein Center for Computational Neuroscience, Tübingen, Germany</addr-line>
      </aff><contrib-group>
        <contrib contrib-type="editor" xlink:type="simple">
          <name name-style="western">
            <surname>Hsiao</surname>
            <given-names>Chuhsing Kate</given-names>
          </name>
          <role>Editor</role>
          <xref ref-type="aff" rid="edit1"/>
        </contrib>
      </contrib-group><aff id="edit1">
        <addr-line>National Taiwan University, Taiwan</addr-line>
      </aff><author-notes>
        <corresp id="cor1">* E-mail: <email xlink:type="simple">lucas@tuebingen.mpg.de</email></corresp>
        <fn fn-type="conflict">
          <p>The authors have declared that no competing interests exist.</p>
        </fn>
        <fn fn-type="con">
          <p>Conceived and designed the experiments: MB LT RH. Performed the experiments: LT. Analyzed the data: LT MB RH. Wrote the paper: LT MB.</p>
        </fn>
      </author-notes><pub-date pub-type="collection">
        <year>2012</year>
      </pub-date><pub-date pub-type="epub">
        <day>31</day>
        <month>7</month>
        <year>2012</year>
      </pub-date><volume>7</volume><issue>7</issue><elocation-id>e39857</elocation-id><history>
        <date date-type="received">
          <day>18</day>
          <month>11</month>
          <year>2011</year>
        </date>
        <date date-type="accepted">
          <day>27</day>
          <month>5</month>
          <year>2012</year>
        </date>
      </history><permissions>
        
        <copyright-holder>Theis et al</copyright-holder>
        <license xlink:type="simple">
          <license-p>This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
        </license>
      </permissions><abstract>
        <p>We present a probabilistic model for natural images that is based on mixtures of Gaussian scale mixtures and a simple multiscale representation. We show that it is able to generate images with interesting higher-order correlations when trained on natural images or samples from an occlusion-based model. More importantly, our multiscale model allows for a principled evaluation. While it is easy to generate visually appealing images, we demonstrate that our model also yields the best performance reported to date when evaluated with respect to the cross-entropy rate, a measure tightly linked to the average log-likelihood. The ability to quantitatively evaluate our model differentiates it from other multiscale models, for which evaluation of these kinds of measures is usually intractable.</p>
      </abstract><funding-group>
        <funding-statement>This study was financially supported by the German Ministry of Education, Science, Research and Technology through the Bernstein award (BMBF; FKZ: 01GQ0601) and the German Research Foundation (DFG; priority program 1527, Sachbeihilfe BE 3848/2-1). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.</funding-statement>
      </funding-group><counts>
        <page-count count="8"/>
      </counts></article-meta>
  </front>
  <body>
    <sec id="s1">
      <title>Introduction</title>
      <p>Probabilistic models of natural images are used in many fields related to vision. In computational neuroscience, they are used as a means to understand the structure of the input to which biological vision systems have adapted and as a basis for normative theories of how those inputs are optimally processed <xref ref-type="bibr" rid="pone.0039857-Gallant1">[1]</xref>, <xref ref-type="bibr" rid="pone.0039857-Simoncelli1">[2]</xref>. In computer science, they are used as priors in applications such as image denoising <xref ref-type="bibr" rid="pone.0039857-GuerreroColon1">[3]</xref>, compression <xref ref-type="bibr" rid="pone.0039857-Bethge1">[4]</xref>, or reconstruction <xref ref-type="bibr" rid="pone.0039857-Domke1">[5]</xref>, and to learn image representations that can be used in object recognition tasks <xref ref-type="bibr" rid="pone.0039857-Ranzato1">[6]</xref>. The more abstract goal common to these efforts is to capture the statistics of natural images.</p>
      <p>The dominant approach to modeling whole images has been to use undirected graphical models (or <italic>Markov random fields</italic>). This is despite the fact that directed models possess many advantages over undirected models <xref ref-type="bibr" rid="pone.0039857-Domke1">[5]</xref>, <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref>. In particular, sampling as well as exact maximum likelihood learning can often be performed efficiently in directed models while presenting a major challenge with most undirected models. Another problem faced by undirected models is the question of how to evaluate them. Ideally, we would like to quantify the amount of second- and higher-order correlations captured by a model. For stochastic processes, this can be done by calculating the cross-entropy rate between the learned distribution and the true distribution. However, the cross-entropy rate is typically difficult to estimate in undirected models so that these models are often evaluated only with respect to simple statistics computed from model samples or simply based on the samples' visual appearance. These measures, however, are less objective and hence need to be used with great caution. A large lookup table storing examples from the training set, for example, will reproduce samples which are indistinguishable from true image samples. Yet this model effectively assigns zero probability to images that have not been stored in the lookup table and would perform miserably if evaluated based on the cross-entropy rate. Evaluation of the cross-entropy rate is therefore crucial for the comparison of natural image models and an important step in measuring the progress which has been made in capturing the statistics of natural images.</p>
      <p>Following the directed approach, we will demonstrate here that a directed model applied to multi-scale representations of natural images is able to learn and reproduce interesting higher-order correlations. We use multiscale representations to separate the coarser components of an image from its details, thereby facilitating the modeling of both very global and very local image structure. The particular choice of our representation makes it possible to still evaluate the cross-entropy rate.</p>
    </sec>
    <sec id="s2" sec-type="methods">
      <title>Methods</title>
      <p>One way to model the statistics of arbitrarily large images is to use a directed model in which the parents of a node are constrained to pixels which are left or above of it (as in <xref ref-type="fig" rid="pone-0039857-g001">Figure 1</xref>). A set of parents fulfilling this constraint is also called a <italic>causal neighborhood</italic> <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref>. Note that a pixel will still depend on neighbors in all directions, that is, the causal neighborhood assumption puts only mild constraints on the size or shape of a pixel's Markov blanket. An advantage of the directed model is that it allows us to easily decompose the distribution defined over images or, more generally, a two-dimensional stochastic process <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e001" xlink:type="simple"/></inline-formula> indexed by <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e002" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e003" xlink:type="simple"/></inline-formula>, into a product of conditional distributions:</p>
      <fig id="pone-0039857-g001" orientation="portrait" position="float">
        <object-id pub-id-type="doi">10.1371/journal.pone.0039857.g001</object-id>
        <label>Figure 1</label>
        <caption>
          <title>Directed image modeling.</title>
          <p>(A) A conditional model with a twenty-four pixel causal neighborhood. Sampling is performed by shifting the causal neighborhood from left to right and from top to bottom. (B) A graphical model representation with only four pixels in the causal neighborhood. The parents of a pixel are constrained to pixels which are above of it or in the same row and left of it.</p>
        </caption>
        <graphic mimetype="image" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.g001" xlink:type="simple"/>
      </fig>
      <p><disp-formula id="pone.0039857.e004"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e004" xlink:type="simple"/><label>(1)</label></disp-formula>where <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e005" xlink:type="simple"/></inline-formula> refers to the causal neighborhood of pixel <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e006" xlink:type="simple"/></inline-formula>. Consequently, performing maximum likelihood learning by maximizing the log-likelihood of the model can be done by optimizing a set of conditional probability distributions. An image is sampled from the model by shifting the causal neighborhood from top to bottom and from left to right, filling an image row by row. This procedure requires that the top rows and left columns of the image are initialized somehow to provide input to the conditional distributions. As a consequence, only after the procedure has generated a few rows and converged to the distribution of the model will it generate the desired samples.</p>
      <sec id="s2a">
        <title>Mixture of conditional Gaussian scale mixtures</title>
        <p>To complete the model, the conditional distribution of each pixel given its causal neighborhood has to be specified. We will assume stationarity (or shift-invariance), so that this task reduces to the specification of a single conditional distribution. A family of distributions which has repeatedly been shown to contain suitable building blocks for modeling the statistics of natural images is given by <italic>Gaussian scale mixtures</italic> (GSMs) <xref ref-type="bibr" rid="pone.0039857-Wainwright1">8</xref>,<xref ref-type="bibr" rid="pone.0039857-Weiss1">9</xref>,<disp-formula id="pone.0039857.e007"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e007" xlink:type="simple"/><label>(2)</label></disp-formula>where <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e008" xlink:type="simple"/></inline-formula> is a multivariate Gaussian density with mean <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e009" xlink:type="simple"/></inline-formula> and covariance <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e010" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e011" xlink:type="simple"/></inline-formula> is any univariate density over scales <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e012" xlink:type="simple"/></inline-formula>. Mixture models and Markov random fields based on GSMs have been successfully applied to denoising tasks <xref ref-type="bibr" rid="pone.0039857-GuerreroColon1">[3]</xref>, <xref ref-type="bibr" rid="pone.0039857-Lyu1">[10]</xref>. When used in the directed setting also employed here, GSMs have been shown to yield highly improved estimates of the multi-information rate of natural images <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref>.</p>
        <p>Here we use the conditional distribution of a <italic>mixture of GSMs</italic> to model the distribution of a pixel given its causal neighborhood. We restrict ourselves to mixtures of finite GSMs, that is, GSMs with a finite number of scales, and to mixtures in which each component and scale has equal a priori weight. Additionally, we assume that each GSM has mean zero. If variables <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e013" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e014" xlink:type="simple"/></inline-formula> are modeled jointly with a mixture of GSMs, the conditional distribution of <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e015" xlink:type="simple"/></inline-formula> given <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e016" xlink:type="simple"/></inline-formula> can be written as<disp-formula id="pone.0039857.e017"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e017" xlink:type="simple"/><label>(3)</label></disp-formula>where <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e018" xlink:type="simple"/></inline-formula> run over mixture components and scales, respectively. From the formulation in <xref ref-type="disp-formula" rid="pone.0039857.e017">Equation 3</xref> it is clear that the conditional distribution falls into the <italic>mixtures of experts</italic> framework <xref ref-type="bibr" rid="pone.0039857-Jacobs1">[11]</xref>. In this framework, the predictions of multiple predictors – the <italic>experts</italic> – are mixed according to weights which are computed locally by the <italic>gates</italic>. For mixtures of GSMs, we have</p>
        <p>
          <disp-formula id="pone.0039857.e019"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e019" xlink:type="simple"/><label>(4)</label></disp-formula>
          <disp-formula id="pone.0039857.e020"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e020" xlink:type="simple"/><label>(5)</label></disp-formula>
        </p>
        <p>where <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e021" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e022" xlink:type="simple"/></inline-formula> are positive definite matrices and the scales <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e023" xlink:type="simple"/></inline-formula> are positive real parameters. The gates provide a weighting of the different experts based on the covariance structure and scale of the input variables <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e024" xlink:type="simple"/></inline-formula>. Each expert is a Gaussian with a certain covariance and a mean linearly predicted by the matrix <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e025" xlink:type="simple"/></inline-formula>. The conditional distribution can equivalently be described as a mixture of conditional Gaussian scale mixtures (MCGSM), because conditioned on <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e026" xlink:type="simple"/></inline-formula>, the conditional distribution becomes a conditional GSM <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref>.</p>
      </sec>
      <sec id="s2b">
        <title>A simple multiscale representation</title>
        <p>To facilitate the modeling of global as well as local structure, we introduce a multiscale representation which allows us to generate images by first sampling a low resolution image at the coarsest level and then iteratively adding more and more levels of increasingly finer scale. For simplicity, we will use the Haar wavelet representation. Before explaining the generative model which proceeds from coarse to fine, we recapitulate how the Haar wavelet coefficients can be obtained for a given image by transforming it iteratively proceeding from finer to coarser levels. For each iteration, the transformation is obtained as follows: The pixels of an image are first grouped into <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e027" xlink:type="simple"/></inline-formula> pixel blocks. Each block is then transformed using the orthogonal Haar wavelet basis (<xref ref-type="fig" rid="pone-0039857-g002">Figure 2</xref>). One component of the Haar basis, also called the DC component, essentially performs a block-average. The other three AC components encode the remaining details of the image. In this way one obtains four smaller images which together contain the full information about the original image. Subsequently, the same procedure can always be applied to the low resolution image again.</p>
        <fig id="pone-0039857-g002" orientation="portrait" position="float">
          <object-id pub-id-type="doi">10.1371/journal.pone.0039857.g002</object-id>
          <label>Figure 2</label>
          <caption>
            <title>A multiscale image representation.</title>
            <p>Starting with a regular gray-scale image, the pixels are grouped into two by two pixels. Each group is then transformed using the Haar wavelet basis on the right. The resulting basis coefficients can be interpreted as channels of an image of which one channel represents the low-pass information and the other channels represent high-pass information. Just as in the original representation, we can define a directed model and causal neighborhoods for the superpixel representation. If the low-resolution image is given, the prediction of a pixel can be based on information from anywhere in the low-resolution image (not just a causal neighborhood) without losing the ability to efficiently sample or optimize the parameters of the model.</p>
          </caption>
          <graphic mimetype="image" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.g002" xlink:type="simple"/>
        </fig>
        <fig id="pone-0039857-g003" orientation="portrait" position="float">
          <object-id pub-id-type="doi">10.1371/journal.pone.0039857.g003</object-id>
          <label>Figure 3</label>
          <caption>
            <title>Samples from model trained on natural images.</title>
            <p>(A) To visualize the contribution of the different MCGSMs at the different scales, the first column shows samples from the MCGSM at the largest scale (low resolution). This sample was obtained using the top layer single-scale MCGSM. The second column shows samples from the full model, conditionally sampled with respect to the sample on the left. These samples therefore also contain the high-resolution information. The image on the left can be recovered from the image on the right through block-averaging. (B) The third column shows the same samples with all higher-order correlations destroyed but the autorocorrelation function left intact. This shows that the characteristic features of our samples are due to learned higher-order correlations and that the second-order correlations of natural images are faithfully reproduced as well. (C) For comparison, the right most column shows examples of images from the training set <xref ref-type="bibr" rid="pone.0039857-vanHateren1">[14]</xref>.</p>
          </caption>
          <graphic mimetype="image" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.g003" xlink:type="simple"/>
        </fig>
        <fig id="pone-0039857-g004" orientation="portrait" position="float">
          <object-id pub-id-type="doi">10.1371/journal.pone.0039857.g004</object-id>
          <label>Figure 4</label>
          <caption>
            <title>Samples from model trained on dead leave images.</title>
            <p>(C) The model was trained on samples from an occlusion-based model <xref ref-type="bibr" rid="pone.0039857-Lee1">[17]</xref>. Example images from the training set are given on the right. (A) As above, the first two columns show samples from our model at two different scales. (B) The third column shows the same samples with all higher-order correlations destroyed, revealing second-order statistics which are very similar to the ones learned from natural images.</p>
          </caption>
          <graphic mimetype="image" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.g004" xlink:type="simple"/>
        </fig>
        <fig id="pone-0039857-g005" orientation="portrait" position="float">
          <object-id pub-id-type="doi">10.1371/journal.pone.0039857.g005</object-id>
          <label>Figure 5</label>
          <caption>
            <title>Multi-information and cross-entropy rates.</title>
            <p>(A) The estimated multi-information rate decreases steadily as the scale increases (the resolution decreases). (B) The conditional cross-entropy rate increases with scale. The factor <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e028" xlink:type="simple"/></inline-formula> corrects for the change in variance due to block-averaging and can be different for each scale <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e029" xlink:type="simple"/></inline-formula>. This shows that the van Hateren dataset <xref ref-type="bibr" rid="pone.0039857-vanHateren1">[14]</xref> is generally not scale-invariant. A very similar behavior is shown by images created with an occlusion based model <xref ref-type="bibr" rid="pone.0039857-Lee1">[17]</xref>.</p>
          </caption>
          <graphic mimetype="image" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.g005" xlink:type="simple"/>
        </fig>
        <table-wrap id="pone-0039857-t001" orientation="portrait" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0039857.t001</object-id><label>Table 1</label><caption>
            <title>Multi-information rate estimates.</title>
          </caption><alternatives>
            <graphic id="pone-0039857-t001-1" mimetype="image" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.t001" xlink:type="simple"/>
            <table>
              <colgroup span="1">
                <col align="left" span="1"/>
                <col align="center" span="1"/>
              </colgroup>
              <thead>
                <tr>
                  <td align="left" colspan="1" rowspan="1">model</td>
                  <td align="left" colspan="1" rowspan="1"><inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e030" xlink:type="simple"/></inline-formula>[bit/pixel]</td>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td align="left" colspan="1" rowspan="1">MCGSM+multiscale</td>
                  <td align="left" colspan="1" rowspan="1">3.44±4E-3</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">MCGSM</td>
                  <td align="left" colspan="1" rowspan="1">3.40±4E-3</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">CGSM</td>
                  <td align="left" colspan="1" rowspan="1">3.26±5E-3</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">MCG</td>
                  <td align="left" colspan="1" rowspan="1">3.25±4E-3</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">CG (Gaussian)</td>
                  <td align="left" colspan="1" rowspan="1">2.70±7E-3</td>
                </tr>
              </tbody>
            </table>
          </alternatives><table-wrap-foot>
            <fn id="nt101">
              <label/>
              <p>Multi-information rate (MIR) estimates of natural images obtained with different models including the conditional Gaussian scale mixture (CGSM) with a 7x7 causal neighborhood <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref> and a mixture of conditional Gaussians (MCG) with a 5x5 causal neighborhood <xref ref-type="bibr" rid="pone.0039857-Domke1">[5]</xref>. The SEM corresponds to one standard deviation of the estimate for different test sets. Since each model gives us a lower bound on the true MIR, a larger value corresponds to a better model.</p>
            </fn>
          </table-wrap-foot></table-wrap>
        <fig id="pone-0039857-g006" orientation="portrait" position="float">
          <object-id pub-id-type="doi">10.1371/journal.pone.0039857.g006</object-id>
          <label>Figure 6</label>
          <caption>
            <title>Natural image samples from different models.</title>
            <p>From left to right: Samples from a mixture of conditional Gaussians <xref ref-type="bibr" rid="pone.0039857-Domke1">[5]</xref> (5×5 neighborhoods, 5 components including means), a conditional Gaussian scale mixture <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref> (7×7 neighborhoods, 7 scales), a mixture of conditional Gaussian scale mixtures and the multiscale model. The appearance of the samples changes substantially from model to model.</p>
          </caption>
          <graphic mimetype="image" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.g006" xlink:type="simple"/>
        </fig>
        <fig id="pone-0039857-g007" orientation="portrait" position="float">
          <object-id pub-id-type="doi">10.1371/journal.pone.0039857.g007</object-id>
          <label>Figure 7</label>
          <caption>
            <title>Pairwise filter statistics.</title>
            <p>The joint histogram of pairs of Gaussian derivative filter responses changes as their spatial separation increases. <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e031" xlink:type="simple"/></inline-formula>-spherically symmetric distributions were fitted to the filter responses for natural and synthetic data. The vertical axis shows a maximum likelihood estimate of the parameter <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e032" xlink:type="simple"/></inline-formula>. The horizontal axis shows the vertical offset between the position of the two filters. The plot shows that the multiscale representation enables our model to match the statistics of pairwise filter responses over much longer distances, which could be one possible explanation for the better performance in terms of the cross-entropy rate.</p>
          </caption>
          <graphic mimetype="image" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.g007" xlink:type="simple"/>
        </fig>
        <p>Since the four images obtained from each iteration of the wavelet transform all share the same topology, one can also view them as an image with multiple channels just like there are three different color channels at each pixel location for color images. We refer to a group of four coefficients at one location in the new representation as a <italic>superpixel</italic>. Similarly to the generative model defined in <xref ref-type="disp-formula" rid="pone.0039857.e004">Equation 1</xref> and illustrated in <xref ref-type="fig" rid="pone-0039857-g001">Figure 1</xref>, we could model images in this new representation with an MCGSM which tries to predict all channels of a superpixel at once, given a causal neighborhood of superpixels.</p>
        <p>The essential difference when building a multiscale generative model that iteratively proceeds from coarse to fine is to assume at each level that the DC channel has already been specified by the previous iterations and only the remaining three AC channels need to be predicted. Importantly, this implies that the restriction to a causal neighborhood only persists for the AC channels but does not apply to the DC channel anymore. In other words, we can now base our predictions on an arbitrary set of pixels from the low-resolution image (that is, the DC channel) which is not confined to a causal neighborhood. If <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e033" xlink:type="simple"/></inline-formula> is the superpixel representation of an image <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e034" xlink:type="simple"/></inline-formula> with a low-resolution (DC) part <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e035" xlink:type="simple"/></inline-formula> and a high-resolution (AC) part <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e036" xlink:type="simple"/></inline-formula>, we have<disp-formula id="pone.0039857.e037"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e037" xlink:type="simple"/><label>(6)</label></disp-formula></p>
        <p>The same decomposition can be applied again to <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e038" xlink:type="simple"/></inline-formula>, then again to <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e039" xlink:type="simple"/></inline-formula>, and so on. That is, we will model images in this representation using the following factorization:<disp-formula id="pone.0039857.e040"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e040" xlink:type="simple"/><label>(7)</label></disp-formula></p>
        <p>Due to this factorization, we can sample an image by first sampling a low-resolution image <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e041" xlink:type="simple"/></inline-formula> and then conditionally sampling <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e042" xlink:type="simple"/></inline-formula>. Each factor on the right-hand side again factors into a product of the form of <xref ref-type="disp-formula" rid="pone.0039857.e004">Equation 1</xref>,<disp-formula id="pone.0039857.e043"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e043" xlink:type="simple"/><label>(8)</label></disp-formula><disp-formula id="pone.0039857.e044"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e044" xlink:type="simple"/><label>(9)</label></disp-formula></p>
        <p>Every variable that has already been sampled can be used to conditionally sample all other variables. In this way, we obtain a complete set of Haar wavelet coefficients. To reconstruct an image from the Haar wavelet coefficients, we start with the low-resolution image at the coarsest scale, <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e045" xlink:type="simple"/></inline-formula>, and merge it with the AC coefficients at the next level, <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e046" xlink:type="simple"/></inline-formula>, to give a higher-resolution image <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e047" xlink:type="simple"/></inline-formula>. We repeat this process until we obtain the image at the original resolution, <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e048" xlink:type="simple"/></inline-formula>.</p>
        <p>In the following, we will model the distributions <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e049" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e050" xlink:type="simple"/></inline-formula> using MCGSMs (<xref ref-type="disp-formula" rid="pone.0039857.e017">Equations 3</xref> to 5). We will use a different density for each scale <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e051" xlink:type="simple"/></inline-formula>, but the same density for all locations <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e052" xlink:type="simple"/></inline-formula> within one scale. Maximum likelihood learning in this case amounts to learning to predict <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e053" xlink:type="simple"/></inline-formula> from <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e054" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e055" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e056" xlink:type="simple"/></inline-formula> from <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e057" xlink:type="simple"/></inline-formula> by maximizing the average log-likelihood of each conditional density. Maximizing the likelihood of the transformed image is equivalent to maximizing the likelihood of the original image because our Haar transform is just an orthogonal transformation. Otherwise we would have to take into account the transform's Jacobian determinant.</p>
      </sec>
      <sec id="s2c">
        <title>Model evaluation</title>
        <p>A principled way to evaluate a model approximating a stochastic process <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e058" xlink:type="simple"/></inline-formula> is to use the model for estimating the true distribution's <italic>multi-information rate</italic> (MIR) <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref>, <xref ref-type="bibr" rid="pone.0039857-Perez1">[12]</xref>,<disp-formula id="pone.0039857.e059"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e059" xlink:type="simple"/><label>(10)</label></disp-formula>where <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e060" xlink:type="simple"/></inline-formula> denotes the (differential) entropy. A related measure is the <italic>entropy rate</italic> <xref ref-type="bibr" rid="pone.0039857-Cover1">[13]</xref>.</p>
        <p><disp-formula id="pone.0039857.e061"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e061" xlink:type="simple"/><label>(11)</label></disp-formula>For a strictly stationary Markov process, one can show that these quantities reduce to <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref>, <xref ref-type="bibr" rid="pone.0039857-Cover1">[13]</xref><disp-formula id="pone.0039857.e062"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e062" xlink:type="simple"/><label>(12)</label></disp-formula><disp-formula id="pone.0039857.e063"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e063" xlink:type="simple"/><label>(13)</label></disp-formula></p>
        <p>for some <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e064" xlink:type="simple"/></inline-formula>. The <italic>cross-entropy</italic> between a target distribution and any approximating model distribution with density <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e065" xlink:type="simple"/></inline-formula> is defined here as <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e066" xlink:type="simple"/></inline-formula>, where the expectation is with respect to the target distribution. Analogous to the entropy rate (<xref ref-type="disp-formula" rid="pone.0039857.e061">Equation 11</xref>), we can define the <italic>cross-entropy rate</italic> as a limit of cross-entropies. It is readily shown that the cross-entropy rate is equal to <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e067" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e068" xlink:type="simple"/></inline-formula> is now a model density approximating the distribution of <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e069" xlink:type="simple"/></inline-formula> given <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e070" xlink:type="simple"/></inline-formula>. By replacing the entropy rate with the cross-entropy rate in <xref ref-type="disp-formula" rid="pone.0039857.e063">Equation 13</xref> (second term), we obtain a lower bound on the true MIR. In the following, we will call this lower bound the <italic>cross-MIR</italic>.</p>
        <p>If the assumption of stationarity or the Markov assumption is not met by the true distribution, the cross-MIR will still be a lower bound but will become less tight <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref>. The difference between the true MIR and the cross-MIR is the Kullback-Leibler divergence between the true distribution and the model distribution. Therefore, the better the approximation of the model distribution to the true distribution, the larger the cross-MIR.</p>
        <p>Maximizing the cross-MIR by minimizing the cross-entropy rate is the same as maximizing the average log-likelihood of the conditional distributions. The MIR quantifies the amount of second- and higher-order correlations of a stochastic process. Similar to the likelihood, the cross-MIR can be said to quantify the amount of correlations captured by a model. In addition, it has the advantage of being easier to interpret than the likelihood or the cross-entropy rate, as it is always non-negative and invariant under multiplication of the data with a constant factor. An independent white noise process has a MIR of zero. In the stationary case, evaluating the cross-MIR amounts to calculating one marginal entropy and one conditional cross-entropy (<xref ref-type="disp-formula" rid="pone.0039857.e063">Equation 13</xref>).</p>
        <p>Since the superpixel representation is just a linear transformation of the original image, we can evaluate the entropy rate also for the multiscale model. Using the fact that the transformation has a Jacobian determinant of 1, the following relationship holds for both entropy and cross-entropy rates:<disp-formula id="pone.0039857.e071"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e071" xlink:type="simple"/><label>(14)</label></disp-formula><disp-formula id="pone.0039857.e072"><graphic orientation="portrait" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0039857.e072" xlink:type="simple"/><label>(15)</label></disp-formula></p>
        <p>The factor <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e073" xlink:type="simple"/></inline-formula> is due to the superpixel representation having four channels. In order to estimate the cross-entropy rate of our model, we only need to compute the cross-entropy rates at the different scales and form a weighted average.</p>
      </sec>
    </sec>
    <sec id="s3">
      <title>Results</title>
      <sec id="s3a">
        <title>Natural images</title>
        <p>We extracted training data at four different scales from log-transformed images taken from the van Hateren image dataset <xref ref-type="bibr" rid="pone.0039857-vanHateren1">[14]</xref>. In all experiments, we used <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e074" xlink:type="simple"/></inline-formula> training examples of inputs and outputs.</p>
        <p>To model the coarsest scale, we used an MCGSM with a causal neighborhood corresponding to the upper half of a <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e075" xlink:type="simple"/></inline-formula> neighborhood surrounding the predicted pixel (as in <xref ref-type="fig" rid="pone-0039857-g001">Figure 1</xref>). For the finer scales, we trained three MCGSMs with <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e076" xlink:type="simple"/></inline-formula> superpixel neighborhoods (as in <xref ref-type="fig" rid="pone-0039857-g002">Figure 2</xref>; using the full neighborhood and not only the upper half). All models were comprised of 8 components with 4 scales each. We found that first-order optimization methods performed poorly compared to second-order optimization methods in tuning the model's parameters. For second-order optimization, we used the quasi-newton method BFGS <xref ref-type="bibr" rid="pone.0039857-Nocedal1">[15]</xref> (gradients of the parameters are provided in <xref ref-type="supplementary-material" rid="pone.0039857.s001">Appendix S1</xref>). The small patch sizes were chosen mainly for computational reasons. Note that the number of parameters grows as <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e077" xlink:type="simple"/></inline-formula> for <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e078" xlink:type="simple"/></inline-formula> neighborhoods (because of the gating covariance matrices, Equation). Since the time and space complexity of BFGS grows quadratically with the number of parameters, or as <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e079" xlink:type="simple"/></inline-formula>, using larger patches was computationally prohibitive. For faster convergence, we initialized the conditional models with parameters from mixtures of GSMs trained on the joint distribution of inputs and outputs using expectation maximization <xref ref-type="bibr" rid="pone.0039857-Dempster1">[16]</xref>.</p>
        <p>To sample from the model, we first generated an image using the single-scale MCGSM at the coarsest scale. We initialized the boundaries of the image sample with small Gaussian white noise and then sampled images by sequentially sampling each pixel from left to right and top to bottom. The images were large enough to allow the sampling procedure to converge to the model's stationary distribution. After sampling a large image, we extracted its center part and used it as input to the model at the next finer scale. The sampling procedure converged quickly and the choice of initialization was therefore noncrucial. Using true natural images for initializing the boundaries yielded similar results.</p>
        <p>Samples from the model are shown in <xref ref-type="fig" rid="pone-0039857-g003">Figure 3A</xref>. We find that the model is able to generate images with some interesting properties that cannot be found in samples of other models of natural images. Perhaps the most striking property of the sampled images is the heterogeneity expressed in the combination of flat image regions with regions of high variance as it can also be observed in true natural images.</p>
        <p>By destroying the higher-order correlations in the samples while keeping the second-order correlations intact, we obtain the familiar pink noise images (<xref ref-type="fig" rid="pone-0039857-g003">Figure 3B</xref>). This shows that the model faithfully reproduces the autocorrelation function of natural images, and that the characteristic features of the sampled images are due to higher-order correlations learned by the model. The higher-order correlations were removed by replacing the phase spectrum of the image with a random phase spectrum obtained from a white noise image but keeping the sample's amplitude spectrum. For stationary processes, the amplitude spectrum defines the autocorrelation function of an image and vice versa.</p>
      </sec>
      <sec id="s3b">
        <title>Dead leave images</title>
        <p>As a further test, we generated a more controlled dataset with 1000 images of size <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e080" xlink:type="simple"/></inline-formula> pixels sampled from an occlusion model (“<italic>dead leaves</italic>”) using the procedure described by Lee and Mumford in <xref ref-type="bibr" rid="pone.0039857-Lee1">[17]</xref>. Afterwards, we added small Gaussian white noise to the samples as without the noise, the multi-information rate would be infinite. The dead leave model was designed to generate samples which are approximately scale invariant and share many properties with natural images. In particular, dead leave images share very similar marginal and second-order statistics with natural images. Many of the difficult-to-capture higher-order correlations found in natural images are also believed to be caused by occlusions in the image. This dataset should therefore pose similar challenges as the set of natural images. We extracted training data at three different scales and used the same neighborhood sizes and the same training procedure as above. Samples generated by our model are shown in <xref ref-type="fig" rid="pone-0039857-g004">Figure 4A</xref>. Clearly, our model has not learned what a circle is. However, it is able to reproduce the blotchiness of the original samples despite having no built-in knowledge of occlusions.</p>
      </sec>
      <sec id="s3c">
        <title>Scale invariance</title>
        <p>The multiscale representation lends itself to an investigation of the scale invariance property of natural images. The statistics of a scale-invariant process are invariant under block-averaging and appropriate rescaling to compensate for the loss in variance <xref ref-type="bibr" rid="pone.0039857-Lee2">[18]</xref>. Using the notation as above, this would mean that <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e081" xlink:type="simple"/></inline-formula> is distributed as <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e082" xlink:type="simple"/></inline-formula> for some <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e083" xlink:type="simple"/></inline-formula>. This in turn implies that the multi-information rate (MIR) should stay constant as a function of the scale. Because the MIR is invariant under rescaling with a constant factor, we can ignore the rescaling factor <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e084" xlink:type="simple"/></inline-formula>.</p>
        <p>We estimated the multi-information rate of the van Hateren dataset with the cross-MIR of our model (<xref ref-type="fig" rid="pone-0039857-g005">Figure 5</xref>). The cross-entropy rates were calculated as in <xref ref-type="disp-formula" rid="pone.0039857.e072">Equation 15</xref>.</p>
        <p>Scale-invariance of natural images is typically tested by looking at simple statistics such as the distribution of certain filter responses. While these statistics can be surprisingly stable across scales, the steady decrease of the information rate suggests that the van Hateren natural image dataset is not very scale-invariant. For example, a consequence of a smaller MIR at larger scales is that pixels become more difficult to predict from neighboring pixels. However, the difference in cross-MIR could also be caused by the fact that we are using a slightly different model at the largest scale than for modeling the image details at the lower scales. This problem is not shared by the conditional entropy rates plotted on the right of <xref ref-type="fig" rid="pone-0039857-g005">Figure 5</xref>, because each conditional entropy depends only on a single model. If the images were indeed scale invariant, the distribution over <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e085" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e086" xlink:type="simple"/></inline-formula> should not change with scale <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e087" xlink:type="simple"/></inline-formula>, subject to proper rescaling. Since we are using the same model (but with separately learned parameters) to model the relationship between <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e088" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e089" xlink:type="simple"/></inline-formula> for all <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e090" xlink:type="simple"/></inline-formula>, the estimated entropy rates should stay constant even if our model performed poorly. Our results are consistent with the findings of Wu et al., who showed that many natural images are more difficult to compress at larger scales and argued that the entropy rate of natural images has to increase with scale <xref ref-type="bibr" rid="pone.0039857-Wu1">[19]</xref>. We find a similar drop in MIR for dead leave images. Since these images were designed to be as scale-invariant as possible, this shows that our model and the MIR are very sensitive to these differences in statistics.</p>
      </sec>
      <sec id="s3d">
        <title>Multi-information rates</title>
        <p>Using an estimate of the marginal entropy of <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e091" xlink:type="simple"/></inline-formula> bits <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref>, we arrive at an estimated multi-information rate of <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e092" xlink:type="simple"/></inline-formula> bits per pixel for the van Hateren dataset (<xref ref-type="table" rid="pone-0039857-t001">Table 1</xref>). This is approximately <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e093" xlink:type="simple"/></inline-formula> bits better than the current best estimate for natural images <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref> and <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e094" xlink:type="simple"/></inline-formula> bits better than our result obtained without using the multiscale representation. Note that even for a small image of <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e095" xlink:type="simple"/></inline-formula> pixels, differences of 0.04 and 0.18 bit per pixel give rise to absolute differences of 400 and 1800 bits, respectively.</p>
        <p>Since the true MIR of natural images is unknown, this increase in performance does not tell us how much closer we got to capturing all correlations of natural images. It also does not reveal in which way the model has improved compared to other models. However, samples and statistical tests can give us an indication. <xref ref-type="fig" rid="pone-0039857-g006">Figure 6</xref> shows samples drawn from models suggested by Domke et al. <xref ref-type="bibr" rid="pone.0039857-Domke1">[5]</xref>, Hosseini et al. <xref ref-type="bibr" rid="pone.0039857-Hosseini1">[7]</xref>, and samples from the models presented in this paper. The substantial change in the appearance of the samples suggests that the increase from 3.40 bits to 3.44 bits reflects a meaningful improvement.</p>
        <p>Another way to demonstrate an improvement is to investigate sample-based test statistics. The joint statistics of the responses of two edge filters applied at different locations in an image are known to change in certain ways as a function of their spatial separation and are difficult to reproduce <xref ref-type="bibr" rid="pone.0039857-Sinz1">[20]</xref>. We apply a vertically oriented Gaussian derivative filter at two vertically offset locations and record their responses (for a more detailed explanation, see <xref ref-type="supplementary-material" rid="pone.0039857.s002">Appendix S2</xref>). After whitening, the filter responses are approximately <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e096" xlink:type="simple"/></inline-formula>-spherically symmetric. We therefore fit an <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e097" xlink:type="simple"/></inline-formula>-spherically symmetric model <xref ref-type="bibr" rid="pone.0039857-Gupta1">[21]</xref> with a radial Gamma distribution to the responses and, at every distance, record the parameter <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e098" xlink:type="simple"/></inline-formula> of the model's norm. Since the marginal distribution of each filter response is highly kurtotic and the responses become more independent as the filter distance increases, the joint histogram becomes more and more star shaped. This is expressed in the optimal value for <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e099" xlink:type="simple"/></inline-formula> becoming smaller and smaller. As plotted in <xref ref-type="fig" rid="pone-0039857-g007">Figure 7</xref>, the behavior of the optimal <inline-formula><inline-graphic xlink:href="info:doi/10.1371/journal.pone.0039857.e100" xlink:type="simple"/></inline-formula> is not well reproduced using a single scale but is captured by our multiscale model.</p>
      </sec>
    </sec>
    <sec id="s4">
      <title>Discussion</title>
      <p>We have shown how to use directed models in combination with multiscale representations in a way which allows us to still evaluate the model in a principled manner. To our knowledge, this is the only multiscale model for which the likelihood can be evaluated. Despite the model's computational tractability, it is able to learn interesting higher-order correlations from natural images and yields state-of-the-art performance when evaluated in terms of the multi-information rate. In contrast to the directed model applied to images at a single scale, the model also reproduces the pairwise statistics of filter responses over long distances. Here, we only used a simple multiscale representation. Using more sophisticated representations might lead to even better models. For reasons explained above, the neighborhood sizes used by our models were still fairly small. This is a problem which could be solved in future implementations using different parametrizations or optimization methods.</p>
      <p>Code for training and evaluating MCGSMs on multiscale image representations can be found at <ext-link ext-link-type="uri" xlink:href="http://bethgelab.org/code/theis2012/" xlink:type="simple">http://bethgelab.org/code/theis2012/</ext-link>.</p>
    </sec>
    <sec id="s5">
      <title>Supporting Information</title>
      <supplementary-material id="pone.0039857.s001" mimetype="application/pdf" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.s001" xlink:type="simple">
        <label>Appendix S1</label>
        <caption>
          <p><bold>Details on the parametrization and gradients of the conditional log-likelihood</bold> (<xref ref-type="disp-formula" rid="pone.0039857.e017"><bold>Equation 3</bold></xref>)<bold>.</bold></p>
          <p>(PDF)</p>
        </caption>
      </supplementary-material>
      <supplementary-material id="pone.0039857.s002" mimetype="application/pdf" orientation="portrait" position="float" xlink:href="info:doi/10.1371/journal.pone.0039857.s002" xlink:type="simple">
        <label>Appendix S2</label>
        <caption>
          <p>
            <bold>A more detailed explanation of how to generate </bold>
            <xref ref-type="fig" rid="pone-0039857-g007">
              <bold>Figure 7</bold>
            </xref>
            <bold>.</bold>
          </p>
          <p>(PDF)</p>
        </caption>
      </supplementary-material>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="pone.0039857-Gallant1">
        <label>1</label>
        <mixed-citation publication-type="other" xlink:type="simple">Gallant JL, Prenger RJ (2008) Neural mechanisms of natural scene perception. In: Basbaum AI, Kaneko A, Shepherd GM, Westheimer G, Albright TD, <etal>et al</etal>.., editors. The Senses: A Comprehensive Reference, Vol. 1. Waltham, MA: Elsevier. 383–391.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Simoncelli1">
        <label>2</label>
        <mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Simoncelli</surname><given-names>EP</given-names></name>, <name name-style="western"><surname>Olshausen</surname><given-names>BA</given-names></name> (<year>2001</year>) <article-title>Natural image statistics and neural representation</article-title>. <source>Annual Review of Neuroscience</source> <volume>24</volume>: <fpage>1193</fpage>–<lpage>1216</lpage>.</mixed-citation>
      </ref>
      <ref id="pone.0039857-GuerreroColon1">
        <label>3</label>
        <mixed-citation publication-type="other" xlink:type="simple">Guerrero-Colon JA, Simoncelli EP, Portilla J (2008) Image denoising using mixtures of Gaussian scale mixtures. In: Proceedings of the 15th IEEE International Conference on Image Processing. New York: IEEE Press.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Bethge1">
        <label>4</label>
        <mixed-citation publication-type="other" xlink:type="simple">Bethge M, Hosseini R (2007) Method and device for image compression. Patent WO/2009/146933. Available: <ext-link ext-link-type="uri" xlink:href="http://patentscope.wipo.int/search/en/WO2009146933" xlink:type="simple">http://patentscope.wipo.int/search/en/WO2009146933</ext-link>. Accessed 2012 Jul 5.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Domke1">
        <label>5</label>
        <mixed-citation publication-type="other" xlink:type="simple">Domke J, Karapurkar A, Aloimonos Y (2008) Who killed the directed model? IEEE Computer Society Conference on Computer Vision and Pattern Recognition. doi: 10.1109/CVPR.2008.4587817.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Ranzato1">
        <label>6</label>
        <mixed-citation publication-type="other" xlink:type="simple">Ranzato M, Mnih V, Hinton GE (2010) Generating more realistic images using gated MRF's. In: Lafferty J, Williams CKI, Shawe-Taylor J, Zemel RS, Culotta A, editors. Advances in Neural Information Processing Systems 23. Available: <ext-link ext-link-type="uri" xlink:href="http://books.nips.cc/papers/files/nips23/NIPS2010_0667.pdf" xlink:type="simple">http://books.nips.cc/papers/files/nips23/NIPS2010_0667.pdf</ext-link>. Accessed 2012 Jul 5.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Hosseini1">
        <label>7</label>
        <mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Hosseini</surname><given-names>R</given-names></name>, <name name-style="western"><surname>Sinz</surname><given-names>F</given-names></name>, <name name-style="western"><surname>Bethge</surname><given-names>M</given-names></name> (<year>2010</year>) <article-title>Lower bounds on the redundancy of natural images</article-title>. <source>Vision Research</source> <volume>50(22)</volume>: <fpage>2213</fpage>–<lpage>2222</lpage>.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Wainwright1">
        <label>8</label>
        <mixed-citation publication-type="other" xlink:type="simple">Wainwright M, Simoncelli EP (2000) Scale mixtures of gaussians and the statistics of natural images. In: Advances in Neural Information Processing Systems 12. Cambridge, MA: MIT Press. 855–861.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Weiss1">
        <label>9</label>
        <mixed-citation publication-type="other" xlink:type="simple">Weiss Y, Freeman WT (2007) What makes a good model of natural images? IEEE Confernce on Computer Vision and Pattern Recognition. New York: IEEE Press. 1–8. doi;10.1109/CVPR.2007.383092.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Lyu1">
        <label>10</label>
        <mixed-citation publication-type="other" xlink:type="simple">Lyu S, Simoncelli EP (2007) Statistical modeling of images with fields of gaussian scale mixtures. Advances in Neural Information Processing Systems 19. Available: <ext-link ext-link-type="uri" xlink:href="http://www.cns.nyu.edu/~lcv/pubs/makeAbs.php?loc=Lyu06a" xlink:type="simple">http://www.cns.nyu.edu/~lcv/pubs/makeAbs.php?loc=Lyu06a</ext-link>. Accessed 2012 Jul 5.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Jacobs1">
        <label>11</label>
        <mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Jacobs</surname><given-names>RA</given-names></name>, <name name-style="western"><surname>Jordan</surname><given-names>MI</given-names></name>, <name name-style="western"><surname>Nowlan</surname><given-names>SJ</given-names></name>, <name name-style="western"><surname>Hinton</surname><given-names>GE</given-names></name> (<year>1991</year>) <article-title>Adaptive mixtures of local experts</article-title>. <source>Neural Computation</source> <volume>3</volume>: <fpage>79</fpage>–<lpage>87</lpage>.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Perez1">
        <label>12</label>
        <mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Perez</surname><given-names>A</given-names></name> (<year>1977</year>) <article-title><italic>ε</italic>-admissible simplification of the dependence structure of a set of random variables</article-title>. <source>Kybernetika</source> <volume>13</volume>: <fpage>439</fpage>–<lpage>444</lpage>.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Cover1">
        <label>13</label>
        <mixed-citation publication-type="other" xlink:type="simple">Cover T, Thomas J (2006) Elements of Information Theory, 2nd ed. Hoboken, NJ: Wiley. 74–78.</mixed-citation>
      </ref>
      <ref id="pone.0039857-vanHateren1">
        <label>14</label>
        <mixed-citation publication-type="other" xlink:type="simple">van Hateren JH, van der Schaaf A (1998) Independent component filters of natural images compared with simple cells in primary visual cortex. Proceedings of the Royal Society B: Biological Sciences 265(1394).</mixed-citation>
      </ref>
      <ref id="pone.0039857-Nocedal1">
        <label>15</label>
        <mixed-citation publication-type="other" xlink:type="simple">Nocedal J, Wright SJ (2006) Numerical Optimization, 2nd edition, chapter 6. New York: Springer. 136–143.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Dempster1">
        <label>16</label>
        <mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Dempster</surname><given-names>AP</given-names></name>, <name name-style="western"><surname>Laird</surname><given-names>NM</given-names></name>, <name name-style="western"><surname>Rubin</surname><given-names>DB</given-names></name> (<year>1977</year>) <article-title>Maximum likelihood from incomplete data via the em algorithm</article-title>. <source>Journal of the Royal Statistical Society Series B (Methodological)</source> <volume>39</volume>: <fpage>1</fpage>–<lpage>38</lpage>.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Lee1">
        <label>17</label>
        <mixed-citation publication-type="other" xlink:type="simple">Lee AB, Mumford D (1999) An occlusion model generating scale-invariant images. Proceedings of the IEEE Workshop on Statistical and Computational Theories of Vision.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Lee2">
        <label>18</label>
        <mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Lee</surname><given-names>AB</given-names></name>, <name name-style="western"><surname>Mumford</surname><given-names>D</given-names></name>, <name name-style="western"><surname>Huang</surname><given-names>J</given-names></name> (<year>2001</year>) <article-title>Occlusion models for natural images: A statistical study of a scale-invariant dead leaves model</article-title>. <source>International Journal of Computer Vision – Special issue on statitistical and computational theories of vision: Part II</source> <volume>41(1–2)</volume>: <fpage>35</fpage>–<lpage>59</lpage>.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Wu1">
        <label>19</label>
        <mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Wu</surname><given-names>YN</given-names></name>, <name name-style="western"><surname>Guo</surname><given-names>CE</given-names></name>, <name name-style="western"><surname>Zhu</surname><given-names>SC</given-names></name> (<year>2008</year>) <article-title>From information scaling of natural images to regimes of statistical models</article-title>. <source>Quarterly of Applied Mathematics</source> <volume>66</volume>: <fpage>81</fpage>–<lpage>122</lpage>.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Sinz1">
        <label>20</label>
        <mixed-citation publication-type="other" xlink:type="simple">Sinz F, Simoncelli EP, Bethge M (2009) Hierarchical modeling of local image features through Lp-nested symmetric distributions. In: Bengio Y, editor. Advances in Neural Information Processing Systems 22. Red Hook, NY: Curran Associates.</mixed-citation>
      </ref>
      <ref id="pone.0039857-Gupta1">
        <label>21</label>
        <mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Gupta</surname><given-names>AK</given-names></name>, <name name-style="western"><surname>Song</surname><given-names>D</given-names></name> (<year>1997</year>) <article-title>Lp-norm spherical distribution</article-title>. <source>Journal of Statistical Planning and Inference</source> <volume>60</volume>: <fpage>241</fpage>–<lpage>260</lpage>.</mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>