acceptodds
Published as a conference paper at NeurIPS 2026

Learning a Maximum Entropy Model for Visual Textures using Diffusion

Xinyuan Zhao, Eero Simoncelli

Abstract

Visual textures, defined as spatially homogeneous image regions containing repeated elements (e.g. a field of grass, the bark of a tree), are ubiquitous in visual scenes and provide important cues for recognizing materials and objects. Existing texture models extract essential statistics from a single texture image, and can then generate high-quality samples that are visually similar to the original by matching these statistics. However, their statistics are either hand-designed or based on a network pretrained for another purpose (e.g., object recognition). Here, we develop the first principled method for unsupervised learning of a set of statistics that are used to constrain a maximum entropy probability model. We leverage methods developed for generative diffusion models to derive training and sampling procedures, and compare these to the traditional method of sampling via matching the statistics. Despite the compactness of our trained model (512 statistics), it generates texture images whose quality is as good or better than the current state-of-the-art model ( 177k statistics). A more direct comparison of the two models, obtained by synthesizing images that are indistinguishable for one model but maximally different for the other, reveals their relative strengths and weaknesses. Finally, we show that, unlike previous statistical texture models, a straight trajectory in the representation space of our model generates homogeneous texture samples that interpolate smoothly between the features of the two end points.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_NmxFOpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
4
Quality
4
Significance
4
Read review
Summary

This paper presents an approach (likely the first) to learn statistics that constrain a maximum entropy probability model of textures. This is in contrast to existing work that either learns a model or borrows from a recognition network. The model produces high quality textures trained on approximately 1 million imageNet-21k patches, in a space with lower dimensionality than existing models that can allow for neural responses to be characterized in the representation space (and with mostly better FID).

Strengths and weaknesses

Quality: The quality of this work feels quite high. All of the mathematics and derivations seem to be correct (as far as I can tell) and also seem thorough and relatively easy to follow. The parameter efficiency results seem quite important as well and I like how this connects back to the classic Portilla and Simoncelli results. Overall, this provides a very nice story and also results that are convincing.

Clarity: The overall composition of the paper, the story it tells, the connections to classic and recent work are all strong. The discussion is convincing and the mathematical developments seem to be sound (although I wouldn't assert 100% confidence in certifying they are all correct since checking them completely and exhaustively would be a significant task for the theoretical results in the paper)

Significance: This seems important to texture modelling, perhaps as stimulus generation in psychophysics, and may also generalize to other patterns. If I had to point to any weakness, it would likely be the FID results. The authors make a good case that these are limited in what they say, but the alternative is a qualitative judgment (albeit one that remains convincing).

Originality: This work seems quite original in that the strategy that is used to produce this model seems to develop from a completely different angle than existing models. The way that the work connects classic texture modelling and diffusion in a principled way and that falls naturally out of the theoretical assumptions is very convincing.

Questions
  1. Is there any other metric that could be applied in addition to the current evaluation, possibly over more classes?

  2. How sensitive are the results to the dimensionality? Is there anything more about this story worth including in the paper?

Limitations

yes

Paper formatting concerns

No concerns

Final justification

I have carefully reviewed the concerns of the other reviewers, and the responses of the authors. My own complaints were minor, with some of the other reviewers having more significant concerns. At this stage, there seems to be one reviewer with a relatively negative valence, but I think the authors have done a good job in providing an explanation for some of the concerns they have raised. For this reason, my original opinion of the work stands.

1 comment

Thank you for your valuable questions and suggestions, and thank you for your appreciation of our work! For your questions regarding additional metrics, please see the FID and alternative metrics section of our rebuttal to reviewer FF1U.

Regarding sensitivity of the results to the dimensionality, we did not perform a systematic sweep, but we settled on 512 by comparing several variants. We tested 1024 dimensions and did not see any noticeable improvement.

Reviewer_PjLtOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
2
Significance
2
Read review
Summary

Texture synthesis is a long standing problem in computer vision, with strong connections to human perceptual studies and image-based rendering techniques. Prior work such as the Portilla and Simoncelli model closely follows findings in visual neuroscience but relies on matching handpicked image statistics. More recent work from Gatys improved upon this by instead using pretrained image classifiers, but this results in a highly overparameterized statistics set. To address the issue of finding a rich yet compact set of statistics without explicit supervision, the paper proposes a maximum entropy conditioned diffusion model to learn a good representation space for texture synthesis. Compared to the classic methods, Protilla and Smoncelli and Gatys, the learned statistics consistently achieves similar quality using far fewer statistics (~2.5 orders of magnitude). The learned statistics generate good textures, both when matched directly and when sampled from the trained diffusion model. Not only is the quality comparable, but the learned feature space can be used for texture mixing, suggesting that the model learned useful structure. Overall, the contributions consist of (1) mathematically developing a maximum entropy conditioned diffusion approach for texture statistics selection for synthesis, and (2) training a texture synthesis model that achieves strong quality with a useful representation space.

Strengths and weaknesses

Strengths: The method achieves qualitatively good synthesis results given the reduced statistic set. While there is some prior work on diffusion for texture synthesis (‘Infinite Texture’ by Wang et al. 2024), this is the first work I’ve seen making mathematically connecting the texture synthesis process to diffusion. This is a notable strength because it allows for the exploration of different sampling/synthesis approaches. It is also the first work to explicitly try to learn a texture representation for synthesis rather than select from handpicked sets (GramStatTexNet DuTell et al., 2024) or repurpose statistics from other models. The ability to mix texture using the learned representation is a nice demonstration beyond raw quality that the statics are useful. There is prior texture mixing in diffusion (‘TexSliders’ by Guerrero-Viu et al., 2024), but this method is unique in that it does not need an auxiliary model.

Weaknesses: While promising, the results and comparison baselines presented are fairly minimal. FID is the only metric quality metric that is measured, which even the work itself acknowledges is a flawed metric for their purposes. The work could be made stronger by adding more perceptually aligned metrics such as LPIPS and DreamSim. Evaluating on additional dataset would also strengthen the results as it appears right now the evaluation is only done on one closed collection of images. The competitive adversarial comparison is also a bit hard to interpret without quantitative measure or a human study. Comparing column (b) and (d) of Figure 2, both Gatys and the proposed model lead to fairly noticeable artifacts that are hard to judge which are definitively worse. Finally the papers I cited in the strengths above are all missing from related work, and could be considered also as baselines to compare to.

Questions

Can the authors provide more qualitative and quantitative synthesis results? This is my main question that would address the weakness discussed earlier. The following questions are around clarification.

Why did you choose to train on texture-like patches of Imagenet rather than directly a texture dataset? Would your method still work if you trained on an actual texture dataset such as Describable Textures?

In the statistics matching approach, are you simply iteratively matching a noise seed to the representation learned by your model?

Are you able to measure any quantitative efficiency gains due your smaller representation space?

Limitations

The method is well motivated, but currently there are limited quantitative analyses (in terms of datasets and metrics). If the authors are able to address this point, I would be happy to raise my score.

Paper formatting concerns

none

Final justification

Overall, while I would have liked to see more evaluations (either a human study or bigger dataset), I feel the authors have given a reasonable explanation for why they do not do so. I will raise my score to 4.

1 comment

Thank you for your valuable questions and suggestions! Regarding additional metrics and dataset, please see the Dataset and FID and alternative metrics sections of our rebuttal to reviewer FF1U.

Thank you for mentioning related works that we were not aware of. Both ‘Infinite Texture’ by Wang et al. (2024) and ‘TexSliders’ by Guerrero-Viu et al. (2024) use text prompts to generate or manipulate textures, rather than parameters extracted from a reference image. Therefore, they are not directly comparable to our model. 'GramStatTexNet' by DuTell et al. (2024) is a parametric texture model that can synthesize textures based on a reference image, and is comparable to our model. However, their model is much higher-dimensional than ours (30k vs 512), is designed rather than learned, and is shown to perform worse than the Gatys model in their paper (Figure 2 of openreview ICLR 2026 submission). We will add these citations in the final paper (if accepted).

Answers to your other questions:

In the statistics matching approach, are you simply iteratively matching a noise seed to the representation learned by your model?

Yes, it is a simple gradient-descent procedure. The image xx is initialized with noise, and is then iteratively updated (using the Adam optimizer) to minimize the loss $ \Vert f(x) - \mu \Vert^2 $. The optimization process is done by PyTorch and the image xx is its only learnable parameter. At the end of optimization, f(x)f(x) will match μ\mu.

Are you able to measure any quantitative efficiency gains due your smaller representation space?

Low dimensionality itself can be considered as a form of efficiency in the sense that it is a more compact description, as with a good compression algorithm. If you mean computational efficiency for the generative process, we do not think dimensionality of the representation plays a significant role.

Reviewer_FF1UOpenReview ↗
Rating
3
Clarity
1
Confidence
4
Originality
3
Quality
2
Significance
2
Read review
Summary

The authors present a mathematical analysis and experimental model for texture representation synthesis that uses the same maximum entropy denoising objective to synthesize textures using statistical matching to target textures both though iterative optimization, as well as via diffusion. A maximum entropy model is derived mathematically, and used in practice to synthesis texture images from a curated dataset. The presented syntheses achieve good quality both qualitatively and quantitatively, doing so with a small number of parameters (512), which is substantially smaller than the Gatys model.

Strengths and weaknesses

Strengths:

  • Texture representation and synthesis, especially as stimuli for psychophysics and neuroscience is an important area of study, and the authors present a novel approach to synthesizing texture images.
  • The authors present a thorough mathematical exploration and derivation of denoising objective and then in turn utilize it in practice to synthesize new images.
  • It is interesting demonstrating the mathematically derived objectives applied and evaluated in both statistical matching through optimization, as well as in diffusion.
  • The authors show a limited number of examples that achieve comparable/better visual quality with fewer parameters than Gatys.

Weaknesses:

  • The paper needs better motivation for choices of architectures, datasets, analysis. The discussion attempts to motivate the work at a very high level (applications as neuroscience stimuli), but it is unclear why most of the architectural and parameter choices were made. - In the same vein there are no ablation experiments, or even justification for model architectures or training parameters. For example the authors state that 512 is the parameter choice because 1024 did not yield better results but this is not shown or explored.
  • The mathematical analysis is not well setup in particular with variables not defined explicitly (though lambda is discussed more extensively in the supplemental). This lack of context makes it difficult to follow.
  • The authors claim that Gatys is SOTA for texture representation and generation (189). This is not true in 2026 especially in the context of diffusion models generally. The authors contradict themselves later stating that both Gatys and this work is not SOTA (224).
  • There are strong claims in the discussion around the paper’s generality and applications in other domains such as audio, but these claims are completely unsubstantiated or explored. Such claims need to be softened, further justified, and/or proof of concept demonstrated.
  • The interpolation demonstration is interesting but interpolation is well established in diffusion models and it is unclear the benefit of the ability to interpolate in this context.
  • Figure 6 appears to struggle with artifacts of optimization failure that are not discussed.
Questions
  • What is the motivation for a maximum entropy model over other possible models?
  • Why did the authors curate their own dataset from ImageNet when there are many existing texture datasets available including DTD, ALOT, OpenSurfaces Textures, etc. Is this a need for larger scale perhaps? If the dataset is a novel contribution (which would need motivation), please evaluate the span and variability of this novel texture dataset, define a train/val/test split, and use the dataset to evaluate the model on the validation split (or a subset of it much larger >9 textures). The authors say that training is expensive (25 hours on 4x A100s), but inference (even the optimization based statistical matching) is much less expensive than this, and can be parallelized and scaled to a larger dataset than 9 images.
  • Why were these architectures chosen? Please motivate these choices, and include a diagram of multi-architecture setup (decomposed UNet, ConVeXNet, Pyramid) which would be helpful in understanding the larger picture. Relatedly, the authors derive a denoising objective but what is the training objective for the two UNet and ConvNeXt-T models?
  • Why do the FID scores vary so greatly between textures? Please evaluate additional metrics, especially given the discussion of FID being problematic. Consider including a small user study to evaluate human perception on the synthesized textures.
  • What do the authors mean by ‘With a much smaller size (512 statistics in the current setting), our model offers the possibility of characterizing neural responses in the representation space` Is this an interpretability claim?
Limitations

Some limitations of the method are mentioned in passing but having a complete set of these listed together explicitly in the conclusion would be helpful to the reader.

Paper formatting concerns

none

Final justification

In light of the rebuttal which included a portion of the experiments requested by reviewers, I raise my score, but only to a 3 as I still do not recommend acceptance given the disconnect between the SOTA claims and the limited evaluation experiments presented in the rebuttal.

1 comment

Thank you for your valuable questions and suggestions! We agree that some aspects of the work were not explained with sufficient clarity. We will incorporate much of the following response in the final paper (if accepted), especially the rationale for our choices of mathematical framework, network architecture and dataset.

Maximum entropy framework

We had moved much of the technical description of the maximum entropy framework to the appendices, but from your comments (and others) we realize we were too brief in the overview and motivation given in the introduction. The main idea behind this framework is: there are many densities matching a given set of statistical constraints; among these one should choose the one with highest diversity (quantified by entropy), i.e., the “maximum entropy density”. This framework is widely adopted in previous literature [Zhu et al (1998), Portilla et al (2000) and others], but all previous examples used hand-selected statistics. We believe the current paper is the first to learn the statistics from data. For this endeavor, there are two additional justifications for use of the maximum entropy framework:

  1. In combination with Tweedie's formula, the mathematical form of the maximum entropy model (exponential of a weighted sum of the statistics) gives us a simple prescription for the overall model architecture.
  2. The duality of μ\mu and λ\lambda (as explained in Appendix A) gives us two representation spaces for textures, each having different geometry. We explored this difference in the interpolation examples (Figure 3).

The maximum entropy formalism is simple to derive, but not so intuitive on first encounter (as is also true of the Tweedie’s formula for denoising that underlies diffusion models). Consider the simplest example: Suppose xx is a scalar random variable, and one chooses to constrain the density using two statistics f(x)=[x,x2]f(x) = [x, x^2] (i.e., the first and second moments). Then the maximum entropy distribution is: pλ(x)=1Z(λ)exp⁡(−λ1x−λ2x2)p_\lambda(x) = \frac{1}{Z(\lambda)} \exp( -\lambda_1 x - \lambda_2 x^2) The parameters λ1\lambda_1 and λ2\lambda_2 must be chosen to satisfy the constraints E(x)=μ1\mathbb{E}(x) = \mu_1 and E(x2)=μ2\mathbb{E}(x^2) = \mu_2. In general, λ\lambda cannot be written analytically as a function of μ\mu, but in this case we see that the density is an exponential of a quadratic form, and thus a Gaussian distribution. So we can solve directly, giving: λ1=−μ1μ2−μ12,λ2=12(μ2−μ12)\lambda_1 = -\frac{\mu_1}{\mu_2 - \mu_1^2}, \qquad \lambda_2 = \frac{1}{2(\mu_2 - \mu_1^2)} Note that μ2−μ12\mu_2 - \mu_1^2 is the variance (second moment minus squared first moment). The mapping between μ\mu and λ\lambda is one-to-one, and either can serve as a parametrization of the family of Gaussian distributions.

Datasets

We were unable to use existing datasets (DTD, ALOT, OpenSurfaces) as our training set for two reasons:

  1. Many of the images in these dataset are substantially inhomogeneous in luminance, color, orientation, scale and other features, due to perspective, lighting and inherently inhomogeneous structure (e.g. a single large vein on a leaf). Our model (as most texture models) assumes homogeneity.
  2. These datasets generally are not large enough (DTD: 5640 images of 47 classes; ALOT: ~27500 images of 250 classes; OpenSurfaces: 27796 texture regions contained in bigger images). Our training set contains one million homogenous image patches extracted automatically from ImageNet (Sec 2.2, and appendix D).

Our test examples are not held out images from the training set, since many ImageNet images are not of high quality (e.g. containing JPG block artifacts). Instead, for our visual examples, we used 80 custom images for evaluating sampling quality by visual inspection (12 of which are shown in Figure 1 and 5). These images are selected from a private collection according to our subjective evaluation of their homogeneity and diversity, and we believe that they cover adequate diversity for testing purposes. This selection had been done before the model was built, trained and iterated.

The nine texture images used in computing FID are required to be very high resolution with a large number of repeating units, in order to generate 10,000 different crops needed for reliable FID estimation. It is not easy to find such images.

Architecture justification and ablation study

The overall architecture, which computes the gradient of the inner product of an ff network and a λ\lambda network, is dictated by the maximum entropy framework. Importantly, the parameters in both networks are all learned by minimizing the denoising objective in equation (9). There is no other objective. We have a diagram for the model and will include it in the final paper (if accepted).

The ConvNeXt architecture of the λ\lambda network is relatively standard for image-to-vector mapping, but our ff network has a two-stream half-UNet architecture with multi-scale output, which is non-standard and (we agree) we should have provided justification. Our initial attempt was to use an identical ConvNeXt for the ff network, but this completely failed. We reasoned that we needed to build a network whose gradient resembles a UNet, which is known to perform well in denoising, as used in diffusion models. Specifically, a stream on the fine scale needs to pass through without downsampling. To satisfy this, we tried using the first half of a UNet architecture, computing output by taking the spatial average of each scale, which resulted in our first working model. Later we improved performance by using two identical half-UNet architectures and taking the inner product between corresponding channels along the spatial dimensions.

We have now performed ablation studies that confirm that using either a standard ConvNeXt architecture or a single-stream half-UNet for ff network generates significantly worse images than the current setting. We will include these in the finalized paper.

FID and alternative metrics

FID evaluates the distance between two distributions, capturing some aspect of both quality and diversity. For alternative metrics, reviewer PjLt suggests LPIPS and DreamSim. Both of these methods measure distance between two individual images, rather than between two distributions (like FID), so they are generally not good metrics for evaluating generative models, because individual generated images are not paired with individual images in the test set. Nevertheless, we computed LPIPS on crops from the nine images on which FID was computed, and find that the LPIPS distance between two crops from the same texture is indistinguishable from the LPIPS distance between a crop and an image generated by either our method or the Gatys model. This does not match our perception experience, in which two crops are more similar. This implies that LPIPS is not a good approximation for human perception of texture images. We also tested DISTS (Ding et al., 2020), another perceptual metric that is specifically optimized for textures, and find that it behaves similarly. We did not test DreamSim but believe that it will also behave similarly.

We acknowledge the utility of human psychophysics experiments, especially since existing metrics are all unsatisfactory. However, performing such experiments is well beyond the scope of this paper, and we believe the qualitative examples we’ve shown in the figures do provide an honest (i.e, not cherry-picked) depiction of the model behaviors.

Miscellaneous clarifications

  • On lines 224-226, we meant to say that for other datasets that are typical in the literature (ImageNet, LSUN bedroom, CelebA, etc), the FID score of SoTA generative models is usually much lower (below 10). And then we point out that “FID scores are not directly comparable across datasets”. So this does not contradict the claim that our model is SoTA among parametric texture models.
  • The purpose of performing interpolation experiments is to explore the structure of the learned representation space (see above description of two representations arising from maxEnt). We understand that there are other methods for interpolation based on diffusion models, but they serve a different purpose.
  • In the paragraph starting from line 288, we point out the fact that our framework is general and not limited to images as inputs, and list several data modalities that we think are suitable for modeling with a maximum entropy framework. We do not know whether applying our framework to those modalities will be as successful, but we are optimistic. Auditory texture models based on hand-chosen statistics have been highly successful (e.g., Mcdermott et al 2013).
  • On lines 286-287, we did not mean to make a claim about semantic interpretability. We intended to express the general idea that a smaller dimensionality parameterization (512 vs ~177k) is advantageous for neuroscience or perceptual experiments. For example, a very small dimensionality may enable us to characterize the tuning curve of neurons/fMRI voxels to specific dimensions. We acknowledge that we do not have a specific proposal, and that 512 dimensions may still be too big for such purposes, so we will soften our claims in this regard.

Comments on the paper

1 comment
Meta-review

This paper proposes a maximum entropy model for texture synthesis that achieves similar quality to existing methods but with far fewer statistics.

Strengths:

  • A novel mathematical connection between texture synthesis and diffusion
  • The idea of learning a representation for texture synthesis rather than picking from exemplars is novel

The reviewers reservations revolve around the following main items:

Method:

  • Why have the authors chosen to curate a special dataset when numerous texture datasets exist?

Evaluation:

  • Are there additional metrics that can be used in addition to FID (e.g. LPIPS, DreamSIM, etc)
  • Are there additional datasets that can be used for evaluation?
  • Can the authors provide more qualitative results on more varied data? A human study could also be useful in this vein.
  • The authors are encouraged to provide ablations for their architectural choices.

Exposition:

  • The authors are encouraged to expand on the motivation behind their methodological choices.
  • Missing related work discussion:
    • ‘Infinite Texture’ by Wang et al. 2024
    • GramStatTexNet DuTell et al., 2024
    • TexSliders’ by Guerrero-Viu et al., 2024
    • The authors are encouraged to clean up the mathematical derivation and make sure all variables are properly defined. The current submission is written for an audience that is well familiar with the related work and the derivations of the maximum entropy density model, but this leads to a missed opportunity in the current manuscript to explain the concepts in a clear way to new readers. In general, sections 2.1 and 2.2 could provide more motivation (e.g. why does it makes sense to arrive at f via denoising), clear definitions, and derivation details, or one could add these to the supplementary.

Initial Meta Reviewer Recommendation:

While the proposed method is clearly novel and interesting, the current exposition does not do it justice and misses an opportunity to explain the motivation and the principles behind the approach to new readers to the field. This results in a high disagreement between reviewers. The authors are encouraged to consider the questions raised by reviewers in their rebuttal, in particular the ones mentioned in this meta review, in order to aid in the post-rebuttal discussion phase.

Additionally, the authors are encouraged to include in the introduction of the manuscript the motivation behind using the maximum entropy density model. This motivation may be found in prior work, but would be beneficial for the reader of the current manuscript in order to make it more self-contained. In particular, an expansion on the following sentence [L 40] could be useful to the reader: “Images of a given texture class are samples drawn from the maximum entropy density [Jaynes, 1957] subject to the values of the chosen statistics.” Including this motivation in the rebuttal would be beneficial to the post-rebuttal discussion.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.