원시데이터 수집 시스템
선정목록으로

Efficient coding of natural scene statistics predicts discrimination thresholds for grayscale textures

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Tiberiu Teşileanu — Flatiron Institute, New York, United States
  2. Mary M. Conte — Feil Family Brain and Mind Institute, Weill Cornell Medical College, New York, United States
  3. John J. Briguglio — Janelia Research Campus, Ashburn, United States
  4. Ann M. Hermundstad — Janelia Research Campus, Ashburn, United States
  5. Jonathan D. Victor — Feil Family Brain and Mind Institute, Weill Cornell Medical College, New York, United States
  6. Vijay Balasubramanian — David Rittenhouse Laboratories, University of Pennsylvania, Philadelphia, United States
DOI
10.7554/elife.54347
저널
eLife
발행년도
2020
발행기관
eLife Sciences Publications Ltd
피인용수
24
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.7554/elife.54347
토픽
Color Science and Applications
OpenAlex ID
W3046312032

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Previously, in Hermundstad et al., 2014, we showed that when sampling is limiting, the efficient coding principle leads to a 'variance is salience' hypothesis, and that this hypothesis accounts for visual sensitivity to binary image statistics. Here, using extensive new psychophysical data and image analysis, we show that this hypothesis accounts for visual sensitivity to a large set of grayscale image statistics at a striking level of detail, and also identify the limits of the prediction. We define a 66-dimensional space of local grayscale light-intensity correlations, and measure the relevance of each direction to natural scenes. The 'variance is salience' hypothesis predicts that two-point correlations are most salient, and predicts their relative salience. We tested these predictions in a texture-segregation task using un-natural, synthetic textures. As predicted, correlations beyond second order are not salient, and predicted thresholds for over 300 second-order correlations match psychophysical thresholds closely (median fractional error <0.13).

본문 128,080자

본문 펼치기
*For correspondence: ttesileanu@gmail.com Competing interests: The authors declare that no competing interests exist. Funding: See page 14 Received: 12 December 2019 Accepted: 31 July 2020 Published: 03 August 2020 Reviewing editor: Stephanie Palmer, University of Chicago, United States Copyright Tesileanu et al. This article is distributed under the [terms of the Creative Commons](http://creativecommons.org/licenses/by/4.0/) [Attribution License, which](http://creativecommons.org/licenses/by/4.0/) permits unrestricted use and redistribution provided that the original author and source are credited. RESEARCH ADVANCE # Efficient coding of natural scene statistics predicts discrimination thresholds for grayscale textures Tiberiu Tesileanu <sup>1</sup> *, Mary M Conte <sup>2</sup>, John J Briguglio <sup>3</sup>, Ann M Hermundstad <sup>3</sup>, Jonathan D Victor <sup>2</sup>, Vijay Balasubramanian <sup>4</sup> 1Flatiron Institute, New York, United States; 2Feil Family Brain and Mind Institute, Weill Cornell Medical College, New York, United States; <sup>3</sup> Janelia Research Campus, Ashburn, United States; <sup>4</sup> David Rittenhouse Laboratories, University of Pennsylvania, Philadelphia, United States Abstract Previously, in Hermundstad et al., 2014, we showed that when sampling is limiting, the efficient coding principle leads to a ‘variance is salience’ hypothesis, and that this hypothesis accounts for visual sensitivity to binary image statistics. Here, using extensive new psychophysical data and image analysis, we show that this hypothesis accounts for visual sensitivity to a large set of grayscale image statistics at a striking level of detail, and also identify the limits of the prediction. We define a 66-dimensional space of local grayscale light-intensity correlations, and measure the relevance of each direction to natural scenes. The ‘variance is salience’ hypothesis predicts that two-point correlations are most salient, and predicts their relative salience. We tested these predictions in a texture-segregation task using un-natural, synthetic textures. As predicted, correlations beyond second order are not salient, and predicted thresholds for over 300 secondorder correlations match psychophysical thresholds closely (median fractional error <0.13). ## Introduction Neural circuits in the periphery of the visual (Laughlin, 1981; Atick and Redlich, 1990; van Hateren, 1992; Fairhall et al., 2001; Ratliff et al., 2010; Liu et al., 2009; Borghuis et al., 2008; Garrigan et al., 2010; Kuang et al., 2012), auditory (Schwartz and Simoncelli, 2001; Lewicki, 2002; Smith and Lewicki, 2006; Carlson et al., 2012), and perhaps also olfactory (Tes¸ileanu et al., 2019) systems use limited resources efficiently to represent sensory information by adapting to the statistical structure of the environment (Sterling and Laughlin, 2015). There is some evidence that this sort of efficient coding might also occur more centrally, in the primary visual cortex (Olshausen and Field, 1996; Bell and Sejnowski, 1997; Vinje and Gallant, 2000; van Hateren and van der Schaaf, 1998) and perhaps also in the entorhinal cortex (Wei et al., 2015). Behaviorally, efficient coding implies that the threshold for perceiving a complex sensory cue, which depends on the collective behavior of many cells in a cortical circuit, should be set by its variance in the natural environment. However, the nature of this relationship depends on the regime in which the sensory system operates. Specifically, in conventional applications of efficient coding theory where sampling is abundant, high variance is predicted to be matched by high detection thresholds. The authors of Hermundstad et al., 2014 argued instead that texture perception occurs in a regime where sampling noise is the limiting factor. This leads to the opposite prediction (Tkacik et al., 2010; Doi and Lewicki, 2011; Hermundstad et al., 2014), namely that high variance should lead to a low detection threshold, summarized as variance is salience (Hermundstad et al., 2014). Tests of this prediction in Tkacik et al., 2010; Hermundstad et al., 2014 showed that it holds for the visual detection of simple black-and-white binary textures. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 1 of 36 Research advance Neuroscience Physics of Living Systems These binary textures, while informative about visual sensitivity, are a highly restricted set and do not capture many perceptually-salient properties of natural scenes. Moving to a complete description of visual textures, however, requires specifying the co-occurrence of all possible patterns of light across a visual image, and is generally intractable. One way to make this specification tractable is to construct a local and discretized grayscale texture space, in which luminance is drawn from a discrete set and correlations in luminance are only specified up to a given neighborhood size. For example, if we consider four spatially-contiguous squares (‘checks’) with binary intensities, there are 2 <sup>4</sup> ¼ 16 patterns that can each occur with different probabilities in a given texture. Imposing translation symmetry constrains these 16 parameters, leading to a 10-dimensional space of textures (Hermundstad et al., 2014). This space can be explored by synthesizing artificial binary textures with prescribed combinations of parameters (Victor et al., 2005; Victor and Conte, 2012), and by analyzing the relative contributions of these parameters to the correlated structure of natural images (Tkacik et al., 2010; Hermundstad et al., 2014). Here, we generalized these synthesis and analysis methods to multiple gray levels and used this to probe efficient encoding of grayscale textures composed of correlated patterns of three luminance levels (dark, gray, light) specified within blocks of four contiguous checks. We chose to add only one intermediate gray level compared to the binary case because it is the simplest generalization of binary textures that allows us to explore perceptual sensitivity to grayscale textures. Because the number of possible visual patterns increases as a power law in the number of distinguishable luminance values, this generalization already yields a very highdimensional space: for intensities constrained to G ¼ 3 discrete values, there are G <sup>4</sup> ¼ 81 patterns of four checks with three gray levels, leading to a 66-dimensional space of textures after accounting for the constraints of translation invariance. This grayscale texture space enabled us to probe and interpret the relationship between natural scene statistics and psychophysics in much greater detail than is possible with binary textures. In particular, the ‘variance is salience’ hypothesis qualitatively predicts that directions corresponding to two-point correlations will be most perceptually salient, and it quantitatively predicts detection thresholds in different directions of this salient part of the texture space. (Two coordinates corresponding to contrast, which are also highly salient, are zeroed out by the preprocessing in our natural image analysis; we therefore do not probe these directions.) We tested these predictions by asking observers to report the location of textured strips presented rapidly against a background of white noise, and we found detailed agreement with the theory. By further exploiting symmetries in the distribution of grayscale textures, we show that human behavior not only reflects the relative informativeness of natural visual textures, but it also parallels known invariances in natural scenes. Natural scenes also have a notable, previously studied, asymmetry between bright and dark (Ratliff et al., 2010; Tkacik et al., 2010) which is reflected in the anatomy and physiology of visual circuits, and in visual behavior (Ratliff et al., 2010; Tkacik et al., 2010; Zemon et al., 1988; Chubb et al., 2004; Jin et al., 2008; Komban et al., 2014; Kremkow et al., 2014). The asymmetry is rooted ultimately in the lognormal distribution and spatial correlation structure of light intensities in natural scenes (Ratliff et al., 2010; Tkacˇik et al., 2011). Our image processing pipeline (see Materials and methods) starts by taking the logarithm of the pixel intensities and removing the large-scale 1 `=` f spatial correlations, and thus significantly reduces the dark-light asymmetry. The ternarization procedure that we then employ further diminishes the asymmetry, allowing us to focus on other aspects of natural scene statistics. ## Results Local textures with multiple gray levels We define textures in terms of statistical correlations between luminance levels at nearby locations, generalizing the methods developed for binary images (Victor and Conte, 2012; Hermundstad et al., 2014) to three luminance levels. If we consider four ‘checks’ arranged in a 2 � 2 square, the three luminance levels lead to 3 <sup>4</sup> ¼ 81 possible patterns, and their frequency of occurrence in an image is equivalently parameterized by intensity correlations within the square. Thus there is an 81-dimensional space of ternary textures defined by correlations within square Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 2 of 36 Research advance Neuroscience Physics of Living Systems arrangements of checks. However, translation invariance constrains these 81 probabilities, reducing the number of independent statistics and thus the dimension of the texture space. We can quantify the statistics of such textures in an image patch by gliding a 2 � 2 block (a ‘glider’) over the patch and analyzing the luminance levels at different locations within this block (Figure 1A). At the most basic level, we can measure the luminance histogram at each of the four check locations in the glider. Check intensities can take three values (0, 1, or 2, for black, gray, or white), and the corresponding frequencies of occurrence must add to one, leaving two free parameters. If the histograms at each of the four locations within the glider were independent, this would lead to 4 � 2 ¼ 8 texture dimensions. However, because of translation invariance in natural images, the luminance histograms at each location must be the same, leaving only two independent dimensions of texture space from the single-check statistics. Next, we can analyze the statistics of luminance levels at pairs of locations within the glider. Taking into account translation invariance, there are four ways to position these pairs (Figure 1B), each with a different orientation. For each orientation, we can calculate either the sum A þ B or the difference A � B of the luminance values A and B at the two locations. This yields eight possible texture groups (Figure 1B). Within each group, we build texture coordinates by counting the fraction of occurrences in which A � B is equal to 0, 1, or 2, up to a multiple of 3; that is, we are building a histogram of A � B modulo 3, here denoted modðA � B `;` 3Þ. The appearance of the modulo function here ### A texture plane: ### C D 2 independent parameters per plane where ### B = 0, = 1, = 2. second <u>order</u> <u>+</u> <u>0</u> + 0 <u>+</u> <u>+</u> 0 0 <u>0</u> <u>+</u> + 0 <u>+</u> <u>0</u> 0 + A1 <mark>A</mark> <u>2</u> A3 <mark>A</mark> 4 <u>+</u> <u>0</u> - 0 <u>+</u> <u>–</u> 0 0 <u>0</u> <u>+</u> - 0 <u>+</u> <u>0</u> 0 Figure 1. Ternary texture analysis. (A) With three luminance levels there are 3 <sup>4</sup> ¼ 81 possible check configurations for a 2 � 2 block (histogram on the right). We parametrize the pairwise correlations within these blocks using modular sums or differences of luminance values at nearby locations, modðA � B `;` 3Þ (see Materials and methods and Appendix 1 for details). This notation denotes the remainder after division by 3, so that for example modð4 `;` 3Þ ¼ 1 and modð�1 `;` 3Þ ¼ 2. The texture coordinates are defined by the probabilities p0, p1, p2 with which modðA � B `;` 3Þ equals its three possible values, 0, 1, or 2. These three probabilities must sum to 1, so there are only two independent coordinates for each triplet of probabilities. (B) The eight second-order groups (planes) of texture coordinates in the ternary case. A texture group is identified by the choice of orientation of the pair of checks for which the correlation is calculated, and by whether a sum or a difference of luminance values is used. The greek letter notation ( `b` for the second-order planes) mirrors the notation used in Hermundstad et al., 2014. (C and D) Example texture groups (‘simple’ planes). The origin is the point p0 ¼ p1 ¼ p2 ¼ 1 `=` 3, representing an unbiased random texture. The interior of the triangle shows the allowed range in the plane where all the probability values are non-negative. The vertices are the points where only one of the probabilities is nonzero. An example texture patch is shown for the origin, as well as for each of the vertices of the probability space. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 3 of 36 Research advance Neuroscience Physics of Living Systems is a consequence of using a Fourier transform in the space of luminance levels, which is convenient for incorporating translation invariance into our coordinate system (see Materials and methods and Appendix 1). The fractions of values of modðA þ B `;` 3Þ equal to 0, 1, or 2 must add up to 1, so that each texture group is characterized by two independent coordinates, that is, a plane in texture space. These 8 planes constitute 16 independent dimensions of the texture space, in addition to the two dimensions needed to capture the histogram statistics at individual locations. We can similarly analyze the joint statistics of luminance levels at three checks within the glider, or all four together. There are four ways to position 3-check gliders within the 2 � 2 square, and, for each of these positions, eight parameters are needed to describe their occurrence frequencies, once the first- and second-order statistics have been fixed. This leads to 4 � 8 ¼ 32 third-order parameters. For configurations of all four checks, 16 parameters are required, once first-, second-, and third-order parameters are fixed. These 32 þ 16 ¼ 48 parameters, in addition to the 18 parameters described above, lead to a 66-dimensional texture space. This provides a complete parameterization of the 2 � 2 configurations with three gray levels. See Methods and Appendix 1 for a detailed derivation and a generalization to higher numbers of gray levels. In order to probe human psychophysical sensitivity to visual textures, we need an algorithm for generating texture patches at different locations in texture space. To do so, we use an approach that generalizes the methods from Victor and Conte, 2012. Briefly, we randomly populate entries of the first row and/or column of the texture patch, and we then sequentially fill the rest of the entries in the patch using a Markov process that is designed to sample from a maximum-entropy distribution in which some of the texture coordinates are fixed (see Methods and Appendix 2 for details). Examples of texture patches obtained by co-varying coordinates within a single texture group are shown in Figure 1C and D. Examples of textures obtained by co-varying coordinates in two texture groups are shown in Figure 2. We refer to the first case as ‘simple’ planes, and the second as ‘mixed’ planes. When applying these methods to the analysis of natural images, we bin luminance values to produce equal numbers of black, white, and gray checks (details below), thus equalizing the previously studied brightness statistics in scenes (e.g., Zemon et al., 1988; Chubb et al., 2004; Jin et al., 2008; Ratliff et al., 2010; Tkacik et al., 2010; Tkacˇik et al., 2011; Komban et al., 2014; Kremkow et al., 2014). This procedure allowed us to focus on higher-order correlations. In previous work, we found that median-binarized natural images show the highest variability in pairwise correlations, and that observers are correspondingly most sensitive to variations in these statistics (Tkacˇik et al., 2011; Hermundstad et al., 2014). In view of this, we focused our attention on pairwise statistics. For three gray levels, these comprise a 16-dimensional ‘salient’ subspace of the overall texture space. Natural image statistics predict perceptual thresholds Predictions from natural scene statistics The ‘variance is salience’ hypothesis from Hermundstad et al., 2014 predicts that the most salient directions in texture space (for which detection thresholds are low) will be those along which there is the highest variance across image patches, while the least salient directions (for which detection thresholds are high) will be those with lowest variance. To test these predictions, we first mapped natural image patches to their corresponding locations within the texture space (as in Hermundstad et al., 2014). We then computed the inverse of the standard deviation of the natural image distribution along each direction, and we used this as our prediction of detection thresholds. The procedure is sketched in Figure 3 and described in more detail in Methods. We found that natural images have much higher variance in the second-order coordinate planes than in the third- and fourth-order planes. This predicted that textures exhibiting variability in the second-order planes would be most salient to observers, and thus would be amenable to a quantitative comparison between theory and behavior. Thus, we computed the predicted detection thresholds in four single and twenty-two mixed second-order coordinate planes, and we scaled this set of thresholds by a single overall scaling factor that was chosen to best match the behavioral measurements (blue dots in Figure 4C and Figure 5). Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 4 of 36 Research advance Neuroscience Physics of Living Systems ++ + - <sup>[0]</sup> + - <sup>[1]</sup> ++ [0] [1] + ++ <u>+ +</u> <sup>[0]</sup> <u>+ +</u> <sup>[1]</sup> <u>+ +</u> <sup>[1]</sup> <u>+ +</u> <sup>[2]</sup> <u>+ -</u> <sup>[0]</sup> + - <sup>[1]</sup> <u>+ +</u> <sup>[0]</sup> <u>+ +</u> <sup>[1]</sup> <u>+ +</u> <sup>[1]</sup> <u>+ +</u> <sup>[2]</sup> <u>+ -</u> <sup>[0]</sup> + ++ [0] [1] [1] [2] + - <sup>[0]</sup> + ++ + [0] [0] [0] [1] [2] [1] + - <sup>[0]</sup> <u>+ +</u> <sup>[0]</sup> <u>+ +</u> <sup>[0]</sup> <u>+ +</u> <sup>[1]</sup> <u>+ +</u> <sup>[2]</sup> <u>+ +</u> <sup>[2]</sup> <u>+ -</u> <sup>[1]</sup> + - <sup>[1]</sup> <u>+ +</u> <sup>[0]</sup> <u>+ +</u> <sup>[0]</sup> <u>+ +</u> <sup>[1]</sup> <u>+ +</u> <sup>[2]</sup> <u>+ +</u> <sup>[2]</sup> <u>+ -</u> <sup>[1]</sup> + ++ + + + + + [0] [0] [1] [1] Figure 2. Examples of textures from all the mixed planes for which psychophysics data are available. Each patch is obtained by choosing coordinates in two different texture groups: for instance, a point in the ð `b` þþ½0� `;` `b` þ�½1�Þ plane (row 1, column 2) corresponds to choosing the probabilities that modðA þ B `;` 3Þ ¼ 0 and modðA � B `;` 3Þ ¼ 1. Apart from these constraints, the texture is generated to maximize entropy (see Materials and methods and Appendix 2). The center of the coordinate system in all planes corresponds to an unbiased texture (i.e., the probability for each direction is 1/3), while a mixed-plane coordinate equal to one corresponds to full saturation (i.e., the probability for that direction is 1). The dashed lines indicate the directions in texture space along which the illustrated patches were generated. The patches within a given plane are drawn at a constant distance from the center, but the precise amount of texture saturation varies, according to the largest saturation that could be generated in each direction. Note that along some directions, the maximum saturation is limited by the way in which the texture coordinates are defined, or by the texture synthesis procedure (see Appendix 2). Psychophysical measurements To measure the sensitivity of human subjects to different kinds of textures, we used a four-alternative forced-choice paradigm following Hermundstad et al., 2014; Victor and Conte, 2012; Victor et al., 2013; Victor et al., 2015. Subjects were briefly shown an array in which a rectangular Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 5 of 36 Research advance Neuroscience Physics of Living Systems ### A original downsampled subdivided whitened ternarized ### B C D in-focus all patches 1 2/3 1/3 0 luminance log radius log radius luminance Figure 3. Preprocessing of natural images. (A) Images (which use a logarithmic encoding for luminance) are first downsampled by a factor N and split into square patches of size R. The ensemble of patches is whitened by applying a filter that removes the average pairwise correlations (see panel C), and finally ternarized after histogram equalization (see panel D). (B) Blurry images are identified by fitting a two-component Gaussian mixture to the full distribution of image textures (shown in light gray). This is shown here in a particular projection involving a second-order direction ( `b` þ�) and a fourth-order one ð `a` þ�þ� <sup>Þ. The texture analysis is restricted to the component</sup> with higher contrast, which is shown in black on the plot. Note that a value of 1/3 on each axis corresponds to the origin of the texture space. (C) Power spectrum before and after filtering an image from the dataset. (D) Images are ternarized such that within each patch a third of the checks are converted to black, a third to gray, and a third to white. The processing pipeline illustrated here extends the analysis of Hermundstad et al., 2014 to multiple gray levels. strip positioned near the left, right, top, or bottom edge was defined by a texture difference: either the strip was structured and the background was unstructured, or the background was structured and the strip was unstructured. Structured patterns were constructed using the texture generation method described above, and unstructured patterns were generated by randomly and independently drawing black, gray, or white checks with equal probability. The texture analysis procedure in Figure 3 included a whitening step that removed long-range correlations in natural images, and the local textures generated to test the predictions psychophysically also lacked these correlations. This is appropriate, because, during natural vision, dynamic stimuli engage fixational eye movements that whiten the visual input (Rucci and Victor, 2015). Spatial filtering has also been thought to play a role in whitening (Atick and Redlich, 1990), but in vitro experiments (Simmons et al., 2013 found that adaptive spatiotemporal receptive field processing did not by itself whiten the retinal output, but rather served to maintain a similar degree of correlation across stimulus conditions). We infer from these studies that short visual stimuli like our 120 ms presentations should be pre-whitened, to make up for the absence of fixational eye movements that produce whitening in natural, continuous viewing conditions. Subjects were asked to indicate the position of the differently textured strip within the array (Figure 4A). Thresholds were obtained by finding the value of a texture coordinate for which the subjects’ performance was halfway between chance and perfect (Figure 4B; see Materials and methods for details). For the second-order planes, subjects were highly consistent in their relative sensitivity to different directions in texture space, with a single scaling factor accounting for a majority of the inter-subject variability (see Appendix 6). The subject-average thresholds in the second order planes are shown in Figure 4C and Figure 5 (red crosses and error bars). As predicted by the natural Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 6 of 36 Research advance Neuroscience Physics of Living Systems ### A B ### C 1.00 0.25 ++ + exchange black and white psychophysics natural images ++ + threshold 1/3 1 Figure 4. Experimental setup and results in second-order simple planes. (A) Psychophysical trials used a fouralternative forced-choice task in which the subjects identified the location of a strip sampled from a different texture on top of a background texture. (B) The subject’s performance in terms of fraction of correct answers was fit with a Weibull function and the threshold was identified at the mid-point between chance and perfect performance. Note that if the subject’s performance never reaches the mid-point on any of the trials, this procedure may extrapolate a threshold that falls outside the valid range for the coordinate system (see, e.g., the points outside the triangles in panel C). This signifies a low-sensitivity direction of texture space. (C) Measured thresholds (red crosses with pink error bars; the error bars are in most cases smaller than the symbol sizes) and predicted thresholds (blue dots) in second-order simple planes. Thresholds were predicted to be inversely proportional to the standard deviation observed in each texture direction in natural images. The plotted results used downsampling factor N ¼ 2 and patch size R ¼ 32. A single scaling factor for all planes was used to match to the psychophysics. The orange and green dashed lines show the effect of two symmetry transformations on the texture statistics (see text). scene analysis, sensitivity in the third and fourth-order planes was low; in fact, detection thresholds could not be reliably measured in most directions beyond second order (Appendix 6). Variance predicts salience Predicted detection thresholds were in excellent agreement with those measured experimentally (Figure 4C and Figure 5), with a median absolute log error of about 0.13. Put differently, 50% of the measurements have relative errors below 13%, since in this regime, the log error is very well approximated by relative error (see Materials and methods and Appendix 4). This match is unlikely to be due to chance—a permutation test yields p<10 <sup>�4</sup> for the hypothesis that all measured thresholds were drawn independently from a single distribution that did not depend on the texture direction in which they were measured (see Materials and methods and Appendix 4 for details and further statistical tests; 95% of the 10,000 permutation samples exhibited median absolute log errors in the range [0.24, 0.31]). The comparison between theory and experiment was tested in 12 directions in each of 26 single and mixed planes, for a total of 311 different thresholds (the measurement uncertainty in one direction in the `b` þþ½0�; `b` þþ <sup>½1�</sup> <sup>mixed</sup> <sup>plane</sup> <sup>was</sup> <sup>too</sup> <sup>large,</sup> <sup>and</sup> <sup>we</sup> <sup>discarded</sup> <sup>that</sup> datapoint); a single scaling factor was used to align these two sets of measurements. Note that these measurements are not fully independent: the natural image predictions within each plane lie on an Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 7 of 36 Research advance Neuroscience Physics of Living Systems +- <sup>[0]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[2]</sup> <u>+-</u> <sup>[0]</sup> ++ [0] [0] [2] [0] [1] [1] ++ [1] ++ +- <sup>[1]</sup> <u>++</u> <sup>[2]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[2]</sup> <u>+-</u> <sup>[1]</sup> + + + + + ++ + [1] [0] [2] [0] +- <sup>[1]</sup> <u>++</u> <sup>[0]</sup> +- <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[2]</sup> <u>+-</u> <sup>[1]</sup> [1] [0] [1] <u>++</u> <sup>[0]</sup> +- <sup>[1]</sup> <u>++</u> <sup>[1]</sup> +- <sup>[0]</sup> <u>++</u> <sup>[2]</sup> + ++ ++ + + [1] <u>++</u> <sup>[2]</sup> [0] + <u>+-</u> <sup>[0]</sup> psychophysics natural images Figure 5. The match between measured (red crosses and error bars) and predicted (blue dots) thresholds in 22 mixed planes. Each plot corresponds to conditions in which the coordinates in two different texture groups are specified, according to the axis labels. For instance, column two in row one is the ð `b` þþ½0� `;` `b` þ�½1�Þ plane; the two coordinates correspond to choosing the probabilities that modðA þ B `;` 3Þ ¼ 0 and modðA � B `;` 3Þ ¼ 1. As in Figure 2, the center of the coordinate system in these planes corresponds to an unbiased texture (i.e., the probability for each direction is 1/3), while a coordinate equal to 1—indicated by the gray dotted circle— corresponds to full saturation (i.e., the probability for that direction is 1). ellipse by construction; the psychophysical thresholds are measured independently at each point but are generally well-approximated by ellipses. Even taking this into account, the match between the predictions and the data is unlikely to be due to chance (p<10 <sup>�4</sup> ; 95% range for the median absolute log error [0.16, 0.22]; see Appendix 4). However, not all thresholds are accurately predicted from natural images. While some of the mismatches seem random and occur for directions in texture space where the experimental data have large variability (pink error bars in Figure 4C and Figure 5), there are also systematic discrepancies. Natural-image predictions tend to underestimate the threshold in the simple planes (median log prediction error �0.090) and overestimate the threshold in mixed planes (median log prediction error +0.008). That is, in human observers, detection of simultaneously-present multiple correlations is disproportionally better than predicted from the detection thresholds for single correlations, to a mild degree (see Appendix 5 for details). Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 8 of 36 Research advance Neuroscience Physics of Living Systems A second observation is that prediction errors tend to be larger for the sum-correlations (such as `b` þþ) than for the difference-correlations (such as `b` þ�), independent of the direction of the error. This may be a consequence of the way that modular arithmetic and gray-level discretization interact, leading to a kind of non-robustness of the sum-correlations. Specifically, the most prominent feature of the patterns induced by the sum-correlations is that there is a single gray level that occurs in runs (e.g., p0 ¼ 1 leads to runs of black checks, p1 ¼ 1 leads to runs of white checks, and p2 ¼ 1 leads to runs of gray checks; see Figure 1C). On the other hand, for difference correlations, p0 ¼ 1 leads to runs of all gray levels, while p1 ¼ 1 and p2 ¼ 1 lead to ‘mini-gradients’ that cycle between white, gray, and black (Figure 1D). Thus, the sum-correlations are subject to the particular assignment of gray levels and modulus while the difference-correlations rely on relationships that hold independent of these choices. Independent of these trends, the natural-image predictions tend to underestimate the thresholds in directions with very low variance even while they match the thresholds in directions with high variance (see Appendix 5). This suggests the need to go beyond the linear efficient-coding model employed here. A simple generalization that interpolates between existing analytically solvable models (Hermundstad et al., 2014) involves a power-law transformation of the natural-image variances, threshold / ðstandard deviationÞ <sup>�</sup> <sup>`h`</sup> . We use a default exponent of `h` ¼ 1 throughout the text. The exponent `h` that best matches our data is close but probably not equal to 1 (the 95% credible interval is [0.81, 0.98]; see Appendix 4), suggesting that a weak power-law nonlinearity might be involved. The inferred range for `h` also confirms that the measured thresholds are not independent of the predicted ones (which would have mapped to `h` ¼ 0). In sum, the modest systematic discrepancies between the natural-image predictions and the measured thresholds indicate that the efficient-coding model has limitations, and the observed mismatches can guide future studies that go beyond this model. More generally, we do not expect the predictions of efficient coding to hold indefinitely: adapting to increasingly precise environmental statistics must ultimately become infeasible, both because of insufficient sampling, and because of the growing computational cost required for adaptation. Whether, and to what extent, these issues are at play is a subject for future work. These results are robust to several variations in our analysis procedure. We obtain similar results when we either vary the sub-sampling factor N and patch size R, modify the way in which we ternarize image patches, or analyze different image datasets (Figure 6A and Appendix 3). Eliminating downsampling completely (choosing N ¼ 1) does lead to slightly larger mismatches between predicted and measured thresholds (first three distributions on the left in Figure 6A) as expected from Hermundstad et al., 2014, a finding that we attribute to artifacts arising from imperfect demosaicing of the camera’s filter array output. Invariances in psychophysics recapitulate symmetries in natural images The ‘variance is salience’ hypothesis can be further tested by asking whether symmetries of the natural distribution of textures are reflected in invariances of psychophysical thresholds. Binary texture coordinates (Hermundstad et al., 2014) are not affected by many of these symmetry transformations, and so a test requires textures containing at least three gray levels. For instance, reflecting a texture around the vertical axis has no effect on second-order statistics in the binary case, but it leads to a flip around the p0 direction in the `b` þ� simple plane in ternary texture space (dashed green line in Figure 4C). To see this, recall that the coordinates in the `b` þ� plane are given by the probabilities that modðA1 � A2 `;` 3Þ ¼ h for the three possible values of h (Figure 1). Under a left-right flip, the values A1 and A2 are exchanged, leading to modðA1 � A2 `;` 3Þ ¼ modð�h `;` 3Þ. This means that the h ¼ 1 direction gets mapped to h ¼ 2, the h ¼ 2 direction gets mapped to h ¼ 1, and the h ¼ 0 direction remains unaffected. More details, and a generalization to additional symmetry transformations, can be found in Appendix 3. We find that the distribution of natural images is symmetric about the p0 direction and is thus unaffected by this transformation, predicting that psychophysical thresholds should also be unaffected when textures are flipped about the vertical axis. This is indeed the case (Figure 6B). Similarly, the natural image distribution is symmetric under flips about the horizontal axis, and also under rotations by 90, 180, and 270 degrees, predicting perceptual invariances that are borne out in the psychophysical data (Figure 6B). Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 9 of 36 Research advance Neuroscience Physics of Living Systems ### A B 2 0 -2 Preprocessing parameters 2 0 -2 natural images psychophysics Transformation Figure 6. Robustness of results and effects of symmetry transformations. (A) The difference between the natural logarithms of the measured and predicted thresholds (red crosses and blue dots, respectively, in Figures 4C and 5) is approximately independent of the downsampling ratio N and patch size R used in preprocessing. The labels on the `x` -axis are in the format N � R, with the violin plot and label in blue representing the analysis that we focused on in the rest of the paper. Each violin plot in the figure shows a kernel density estimate for the distribution of prediction errors for the 311 second-order single- and mixed-plane threshold measurements available in the psychophysics. The boxes show the 25th and 75th percentiles, and the lines indicate the medians. (B) Change in the natural logarithms of predicted (blue) or measured (red) thresholds following a symmetry transformation. Symmetry transformations that leave the natural image predictions unchanged also leave the psychophysical measurements unchanged. (See text for the special case of the exch(B,W) transformation.) The visualization style is the same as in panel A, except boxes and medians are not shown. The transformations starting with exch correspond to exchanges between gray levels; e.g., exch(B,W) exchanges black and white. lrFlip and udFlip are left-right and up-down geometric flips, respectively, while rot90 and rot180 are geometric rotations by the respective number of degrees (clockwise). Reflecting a texture about the vertical axis also has an interesting effect on the `b` þ� plane: it not only flips the texture about the p0 direction, but it also maps the texture onto the plane corresponding to the opposite diagonal orientation, `b` �þ <sup>.</sup> <sup>The</sup> <sup>fact</sup> <sup>that</sup> <sup>a</sup> <sup>flip</sup> <sup>about</sup> <sup>the</sup> <sup>p0</sup> <sup>direction</sup> <sup>is</sup> <sup>a</sup> <sup>symme-</sup> try of natural images is thus related to the fact that the diagonal pairwise correlations are the same regardless of the orientation of the diagonal. This fact was already observed in the binary analysis (Hermundstad et al., 2014), and is related to the invariance under 90-degree rotations observed here (Figure 6B). It is important to note that these symmetries were not guaranteed to exist for either natural images or human psychophysics. Most of the textures that we are using are not themselves invariant under rotations (see the examples from Figure 1C,D). This means that invariances of predicted thresholds arise from symmetries in the overall shape of the distribution of natural textures. Similarly, had observed thresholds been unrelated to natural texture statistics, we could have found a discrepancy between the symmetries observed in natural images and those observed in human perception. As an example, the up and down directions differ in meaning, as do vertical and horizontal directions. A system that preserves these semantic differences would not be invariant under flips and rotations. The fact that the psychophysical thresholds are, in fact, invariant under precisely those transformations that leave the natural image distribution unchanged supports the idea that this is an adaptation to symmetries present in the natural visual world. Natural images also have a well-known asymmetry between bright and dark contrasts (Ratliff et al., 2010; Tkacik et al., 2010) that is reflected in the anatomy and physiology of visual circuits, and in visual behavior (Ratliff et al., 2010; Tkacik et al., 2010; Zemon et al., 1988; Chubb et al., 2004; Jin et al., 2008; Komban et al., 2014; Kremkow et al., 2014). Our psychophysical data also show a bright/dark asymmetry. For instance, in Figure 4C, the threshold contour is not symmetric under the exchange of black and white checks, which has the effect of reflecting thresholds about the upper-left axis in the `b` þþ plane (dashed orange line in the figure). Such brightdark asymmetries lead to a wide distribution of relative changes in detection threshold upon the exchange of black and white (red violin plot in Figure 6B for the exch(B,W) transformation). Our Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 10 of 36 Research advance Neuroscience Physics of Living Systems natural image analysis does not show this asymmetry (blue violin plot in Figure 6B for the exch(B,W) transformation) because of our preprocessing, which follows previous work (Hermundstad et al., 2014). As observed in Ratliff et al., 2010, the bright-dark asymmetry rests on two main characteristics of natural images: a skewed distribution of light intensities such that the mean intensity is larger than the median, and a power-law spectrum of spatial correlations. Both of these are reduced or removed by our preprocessing pipeline, which starts by taking the logarithm of intensity values and thereby reduces the skewness in the intensity distribution, and continues with a whitening stage that removes the overall 1 `=` f spatial correlation spectrum seen in natural images. The final ternarization step additionally reduces any remaining dark-bright asymmetry, since we ensure that each of the three gray levels occurs in equal proportions in the preprocessed patches. This explains why we do not see this asymmetry in our natural-image analysis. ## Discussion The efficient coding hypothesis posits that sensory systems are adapted to maximize information about natural sensory stimuli. In this work, we provided a rigorous quantitative test of this hypothesis in the context of visual processing of textures in a regime dominated by sampling noise. To this end, we extended the study of binary texture perception to grayscale images that capture a broader range of correlations to which the brain could conceivably adapt. We first generalized the definition of textures based on local multi-point correlations to accommodate multiple luminance levels. We then constructed algorithms for generating these textures, and we used these in our behavioral studies. By separately analyzing the distribution of textures across an ensemble of natural images, we showed that psychophysical thresholds can be predicted in remarkable detail based on the statistics of natural scenes. By further exploiting symmetry transformations that have non-trivial effects on ternary (but not binary) texture statistics, we provided a novel test of efficient coding and therein demonstrated that visually-guided behavior shows the same invariances as the distribution of natural textures. Overall, this work strengthens and refines the idea that the brain is adapted to efficiently encode visual texture information. The methodology developed here can be used to address many hypotheses about visual perception. For example, if a specific set of textures was hypothesized to be particularly ethologically relevant, this set could be measured and compared against ‘irrelevant’ textures of equal signal-to-noise ratio. Because our hypothesis treats every dimension of texture space equally—the symmetry only broken by properties of the natural environment—we leveraged the rapidly increasing dimensionality of grayscale texture space to more stringently test the efficient coding hypothesis. In this vein, our construction can be generalized to larger numbers of gray levels and correlations over greater distances. However, the ability of neural systems to adapt to such correlations must ultimately be limited because, as texture complexity grows, it will eventually become impossible for the brain to collect sufficient statistics to determine optimal sensitivities. Even were it possible to accumulate these statistics, adapting to them might not be worth the computational cost of detecting and processing long-range correlations between many intensity values. Understanding the limits of texture adaptation will teach us about the cost-benefit tradeoffs of efficient coding in sensory cortex, in analogy with recently identified cost-benefit tradeoffs in optimal inference (Tavoni et al., 2019). And indeed, although our predictions are in excellent agreement with the data in most cases, we find a few systematic differences that may already be giving us a glimpse of these limits. ## Materials and methods Code and data The code and data used to generate all of the results in the paper can be found on GitHub (RRID: [SCR_002630),](https://scicrunch.org/resolver/SCR_002630) at [https://github.com/ttesileanu/TextureAnalysis](https://github.com/ttesileanu/TextureAnalysis) (Tesileanu et al., 2020; copy [archived at https://github.com/elifesciences-publications/TextureAnalysis).](https://github.com/elifesciences-publications/TextureAnalysis) Definition of texture space A texture is defined here by the statistical properties of 2 � 2 blocks of checks, each of which takes the value 0, 1, or 2, corresponding to the three luminance levels (black, gray, or white; see Appendix Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 11 of 36 Research advance Neuroscience Physics of Living Systems 1 for a generalization to more gray levels). The 3 <sup>4</sup> ¼ 81 probabilities for all the possible configurations of such blocks form an overcomplete coordinate system because the statistical properties of textures are independent of position. To build a non-redundant parametrization of texture space, we use a construction based on a discrete Fourier transform (see Appendix 1). Starting with the luminance values Ai `;` i ¼ 1 `;` . . . `;` 4, of checks in a 2 � 2 texture block (arranged as in Figure 1A), we define the coordinates `s` ss13ss24 <sup>ðhÞ</sup> <sup>which</sup> <sup>are</sup> <sup>equal</sup> <sup>to</sup> <sup>the</sup> <sup>fraction</sup> <sup>of</sup> <sup>locations</sup> <sup>where</sup> <sup>the</sup> <sup>linear</sup> <sup>combination</sup> s1A1 þ s2A2 þ s3A3 þ s4A4 has remainder equal to h after division by three (the number of gray levels). In the case of three gray levels, the coefficients si can be +1, �1, or 0. Each set of coefficients si identifies a texture group, and within each texture group we have three probability values, one for each value of h. Since the probabilities sum up to 1, each texture group can be represented as a plane, and more specifically, as a triangle in a plane, since the probabilities are also non-negative. This is the representation shown in Figure 1C,D and used in subsequent figures. For compactness of notation, when referring to the coefficients si, we write + and - instead of +1 and �1, and omit coefficients that are 0, e.g., `s` þ�� instead of `s` þ10 � �11 <sup>.</sup> <sup>We</sup> <sup>also</sup> <sup>use</sup> <sup>`g`</sup> <sup>(rather</sup> <sup>than</sup> the generic symbol `s` ) for 1-point correlations, `b` for 2-point correlations, `�` for 3-point correlations, and `a` for 4-point correlation, matching the notation used in the binary case (Victor and Conte, 2012; Hermundstad et al., 2014). For instance, `b` þ� is the plane identified by the linear combination A1 � A3 ðmod 3Þ. Texture analysis and synthesis Finding the location in texture space that matches the statistics of a given image patch is straightforward given the definition above: we simply glide a 2 � 2 block over the image patch and count the fraction of locations where the combination s1A1 þ s2A2 þ s3A3 þ s4A4 takes each of its possible values modulo three, for each texture group identified by the coefficients si. (As a technical detail, we glide the smallest shape that contains non-zero coefficients. For example, for `b` þ�, we glide a 1 � 2 region instead of a 2 � 2 one. This differs from gliding the 2 � 2 block for all orders only through edge effects, and thus the difference decreases as the patch size R increases.) In order to generate a patch that corresponds to a given location in texture space, we use a maximum entropy construction that is an extension of the methods from Victor and Conte, 2012. There are efficient algorithms based on 2d Markov models that can generate all single-group textures, namely, textures in which only the probabilities within a single texture group deviate from (1/3, 1/3, 1/3). For textures involving several groups, the construction is more involved, and in fact some combinations of texture coordinates cannot be achieved in a real texture. This restriction applies as textures become progressively more ‘saturated’, that is, near the boundary of the space. In contrast, near the origin of the space all combinations can be achieved via the ‘donut’ construction for mixing textures, described in Victor and Conte, 2012. Details are provided in Appendix 2. Visual stimulus design The psychophysical task is adapted from Victor et al., 2005, and requires that the subject identify the location of a 16 � 64-check target within a 64 � 64-check array. The target is positioned near one of the four sides of the square array (chosen at random), with an 8-check margin. Target and background are distinguished by the texture used to color the checks: one is always the i.i.d. (unbiased) texture with three gray levels; the other is a texture specified by one or two of the coordinates defined in the text. In half of the trials, the target is structured and the background is i.i.d.; in the other half of the trials, the target is i.i.d. and the background is structured. To determine psychophysical sensitivity in a specific direction in the space of image statistics, we proceed as follows Hermundstad et al., 2014; Victor and Conte, 2012; Victor et al., 2013; Victor et al., 2015. We measure subject performance in this 4-alternative forced-choice task across a range of ‘texture contrasts’, that is, distances from the origin in the direction of interest. Fraction correct, as a function of texture contrast, is fit to a Weibull function, and threshold is taken as the texture contrast corresponding to a fraction correct of 0.625, that is, halfway between chance (0.25) and ceiling (1.0). Typically, 12 different directions in one plane of stimulus space are studied in a randomly interleaved fashion. Each of these 12 directions is sampled at 3 values of texture contrast, chosen in pilot experiments to yield performance between chance and ceiling. These trials are organized into 15 blocks of 288 trials each (a total of 4320 trials), so that each direction is sampled 360 times. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 12 of 36 Research advance Neuroscience Physics of Living Systems Visual stimulus display Stimuli, as described above, were presented on a mean-gray background for 120 ms, followed by a mask consisting of an array of i.i.d. checks, each half the size of the stimulus checks. The display size was 15 � 15 deg; viewing distance was 103 cm. Each of the 64 � 64 array stimulus checks consisted of 10 � 10 hardware pixels, and measured 14 � 14 min. The display device was an LCD monitor with a refresh rate of 100 Hz, driven by a Cambridge Research ViSaGe system. The monitor was calibrated with a photometer prior to each day of data collection to ensure that the luminance of the gray checks was halfway between that of the black checks (<0.1) and white checks (23 cd/m <sup>2</sup> ). Psychophysics subjects Subjects were normal volunteers (three male, three female), ages 20 to 57, with visual acuities, corrected if necessary, of 20/20 or better. Of the six subjects, MC is an experienced psychophysical observer with thousands of hours of experience; the other subjects (SR, NM, WC, ZA, JWB) had approximately 10 (JWB), 40 (NM, WC, ZA) or 100 (SR) hours of experience at the start of the study, as subjects in related experiments. MC is an author. NM, WC, and ZA were naı¨ve to the purposes of the experiment. This work was carried out with the subjects’ informed consent, and in accordance with the Code of Ethics of the World Medical Association (Declaration of Helsinki) and the approval of the Institutional Review Board of Weill Cornell. Psychophysics averaging The average thresholds used in the main text were calculated by using the geometric mean of the subject thresholds, after applying a per-subject scaling factor chosen to best align the overall sensitivities of all the subjects; these multipliers ranged from 0.855 to 1.15. Rescaling a single consensus set of thresholds in this fashion accounted for 98.8% of the variance of individual thresholds across subjects. The average error bars were calculated by taking the root-mean-squared of the per-subject error bars in log space (determined from a bootstrap resampling of the Weibull-function fits, as in Victor et al., 2005), and then exponentiating. Natural image preprocessing Images were taken from the UPenn Natural Image Database (Tkacˇik et al., 2011) and preprocessed as shown in Figure 3A (see Materials and methods for details). Starting with a logarithmic encoding of luminance, we downsampled each image by averaging over N � N blocks of pixels to reduce potential camera sampling artifacts. We then split the images into non-overlapping patches of size R, filtered the patches to remove the average pairwise correlation expected in natural images (van Hateren, 1992), and finally ternarized patches to produce equal numbers of black, gray, and white checks (Figures 3A, C and D). For most figures shown in the main text, we used N ¼ 2 and R ¼ 32. Each patch was then analyzed in terms of its texture content and mapped to a point in ternary texture space following the procedure described in the main text. Finally, to avoid biases due to blurring artifacts, we fit a two-Gaussian mixture model to the texture distribution and used this to separate in-focus from blurred patches (Figure 3B; Hermundstad et al., 2014; details in Materials and methods). Whitening of natural image patches To generate the whitening filter that we used to remove average pairwise correlations, we started with the same preprocessing steps as for the texture analysis, up to and including the splitting into non-overlapping patches (first three steps in Figure 3A). We then took the average over all the patches of the power spectrum, which was obtained by taking the magnitude-squared of the 2d Fourier transform. Taking the reciprocal square root of each value in the resulting matrix yielded the Fourier transform of the filtering matrix. Removal of blurred patches in natural images Following the procedure from Hermundstad et al., 2014, we fit a Gaussian mixture model with nonshared covariance matrices to the distribution of natural images in order to identify patches that are out of focus or motion blurred. This assigned each image patch to one of two multivariate Gaussian Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 13 of 36 Research advance Neuroscience Physics of Living Systems distributions. To identify which mixture component contained the sharper patches, we chose the component that had the higher median value of a measure of sharpness based on a Laplacian filter. Specifically, each patch was normalized so that its median luminance was set to 1, then convolved 1 1 value over the pixels of the convolution result. This analysis was performed before any of the prepro-A. The sharpness of the patch was calculated as the median absolute with the matrix 0 @ 0 1 0 1 �4 1 0 1 0 value over the pixels of the convolution result. This analysis was performed before any of the preprocessing steps, including the transformation to log intensities, and was restricted to the pixels that did not border image edges. There was thus no need to make assumptions regarding pixel values outside images. Efficient coding calculations Threshold predictions from natural image statistics were obtained as in Hermundstad et al., 2014. We fit a multivariate Gaussian to the distribution of texture patches after removing the blurry component, and used the inverse of the standard deviation in the texture direction of interest as a prediction for the psychophysical threshold in that direction. The overall scale of the predictions is not fixed by this procedure. We chose the scaling so as to minimize the error between the n measure ments xi and the predictions yi, min <sup><u>1</u></sup> n n i¼1 P i¼1 ð <sup><u>log yi�</u></sup> `�` i <sup><u>log xi</u></sup> <sup><u>�</u></sup> `�` i <sup><u>log xi</u></sup> ~~Þ~~ <sup>2</sup>, where `�` i are the measurement uncertainties in log space. This scaling factor was our single fitting parameter. Calculating mismatch In Figure 6 we show several comparisons of two sets of thresholds xi and yi. These are either the set of measured thresholds and the set of natural image predictions for specific preprocessing options; or sets of either measured or predicted thresholds before and after the action of a symmetry transformation. We measure mismatch by the difference between the natural logarithms of the two quantities, log yi � log xi, which is approximately equal to the relative error when the mismatches are not too large (log yi � log xi ¼ log yi `=` xi ¼ logð1 þ <sup><u>yi�</u></sup> xi <sup><u>xiÞ »</u></sup> <sup><u>yi�</u></sup> xi <sup><u>xi).</u></sup> <sup>In</sup> <sup>panel</sup> <sup>A</sup> <sup>of</sup> <sup>the</sup> <sup>figure</sup> <sup>all</sup> <sup>311</sup> <sup>measured</sup> <sup>val-</sup> ues and the corresponding predictions were used. For panel B, this set was restricted in two ways. First, for we ignored the measurements for which we did not have psychophysics data for the transformed direction. And second, we ignored directions on which the transformation acted trivially (see Appendix 3). ## Acknowledgements VB was supported by the US–Israel Binational Science Foundation grant 2011058 and by the National Science Foundation Physics Frontiers Center Grant PHY-1734030. VB, JDV, and MC were supported by EY07977. TT was supported by the Swartz Foundation during part of this work. JJB and AMH were supported by the Howard Hughes Medical Institute. A portion of this work was presented at the Society for Neuroscience (2018) and Vision Sciences Society (2017, 2018). ## Additional information Funding Funder Grant reference number Author <sup><u>�</u></sup> xi <sup><u>xiÞ »</u></sup> <sup><u>yi�</u></sup> xi <sup><u>xi</u></sup> <sup><u>�</u></sup> xi <sup><u>xi).</u></sup> <sup>In</sup> <sup>panel</sup> <sup>A</sup> <sup>of</sup> <sup>the</sup> <sup>figure</sup> <sup>all</sup> <sup>311</sup> <sup>measured</sup> <sup>val-</sup> United States-Israel Binational Science Foundation 2011058 Vijay Balasubramanian National Eye Institute EY07977 Mary M Conte Jonathan D Victor Vijay Balasubramanian The Swartz Foundation Tiberiu Tesileanu Howard Hughes Medical Institute John J Briguglio Ann M Hermundstad Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 14 of 36 Research advance Neuroscience Physics of Living Systems National Science Foundation Physics Frontiers Center PHY-1734030 Vijay Balasubramanian The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication. Author contributions Tiberiu Tesileanu, Conceptualization, Software, Formal analysis, Validation, Visualization, Methodology, Writing - original draft, Writing - review and editing; Mary M Conte, Conceptualization, Resources, Data curation, Investigation, Methodology; John J Briguglio, Ann M Hermundstad, Software, Formal analysis, Writing - review and editing; Jonathan D Victor, Conceptualization, Resources, Data curation, Software, Supervision, Funding acquisition, Methodology, Project administration, Writing review and editing; Vijay Balasubramanian, Conceptualization, Supervision, Funding acquisition, Methodology, Project administration, Writing - review and editing Author ORCIDs Tiberiu Tesileanu [https://orcid.org/0000-0003-3107-3088](https://orcid.org/0000-0003-3107-3088) Ann M Hermundstad [http://orcid.org/0000-0002-0377-0516](http://orcid.org/0000-0002-0377-0516) Jonathan D Victor [https://orcid.org/0000-0002-9293-0111](https://orcid.org/0000-0002-9293-0111) Vijay Balasubramanian [http://orcid.org/0000-0002-6497-3819](http://orcid.org/0000-0002-6497-3819) Ethics Human subjects: This work was carried out with the subjects’ informed consent, and in accordance with the Code of Ethics of the World Medical Association (Declaration of Helsinki) and the approval of the Institutional Review Board of Weill Cornell. The IRB protocol number is 0904010359. Decision letter and Author response Decision letter [https://doi.org/10.7554/eLife.54347.sa1](https://doi.org/10.7554/eLife.54347.sa1) Author response [https://doi.org/10.7554/eLife.54347.sa2](https://doi.org/10.7554/eLife.54347.sa2) ## Additional files Supplementary files `.` Transparent reporting form Data availability All the code and data necessary to reproduce the results from the manuscript are available at [https://github.com/ttesileanu/TextureAnalysis](https://github.com/ttesileanu/TextureAnalysis) (copy archived at [https://github.com/elifesciences-](https://github.com/elifesciences-publications/TextureAnalysis) [publications/TextureAnalysis).](https://github.com/elifesciences-publications/TextureAnalysis) <u>The following datasets were generated:</u> ## References Atick JJ, Redlich AN. 1990. Towards a theory of early visual processing. Neural Computation 2:308–320. [DOI: https://doi.org/10.1162/neco.1990.2.3.308](https://doi.org/10.1162/neco.1990.2.3.308) Bell AJ, Sejnowski TJ. 1997. The "independent components" of natural scenes are edge filters. Vision Research [37:3327–3338. DOI: https://doi.org/10.1016/S0042-6989(97)00121-1, PMID: 9425547](https://doi.org/10.1016/S0042-6989%0x2897%0x2900121-1) Borghuis BG, Ratliff CP, Smith RG, Sterling P, Balasubramanian V. 2008. Design of a neuronal array. Journal of [Neuroscience 28:3178–3189. DOI: https://doi.org/10.1523/JNEUROSCI.5259-07.2008, PMID: 18354021](https://doi.org/10.1523/JNEUROSCI.5259-07.2008) Briguglio J, Hermundstad A, Conte M, Victor J, Tkacik G, Balasubramanian V. 2013. Perceptual salience of [fourth-order visual textures and natural scene statistics. Vision Sciences Society Annual Meeting. DOI: https://](https://doi.org/10.1167/13.9.1234&x00A0;) [doi.org/10.1167/13.9.1234](https://doi.org/10.1167/13.9.1234&x00A0;) Carlson NL, Ming VL, Deweese MR. 2012. Sparse codes for speech predict spectrotemporal receptive fields in [the inferior colliculus. PLOS Computational Biology 8:e1002594. DOI: https://doi.org/10.1371/journal.pcbi.](https://doi.org/10.1371/journal.pcbi.1002594) [1002594, PMID: 22807665](https://doi.org/10.1371/journal.pcbi.1002594) Chubb C, Landy MS, Econopouly J. 2004. A visual mechanism tuned to black. Vision Research 44:3223–3232. [DOI: https://doi.org/10.1016/j.visres.2004.07.019, PMID: 15482808](https://doi.org/10.1016/j.visres.2004.07.019) Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 15 of 36 Research advance Neuroscience Physics of Living Systems Doi E, Lewicki MS. 2011. Characterization of minimum error linear coding with sensory and neural noise. Neural [Computation 23:2498–2510. DOI: https://doi.org/10.1162/NECO_a_00181, PMID: 21732860](https://doi.org/10.1162/NECO_a_00181) Fairhall AL, Lewen GD, Bialek W, de Ruyter Van Steveninck RR. 2001. Efficiency and ambiguity in an adaptive [neural code. Nature 412:787–792. DOI: https://doi.org/10.1038/35090500, PMID: 11518957](https://doi.org/10.1038/35090500) Garrigan P, Ratliff CP, Klein JM, Sterling P, Brainard DH, Balasubramanian V. 2010. Design of a trichromatic cone [array. PLOS Computational Biology 6:e1000677. DOI: https://doi.org/10.1371/journal.pcbi.1000677,](https://doi.org/10.1371/journal.pcbi.1000677) [PMID: 20168996](http://www.ncbi.nlm.nih.gov/pubmed/20168996) Hermundstad AM, Briguglio JJ, Conte MM, Victor JD, Balasubramanian V, Tkacˇik G. 2014. Variance predicts [salience in central sensory processing. eLife 3:e03722. DOI: https://doi.org/10.7554/eLife.03722, PMID: 253962](https://doi.org/10.7554/eLife.03722) [97](http://www.ncbi.nlm.nih.gov/pubmed/25396297) Jin JZ, Weng C, Yeh CI, Gordon JA, Ruthazer ES, Stryker MP, Swadlow HA, Alonso JM. 2008. On and off [domains of geniculate afferents in cat primary visual cortex. Nature Neuroscience 11:88–94. DOI: https://doi.](https://doi.org/10.1038/nn2029) [org/10.1038/nn2029, PMID: 18084287](https://doi.org/10.1038/nn2029) Komban SJ, Kremkow J, Jin J, Wang Y, Lashgari R, Li X, Zaidi Q, Alonso JM. 2014. Neuronal and perceptual [differences in the temporal processing of darks and lights. Neuron 82:224–234. DOI: https://doi.org/10.1016/j.](https://doi.org/10.1016/j.neuron.2014.02.020) [neuron.2014.02.020, PMID: 24698277](https://doi.org/10.1016/j.neuron.2014.02.020) Kremkow J, Jin J, Komban SJ, Wang Y, Lashgari R, Li X, Jansen M, Zaidi Q, Alonso JM. 2014. Neuronal [nonlinearity explains greater visual spatial resolution for darks than lights. PNAS 111:3170–3175. DOI: https://](https://doi.org/10.1073/pnas.1310442111) [doi.org/10.1073/pnas.1310442111, PMID: 24516130](https://doi.org/10.1073/pnas.1310442111) Kuang X, Poletti M, Victor JD, Rucci M. 2012. Temporal encoding of spatial information during active visual [fixation. Current Biology 22:510–514. DOI: https://doi.org/10.1016/j.cub.2012.01.050, PMID: 22342751](https://doi.org/10.1016/j.cub.2012.01.050) Laughlin S. 1981. A simple coding procedure enhances a neuron’s information capacity. Zeitschrift Fu¨r [Naturforschung C 36:910–912. DOI: https://doi.org/10.1515/znc-1981-9-1040, PMID: 7303823](https://doi.org/10.1515/znc-1981-9-1040) [Lewicki MS. 2002. Efficient coding of natural sounds. Nature Neuroscience 5:356–363. DOI: https://doi.org/10.](https://doi.org/10.1038/nn831) [1038/nn831, PMID: 11896400](https://doi.org/10.1038/nn831) Liu YS, Stevens CF, Sharpee TO. 2009. Predictable irregularities in retinal receptive fields. PNAS 106:16499– [16504. DOI: https://doi.org/10.1073/pnas.0908926106, PMID: 19805327](https://doi.org/10.1073/pnas.0908926106) Metropolis N, Rosenbluth AW, Rosenbluth MN, Teller AH, Teller E. 1953. Equation of state calculations by fast [computing machines. The Journal of Chemical Physics 21:1087–1092. DOI: https://doi.org/10.1063/1.1699114](https://doi.org/10.1063/1.1699114) Olshausen BA, Field DJ. 1996. Emergence of simple-cell receptive field properties by learning a sparse code for [natural images. Nature 381:607–609. DOI: https://doi.org/10.1038/381607a0, PMID: 8637596](https://doi.org/10.1038/381607a0) [Pickard DK. 1980. Unilateral markov fields. Advances in Applied Probability 12:655–671. DOI: https://doi.org/10.](https://doi.org/10.2307/1426425) [2307/1426425](https://doi.org/10.2307/1426425) Ratliff CP, Borghuis BG, Kao YH, Sterling P, Balasubramanian V. 2010. Retina is structured to process an excess [of darkness in natural scenes. PNAS 107:17368–17373. DOI: https://doi.org/10.1073/pnas.1005846107,](https://doi.org/10.1073/pnas.1005846107) [PMID: 20855627](http://www.ncbi.nlm.nih.gov/pubmed/20855627) Rucci M, Victor JD. 2015. The unsteady eye: an information-processing stage, not a bug. Trends in [Neurosciences 38:195–206. DOI: https://doi.org/10.1016/j.tins.2015.01.005, PMID: 25698649](https://doi.org/10.1016/j.tins.2015.01.005) Schwartz O, Simoncelli EP. 2001. Natural signal statistics and sensory gain control. Nature Neuroscience 4:819– [825. DOI: https://doi.org/10.1038/90526, PMID: 11477428](https://doi.org/10.1038/90526) Simmons KD, Prentice JS, Tkacˇik G, Homann J, Yee HK, Palmer SE, Nelson PC, Balasubramanian V. 2013. [Transformation of stimulus correlations by the retina. PLOS Computational Biology 9:e1003344. DOI: https://](https://doi.org/10.1371/journal.pcbi.1003344) [doi.org/10.1371/journal.pcbi.1003344, PMID: 24339756](https://doi.org/10.1371/journal.pcbi.1003344) [Smith EC, Lewicki MS. 2006. Efficient auditory coding. Nature 439:978–982. DOI: https://doi.org/10.1038/](https://doi.org/10.1038/nature04485) [nature04485, PMID: 16495999](https://doi.org/10.1038/nature04485) Sterling P, Laughlin S. 2015. Principles of Neural Design. MIT Press. Tavoni G, Balasubramanian V, Gold JI. 2019. The complexity dividend: when sophisticated inference matters. [bioRxiv. DOI: https://doi.org/10.1101/563346](https://doi.org/10.1101/563346) Tes¸ileanu T, Cocco S, Monasson R, Balasubramanian V. 2019. Adaptation of olfactory receptor abundances for [efficient coding. eLife 8:e39279. DOI: https://doi.org/10.7554/eLife.39279, PMID: 30806351](https://doi.org/10.7554/eLife.39279) Tesileanu T, Hermundstad AM, Brainard D. 2020. Sensitivity to grayscale textures is adapted to natural scene statistics. `GitHub` [. 892ef24. https://github.com/ttesileanu/TextureAnalysis](https://github.com/ttesileanu/TextureAnalysis) Tkacik G, Prentice JS, Victor JD, Balasubramanian V. 2010. Local statistics in natural scenes predict the saliency [of synthetic textures. PNAS 107:18149–18154. DOI: https://doi.org/10.1073/pnas.0914916107, PMID: 20923](https://doi.org/10.1073/pnas.0914916107) [876](http://www.ncbi.nlm.nih.gov/pubmed/20923876) Tkacˇik G, Garrigan P, Ratliff C, Milcˇinski G, Klein JM, Seyfarth LH, Sterling P, Brainard DH, Balasubramanian V. [2011. Natural images from the birthplace of the human eye. PLOS ONE 6:e20409. DOI: https://doi.org/10.](https://doi.org/10.1371/journal.pone.0020409) [1371/journal.pone.0020409, PMID: 21698187](https://doi.org/10.1371/journal.pone.0020409) van Hateren JH. 1992. Theoretical predictions of spatiotemporal receptive fields of fly LMCs, and experimental [validation. Journal of Comparative Physiology A 171:157–170. DOI: https://doi.org/10.1007/BF00188924](https://doi.org/10.1007/BF00188924) 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 of London. Series B: Biological Sciences [265:359–366. DOI: https://doi.org/10.1098/rspb.1998.0303, PMID: 9523437](https://doi.org/10.1098/rspb.1998.0303) Victor JD, Chubb C, Conte MM. 2005. Interaction of luminance and higher-order statistics in texture [discrimination. Vision Research 45:311–328. DOI: https://doi.org/10.1016/j.visres.2004.08.013, PMID: 15607348](https://doi.org/10.1016/j.visres.2004.08.013) Victor JD, Thengone DJ, Conte MM. 2013. Perception of second- and third-order orientation signals and their [interactions. Journal of Vision 13:21. DOI: https://doi.org/10.1167/13.4.21, PMID: 23532909](https://doi.org/10.1167/13.4.21) Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 16 of 36 Research advance Neuroscience Physics of Living Systems Victor JD, Thengone DJ, Rizvi SM, Conte MM. 2015. A perceptual space of local image statistics. Vision [Research 117:117–135. DOI: https://doi.org/10.1016/j.visres.2015.05.018, PMID: 26130606](https://doi.org/10.1016/j.visres.2015.05.018) Victor JD, Rizvi SM, Conte MM. 2017. Two representations of a high-dimensional perceptual space. Vision [Research 137:1–23. DOI: https://doi.org/10.1016/j.visres.2017.05.003, PMID: 28549921](https://doi.org/10.1016/j.visres.2017.05.003) Victor JD, Conte MM. 2012. Local image statistics: maximum-entropy constructions and perceptual salience. [Journal of the Optical Society of America A 29:1313–1345. DOI: https://doi.org/10.1364/JOSAA.29.001313,](https://doi.org/10.1364/JOSAA.29.001313) [PMID: 22751397](http://www.ncbi.nlm.nih.gov/pubmed/22751397) Vinje WE, Gallant JL. 2000. Sparse coding and decorrelation in primary visual cortex during natural vision. [Science 287:1273–1276. DOI: https://doi.org/10.1126/science.287.5456.1273, PMID: 10678835](https://doi.org/10.1126/science.287.5456.1273) Wei XX, Prentice J, Balasubramanian V. 2015. A principle of economy predicts the functional architecture of grid [cells. eLife 4:e08362. DOI: https://doi.org/10.7554/eLife.08362, PMID: 26335200](https://doi.org/10.7554/eLife.08362) Zemon V, Gordon J, Welch J. 1988. Asymmetries in ON and OFF visual pathways of humans revealed using [contrast-evoked cortical potentials. Visual Neuroscience 1:145–150. DOI: https://doi.org/10.1017/](https://doi.org/10.1017/S0952523800001085) [S0952523800001085, PMID: 3154786](https://doi.org/10.1017/S0952523800001085) Zylberberg J, Pfau D, DeWeese MR. 2012. Dead leaves and the dirty ground: low-level image statistics in [transmissive and occlusive imaging environments. Physical Review E 86:1–20. DOI: https://doi.org/10.1103/](https://doi.org/10.1103/PhysRevE.86.066112) [PhysRevE.86.066112, PMID: 23368009](https://doi.org/10.1103/PhysRevE.86.066112) Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 17 of 36 Research advance Neuroscience Physics of Living Systems ## Appendix 1 A coordinate system for local image statistics This Supplement provides the details for the present parameterization of local image statistics. It generalizes the approach developed in Victor and Conte, 2012 for binary images along the lines indicated in that manuscript’s Appendix A, so that it is applicable to an arbitrary number G of gray levels. In the present study, G ¼ 3, but the analysis is equally applicable to any prime value G, including the G ¼ 2 case that has been the focus of previous work (Briguglio et al., 2013; Victor and Conte, 2012; Victor et al., 2017; Victor et al., 2013; Victor et al., 2015). When G is composite, the basic approach remains valid but, as mentioned below, there are some additional considerations. We consider the statistics of a 2 � 2 neighborhood of checks in images with G gray levels. The A1 A2 , where A3 A4 - A1 A2 starting point is an enumeration of the probabilities of each kind of 2 � 2 block, p A3 A4 each Ak denotes the gray level of a check, which we denote by an integer from 0 to G � 1. There are G <sup>4</sup> such configurations, but the probabilities are not independent: they must sum to 1, and they must be stationary in space. For example, the probability of 1 � 2 blocks computed by marginalizing over the lower two checks must equal to the probability of 1 � 2 blocks computed by marginalizing over the upper two checks. Our main goal is to obtain a coordinate system that removes these linear dependencies. The first s1 s2 by discrete Fourier transformation with respect to s3 s4 - s1 s2 step is to construct new coordinates `’` s3 s4 the gray level value in each check. As this is a discrete transform, the arguments sk are also integers from 0 to G � 1. Equivalently, we can use other sets of integers that lead to unique values of the complex exponential; for instance, when G ¼ 3, it is equivalent to use the set f0 `;` þ1 `;` �1g or the set f0 `;` 1 `;` 2g. We have G�1 A3¼0 X G�1 A4¼0 X s1 s2 `’` ¼ s3 s4 - G�1 A1¼0 X G�1 A1¼0 X G�1 A2¼0 X G�1 A2¼0 X A1 A2 e <sup>�ð2</sup> G <sup><u>`p`</u></sup> <sup><u>i</u></sup> A3 A4 - A1 A2 p A3 A4 G <sup><u>`p`</u></sup> <sup><u>i</u></sup> <sup>~~Þ~~</sup> <sup>ðA1s1þA2s2þA3s3þA4s4Þ</sup> `:` (1) A1 A2 can be obtained from the Fourier transform coordi A3 A4 - A1 A2 The original block probabilities p A3 A4 nates (Equation (1)) by standard inversion: G�1 s2¼0 X G�1 s3¼0 X G�1 s4¼0 X A1 A2 ¼ <sup>1</sup> A3 A4 G <sup>4</sup> - G�1 s1¼0 X G�1 s1¼0 X A1 A2 p A3 A4 G <sup>4</sup> s1 s2 ``` ’ ``` s3 s4 s1 s2 e <sup>ð2</sup> G <sup><u>`p`</u></sup> <sup><u>i</u></sup> s3 s4 - G <sup><u>`p`</u></sup> <sup><u>i</u></sup> <sup>~~Þ~~</sup> <sup>ðA1s1þA2s2þA3s3þA4s4Þ</sup> `:` (2) Fourier transform coordinates can be similarly described for any configuration of checks, including subsets of the 2 � 2 neighborhood. A basic property of the Fourier transform coordinates is that setting an argument to zero corresponds to marginalizing over the corresponding check. For example, consider the probabilities of A1 A2 the configurations of the upper 1 � 2 block of checks, p, which are determined by margin - A1 A2 over A3 and A4 . Their Fourier transform coordinates are given by A3 A4 - A1 A2 alizing p A3 A4 G�1 A2¼0 X G�1 A2¼0 X s1 s2 `’` ¼ - It follows from Equation (1) that G�1 A1¼0 X G�1 A1¼0 X A1 A2 p� �e <sup>�ð2</sup> G <sup><u>`p`</u></sup> <sup><u>iÞðA1s1þA2s2Þ</u></sup> `:` (3) Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 18 of 36 Research advance Neuroscience Physics of Living Systems s1 s2 `’` ¼ - A1¼0 G�1 A2¼0 X A2¼0 G�1 A3¼0 X A1 A2 p e <sup>�ð2</sup> G <sup><u>`p`</u></sup> <sup><u>i</u></sup> <sup>~~Þ~~</sup> <sup>ðA1s1þA2s2Þ</sup> - G�1 A1¼0 X ¼ G�1 A1¼0 X G�1 A2¼0 X e <sup>�ð2</sup> G <sup><u>`p`</u></sup> <sup><u>iÞðA1s1þA2s2Þ</u></sup> (4) A1¼0 A2¼0 G�1 G�1 A1 A2 p " A3¼0 A4¼0 - A3 A4 �# X X A3¼0 G�1 A4¼0 X A4¼0 A1 A2 p A3 A4 s1 s2 ``` : ``` 0 0 - s1 s2 ¼ `’` 0 0 Thus, the stationarity condition is equivalent to A1 A2 p ¼ p (5) A1 A2 - - - s1 s2 0 0 ¼ `’` 0 0 s1 s2 - - s1 s2 ``` ’ ``` 0 0 0 0 `:` (6) s1 s2 - Similarly, the stationarity condition for 2 � 1 blocks is equivalent to s1 0 0 s1 ¼ `’` s3 0 0 s3 - - s1 0 ``` ’ ``` s3 0 0 s1 ; (7) 0 s3 - the condition that the single-check probabilities are equal in all four positions is equivalent to s 0 0 s ¼ `’` 0 0 0 0 - - 0 0 0 0 ¼ `’` s 0 0 s - - 0 0 ; (8) 0 s - s 0 ``` ’ ``` 0 0 0 s 0 0 ¼ `’` 0 0 s 0 - - and the condition that the sum of all block probabilities is one is equivalent to 0 0 `’` ¼ 1 `:` (9) 0 0 - In sum, the stationarity conditions can be stated in terms of the Fourier transform coordinates as s1 s2 follows: if any of the arguments of `’` s3 s4 s1 s2 must be unchanged by translating the nonzero values within the 2 � 2 s3 s4 - s1 s2 and the value of `’` s3 s4 s1 s2 are zero, then they can be replaced by empty spaces, s3 s4 - neighborhood. It follows that the Fourier transform coordinates of a stationary distribution are specified by: `’` ð s Þ, equal to the common value of the four expressions in Equation (8); `’` ð s1 s2 Þ, equal to s1 the common value of the two expressions in Equation (6); `’` s3 s1 s2 and `’` s4 s3 - - s1 the two expressions in Equation (7); `’` s4 s1 , equal to the common value of s3 - s2 , defining pairwise correlations of s3 - s2 two-check configurations that cannot be translated within the 2 � 2 neighborhood; `’` s3 s4 s1 s1 s2 , `’` s3 s4 s4 - - s1 s2 . In all of s3 s4 - s2 , s3 s4 - s1 ``` ’ ``` s3 s4 s1 s2 s1 s2 , and `’` s4 s3 - - s4 s1 s2 s1 s2 , defining three-check correlations, and `’` s3 s3 s4 - - these cases, the arguments sk are nonzero. Thus, the total number of parameters, obtained by allowing each of the sk to range from 1 to G � 1, is ðG � 1Þ þ 4ðG � 1Þ <sup>2</sup> þ 4ðG � 1Þ <sup>3</sup> þ ðG � 1Þ <sup>4</sup> ¼ GðG � 1ÞðG <sup>2</sup> þ G � 1Þ; this is 10 for G ¼ 2 and 66 for G ¼ 3. The Fourier transform coordinates incorporate the stationarity constraints, and they also have the convenient property that the origin of the space, that is, the image whose coordinates are all zero, is A1 A2 is equal A3 A4 - A1 A2 an image with identically-distributed gray levels in which every block probability p A3 A4 to 1 `=` G <sup>4</sup> . The Fourier transform coordinates have another convenient property (using the approach of Appendix B of Victor and Conte, 2012): near the origin of the space, entropy is asymptotically proportional to the square of the Euclidean distance from the origin. This means that the Fourier Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 19 of 36 Research advance Neuroscience Physics of Living Systems transform coordinates are ‘calibrated’: for an ideal observer, small deviations in any direction from the origin are equally discriminable. However, since for G>2, the Fourier transform coordinates are complex numbers, an arbitrary choice of them will typically not correspond to a realizable set of block probabilities, since the block probabilities must be all real and in the range [0, 1]. To address this problem, we note a relationship among the Fourier transform coordinates, which, when G is prime, partitions the set of independent coordinates into disjoint subsets of size G � 1. A further linear transformation within this set yields real-valued coordinates, which correspond to the coordinate system used here (for G ¼ 3) and in previous studies (for G ¼ 2). To derive these real-valued coordinates, we use modular arithmetic. When G is prime, for every integer q 2 f1 `;` . . . `;` G � 1g there is a unique integer r 2 f1 `;` . . . `;` G � 1g for which qr ¼ 1 ðmod GÞ, which we denote q <sup>�1</sup> . Thus, if S <sup>0</sup> ¼ s <sup>0</sup> 1 s <sup>0</sup> <sup>0</sup> 1 s <sup>0</sup> 2 <sup>0</sup> 3 s <sup>0</sup> 4 s <sup>0</sup> 1 s <sup>0</sup> 2 can be obtained from S ¼ s1 s2 s <sup>0</sup> 3 s <sup>0</sup> 4 s3 s4 - - 1 2 s <sup>0</sup> 3 s <sup>0</sup> 4 4 s1 s2 by S <sup>0</sup> ¼ qS, then it follows s3 s4 - that S can be obtained from S <sup>0</sup> by S ¼ q <sup>�1</sup> S <sup>0</sup>, that is, the relationship is reciprocal. It also follows that every Fourier transform coordinate S <sup>0</sup> is some scalar multiple of a ‘monic’ Fourier transform coordinate, that is, one whose first nonzero element is 1. The reason is that we can take the multiplier q to be the first nonzero coordinate of S <sup>0</sup> and write S ¼ q <sup>�1</sup> S <sup>0</sup> . Next, we note that all of the Fourier transform coordinates whose arguments are of the form qS 4 k¼1 vates grouping the terms of Equation (1) according to this value. We therefore define have an exponential in Equation (1) that depends only on the value of <sup>P</sup> k¼1 skAk ðmod GÞ. This moti vates grouping the terms of Equation (1) according to this value. We therefore define G�1 s1 s2 A1¼0 s3 s4 X - �ðhÞ ¼ G�1 A3¼0 X G�1 A4¼0 X ``` s ``` s1 s2 s3 s4 G�1 A2¼0 X G�1 A2¼0 X A1¼0 A1 A2 p `d` mod GðA1s1 þ A2s2 þ A3s3 þ A4s4 � hÞ `;` (10) A3 A4 - 4 s1 s2 k¼1 s3 s4 - �ðhÞ is the sum of the probabilities of all blocks for which <sup>P</sup> that is, the `s` ’s whose first nonzero sk is equal to 1, are our that is, `s` s1 s2 s3 s4 k¼1 skAk ¼ h ðmod GÞ. The monic `s` ’s, that is, the `s` ’s whose first nonzero sk is equal to 1, are our desired real-valued coordinates. For each such `s`, the coordinates are a vector of the G numbers `s` s1 s2 s3 s4 - �ðhÞ, for s1 s2 s3 s4 - �ðhÞ is the probability that a linear combination h ¼ f0 `;` ... `;` G � 1g. As Equation (10) shows, `s` s1 s2 s3 s4 s1 s2 s3 s4 - �ðhÞ, for of gray levels whose coefficients are specified by the sk will result in a value of h. They are thus all in the range [0, 1], and their sum is 1. For G ¼ 2, the pair `s` ð0Þ and `s` ð1Þ subject to `s` ð0Þ þ `s` ð1Þ ¼ 1 is a one-dimensional domain, parametrized by `s` ð1Þ � `s` ð0Þ; other than a change in sign, these are the coordinates used in Briguglio et al., 2013; Victor and Conte, 2012; Victor et al., 2017; Victor et al., 2013; Victor et al., 2015. For G ¼ 3, as is the case here, the triplet `s` ð0Þ, `s` ð1Þ, and `s` ð2Þ is subject to `s` ð0Þ þ `s` ð1Þ þ `s` ð2Þ ¼ 1 and is naturally plotted in a triangular ‘alloy plot’ with centroid at (1/3, 1/3, 1/3), the image with independent, identically-distributed gray levels. Note that 2 ¼ �1 ðmod 3Þ, yielding the notation in the main text where the coefficients si took values 0, +1, and �1 instead of 0, 1, and 2. It remains to show that all of the degrees of freedom in the Fourier Transform coordinates `’` are captured by the `s` ’s. Since the Fourier transform coordinates are partitioned into disjoint subsets, it suffices to examine the transformation between each of these subsets (i.e., between the Fourier transform coordinates that are scalar multiples of a particular monic S, and the corresponding `s` ). These subsets correspond to the simple planes introduced in the main text. It follows from Equations (1) and (10) that, for q 6¼ 0 ðmod GÞ, G <sup>Þqh</sup> `:` (11) s1 s2 s3 s4 - �ðhÞe <sup>�ð2</sup> <sup><u>`p`</u></sup> <sup><u>i</u></sup> s3 s4 qs1 qs2 `’` ¼ qs3 qs4 - G�1 h¼0 X `s` s1 s2 Via discrete Fourier inversion, this equation implies Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 20 of 36 Research advance Neuroscience Physics of Living Systems s1 s2 G s3 s4 - �ðhÞ ¼ <sup>1</sup> G�1 q¼0 X qs1 qs2 ``` ’ ``` qs3 qs4 qs1 qs2 e <sup>~~ð~~</sup> <sup><u>2</u></sup> G <sup><u>`p`</u></sup> <sup><u>i</u></sup> qs3 qs4 - `s` s1 s2 G <sup><u>`p`</u></sup> <sup><u>i</u></sup> <sup>~~Þ~~</sup> <sup>qh</sup> `:` (12) s3 s4 Note that the q ¼ 0 term of this equation is given by Equation (9), the normalization condition. Thus, s1 s2 G <sup>þ</sup> G <sup>1</sup> s3 s4 - �ðhÞ ¼ <sup>1</sup> `s` s1 s2 G G�1 q¼1 X qs1 qs2 ``` ’ ``` qs3 qs4 qs1 qs2 e <sup>ð2</sup> G <sup><u>`p`</u></sup> <sup><u>i</u></sup> qs3 qs4 - G <sup><u>`p`</u></sup> <sup><u>i</u></sup> <sup>~~Þ~~</sup> <sup>qh</sup> `:` (13) s3 s4 Equations (11) and (13) display the bidirectional transformation between the G-vector `s` and the G - 1 Fourier transform coordinates qS. Since this transformation is a discrete Fourier transform (and hence, a multiple of a unitary transformation), it preserves the property that entropy is a proportional to the square of the Euclidean distance from the origin. When G is not prime, the decomposition of Fourier transform coordinates into disjoint sets indexed by monic coordinates is no longer possible. For example, with G ¼ 4, both S <sup>0</sup> ¼ 1 0 0 0 1 2 are monic but the sets qS <sup>0</sup> and qS <sup>00</sup> have a non-empty intersection: 2 0 - 1 2 and S <sup>00</sup> ¼ 2 0 1 0 0 0 - 2 0 ðmod 4Þ. This necessitates a more elaborate version of the above approach, 0 0 - 2S <sup>0</sup> ¼ 2S <sup>00</sup> ¼ 2 0 0 0 with separate strata for each factor of G. The disjoint sets of Fourier transform coordinates are no longer all of the same size, and the transformations (Equation 11) and (Equation 13) have a more elaborate form, although the overall parameter count is the same. As this case is not relevant to the present experiments, we do not discuss it further. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 21 of 36 Research advance Neuroscience Physics of Living Systems ## Appendix 2 Texture synthesis Creation of the stimuli used here requires synthesis of images whose statistics are specified by one or two of the coordinates described above. We adopted the strategy of Victor and Conte, 2012, Table 2, for this purpose. (i) Coordinates that are of lower order than the specified coordinates are set to zero. The rationale is that sensitivity to lower-order coordinates is generally greater than sensitivity to higher-order coordinates, so this allows detection to be driven by the higher-order coordinates. (ii) Coordinates that are of higher order than the specified coordinates are chosen to achieve an image ensemble whose entropy is maximized. The rationale is that this sets the higher-order coordinates at the value that is implied by the lower-order coordinates, without any further spatial structure. (iii) Coordinates that are of the same order as the specified coordinates are chosen to satisfy the ‘Pickard rules’ (Pickard, 1980), as this allows for stimulus generation via a Markov process in the plane, and hence, maximizes entropy given the constraints of the specified textures. (iv) In a few cases (all involving third-order statistics), the specified parameters are inconsistent with the Pickard rules, and in these cases, specific choices of texture parameters are made to allow for convenient texture synthesis. In all cases in which the unspecified texture parameters are assigned a nonzero value, this nonzero value decreases to zero rapidly (at least quadratically) near the origin. Thus, the construction guarantees that the surface corresponding to any two specified texture coordinates is tangent to their coordinate plane at the origin. In general, the above strategy also applies for G � 3. We focus on specifying pairs of secondorder coordinates, the stimuli used in this study. When the specified coordinates share the same linear combination (e.g., `b` 12½0� and `b` 12½1�) or when the two specified coordinates involve different linear combinations but the same checks (e.g., `b` 11 <sup>½0�</sup> <sup>and</sup> <sup>`b`</sup> <sup>1</sup> 2 <sup>½0�),</sup> <sup>images</sup> <sup>may</sup> <sup>be</sup> <sup>synthesized</sup> <sup>by</sup> <sup>a</sup> <sup>Markov</sup> process that operates in the direction of the coupled checks. For example, if `b` 1s2 is specified, a Markov process is used to create each row. The Markov generation procedure guarantees that the image is a sample from a maximum-entropy ensemble consistent with the specified coordinates. It implicitly defines the other texture coordinates in a manner consistent with the above policies established for G ¼ 2. For combinations of coordinates involving non-identical pairs of checks (e.g., `b` 1s2 and `b` 1s3 ), a new construction is needed in some cases. The basic issue is that the Markov process that generates the correlations along rows may be inconsistent with the Markov process that generates the columns. To see how this can happen, consider `b` 11½0�¼ 1 and `b` 12 <sup>½1�¼ 1.</sup> <sup>Taking</sup> <sup>into</sup> <sup>account</sup> <sup>stationarity,</sup> `b` 11½0�¼ 1 means that A1 þ A2 ¼ A3 þ A4 ¼ 0; `b` 12 <sup>½1�¼ 1 means that A1 þ 2A3</sup> <sup>¼ A2 þ 2A4</sup> <sup>¼ 1. The incon-</sup> sistency arises because the first set of equalities implies that A2 ¼ �A1 and A4 ¼ �A3, so A1 þ 2A3 ¼ �ðA2 þ 2A4Þ, which is inconsistent with the second set of equalities. The inconsistency can also be seen from an algebraic viewpoint. The horizontal correlation `b` 11 corresponds to a left-toright Markov process that biases check pairs whose gray levels satisfy a multiplicative recurrence, xnþ1 ¼ �xn ¼ 2xn. The vertical correlation `b` 12 <sup>corresponds</sup> <sup>to</sup> <sup>a</sup> <sup>top-to-bottom</sup> <sup>Markov</sup> <sup>process</sup> <sup>that</sup> biases check pairs whose gray levels satisfy an additive recurrence, xnþ1 ¼ xn � 1. The inconsistency arises because these transformations do not commute. To handle these cases, we use the following construction. It produces samples from an image ensemble that match the specified second-order statistics, and for which all other second-order statistics, as well as first- and third-order statistics, are zero. As a first step, two textures are created: a Markov process along rows, providing for correlations of the form `b` 1s2, and a Markov process along columns, providing for correlations of the form `b` s 13 . Then, taking inspiration from the ‘dead leaves’ generative model of images (Zylberberg et al., 2012), we randomly choose rows from the first texture and columns from the second texture and sequentially place them on the plane, occluding whatever has been placed earlier. Eventually, this ‘falling sticks’ construction covers the plane, and this completes the next stage of the construction. The resulting texture has the same kinds of correlations as the two starting textures, but the correlations are diluted, because a ‘stick’ in one direction may be overlaid by an orthogonal stick placed at a later time. To calculate this dilution, we consider the three ‘sticks’ that could contribute to a Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 22 of 36 Research advance Neuroscience Physics of Living Systems given 1 � 2 block of the final texture: one horizontal stick and two vertical sticks. Since they are dropped in a random order, there is a 1/3 chance that any of them is the one that is placed last. If the last stick is horizontal (which happens with probability 1/3), then the two checks of the 1 � 2 block reflect the correlation structure of the underlying texture. If the last stick is vertical (which happens with probability 2/3), then these two checks are uncorrelated, since they are derived from independent Markov processes. That is, (14) `s` <sup>falling sticks</sup> �s1 s2� ¼ 3 <sup>1</sup> <sup>`s`</sup> <sup>component</sup> �s1 s2� þ 3 <sup>2</sup> <sup>`s`</sup> <sup>random</sup> �s1 s2� ¼ <sup>1</sup> 3 <sup>1</sup> 3 <sup>`s`</sup> <sup>component</sup> s1 s2 3 <sup>�</sup> G <sup>1</sup> <sup>`:`</sup> - - þ <sup>2</sup> Thus, to obtain a falling-sticks texture with a given set of correlations, one must choose `s` <sup>component</sup> ¼ 3 `s` <sup>falling sticks</sup> - <sup>2</sup> (15) G <sup>`:`</sup> Expressed in terms of distance from randomness, this demonstrates the threefold dilution: `s` <sup>component</sup> - G <sup>1</sup> <sup>1</sup> G <sup>¼ 3</sup> - <sup>`s`</sup> <sup>falling sticks �</sup> G <sup>1</sup> `:` (16) - <sup>`s`</sup> <sup>falling sticks �</sup> G <sup>1</sup> G This limits the maximum correlation strength of the final texture, but it suffices for the present purposes since the achievable correlation strengths are generally far above perceptual threshold. A similar analysis applies to the vertical pairwise correlations. Note that first-order correlations are zero since the two starting textures had an equal number of checks of all gray levels, and third-order correlations within a 2 � 2 block are zero because they always involve checks that originated in independent Markov processes. Some fourth-order correlations are not zero, but their deviations from zero are small: this is because they arise from 2 � 2 neighborhoods in which the two last ‘sticks’ are both horizontal (1/6 of the time) or both vertical (1/6 of the time), and these numerical factors multiply a product of two terms involving `s` <sup>component</sup> - 1 `=` G. Finally, a Metropolis mixing step (Metropolis et al., 1953) is applied, to maximize entropy without changing the 2 � 2 block probabilities (see Victor and Conte, 2012 for details). This eliminates any spurious long-range correlations that may have arisen from the ‘sticks’ of the underlying textures. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 23 of 36 Research advance Neuroscience Physics of Living Systems ## Appendix 3 Symmetry tests In order to test to what extent the natural image predictions or the psychophysical measurements are invariant under symmetry transformations, we need to understand the effect of such transformations on texture coordinates `s` ss13ss24 <sup>.</sup> <sup>Two</sup> <sup>observations</sup> <sup>are</sup> <sup>key.</sup> <sup>First,</sup> <sup>every</sup> <sup>geometric</sup> <sup>transformation</sup> we are interested in—reflections and rotations by multiples of 90˚—correspond to permutations of the check locations A1, A2, A3, A4. For instance, a horizontal flip exchanges A1 with A2 and A3 with A4. Second, for the particular case of ternary textures, all the permutations of the three gray levels correspond to affine transformations modulo 3. Specifically, given a check value A, consider the transformation A ! xA þ y ðmod 3Þ. ðx `;` yÞ ¼ ð1 `;` 0Þ is the identity; ðx `;` yÞ ¼ ð1 `;` 1Þ and ðx `;` yÞ ¼ ð1 `;` 2Þ are the nontrivial cyclic permutations; and x ¼ 2, y 2 f0 `;` 1 `;` 2g yields the three pairwise exchanges. We exclude x ¼ 0 since this would correspond to removing all luminance variations in the image patches. As we now show, the net result of a geometric transformation and a color permutation always corresponds to a permutation of the texture coordinates. Consider a general permutation `�` <sup>�1</sup> on the four check locations, Ak ! A `�` �1ðkÞ (it will become clear below why we use the inverse here), and a general affine transformation on the gray levels, A ! xA þ y ðmod GÞ, with x 6¼ 0. The equation appearing in the definition of the `s` ss13ss24 <sup>ðhÞ direction (Equation 10) becomes:</sup> 4 k¼1 X Aksk ¼ h ðmod GÞ ! 4 ð k¼1 X ðxA `�` �1ðkÞ þ yÞsk ¼ h ðmod GÞ `:` (17) k¼1 Note that here, h is a label identifying the coordinate direction, and therefore is not transformed by the affine transformation applied to the luminance values Ak. Since x 6¼ 0, we find sk ! 4 k¼1 X Aks `�` ðkÞ ¼ x <sup>�1</sup> h � y 4 k¼1 X ðmod GÞ `:` (18) Thus, the effect of the transformation was to convert the original texture direction into a different one. To properly identify the transformed direction, we need to put it in monic form; that is, we need to ensure that the first non-zero coefficient is set to 1. Suppose that this coefficient appears at position k0, and is equal to s `�` ðk0Þ. We can write: 4 k¼1 X ! Ak~sk ¼ s <sup>�</sup> `�` ð <sup>1</sup> k0Þ <sup>x�1</sup> h � y 4 k¼1 X sk ðmod GÞ `;` (19) where ~sk ¼ s <sup>�</sup> `�` ð <sup>1</sup> k0Þ <sup>s</sup> <sup>`�`</sup> <sup>ðkÞ</sup> <sup>`;`</sup> (20) and therefore ~sk0 ¼ 1. Thus the direction `s` ss13ss24 <sup>ðhÞ</sup> <sup>gets</sup> <sup>mapped</sup> <sup>to</sup> <sup>`s`</sup> <sup>~s1~s2</sup> ðah � b ðmod GÞÞ where ~s3~s4 <sup>�1</sup> nates. This approach holds for any prime G, but for G > 3 the affine transformations will no longer be `�` ðk0Þ <sup>x�1</sup> <sup>and</sup> <sup>b ¼ ay</sup> <sup>P</sup> <sup>sk.</sup> <sup>Thus,</sup> <sup>all</sup> <sup>transformations</sup> <sup>correspond</sup> <sup>to</sup> <sup>relabeling</sup> <sup>of</sup> <sup>the</sup> <sup>texture</sup> <sup>coordi-</sup> a ¼ s <sup>�1</sup> nates. This approach holds for any prime G, but for G > 3 the affine transformations will no longer be sufficient to model all gray level permutations. To find the effect of the geometric and gray-level transformations on the theoretical predictions, we apply this reshuffling to the columns of the Npatches � 99 matrix giving the distribution of natural image patches in texture space (99 here corresponds to the three probability values in each of the 33 simple texture planes). We then recalculate the threshold predictions and check how much these changed. This is equivalent to first performing the geometric and gray level transformations directly on each image and then rerunning the whole analysis, but is substantially more efficient. For the psychophysics, we apply the transformation to each direction in texture space for which we have thresholds. In some cases, the transformed direction is not contained in the experimental dataset; we cannot check for symmetry when this happens. We thus only compare the original and transformed thresholds in cases where the transformed direction maps onto one of the directions in the original dataset. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 24 of 36 Research advance Neuroscience Physics of Living Systems Note that some symmetry transformations leave certain directions in texture space invariant. For instance, a left-right flip leaves the entire `b` 11 plane invariant since it only flips the order of the terms in the sum A1 þ A2. When this happens, the thresholds obtained in those directions are unaffected by the transformation and thus the fact that they do not change cannot be used as evidence that the symmetry is obeyed. For this reason, all invariant directions are ignored when looking at the effect of a transformation. This explains the variability in the number of points in the different plots from Figure 6B. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 25 of 36 Research advance Neuroscience Physics of Living Systems ## Appendix 4 Statistical tests We performed several statistical tests to assess the quality of the match that we found between measurements and natural image predictions. For the permutation tests below, we used a scalar measure of the discrepancy that is given by median absolute error calculated in log space, after accounting for an overall scaling factor between psychophysical measurements and natural image predictions. More precisely, suppose we have n measurements xi and n predictions yi. We define the mean-centered log thresholds ^xi ¼ log xi �hlog xii `;` (21) ^yi ¼ log yi �hlog yii `;` where h `:` i represents the mean over all measurement directions. Then the mismatch between x and y is given by D ¼ median j^xi � ^yij `:` (22) Note that the difference between the natural logarithms of two quantities that are relatively close to each other, a1 » a2 » �a �ða1 þ a2Þ `=` 2, is approximately equal to the relative error between the two quantities, a2 log a1 � log a2 ¼ log <sup><u>a1</u></sup> a2 ¼ log�1 þ <sup><u>a1 �</u></sup> <sup><u>a2</u></sup> 1 þ <sup><u>a1 �</u></sup> <sup><u>a2</u></sup> ¼ <sup>Da</sup> a2 a2 - <u>�</u> a2 þ OðDa <sup>2</sup> Þ `;` (23) where Da ¼ a1 � a2, and the big-O notation shows that the approximation error scales as the square of the absolute prediction error. In fact, the log error is even better approximated by a symmetric form of the relative error, in which the denominator is replaced by the mean between measurement and prediction: <sup><u>a1</u></sup> �a <sup>�</sup> <sup>log</sup> <sup><u>a</u></sup> �a <sup>2</sup> <sup>¼ log</sup> <u>h</u> <sup>1 þ</sup> <sup><u>a1 �</u></sup> 2�a <sup><u>a2</u></sup> (24) log a1 � log a2 ¼ log <sup><u>a</u></sup> �a <sup>1</sup> - log 1 � <sup><u>a1 �</u></sup> <sup><u>a2</u></sup> 2�a h <u>i</u> <sup>D</sup> 2�a <sup><u>a</u></sup> <sup>�</sup> <sup>D</sup> 8�a <sup><u>a22</u></sup> <u>h</u> <sup>1 þ</sup> <sup><u>a1 �</u></sup> 2�a <sup><u>a2</u></sup> <u>i</u> ¼ <sup>D</sup> 2�a <sup><u>a</u></sup> ¼ <sup>Da</sup> �a <sup>D</sup> 8�a <sup><u>a22</u></sup> <sup>þ D</sup> 2�a <sup><u>a</u></sup> <sup>þ D</sup> 8�a <sup><u>a22</u></sup> <sup>Da</sup> `:` �a <sup>þ O</sup> - <sup>Da3</sup> <sup>D</sup> 8�a <sup><u>a22</u></sup> <sup>þ O</sup> <sup>Da3</sup> - We see that in this case the approximation error scales with the cubed absolute prediction error. In our case, prediction errors are low enough that the ratio between the log error and the symmetric relative error Da `=` �a is between 1 and 1.034 for all 311 thresholds. 1. Permutation test over all thresholds. This test estimates how likely it is that the observed value of the difference D could have been obtained by chance in a model in which all the measured thresholds xi are drawn independently from a common random distribution. We generated 10,000 random permutations of the dataset xi, x <sup>`�`</sup> i <sup>(each</sup> <sup>of</sup> <sup>which</sup> <sup>contain</sup> <sup>311</sup> <sup>data</sup> <sup>points</sup> <sup>in</sup> <sup>4</sup> single and 22 mixed planes), and for each of these calculated the difference D <sup>`�`</sup> between the observed values and the predictions yi. We then calculated the fraction of samples `�` for which the difference was smaller than the observed one, D <sup>`�`</sup> - D, which is an estimate of the p-value. 2. Permutation test preserving ellipticity. The naı¨ve permutation test above generates independent thresholds even for directions that are nearby within a given texture plane. To build a more stringent test where the threshold contours are kept close to elliptical, we used a different sampling procedure where permutations were applied only within texture groups, and were forced to be cyclic. In this way, thresholds obtained for adjacent texture directions were kept adjacent to each other, preserving the correlations implied by the elliptical contours. More specifically, assume that we index the ngroups texture groups for which we have data by `s`, and let x `s` be the subset of elements of x corresponding to group `s` . Also let R be the shift operator that circularly permutes the elements in a vector to the right, such that the first element becomes the second, the second becomes the third and so on, with the last element being moved to the first position. For each resampling of the measurements x, we sampled ngroups non-negative integers k `s` and performed the transformations x `s` ! R <sup>k</sup> <sup>`s`</sup> x `s` . The largest Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 26 of 36 Research advance Neuroscience Physics of Living Systems value for k `s` was chosen to be equal to the number of elements in x `s` . For each of the 10,000 samples obtained in this way we calculated the D statistic and proceeded as above to get a pvalue. 3. Exponent estimation. The predictions from natural image statistics were obtained by taking the inverse of the standard deviation of the natural texture distribution in each direction. This differs by a square root from the efficient-coding prediction for Gaussian inputs and linear gain (Hermundstad et al., 2014). This is not unreasonable since natural scene statistics are not exactly Gaussian, and we do not expect brain processing to be precisely linear. However, to more fully investigate possible non-linearities, we considered general power-law transformations of the predicted thresholds, and used the data to estimate the exponent `h` . Specifically, given the mean-centered log predictions ^yi, we asked whether `h` ^yi is a better approximation to the measurements ^xi (this implies that y <sup>`h`</sup> i <sup>provides</sup> <sup>a</sup> <sup>better prediction</sup> <sup>for the xi</sup> <sup>values,</sup> <sup>which is</sup> why we refer to `h` as an exponent). We can write down the model ^xi ¼ `h` ^yi þ `s�` i `;` (25) where `�` i are errors drawn from a standard normal distribution, `�` i ~ N ð0 `;` 1Þ. This model interpolates between the null model above that assumes all thresholds are drawn from the same distribution (when the exponent `h` ¼ 0), and a model in which they are given by the values predicted from natural images, plus noise (with exponent `h` ¼ 1). To find `h` and `s`, we used a Bayesian approach. The log posterior distribution for the parameters `h` and `s` given the measured data ^xi is: log Pposteriorð `h;` `s` Þ ¼ � <sup>1</sup> ð `h` ^yi � ^xiÞ <sup>2</sup> - n `s` þ log Pð `h` ÞPð `s` Þ þ const `:;` (26) <sup>1</sup> 2 `s` <sup>2</sup> i X i where n is the number of measurements, and we assumed that `h` and `s` are independent in our prior distribution. We then used slice sampling (taking advantage of the slicesample function [in Matlab, RRID:SCR_001622) to draw from the posterior distribution. We used 10,000 samples](https://scicrunch.org/resolver/SCR_001622) in total, and we discarded the first 5000 as a burn-in period. We used a flat prior for `h` and log `s`, but checked that the results are similar when using other priors. The results from these statistical tests are summarized in Appendix 4—table 1 for the various choices of downsampling factor N and patch size R, and they show that the match we see holds across the explored range of N and R. Interestingly, the 95% credible intervals obtained for the exponent `h` in the exponent-estimation model do not include one for most choices of preprocessing parameters, suggesting that an additional nonlinearity might be at play here. Appendix 4—table 1. Results from statistical tests comparing the match between measured and predicted thresholds to chance. The left column gives the preprocessing parameters N (the downsampling factor) and R (the patch size) in the format N � R. For each of the permutation tests, a p-value and the shortest interval containing 95% of the D values obtained in 10,000 samples is given (the 95% highest-density interval, or HDI). Similarly, for the exponent estimation, we include the shortest interval containing 95% of the posterior density for each of the two model parameters (the 95% highest posterior-density interval, or HPDI). 1. Permutation #1 2. Permutation #2 3. exponent estimation (l)3-8 D D h s N � R Dactual `p` [95% HDI] `p` [95% HDI] [95% HPDI] [95% HPDI] 1 � 32 0.20 <10 <sup>�4</sup> ½0 `:` 26 `;` 0 `:` 33� 0.0041 ½0 `:` 21 `;` 0 `:` 27� ½0 `:` 58 `;` 0 `:` 75� ½0 `:` 22 `;` 0 `:` 26� 1 � 48 0.20 <10 <sup>�4</sup> ½0 `:` 28 `;` 0 `:` 35� 0.0020 ½0 `:` 22 `;` 0 `:` 29� ½0 `:` 52 `;` 0 `:` 67� ½0 `:` 22 `;` 0 `:` 25� 1 � 64 0.21 <10 <sup>�4</sup> ½0 `:` 29 `;` 0 `:` 37� 0.0010 ½0 `:` 23 `;` 0 `:` 31� ½0 `:` 50 `;` 0 `:` 63� ½0 `:` 21 `;` 0 `:` 25� 2 � 32 0.13 <10 <sup>�4</sup> ½0 `:` 24 `;` 0 `:` 31� <10 <sup>�4</sup> ½0 `:` 16 `;` 0 `:` 22� ½0 `:` 81 `;` 0 `:` 98� ½0 `:` 18 `;` 0 `:` 22� ``` Continued on next page ``` Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 27 of 36 Research advance Neuroscience Physics of Living Systems ``` Appendix 4—table 1 continued ``` 1. Permutation #1 2. Permutation #2 3. exponent estimation (l)3-8 D D h s 2 � 48 0.15 <10 <sup>�4</sup> ½0 `:` 26 `;` 0 `:` 33� <10 <sup>�4</sup> ½0 `:` 18 `;` 0 `:` 23� ½0 `:` 71 `;` 0 `:` 85� ½0 `:` 18 `;` 0 `:` 21� 2 � 64 0.16 <10 <sup>�4</sup> ½0 `:` 27 `;` 0 `:` 34� <10 <sup>�4</sup> ½0 `:` 18 `;` 0 `:` 24� ½0 `:` 66 `;` 0 `:` 79� ½0 `:` 18 `;` 0 `:` 22� 4 � 32 0.12 <10 <sup>�4</sup> ½0 `:` 24 `;` 0 `:` 30� <10 <sup>�4</sup> ½0 `:` 15 `;` 0 `:` 20� ½0 `:` 87 `;` 1 `:` 04� ½0 `:` 18 `;` 0 `:` 22� 4 � 48 0.14 <10 <sup>�4</sup> ½0 `:` 26 `;` 0 `:` 33� 0.0003 ½0 `:` 16 `;` 0 `:` 22� ½0 `:` 74 `;` 0 `:` 89� ½0 `:` 18 `;` 0 `:` 21� 4 � 64 0.15 <10 <sup>�4</sup> ½0 `:` 26 `;` 0 `:` 34� 0.0002 ½0 `:` 16 `;` 0 `:` 23� ½0 `:` 69 `;` 0 `:` 83� ½0 `:` 18 `;` 0 `:` 21� Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 28 of 36 Research advance Neuroscience Physics of Living Systems ## Appendix 5 Systematic trends in the prediction errors Overall, the natural-image predictions are in good agreement with the measured psychophysical thresholds. The discrepancies, when they occur, are not entirely random. These trends are shown in Figure 1. As in the main text, we focus on second-order correlations. ## A B 2 simple mixed sum difference 1 0 -1 0 1 ## C D 2 0 -1 0 1 2 1 1d mixed 2d mixed 2 1 on-axis off-axis 0 -1 0 1 0 -1 0 1 log error log error Appendix 5—figure 1. Distribution of prediction errors across specific subsets of thresholds. Each plot shows kernel-density estimates of the distribution of log prediction errors (defined as difference between log prediction and log measurement) after splitting the data into the subgroups indicated at the top right of each plot. Individual data points are shown on the abscissa. The median log prediction error is shown for each group in the corresponding color. (A) Predictions tend to underestimate thresholds in simple planes and overestimate thresholds in mixed planes (p ¼ 0 `:` 0014, Kolmogorov-Smirnov (K–S) test). As a reminder, the natural-image analysis predicts thresholds only up to a multiplicative factor, which is chosen in a way that makes the mean log prediction error over all second-order thresholds be zero. (B) Predictions tend to have greater error in planes defined by modular sums (such as the simple plane `b` þþ or the mixed plane ð `b` þþ½0� `; b` þþ <sup>½1�Þ) than in planes</sup> defined by modular differences (such as the simple plane `b` þ� or the mixed plane ð `b` þ�½1� `; b` þ�½0�Þ) (p ¼ 1 `:` 8 � 10 <sup>�4</sup>, K-S test). However, thresholds in neither subgroup are systematically over- or underestimated. (C) There is no significant difference in predictions in on-axis directions (directions parallel to an axis in a simple or mixed coordinate plane), vs. all other (off-axis) directions (p ¼ 0 `:` 56, K-S test). (D) Thresholds are more accurately predicted for ‘2-D’ correlations than ‘1-D’ correlations. A mixed plane like ð `b` þþ½0� `; b` þ�½0�Þ involves the same pair of checks in both directions, thus leading to correlations that are in a sense 1-D. In contrast, the mixed plane ð `b` þþ½1� `; b` þ�½0�Þ involves the three checks A1, A2, and A3, leading to 2-D correlations. While the medians of the errors in these two subgroups are similar (KS test p ¼ 0 `:` 25; Wilcoxon rank-sum test p ¼ 0 `:` 96, medians 0.042 vs. 0.004, respectively), prediction error magnitude is lower for 2-D correlations (p ¼ 0 `:` 01, KS-test on absolute log errors). Simple-plane thresholds are more often underestimated than mixedplane thresholds As shown in Figure 1A, prediction errors in simple planes tend to be negative, while prediction errors in mixed planes tend to be slightly positive (medians �0.090 and +0.008; p ¼ 0 `:` 0014, Kolmogorov-Smirnov (K-S) test). Note that on balance, prediction errors will be close to zero, since we applied an overall scale factor to minimize the overall difference between predictions from natural images and psychophysical data. Thus, this finding means that perceptual performance when more than one kind of correlation is present is (slightly) disproportionately better than perceptual performance when only one kind of correlation is present. This suggests that the brain uses Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 29 of 36 Research advance Neuroscience Physics of Living Systems more resources to analyze mixed-plane correlations than our efficient-coding model would predict, or that processing of multiple correlations is in some sense synergistic. Sum directions tend to have higher errors than difference directions Second-order correlations in the texture space employed here are defined using either sums or differences (modulo 3) of discretized luminance values. The wrap-around due to the modular arithmetic has different effects on these two kinds of correlations. Specifically, correlations due to modular sums imply a tendency for adjacent checks of a specific gray level to match (see main text Figure 1C), while correlations due to modular differences imply a tendency for checks to match their neighbor independent of gray level, or, for mini-gradients (black to gray to white) to be present (see main text Figure 1D). To test whether this distinction influenced prediction error, we split the data into planes (either simple or mixed) that use only modular sums, and planes (simple or mixed) that use only modular differences. Mixed planes such as ð `b` þþ½0� `; b` þ�½0�Þ that use both sums and differences were excluded from this analysis. Figure 1B shows that while there is no significant difference between the median log errors in sum versus difference directions, the full distributions are different (K-S p-value is p ¼ 1 `:` 8 � 10 <sup>�4</sup> ), largely due to the fact that the sum directions exhibit significantly larger absolute errors compared to the difference ones (median absolute log error 0.19 vs. 0.07, respectively). We suggest that this reflects the greater dependence of the sum-correlations on the gray-level discretization. On-axis and off-axis prediction errors are roughly matched We next examined whether predictions were more or less accurate on the coordinate axes, by comparing prediction errors for on-axis correlations (i.e., correlations described by one of the pi ¼ 1 corners of the probability simplex (see Figure 1); or one of the two axes in mixed planes [see Figure 2]) with all other measurements (off-axis). The distributions of prediction errors for on-axis vs. off-axis thresholds do not exhibit any noticeable differences (see Figure 1C). Different kinds of mixed planes have slightly different error magnitudes Finally, we noted that in the mixed planes, some correlations involved only two checks—and thus were one-dimensional, while others involved overlapping dyads in orthogonal directions and thus were two-dimensional. Specifically, in a mixed plane such as ð `b` þþ½0� `; b` þ�½0�Þ, only a horizontally-oriented pair of checks is involved in both types of correlations, meaning that nearby rows in such textures are independent. In contrast, in the mixed plane ð `b` þþ½1� `; b` þ�½0�Þ, a horizontal pair of checks is used in the first dimension and a vertical one in the second, leading to correlations along both dimensions. This distinction was not associated with over- or under-prediction of thresholds (KS test p ¼ 0 `:` 25; Wilcoxon rank-sum test p ¼ 0 `:` 96, medians 0.042 and 0.004, respectively), but the distribution of errors was wider for the 1-D correlations than for the 2-D correlations (0.19 vs. 0.12, p ¼ 0 `:` 01, K-S test on absolute log errors). Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 30 of 36 Research advance Neuroscience Physics of Living Systems Large thresholds are underestimated 1 0.8 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 1 1.2 Measured thresholds Appendix 5—figure 2. Predictions for large thresholds, corresponding to low-sensitivity directions in texture space, consistently underestimate measured thresholds. The plot shows the 311 secondorder values. In directions where human subjects showed low sensitivity to textures, leading to large measured thresholds, the natural-image predictions were consistently lower than the measurements. This suggests that adding a nonlinearity to the model could improve the fit to the data. Indeed, as shown in Appendix 4, when fitting a model of the form threshold / ðstandard deviationÞ <sup>�</sup> <sup>`h`</sup>, an exponent slightly smaller than one is most consistent with the data (95% credible interval for `h` is ½0 `:` 81 `;` 0 `:` 98�). Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 31 of 36 Research advance Neuroscience Physics of Living Systems ## Appendix 6 Robustness tests The match between psychophysical thresholds and efficient coding predictions is robust under a number of alterations in the analysis pipeline, including changing the parameters of the preprocessing and using different image databases. Changing preprocessing parameters As we showed in the main text, changing the patch size R or the downsampling ratio N does not significantly affect the match between experiment and theory. Another aspect of the preprocessing that we have varied is the ternarization procedure. In the main text, images were ternarized by splitting the entire dynamic range of each patch into three regions, each corresponding to an equal number of checks (up to one check, due to the fact that our patch sizes are not divisible by three). Here, we consider variants of the ternarization procedure, parameterized by the fraction `�` of checks that are mapped to gray, while assuming that the remaining 1 � `�` checks are equally distributed between black and white. Thus, the default ternarization procedure corresponds to `�` ¼ 1 `=` 3. The effects of varying `�` are small in most texture planes, with an increase in prediction error as we move away from histogram equalization ( `�` ¼ 1 `=` 3), as seen in the figure below. 2 1 0 -1 -2 0 0.2 0.4 0.6 0.8 1 Fraction gray Appendix 6—figure 1. Robustness to changing ternarization thresholds. We varied the fraction of gray checks in the ternarized natural image patches, while keeping the fractions of black and white checks equal to each other. For each value of the fraction of gray checks, we recalculated the threshold predictions and compared them to the psychophysical measurements. Each violin in the figure shows a kernel density estimate for the distribution of prediction errors (in log space) for the 311 second-order single- and mixed-plane threshold measurements available in the psychophysics. We see that the precise thresholds used for ternarization do not significantly affect the match between natural image predictions and psychophysics. The lowest error is close to the value 1/3 which corresponds to equal fractions of black, gray, and white checks, and is the one used in the main text. The corresponding violin is highlighted in blue in the figure. Changing the image database The accuracy of the natural image threshold predictions is also good when we use different image databases. Figure 2 shows the match between predictions and measurements in each plane when using the van Hateren database (van Hateren and van der Schaaf, 1998) with a downsampling ratio N ¼ 2 and patch size R ¼ 32. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 32 of 36 Research advance Neuroscience Physics of Living Systems ++ +- ++ + +- <sup>[0]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[2]</sup> <u>+-</u> <sup>[0]</sup> ++ [0] [1] [1] [0] [2] [0] [1] ++ ++ +- <sup>[1]</sup> <u>++</u> <sup>[2]</sup> + ++ ++ + <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[2]</sup> <u>+-</u> <sup>[1]</sup> + + + + + ++ + [1] [0] [2] [0] +- <sup>[1]</sup> <u>++</u> <sup>[0]</sup> +- <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[2]</sup> <u>+-</u> <sup>[1]</sup> [1] [0] [1] <u>++</u> <sup>[0]</sup> +- <sup>[1]</sup> <u>++</u> <sup>[1]</sup> +- <sup>[0]</sup> <u>++</u> <sup>[2]</sup> + + [1] [0] <u>++</u> <sup>[2]</sup> <u>+-</u> <sup>[0]</sup> psychophysics natural images Appendix 6—figure 2. Natural image predictions (blue dots) for second-order planes when using the van Hateren image database (van Hateren and van der Schaaf, 1998). The psychophysics measurements are also shown, in red crosses. The notations are as described in the main text (Figure 5). The distance measure from Equation (22) comparing these results to the results obtained from the Penn Image Database using the same preprocessing options was DPenn�vH ¼ 0 `:` 086, showing that the two sets of measurements not only both agree with the psychophysics, but also agree with each other. Appendix 6—table 1 shows the results of the statistical tests for various preprocessing parameters for the van Hateren database. Appendix 6—table 1. Results from statistical tests comparing the match between measured and predicted thresholds to chance when using the van Hateren natural image database (van Hateren and van der Schaaf, 1998). The left column gives the preprocessing parameters N (the downsampling factor) and R (the patch size) in the format N � R. For each of the permutation tests, a p-value and the shortest interval containing 95% of the D values obtained in 10,000 samples is given (the 95% highest-density interval, or HDI). Similarly, for the exponent estimation, we include the shortest interval containing 95% of the posterior density for each of the two model parameters (the 95% highest posterior-density interval, or HPDI). Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 33 of 36 Research advance Neuroscience Physics of Living Systems 1. Permutation #1 2. Permutation #2 3. exponent estimation (l)3-8 D D h s N � R Dactual `p` [95% HDI] `p` [95% HDI] [95% HPDI] [95% HPDI] 1 � 32 0.22 <10 <sup>�4</sup> ½0 `:` 27 `;` 0 `:` 34� 0.0081 ½0 `:` 23 `;` 0 `:` 31� ½0 `:` 45 `;` 0 `:` 63� ½0 `:` 24 `;` 0 `:` 28� 1 � 48 0.23 <10 <sup>�4</sup> ½0 `:` 30 `;` 0 `:` 37� 0.0013 ½0 `:` 26 `;` 0 `:` 34� ½0 `:` 41 `;` 0 `:` 57� ½0 `:` 24 `;` 0 `:` 28� 1 � 64 0.24 <10 <sup>�4</sup> ½0 `:` 30 `;` 0 `:` 38� 0.0020 ½0 `:` 26 `;` 0 `:` 34� ½0 `:` 40 `;` 0 `:` 54� ½0 `:` 24 `;` 0 `:` 27� 2 � 32 0.16 <10 <sup>�4</sup> ½0 `:` 26 `;` 0 `:` 32� 0.0001 ½0 `:` 19 `;` 0 `:` 25� ½0 `:` 67 `;` 0 `:` 84� ½0 `:` 21 `;` 0 `:` 24� 2 � 48 0.18 <10 <sup>�4</sup> ½0 `:` 27 `;` 0 `:` 34� 0.0003 ½0 `:` 20 `;` 0 `:` 27� ½0 `:` 58 `;` 0 `:` 73� ½0 `:` 21 `;` 0 `:` 24� 2 � 64 0.19 <10 <sup>�4</sup> ½0 `:` 28 `;` 0 `:` 36� 0.0002 ½0 `:` 21 `;` 0 `:` 28� ½0 `:` 54 `;` 0 `:` 67� ½0 `:` 21 `;` 0 `:` 24� 4 � 32 0.14 <10 <sup>�4</sup> ½0 `:` 25 `;` 0 `:` 32� 0.0002 ½0 `:` 17 `;` 0 `:` 24� ½0 `:` 73 `;` 0 `:` 90� ½0 `:` 20 `;` 0 `:` 23� 4 � 48 0.15 <10 <sup>�4</sup> ½0 `:` 27 `;` 0 `:` 34� <10 <sup>�4</sup> ½0 `:` 18 `;` 0 `:` 26� ½0 `:` 64 `;` 0 `:` 78� ½0 `:` 19 `;` 0 `:` 23� 4 � 64 0.16 <10 <sup>�4</sup> ½0 `:` 28 `;` 0 `:` 36� <10 <sup>�4</sup> ½0 `:` 20 `;` 0 `:` 26� ½0 `:` 59 `;` 0 `:` 73� ½0 `:` 19 `;` 0 `:` 23� Subject dependence As mentioned in the main text, the psychophysical thresholds show remarkable consistency across subjects, with most differences attributable to an overall scaling factor. The results are shown in Figure 3. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 34 of 36 Research advance Neuroscience Physics of Living Systems ++ +- ++ + +- <sup>[0]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[2]</sup> <u>+-</u> <sup>[0]</sup> ++ [0] [1] [1] [0] [2] [0] [1] ++ ++ +- <sup>[1]</sup> <u>++</u> <sup>[2]</sup> + ++ ++ + <u>++</u> <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[2]</sup> <u>+-</u> <sup>[1]</sup> + + + + + ++ + [1] [0] [2] [0] +- <sup>[1]</sup> <u>++</u> <sup>[0]</sup> +- <sup>[0]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[1]</sup> <u>++</u> <sup>[2]</sup> + [1] [0] jwb [1] mc nm <u>+-</u> <sup>[1]</sup> sr wc za <u>++</u> <sup>[0]</sup> +- <sup>[1]</sup> <u>++</u> <sup>[1]</sup> +- <sup>[0]</sup> <u>++</u> <sup>[2]</sup> <u>++</u> <sup>[2]</sup> + [1] [0] <u>+-</u> <sup>[0]</sup> Appendix 6—figure 3. Psychophysical thresholds in the second-order planes shown for different subjects. Depending on the plane, measurements were made in 2–5 subjects in each texture direction. The notations are as in the main text (Figure 5). The differences between different subjects were more pronounced in higher-order planes (Figure 4). Note that the predicted thresholds (shown as blue dots in the figure) are still not far from the measurements; in particular, the predictions reflect the fact that the thresholds in the higher-order planes are generally high. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 35 of 36 Research advance Neuroscience Physics of Living Systems ++ ++ +- ++ + - - ++ +++- ++- - +-- + mc nm sr wc za prediction Appendix 6—figure 4. Psychophysical thresholds in higher-order planes for individual subjects (crosses). The natural image predictions are also shown, in blue dots. The notations are as in the main text (Figure 4). in many directions, performance did not sufficiently exceed chance to allow for a reliable determination of threshold; in these cases, data points are omitted. Tesileanu et al eLife 2020;9:e54347 [DOI: https://doi org/10 7554/eLife 54347](https://doi.org/10.7554/eLife.54347) 36 of 36

섹션 본문 116문단 · 80,258자

(제목 없음)

1Previously, in Hermundstad et al., 2014, weshowed that when sampling is limiting, the efficient coding principle leads to a 'variance is salience' hypothesis, and that this hypothesis accounts for visual sensitivity to binary image statistics. Here, using extensive new psychophysical data and image analysis, we show that this hypothesis accounts for visual sensitivity to a large set of grayscale image statistics at a striking level of detail, and also identify the limits of the prediction. We define a 66-dimensional space of local grayscale light-intensity correlations, and measure the relevance of each direction to natural scenes. The 'variance is salience' hypothesis predicts that two-point correlations are most salient, and predicts their relative salience. We tested these predictions in a texture-segregation task using un-natural, synthetic textures. As predicted, correlations beyond second order are not salient, and predicted thresholds for over 300 secondorder correlations match psychophysical thresholds closely (median fractional error <0.13).

Introduction

2Neural circuits in the periphery of the visual (Laughlin, 1981;Atick and Redlich, 1990;van Hateren, 1992;Fairhall et al., 2001;Ratliff et al., 2010;Liu et al., 2009;Borghuis et al., 2008;Garrigan et al., 2010;Kuang et al., 2012), auditory (Schwartz and Simoncelli, 2001;Lewicki, 2002;Smith and Lewicki, 2006;Carlson et al., 2012), and perhaps also olfactory (Teşileanu et al., 2019) systems use limited resources efficiently to represent sensory information by adapting to the statistical structure of the environment (Sterling and Laughlin, 2015). There is some evidence that this sort of efficient coding might also occur more centrally, in the primary visual cortex (Olshausen and Field, 1996;Bell and Sejnowski, 1997;Vinje and Gallant, 2000;van Hateren and van der Schaaf, 1998) and perhaps also in the entorhinal cortex (Wei et al., 2015). Behaviorally, efficient coding implies that the threshold for perceiving a complex sensory cue, which depends on the collective behavior of many cells in a cortical circuit, should be set by its variance in the natural environment. However, the nature of this relationship depends on the regime in which the sensory system operates. Specifically, in conventional applications of efficient coding theory where sampling is abundant, high variance is predicted to be matched by high detection thresholds. The authors of Hermundstad et al., 2014 argued instead that texture perception occurs in a regime where sampling noise is the limiting factor. This leads to the opposite prediction (Tkacik et al., 2010;Doi and Lewicki, 2011;Hermundstad et al., 2014), namely that high variance should lead to a low detection threshold, summarized as variance is salience (Hermundstad et al., 2014). Tests of this prediction in Tkacik et al., 2010;Hermundstad et al., 2014 showed that it holds for the visual detection of simple black-and-white binary textures.

3These binary textures, while informative about visual sensitivity, are a highly restricted set and do not capture many perceptually-salient properties of natural scenes. Moving to a complete description of visual textures, however, requires specifying the co-occurrence of all possible patterns of light across a visual image, and is generally intractable. One way to make this specification tractable is to construct a local and discretized grayscale texture space, in which luminance is drawn from a discrete set and correlations in luminance are only specified up to a given neighborhood size. For example, if we consider four spatially-contiguous squares ('checks') with binary intensities, there are 2 4 ¼ 16 patterns that can each occur with different probabilities in a given texture. Imposing translation symmetry constrains these 16 parameters, leading to a 10-dimensional space of textures (Hermundstad et al., 2014). This space can be explored by synthesizing artificial binary textures with prescribed combinations of parameters (Victor et al., 2005;Victor and Conte, 2012), and by analyzing the relative contributions of these parameters to the correlated structure of natural images (Tkacik et al., 2010;Hermundstad et al., 2014). Here, we generalized these synthesis and analysis methods to multiple gray levels and used this to probe efficient encoding of grayscale textures composed of correlated patterns of three luminance levels (dark, gray, light) specified within blocks of four contiguous checks. We chose to add only one intermediate gray level compared to the binary case because it is the simplest generalization of binary textures that allows us to explore perceptual sensitivity to grayscale textures. Because the number of possible visual patterns increases as a power law in the number of distinguishable luminance values, this generalization already yields a very highdimensional space: for intensities constrained to G ¼ 3 discrete values, there are G 4 ¼ 81 patterns of four checks with three gray levels, leading to a 66-dimensional space of textures after accounting for the constraints of translation invariance.

4This grayscale texture space enabled us to probe and interpret the relationship between natural scene statistics and psychophysics in much greater detail than is possible with binary textures. In particular, the 'variance is salience' hypothesis qualitatively predicts that directions corresponding to two-point correlations will be most perceptually salient, and it quantitatively predicts detection thresholds in different directions of this salient part of the texture space. (Two coordinates corresponding to contrast, which are also highly salient, are zeroed out by the preprocessing in our natural image analysis; we therefore do not probe these directions.) We tested these predictions by asking observers to report the location of textured strips presented rapidly against a background of white noise, and we found detailed agreement with the theory. By further exploiting symmetries in the distribution of grayscale textures, we show that human behavior not only reflects the relative informativeness of natural visual textures, but it also parallels known invariances in natural scenes. Natural scenes also have a notable, previously studied, asymmetry between bright and dark Tkacik et al., 2010) which is reflected in the anatomy and physiology of visual circuits, and in visual behavior Tkacik et al., 2010;Zemon et al., 1988;Chubb et al., 2004;Jin et al., 2008;Komban et al., 2014;Kremkow et al., 2014). The asymmetry is rooted ultimately in the lognormal distribution and spatial correlation structure of light intensities in natural scenes Tkacˇik et al., 2011). Our image processing pipeline (see Materials and methods) starts by taking the logarithm of the pixel intensities and removing the large-scale 1=f spatial correlations, and thus significantly reduces the dark-light asymmetry. The ternarization procedure that we then employ further diminishes the asymmetry, allowing us to focus on other aspects of natural scene statistics.

Local textures with multiple gray levels

5We define textures in terms of statistical correlations between luminance levels at nearby locations, generalizing the methods developed for binary images (Victor and Conte, 2012;Hermundstad et al., 2014) to three luminance levels. If we consider four 'checks' arranged in a 2 Â 2 square, the three luminance levels lead to 3 4 ¼ 81 possible patterns, and their frequency of occurrence in an image is equivalently parameterized by intensity correlations within the square. Thus there is an 81-dimensional space of ternary textures defined by correlations within square arrangements of checks. However, translation invariance constrains these 81 probabilities, reducing the number of independent statistics and thus the dimension of the texture space.

6We can quantify the statistics of such textures in an image patch by gliding a 2 Â 2 block (a 'glider') over the patch and analyzing the luminance levels at different locations within this block ( Figure 1A). At the most basic level, we can measure the luminance histogram at each of the four check locations in the glider. Check intensities can take three values (0, 1, or 2, for black, gray, or white), and the corresponding frequencies of occurrence must add to one, leaving two free parameters. If the histograms at each of the four locations within the glider were independent, this would lead to 4 Â 2 ¼ 8 texture dimensions. However, because of translation invariance in natural images, the luminance histograms at each location must be the same, leaving only two independent dimensions of texture space from the single-check statistics.

7Next, we can analyze the statistics of luminance levels at pairs of locations within the glider. Taking into account translation invariance, there are four ways to position these pairs ( Figure 1B), each with a different orientation. For each orientation, we can calculate either the sum A þ B or the difference A À B of the luminance values A and B at the two locations. This yields eight possible texture groups ( Figure 1B). Within each group, we build texture coordinates by counting the fraction of occurrences in which A AE B is equal to 0, 1, or 2, up to a multiple of 3; that is, we are building a histogram of A AE B modulo 3, here denoted modðA AE B; 3Þ. The appearance of the modulo function here

82 independent parameters per plane Figure 1. Ternary texture analysis. (A) With three luminance levels there are 3 4 ¼ 81 possible check configurations for a 2  2 block (histogram on the right). We parametrize the pairwise correlations within these blocks using modular sums or differences of luminance values at nearby locations, modðA AE B; 3Þ (see Materials and methods and Appendix 1 for details). This notation denotes the remainder after division by 3, so that for example modð4; 3Þ ¼ 1 and modðÀ1; 3Þ ¼ 2. The texture coordinates are defined by the probabilities p 0 , p 1 , p 2 with which modðA AE B; 3Þ equals its three possible values, 0, 1, or 2. These three probabilities must sum to 1, so there are only two independent coordinates for each triplet of probabilities. (B) The eight second-order groups (planes) of texture coordinates in the ternary case. A texture group is identified by the choice of orientation of the pair of checks for which the correlation is calculated, and by whether a sum or a difference of luminance values is used. The greek letter notation (b for the second-order planes) mirrors the notation used in Hermundstad et al., 2014. (C and D) Example texture groups ('simple' planes). The origin is the point p 0 ¼ p 1 ¼ p 2 ¼ 1=3, representing an unbiased random texture. The interior of the triangle shows the allowed range in the plane where all the probability values are non-negative. The vertices are the points where only one of the probabilities is nonzero. An example texture patch is shown for the origin, as well as for each of the vertices of the probability space. is a consequence of using a Fourier transform in the space of luminance levels, which is convenient for incorporating translation invariance into our coordinate system (see Materials and methods and Appendix 1). The fractions of values of modðA þ B; 3Þ equal to 0, 1, or 2 must add up to 1, so that each texture group is characterized by two independent coordinates, that is, a plane in texture space. These 8 planes constitute 16 independent dimensions of the texture space, in addition to the two dimensions needed to capture the histogram statistics at individual locations.

9We can similarly analyze the joint statistics of luminance levels at three checks within the glider, or all four together. There are four ways to position 3-check gliders within the 2 Â 2 square, and, for each of these positions, eight parameters are needed to describe their occurrence frequencies, once the first-and second-order statistics have been fixed. This leads to 4 Â 8 ¼ 32 third-order parameters. For configurations of all four checks, 16 parameters are required, once first-, second-, and third-order parameters are fixed. These 32 þ 16 ¼ 48 parameters, in addition to the 18 parameters described above, lead to a 66-dimensional texture space. This provides a complete parameterization of the 2 Â 2 configurations with three gray levels. See Methods and Appendix 1 for a detailed derivation and a generalization to higher numbers of gray levels.

10In order to probe human psychophysical sensitivity to visual textures, we need an algorithm for generating texture patches at different locations in texture space. To do so, we use an approach that generalizes the methods from Victor and Conte, 2012. Briefly, we randomly populate entries of the first row and/or column of the texture patch, and we then sequentially fill the rest of the entries in the patch using a Markov process that is designed to sample from a maximum-entropy distribution in which some of the texture coordinates are fixed (see Methods and Appendix 2 for details). Examples of texture patches obtained by co-varying coordinates within a single texture group are shown in Figure 1C and D. Examples of textures obtained by co-varying coordinates in two texture groups are shown in Figure 2. We refer to the first case as 'simple' planes, and the second as 'mixed' planes.

11When applying these methods to the analysis of natural images, we bin luminance values to produce equal numbers of black, white, and gray checks (details below), thus equalizing the previously studied brightness statistics in scenes (e.g., Zemon et al., 1988;Chubb et al., 2004;Jin et al., 2008;Ratliff et al., 2010;Tkacik et al., 2010;Tkacˇik et al., 2011;Komban et al., 2014;Kremkow et al., 2014). This procedure allowed us to focus on higher-order correlations. In previous work, we found that median-binarized natural images show the highest variability in pairwise correlations, and that observers are correspondingly most sensitive to variations in these statistics (Tkacˇik et al., 2011;Hermundstad et al., 2014). In view of this, we focused our attention on pairwise statistics. For three gray levels, these comprise a 16-dimensional 'salient' subspace of the overall texture space.

Natural image statistics predict perceptual thresholds Predictions from natural scene statistics

12The 'variance is salience' hypothesis from Hermundstad et al., 2014 predicts that the most salient directions in texture space (for which detection thresholds are low) will be those along which there is the highest variance across image patches, while the least salient directions (for which detection thresholds are high) will be those with lowest variance. To test these predictions, we first mapped natural image patches to their corresponding locations within the texture space (as in Hermundstad et al., 2014). We then computed the inverse of the standard deviation of the natural image distribution along each direction, and we used this as our prediction of detection thresholds. The procedure is sketched in Figure 3 and described in more detail in Methods. We found that natural images have much higher variance in the second-order coordinate planes than in the third-and fourth-order planes. This predicted that textures exhibiting variability in the second-order planes would be most salient to observers, and thus would be amenable to a quantitative comparison between theory and behavior. Thus, we computed the predicted detection thresholds in four single and twenty-two mixed second-order coordinate planes, and we scaled this set of thresholds by a single overall scaling factor that was chosen to best match the behavioral measurements (blue dots in Figure 4C and Figure 5).

Psychophysical measurements

13To measure the sensitivity of human subjects to different kinds of textures, we used a four-alternative forced-choice paradigm following Hermundstad et al., 2014;Victor and Conte, 2012;Victor et al., 2013;Victor et al., 2015. Subjects were briefly shown an array in which a rectangular Figure 2. Examples of textures from all the mixed planes for which psychophysics data are available. Each patch is obtained by choosing coordinates in two different texture groups: for instance, a point in the ðb þþ ½0; b þÀ ½1Þ plane (row 1, column 2) corresponds to choosing the probabilities that modðA þ B; 3Þ ¼ 0 and modðA À B; 3Þ ¼ 1. Apart from these constraints, the texture is generated to maximize entropy (see Materials and methods and Appendix 2). The center of the coordinate system in all planes corresponds to an unbiased texture (i.e., the probability for each direction is 1/3), while a mixed-plane coordinate equal to one corresponds to full saturation (i.e., the probability for that direction is 1). The dashed lines indicate the directions in texture space along which the illustrated patches were generated. The patches within a given plane are drawn at a constant distance from the center, but the precise amount of texture saturation varies, according to the largest saturation that could be generated in each direction. Note that along some directions, the maximum saturation is limited by the way in which the texture coordinates are defined, or by the texture synthesis procedure (see Appendix 2). strip positioned near the left, right, top, or bottom edge was defined by a texture difference: either the strip was structured and the background was unstructured, or the background was structured and the strip was unstructured. Structured patterns were constructed using the texture generation method described above, and unstructured patterns were generated by randomly and independently drawing black, gray, or white checks with equal probability. The texture analysis procedure in Figure 3 included a whitening step that removed long-range correlations in natural images, and the local textures generated to test the predictions psychophysically also lacked these correlations. This is appropriate, because, during natural vision, dynamic stimuli engage fixational eye movements that whiten the visual input (Rucci and Victor, 2015). Spatial filtering has also been thought to play a role in whitening (Atick and Redlich, 1990), but in vitro experiments (Simmons et al., 2013 found that adaptive spatiotemporal receptive field processing did not by itself whiten the retinal output, but rather served to maintain a similar degree of correlation across stimulus conditions). We infer from these studies that short visual stimuli like our 120 ms presentations should be pre-whitened, to make up for the absence of fixational eye movements that produce whitening in natural, continuous viewing conditions.

14Subjects were asked to indicate the position of the differently textured strip within the array ( Figure 4A). Thresholds were obtained by finding the value of a texture coordinate for which the subjects' performance was halfway between chance and perfect ( Figure 4B; see Materials and methods for details). For the second-order planes, subjects were highly consistent in their relative sensitivity to different directions in texture space, with a single scaling factor accounting for a majority of the inter-subject variability (see Appendix 6). The subject-average thresholds in the second order planes are shown in Figure 4C and Figure 5 (red crosses and error bars). As predicted by the natural scene analysis, sensitivity in the third and fourth-order planes was low; in fact, detection thresholds could not be reliably measured in most directions beyond second order (Appendix 6).

Variance predicts salience

15Predicted detection thresholds were in excellent agreement with those measured experimentally ( Figure 4C and Figure 5), with a median absolute log error of about 0.13. Put differently, 50% of the measurements have relative errors below 13%, since in this regime, the log error is very well approximated by relative error (see Materials and methods and Appendix 4). This match is unlikely to be due to chance-a permutation test yields p<10 À4 for the hypothesis that all measured thresholds were drawn independently from a single distribution that did not depend on the texture direction in which they were measured (see Materials and methods and Appendix 4 for details and further statistical tests; 95% of the 10,000 permutation samples exhibited median absolute log errors in the range [0.24, 0.31]). The comparison between theory and experiment was tested in 12 directions in each of 26 single and mixed planes, for a total of 311 different thresholds (the measurement uncertainty in one direction in the b þþ ½0; bþ þ ½1 mixed plane was too large, and we discarded that datapoint); a single scaling factor was used to align these two sets of measurements. Note that these measurements are not fully independent: the natural image predictions within each plane lie on an The subject's performance in terms of fraction of correct answers was fit with a Weibull function and the threshold was identified at the mid-point between chance and perfect performance. Note that if the subject's performance never reaches the mid-point on any of the trials, this procedure may extrapolate a threshold that falls outside the valid range for the coordinate system (see, e.g., the points outside the triangles in panel C). This signifies a low-sensitivity direction of texture space. (C) Measured thresholds (red crosses with pink error bars; the error bars are in most cases smaller than the symbol sizes) and predicted thresholds (blue dots) in second-order simple planes. Thresholds were predicted to be inversely proportional to the standard deviation observed in each texture direction in natural images. The plotted results used downsampling factor N ¼ 2 and patch size R ¼ 32. A single scaling factor for all planes was used to match to the psychophysics. The orange and green dashed lines show the effect of two symmetry transformations on the texture statistics (see text). ellipse by construction; the psychophysical thresholds are measured independently at each point but are generally well-approximated by ellipses. Even taking this into account, the match between the predictions and the data is unlikely to be due to chance (p<10 À4 ; 95% range for the median absolute log error [0.16, 0.22]; see Appendix 4).

16However, not all thresholds are accurately predicted from natural images. While some of the mismatches seem random and occur for directions in texture space where the experimental data have large variability (pink error bars in Figure 4C and Figure 5), there are also systematic discrepancies. Natural-image predictions tend to underestimate the threshold in the simple planes (median log prediction error À0.090) and overestimate the threshold in mixed planes (median log prediction error +0.008). That is, in human observers, detection of simultaneously-present multiple correlations is disproportionally better than predicted from the detection thresholds for single correlations, to a mild degree (see Appendix 5 for details).

17psychophysics natural images Figure 5. The match between measured (red crosses and error bars) and predicted (blue dots) thresholds in 22 mixed planes. Each plot corresponds to conditions in which the coordinates in two different texture groups are specified, according to the axis labels. For instance, column two in row one is the ðb þþ ½0; b þÀ ½1Þ plane; the two coordinates correspond to choosing the probabilities that modðA þ B; 3Þ ¼ 0 and modðA À B; 3Þ ¼ 1. As in Figure 2, the center of the coordinate system in these planes corresponds to an unbiased texture (i.e., the probability for each direction is 1/3), while a coordinate equal to 1-indicated by the gray dotted circlecorresponds to full saturation (i.e., the probability for that direction is 1).

18A second observation is that prediction errors tend to be larger for the sum-correlations (such as b þþ ) than for the difference-correlations (such as b þÀ ), independent of the direction of the error. This may be a consequence of the way that modular arithmetic and gray-level discretization interact, leading to a kind of non-robustness of the sum-correlations. Specifically, the most prominent feature of the patterns induced by the sum-correlations is that there is a single gray level that occurs in runs (e.g., p 0 ¼ 1 leads to runs of black checks, p 1 ¼ 1 leads to runs of white checks, and p 2 ¼ 1 leads to runs of gray checks; see Figure 1C). On the other hand, for difference correlations, p 0 ¼ 1 leads to runs of all gray levels, while p 1 ¼ 1 and p 2 ¼ 1 lead to 'mini-gradients' that cycle between white, gray, and black ( Figure 1D). Thus, the sum-correlations are subject to the particular assignment of gray levels and modulus while the difference-correlations rely on relationships that hold independent of these choices.

19Independent of these trends, the natural-image predictions tend to underestimate the thresholds in directions with very low variance even while they match the thresholds in directions with high variance (see Appendix 5). This suggests the need to go beyond the linear efficient-coding model employed here. A simple generalization that interpolates between existing analytically solvable models (Hermundstad et al., 2014) involves a power-law transformation of the natural-image variances, threshold / ðstandard deviationÞ Àh . We use a default exponent of h ¼ 1 throughout the text. The exponent h that best matches our data is close but probably not equal to 1 (the 95% credible interval is [0.81, 0.98]; see Appendix 4), suggesting that a weak power-law nonlinearity might be involved. The inferred range for h also confirms that the measured thresholds are not independent of the predicted ones (which would have mapped to h ¼ 0).

20In sum, the modest systematic discrepancies between the natural-image predictions and the measured thresholds indicate that the efficient-coding model has limitations, and the observed mismatches can guide future studies that go beyond this model. More generally, we do not expect the predictions of efficient coding to hold indefinitely: adapting to increasingly precise environmental statistics must ultimately become infeasible, both because of insufficient sampling, and because of the growing computational cost required for adaptation. Whether, and to what extent, these issues are at play is a subject for future work.

21These results are robust to several variations in our analysis procedure. We obtain similar results when we either vary the sub-sampling factor N and patch size R, modify the way in which we ternarize image patches, or analyze different image datasets ( Figure 6A and Appendix 3). Eliminating downsampling completely (choosing N ¼ 1) does lead to slightly larger mismatches between predicted and measured thresholds (first three distributions on the left in Figure 6A) as expected from Hermundstad et al., 2014, a finding that we attribute to artifacts arising from imperfect demosaicing of the camera's filter array output.

Invariances in psychophysics recapitulate symmetries in natural images

22The 'variance is salience' hypothesis can be further tested by asking whether symmetries of the natural distribution of textures are reflected in invariances of psychophysical thresholds. Binary texture coordinates (Hermundstad et al., 2014) are not affected by many of these symmetry transformations, and so a test requires textures containing at least three gray levels. For instance, reflecting a texture around the vertical axis has no effect on second-order statistics in the binary case, but it leads to a flip around the p 0 direction in the b þÀ simple plane in ternary texture space (dashed green line in Figure 4C). To see this, recall that the coordinates in the b þÀ plane are given by the probabilities that modðA 1 À A 2 ; 3Þ ¼ h for the three possible values of h (Figure 1). Under a left-right flip, the values A 1 and A 2 are exchanged, leading to modðA 1 À A 2 ; 3Þ ¼ modðÀh; 3Þ. This means that the h ¼ 1 direction gets mapped to h ¼ 2, the h ¼ 2 direction gets mapped to h ¼ 1, and the h ¼ 0 direction remains unaffected. More details, and a generalization to additional symmetry transformations, can be found in Appendix 3. We find that the distribution of natural images is symmetric about the p 0 direction and is thus unaffected by this transformation, predicting that psychophysical thresholds should also be unaffected when textures are flipped about the vertical axis. This is indeed the case ( Figure 6B). Similarly, the natural image distribution is symmetric under flips about the horizontal axis, and also under rotations by 90, 180, and 270 degrees, predicting perceptual invariances that are borne out in the psychophysical data ( Figure 6B).

23Reflecting a texture about the vertical axis also has an interesting effect on the bþ À plane: it not only flips the texture about the p 0 direction, but it also maps the texture onto the plane corresponding to the opposite diagonal orientation, b þ À . The fact that a flip about the p 0 direction is a symmetry of natural images is thus related to the fact that the diagonal pairwise correlations are the same regardless of the orientation of the diagonal. This fact was already observed in the binary analysis (Hermundstad et al., 2014), and is related to the invariance under 90-degree rotations observed here ( Figure 6B).

24It is important to note that these symmetries were not guaranteed to exist for either natural images or human psychophysics. Most of the textures that we are using are not themselves invariant under rotations (see the examples from Figure 1C,D). This means that invariances of predicted thresholds arise from symmetries in the overall shape of the distribution of natural textures. Similarly, had observed thresholds been unrelated to natural texture statistics, we could have found a discrepancy between the symmetries observed in natural images and those observed in human perception. As an example, the up and down directions differ in meaning, as do vertical and horizontal directions. A system that preserves these semantic differences would not be invariant under flips and rotations. The fact that the psychophysical thresholds are, in fact, invariant under precisely those transformations that leave the natural image distribution unchanged supports the idea that this is an adaptation to symmetries present in the natural visual world.

25Natural images also have a well-known asymmetry between bright and dark contrasts Tkacik et al., 2010) that is reflected in the anatomy and physiology of visual circuits, and in visual behavior Tkacik et al., 2010;Zemon et al., 1988;Chubb et al., 2004;Jin et al., 2008;Komban et al., 2014;Kremkow et al., 2014). Our psychophysical data also show a bright/dark asymmetry. For instance, in Figure 4C, the threshold contour is not symmetric under the exchange of black and white checks, which has the effect of reflecting thresholds about the upper-left axis in the b þþ plane (dashed orange line in the figure). Such brightdark asymmetries lead to a wide distribution of relative changes in detection threshold upon the exchange of black and white (red violin plot in Figure 6B for the exch(B,W) transformation). Our natural image analysis does not show this asymmetry (blue violin plot in Figure 6B for the exch(B,W) transformation) because of our preprocessing, which follows previous work (Hermundstad et al., 2014). As observed in Ratliff et al., 2010, the bright-dark asymmetry rests on two main characteristics of natural images: a skewed distribution of light intensities such that the mean intensity is larger than the median, and a power-law spectrum of spatial correlations. Both of these are reduced or removed by our preprocessing pipeline, which starts by taking the logarithm of intensity values and thereby reduces the skewness in the intensity distribution, and continues with a whitening stage that removes the overall 1=f spatial correlation spectrum seen in natural images. The final ternarization step additionally reduces any remaining dark-bright asymmetry, since we ensure that each of the three gray levels occurs in equal proportions in the preprocessed patches. This explains why we do not see this asymmetry in our natural-image analysis.

Discussion

26The efficient coding hypothesis posits that sensory systems are adapted to maximize information about natural sensory stimuli. In this work, we provided a rigorous quantitative test of this hypothesis in the context of visual processing of textures in a regime dominated by sampling noise. To this end, we extended the study of binary texture perception to grayscale images that capture a broader range of correlations to which the brain could conceivably adapt. We first generalized the definition of textures based on local multi-point correlations to accommodate multiple luminance levels. We then constructed algorithms for generating these textures, and we used these in our behavioral studies. By separately analyzing the distribution of textures across an ensemble of natural images, we showed that psychophysical thresholds can be predicted in remarkable detail based on the statistics of natural scenes. By further exploiting symmetry transformations that have non-trivial effects on ternary (but not binary) texture statistics, we provided a novel test of efficient coding and therein demonstrated that visually-guided behavior shows the same invariances as the distribution of natural textures. Overall, this work strengthens and refines the idea that the brain is adapted to efficiently encode visual texture information.

27The methodology developed here can be used to address many hypotheses about visual perception. For example, if a specific set of textures was hypothesized to be particularly ethologically relevant, this set could be measured and compared against 'irrelevant' textures of equal signal-to-noise ratio. Because our hypothesis treats every dimension of texture space equally-the symmetry only broken by properties of the natural environment-we leveraged the rapidly increasing dimensionality of grayscale texture space to more stringently test the efficient coding hypothesis. In this vein, our construction can be generalized to larger numbers of gray levels and correlations over greater distances. However, the ability of neural systems to adapt to such correlations must ultimately be limited because, as texture complexity grows, it will eventually become impossible for the brain to collect sufficient statistics to determine optimal sensitivities. Even were it possible to accumulate these statistics, adapting to them might not be worth the computational cost of detecting and processing long-range correlations between many intensity values. Understanding the limits of texture adaptation will teach us about the cost-benefit tradeoffs of efficient coding in sensory cortex, in analogy with recently identified cost-benefit tradeoffs in optimal inference (Tavoni et al., 2019). And indeed, although our predictions are in excellent agreement with the data in most cases, we find a few systematic differences that may already be giving us a glimpse of these limits.

Code and data

28The code and data used to generate all of the results in the paper can be found on GitHub (RRID: SCR_002630), at https://github.com/ttesileanu/TextureAnalysis (Tesileanu et al., 2020; copy archived at https://github.com/elifesciences-publications/TextureAnalysis).

Definition of texture space

29A texture is defined here by the statistical properties of 2 Â 2 blocks of checks, each of which takes the value 0, 1, or 2, corresponding to the three luminance levels (black, gray, or white; see Appendix 1 for a generalization to more gray levels). The 3 4 ¼ 81 probabilities for all the possible configurations of such blocks form an overcomplete coordinate system because the statistical properties of textures are independent of position. To build a non-redundant parametrization of texture space, we use a construction based on a discrete Fourier transform (see Appendix 1). Starting with the luminance values A i ; i ¼ 1; . . . ; 4, of checks in a 2 Â 2 texture block (arranged as in Figure 1A), we define the coordinates ss1s2 s3s4 ðhÞ which are equal to the fraction of locations where the linear combination s 1 A 1 þ s 2 A 2 þ s 3 A 3 þ s 4 A 4 has remainder equal to h after division by three (the number of gray levels). In the case of three gray levels, the coefficients s i can be +1, À1, or 0.

30Each set of coefficients s i identifies a texture group, and within each texture group we have three probability values, one for each value of h. Since the probabilities sum up to 1, each texture group can be represented as a plane, and more specifically, as a triangle in a plane, since the probabilities are also non-negative. This is the representation shown in Figure 1C,D and used in subsequent figures. For compactness of notation, when referring to the coefficients s i , we write + and À instead of +1 and À1, and omit coefficients that are 0, e.g., sþÀ À instead of s þ1 À1 0 À1

31. We also use g (rather than the generic symbol s) for 1-point correlations, b for 2-point correlations, for 3-point correlations, and a for 4-point correlation, matching the notation used in the binary case (Victor and Conte, 2012;Hermundstad et al., 2014). For instance, bþ À is the plane identified by the linear combination

Texture analysis and synthesis

32Finding the location in texture space that matches the statistics of a given image patch is straightforward given the definition above: we simply glide a 2 Â 2 block over the image patch and count the fraction of locations where the combination s 1 A 1 þ s 2 A 2 þ s 3 A 3 þ s 4 A 4 takes each of its possible values modulo three, for each texture group identified by the coefficients s i . (As a technical detail, we glide the smallest shape that contains non-zero coefficients. For example, for b þÀ , we glide a 1 Â 2 region instead of a 2 Â 2 one. This differs from gliding the 2 Â 2 block for all orders only through edge effects, and thus the difference decreases as the patch size R increases.)

33In order to generate a patch that corresponds to a given location in texture space, we use a maximum entropy construction that is an extension of the methods from Victor and Conte, 2012. There are efficient algorithms based on 2d Markov models that can generate all single-group textures, namely, textures in which only the probabilities within a single texture group deviate from (1/3, 1/3, 1/3). For textures involving several groups, the construction is more involved, and in fact some combinations of texture coordinates cannot be achieved in a real texture. This restriction applies as textures become progressively more 'saturated', that is, near the boundary of the space. In contrast, near the origin of the space all combinations can be achieved via the 'donut' construction for mixing textures, described in Victor and Conte, 2012. Details are provided in Appendix 2.

Visual stimulus design

34The psychophysical task is adapted from Victor et al., 2005, and requires that the subject identify the location of a 16 Â 64-check target within a 64 Â 64-check array. The target is positioned near one of the four sides of the square array (chosen at random), with an 8-check margin. Target and background are distinguished by the texture used to color the checks: one is always the i.i.d. (unbiased) texture with three gray levels; the other is a texture specified by one or two of the coordinates defined in the text. In half of the trials, the target is structured and the background is i.i.d.; in the other half of the trials, the target is i.i.d. and the background is structured. To determine psychophysical sensitivity in a specific direction in the space of image statistics, we proceed as follows Hermundstad et al., 2014;Victor and Conte, 2012;Victor et al., 2013;Victor et al., 2015. We measure subject performance in this 4-alternative forced-choice task across a range of 'texture contrasts', that is, distances from the origin in the direction of interest. Fraction correct, as a function of texture contrast, is fit to a Weibull function, and threshold is taken as the texture contrast corresponding to a fraction correct of 0.625, that is, halfway between chance (0.25) and ceiling (1.0). Typically, 12 different directions in one plane of stimulus space are studied in a randomly interleaved fashion. Each of these 12 directions is sampled at 3 values of texture contrast, chosen in pilot experiments to yield performance between chance and ceiling. These trials are organized into 15 blocks of 288 trials each (a total of 4320 trials), so that each direction is sampled 360 times.

Visual stimulus display

35Stimuli, as described above, were presented on a mean-gray background for 120 ms, followed by a mask consisting of an array of i.i.d. checks, each half the size of the stimulus checks. The display size was 15 Â 15 deg; viewing distance was 103 cm. Each of the 64 Â 64 array stimulus checks consisted of 10 Â 10 hardware pixels, and measured 14 Â 14 min. The display device was an LCD monitor with a refresh rate of 100 Hz, driven by a Cambridge Research ViSaGe system. The monitor was calibrated with a photometer prior to each day of data collection to ensure that the luminance of the gray checks was halfway between that of the black checks (<0.1) and white checks (23 cd/m 2 ).

Psychophysics subjects

36Subjects were normal volunteers (three male, three female), ages 20 to 57, with visual acuities, corrected if necessary, of 20/20 or better. Of the six subjects, MC is an experienced psychophysical observer with thousands of hours of experience; the other subjects (SR, NM, WC, ZA, JWB) had approximately 10 (JWB), 40 (NM, WC, ZA) or 100 (SR) hours of experience at the start of the study, as subjects in related experiments. MC is an author. NM, WC, and ZA were naïve to the purposes of the experiment.

37This work was carried out with the subjects' informed consent, and in accordance with the Code of Ethics of the World Medical Association (Declaration of Helsinki) and the approval of the Institutional Review Board of Weill Cornell.

Psychophysics averaging

38The average thresholds used in the main text were calculated by using the geometric mean of the subject thresholds, after applying a per-subject scaling factor chosen to best align the overall sensitivities of all the subjects; these multipliers ranged from 0.855 to 1.15. Rescaling a single consensus set of thresholds in this fashion accounted for 98.8% of the variance of individual thresholds across subjects. The average error bars were calculated by taking the root-mean-squared of the per-subject error bars in log space (determined from a bootstrap resampling of the Weibull-function fits, as in Victor et al., 2005), and then exponentiating.

Natural image preprocessing

39Images were taken from the UPenn Natural Image Database (Tkacˇik et al., 2011) and preprocessed as shown in Figure 3A (see Materials and methods for details). Starting with a logarithmic encoding of luminance, we downsampled each image by averaging over N Â N blocks of pixels to reduce potential camera sampling artifacts. We then split the images into non-overlapping patches of size R, filtered the patches to remove the average pairwise correlation expected in natural images (van Hateren, 1992), and finally ternarized patches to produce equal numbers of black, gray, and white checks ( Figures 3A, C and D). For most figures shown in the main text, we used N ¼ 2 and R ¼ 32. Each patch was then analyzed in terms of its texture content and mapped to a point in ternary texture space following the procedure described in the main text. Finally, to avoid biases due to blurring artifacts, we fit a two-Gaussian mixture model to the texture distribution and used this to separate in-focus from blurred patches ( Figure 3B; Hermundstad et al., 2014; details in Materials and methods).

Whitening of natural image patches

40To generate the whitening filter that we used to remove average pairwise correlations, we started with the same preprocessing steps as for the texture analysis, up to and including the splitting into non-overlapping patches (first three steps in Figure 3A). We then took the average over all the patches of the power spectrum, which was obtained by taking the magnitude-squared of the 2d Fourier transform. Taking the reciprocal square root of each value in the resulting matrix yielded the Fourier transform of the filtering matrix.

Removal of blurred patches in natural images

41Following the procedure from Hermundstad et al., 2014, we fit a Gaussian mixture model with nonshared covariance matrices to the distribution of natural images in order to identify patches that are out of focus or motion blurred. This assigned each image patch to one of two multivariate Gaussian distributions. To identify which mixture component contained the sharper patches, we chose the component that had the higher median value of a measure of sharpness based on a Laplacian filter. Specifically, each patch was normalized so that its median luminance was set to 1, then convolved with the matrix 0 1 0 1 À4 1 0 1 0 0 @ 1 A . The sharpness of the patch was calculated as the median absolute value over the pixels of the convolution result. This analysis was performed before any of the preprocessing steps, including the transformation to log intensities, and was restricted to the pixels that did not border image edges. There was thus no need to make assumptions regarding pixel values outside images.

Efficient coding calculations

42Threshold predictions from natural image statistics were obtained as in Hermundstad et al., 2014.

43We fit a multivariate Gaussian to the distribution of texture patches after removing the blurry component, and used the inverse of the standard deviation in the texture direction of interest as a prediction for the psychophysical threshold in that direction. The overall scale of the predictions is not fixed by this procedure. We chose the scaling so as to minimize the error between the n measurements x i and the predictions y i , min 1 n P n i¼1 ð log yiÀlog xi i Þ 2 , where i are the measurement uncertainties in log space. This scaling factor was our single fitting parameter.

Calculating mismatch

44In Figure 6 we show several comparisons of two sets of thresholds x i and y i . These are either the set of measured thresholds and the set of natural image predictions for specific preprocessing options; or sets of either measured or predicted thresholds before and after the action of a symmetry transformation. We measure mismatch by the difference between the natural logarithms of the two quantities, log y i À log x i , which is approximately equal to the relative error when the mismatches are not too large (log y i À log

45In panel A of the figure all 311 measured values and the corresponding predictions were used. For panel B, this set was restricted in two ways. First, for we ignored the measurements for which we did not have psychophysics data for the transformed direction. And second, we ignored directions on which the transformation acted trivially (see Appendix 3).

Additional information

46The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication. Additional files

Supplementary files

47. Transparent reporting form

Data availability

48All the code and data necessary to reproduce the results from the manuscript are available at https://github.com/ttesileanu/TextureAnalysis (copy archived at https://github.com/elifesciencespublications/TextureAnalysis).

49The following datasets were generated:

A coordinate system for local image statistics

50This Supplement provides the details for the present parameterization of local image statistics. It generalizes the approach developed in Victor and Conte, 2012 for binary images along the lines indicated in that manuscript's Appendix A, so that it is applicable to an arbitrary number G of gray levels. In the present study, G ¼ 3, but the analysis is equally applicable to any prime value G, including the G ¼ 2 case that has been the focus of previous work (Briguglio et al., 2013;Victor and Conte, 2012;Victor et al., 2017;Victor et al., 2013;Victor et al., 2015). When G is composite, the basic approach remains valid but, as mentioned below, there are some additional considerations.

51We consider the statistics of a 2 Â 2 neighborhood of checks in images with G gray levels. The starting point is an enumeration of the probabilities of each kind of 2 Â 2 block, p

52each A k denotes the gray level of a check, which we denote by an integer from 0 to G À 1. There are G 4 such configurations, but the probabilities are not independent: they must sum to 1, and they must be stationary in space. For example, the probability of 1 Â 2 blocks computed by marginalizing over the lower two checks must equal to the probability of 1 Â 2 blocks computed by marginalizing over the upper two checks. Our main goal is to obtain a coordinate system that removes these linear dependencies. The first step is to construct new coordinates ' s 1 s 2 s 3 s 4 by discrete Fourier transformation with respect to the gray level value in each check. As this is a discrete transform, the arguments s k are also integers from 0 to G À 1. Equivalently, we can use other sets of integers that lead to unique values of the complex exponential; for instance, when G ¼ 3, it is equivalent to use the set f0; þ1; À1g or the set f0; 1; 2g. We have

53The original block probabilities p A 1 A 2 A 3 A 4 can be obtained from the Fourier transform coordinates (Equation (1)) by standard inversion:

54Fourier transform coordinates can be similarly described for any configuration of checks, including subsets of the 2 Â 2 neighborhood.

55A basic property of the Fourier transform coordinates is that setting an argument to zero corresponds to marginalizing over the corresponding check. For example, consider the probabilities of the configurations of the upper 1 Â 2 block of checks, p A 1 A 2 , which are determined by margin-

56over A 3 and A 4 . Their Fourier transform coordinates are given by

57It follows from Equation (1) that

58Thus, the stationarity condition

59Similarly, the stationarity condition for 2 Â 1 blocks is equivalent to

60the condition that the single-check probabilities are equal in all four positions is equivalent to

61and the condition that the sum of all block probabilities is one is equivalent to

62In sum, the stationarity conditions can be stated in terms of the Fourier transform coordinates as follows: if any of the arguments of ' s 1 s 2 s 3 s 4 are zero, then they can be replaced by empty spaces, and the value of ' s 1 s 2 s 3 s 4 must be unchanged by translating the nonzero values within the 2 Â 2 neighborhood. It follows that the Fourier transform coordinates of a stationary distribution are specified by: ' s ð Þ, equal to the common value of the four expressions in Equation (8); ' s 1 s 2 ð Þ, equal to the common value of the two expressions in Equation (6); ' s 1 s 3 , equal to the common value of the two expressions in Equation (7); ' s 1 s 4 and ' s 2 s 3 , defining pairwise correlations of two-check configurations that cannot be translated within the 2 Â 2 neighborhood; ' s 2 s 3 s 4 , ' s 1 s 3 s 4 , ' s 1 s 2 s 4 , and ' s 1 s 2 s 3 , defining three-check correlations, and ' s 1 s 2 s 3 s 4 . In all of these cases, the arguments s k are nonzero. Thus, the total number of parameters, obtained by allowing each of the s k to range from 1 to G À 1, is ðG À 1Þ þ 4ðG À 1Þ 2 þ 4ðG À 1Þ 3 þ ðG À 1Þ 4 ¼ GðG À 1ÞðG 2 þ G À 1Þ; this is 10 for G ¼ 2 and 66 for G ¼ 3.

63The Fourier transform coordinates incorporate the stationarity constraints, and they also have the convenient property that the origin of the space, that is, the image whose coordinates are all zero, is an image with identically-distributed gray levels in which every block probability p A 1 A 2 A 3 A 4 is equal to 1=G 4 . The Fourier transform coordinates have another convenient property (using the approach of Appendix B of Victor and Conte, 2012): near the origin of the space, entropy is asymptotically proportional to the square of the Euclidean distance from the origin. This means that the Fourier transform coordinates are 'calibrated': for an ideal observer, small deviations in any direction from the origin are equally discriminable. However, since for G>2, the Fourier transform coordinates are complex numbers, an arbitrary choice of them will typically not correspond to a realizable set of block probabilities, since the block probabilities must be all real and in the range [0, 1].

64To address this problem, we note a relationship among the Fourier transform coordinates, which, when G is prime, partitions the set of independent coordinates into disjoint subsets of size G À 1. A further linear transformation within this set yields real-valued coordinates, which correspond to the coordinate system used here (for G ¼ 3) and in previous studies (for G ¼ 2).

65To derive these real-valued coordinates, we use modular arithmetic. When G is prime, for every integer q 2 f1; . . . ; G À 1g there is a unique integer r 2 f1; . . . ; G À 1g for which qr ¼ 1 ðmod GÞ, which

66can be obtained from S ¼ s 1 s 2 s 3 s 4 by S 0 ¼ qS, then it follows that S can be obtained from S 0 by S ¼ q À1 S 0 , that is, the relationship is reciprocal. It also follows that every Fourier transform coordinate S 0 is some scalar multiple of a 'monic' Fourier transform coordinate, that is, one whose first nonzero element is 1. The reason is that we can take the multiplier q to be the first nonzero coordinate of S 0 and write S ¼ q À1 S 0 . Next, we note that all of the Fourier transform coordinates whose arguments are of the form qS have an exponential in Equation (1)

67that is, s s 1 s 2 s 3 s 4 ðhÞ is the sum of the probabilities of all blocks for which

68The monic s's, that is, the s's whose first nonzero s k is equal to 1, are our desired real-valued coordinates. For each such s, the coordinates are a vector of the G numbers s s 1 s 2 s 3 s 4 ðhÞ, for h ¼ f0; . . . ; G À 1g. As Equation (10) shows, s s 1 s 2 s 3 s 4 ðhÞ is the probability that a linear combination of gray levels whose coefficients are specified by the s k will result in a value of h. They are thus all in the range [0, 1], and their sum is 1. For G ¼ 2, the pair sð0Þ and sð1Þ subject to sð0Þ þ sð1Þ ¼ 1 is a one-dimensional domain, parametrized by sð1Þ À sð0Þ; other than a change in sign, these are the coordinates used in Briguglio et al., 2013;Victor and Conte, 2012;Victor et al., 2017;Victor et al., 2013;Victor et al., 2015. For G ¼ 3, as is the case here, the triplet sð0Þ, sð1Þ, and sð2Þ is subject to sð0Þ þ sð1Þ þ sð2Þ ¼ 1 and is naturally plotted in a triangular 'alloy plot' with centroid at (1/3, 1/3, 1/3), the image with independent, identically-distributed gray levels. Note that 2 ¼ À1 ðmod 3Þ, yielding the notation in the main text where the coefficients s i took values 0, +1, and À1 instead of 0, 1, and 2. It remains to show that all of the degrees of freedom in the Fourier Transform coordinates ' are captured by the s's. Since the Fourier transform coordinates are partitioned into disjoint subsets, it suffices to examine the transformation between each of these subsets (i.e., between the Fourier transform coordinates that are scalar multiples of a particular monic S, and the corresponding s). These subsets correspond to the simple planes introduced in the main text. It follows from Equations (1) and (10) that, for q 6 ¼ 0 ðmod GÞ, '

69qs 1 qs 2 qs 3 qs 4 ¼ X GÀ1 h¼0 s s 1 s 2 s 3 s 4 ðhÞe Àð 2pi G Þqh :

70Via discrete Fourier inversion, this equation implies s s 1 s 2

71qs 1 qs 2 qs 3 qs 4 e ð 2pi G Þqh :

72Note that the q ¼ 0 term of this equation is given by Equation (9), the normalization condition. Thus,

73qs 1 qs 2 qs 3 qs 4 e ð 2pi G Þqh :

74Equations (11) and (13) display the bidirectional transformation between the G-vector s and the G À 1 Fourier transform coordinates qS. Since this transformation is a discrete Fourier transform (and hence, a multiple of a unitary transformation), it preserves the property that entropy is a proportional to the square of the Euclidean distance from the origin.

75When G is not prime, the decomposition of Fourier transform coordinates into disjoint sets indexed by monic coordinates is no longer possible. For example, with G ¼ 4, both S 0 ¼ 1 0 0 0 and S 00 ¼ 1 2 2 0 are monic but the sets qS 0 and qS 00 have a non-empty intersection:

76This necessitates a more elaborate version of the above approach, with separate strata for each factor of G. The disjoint sets of Fourier transform coordinates are no longer all of the same size, and the transformations (Equation 11) and (Equation 13) have a more elaborate form, although the overall parameter count is the same. As this case is not relevant to the present experiments, we do not discuss it further.

Texture synthesis

77Creation of the stimuli used here requires synthesis of images whose statistics are specified by one or two of the coordinates described above. We adopted the strategy of Victor and Conte, 2012, Table 2, for this purpose. (i) Coordinates that are of lower order than the specified coordinates are set to zero. The rationale is that sensitivity to lower-order coordinates is generally greater than sensitivity to higher-order coordinates, so this allows detection to be driven by the higher-order coordinates. (ii) Coordinates that are of higher order than the specified coordinates are chosen to achieve an image ensemble whose entropy is maximized. The rationale is that this sets the higher-order coordinates at the value that is implied by the lower-order coordinates, without any further spatial structure. (iii) Coordinates that are of the same order as the specified coordinates are chosen to satisfy the 'Pickard rules' (Pickard, 1980), as this allows for stimulus generation via a Markov process in the plane, and hence, maximizes entropy given the constraints of the specified textures. (iv) In a few cases (all involving third-order statistics), the specified parameters are inconsistent with the Pickard rules, and in these cases, specific choices of texture parameters are made to allow for convenient texture synthesis. In all cases in which the unspecified texture parameters are assigned a nonzero value, this nonzero value decreases to zero rapidly (at least quadratically) near the origin. Thus, the construction guarantees that the surface corresponding to any two specified texture coordinates is tangent to their coordinate plane at the origin. In general, the above strategy also applies for G ! 3. We focus on specifying pairs of secondorder coordinates, the stimuli used in this study. When the specified coordinates share the same linear combination (e.g., b 12 ½0 and b 12 ½1) or when the two specified coordinates involve different linear combinations but the same checks (e.g., b 1 1 ½0 and b 1 2 ½0), images may be synthesized by a Markov process that operates in the direction of the coupled checks. For example, if b 1s2 is specified, a Markov process is used to create each row. The Markov generation procedure guarantees that the image is a sample from a maximum-entropy ensemble consistent with the specified coordinates. It implicitly defines the other texture coordinates in a manner consistent with the above policies established for G ¼ 2.

78For combinations of coordinates involving non-identical pairs of checks (e.g., b 1s2 and b 1 s3 ), a new construction is needed in some cases. The basic issue is that the Markov process that generates the correlations along rows may be inconsistent with the Markov process that generates the columns. To see how this can happen, consider b 11 ½0 ¼ 1 and b 1 2 ½1 ¼ 1. Taking into account stationarity,

79The inconsistency arises because the first set of equalities implies that A 2 ¼ ÀA 1 and A 4 ¼ ÀA 3 , so A 1 þ 2A 3 ¼ ÀðA 2 þ 2A 4 Þ, which is inconsistent with the second set of equalities. The inconsistency can also be seen from an algebraic viewpoint. The horizontal correlation b 11 corresponds to a left-toright Markov process that biases check pairs whose gray levels satisfy a multiplicative recurrence, x nþ1 ¼ Àx n ¼ 2x n . The vertical correlation b 1 2 corresponds to a top-to-bottom Markov process that biases check pairs whose gray levels satisfy an additive recurrence, x nþ1 ¼ x n À 1. The inconsistency arises because these transformations do not commute.

80To handle these cases, we use the following construction. It produces samples from an image ensemble that match the specified second-order statistics, and for which all other second-order statistics, as well as first-and third-order statistics, are zero. As a first step, two textures are created: a Markov process along rows, providing for correlations of the form b 1s2 , and a Markov process along columns, providing for correlations of the form b 1 s3 . Then, taking inspiration from the 'dead leaves' generative model of images (Zylberberg et al., 2012), we randomly choose rows from the first texture and columns from the second texture and sequentially place them on the plane, occluding whatever has been placed earlier. Eventually, this 'falling sticks' construction covers the plane, and this completes the next stage of the construction.

81The resulting texture has the same kinds of correlations as the two starting textures, but the correlations are diluted, because a 'stick' in one direction may be overlaid by an orthogonal stick placed at a later time. To calculate this dilution, we consider the three 'sticks' that could contribute to a given 1 Â 2 block of the final texture: one horizontal stick and two vertical sticks. Since they are dropped in a random order, there is a 1/3 chance that any of them is the one that is placed last. If the last stick is horizontal (which happens with probability 1/3), then the two checks of the 1 Â 2 block reflect the correlation structure of the underlying texture. If the last stick is vertical (which happens with probability 2/3), then these two checks are uncorrelated, since they are derived from independent Markov processes. That is,

82Thus, to obtain a falling-sticks texture with a given set of correlations, one must choose

83Expressed in terms of distance from randomness, this demonstrates the threefold dilution:

84This limits the maximum correlation strength of the final texture, but it suffices for the present purposes since the achievable correlation strengths are generally far above perceptual threshold. A similar analysis applies to the vertical pairwise correlations.

85Note that first-order correlations are zero since the two starting textures had an equal number of checks of all gray levels, and third-order correlations within a 2 Â 2 block are zero because they always involve checks that originated in independent Markov processes. Some fourth-order correlations are not zero, but their deviations from zero are small: this is because they arise from 2 Â 2 neighborhoods in which the two last 'sticks' are both horizontal (1/6 of the time) or both vertical (1/6 of the time), and these numerical factors multiply a product of two terms involving s component À 1=G.

86Finally, a Metropolis mixing step (Metropolis et al., 1953) is applied, to maximize entropy without changing the 2 Â 2 block probabilities (see Victor and Conte, 2012 for details). This eliminates any spurious long-range correlations that may have arisen from the 'sticks' of the underlying textures.

Symmetry tests

87In order to test to what extent the natural image predictions or the psychophysical measurements are invariant under symmetry transformations, we need to understand the effect of such transformations on texture coordinates ss1s2 s3s4 . Two observations are key. First, every geometric transformation we are interested in-reflections and rotations by multiples of 90˚-correspond to permutations of the check locations A 1 , A 2 , A 3 , A 4 . For instance, a horizontal flip exchanges A 1 with A 2 and A 3 with A 4 . Second, for the particular case of ternary textures, all the permutations of the three gray levels correspond to affine transformations modulo 3. Specifically, given a check value A, consider the transformation A ! xA þ y ðmod 3Þ. ðx; yÞ ¼ ð1; 0Þ is the identity; ðx; yÞ ¼ ð1; 1Þ and ðx; yÞ ¼ ð1; 2Þ are the nontrivial cyclic permutations; and x ¼ 2, y 2 f0; 1; 2g yields the three pairwise exchanges. We exclude x ¼ 0 since this would correspond to removing all luminance variations in the image patches.

88As we now show, the net result of a geometric transformation and a color permutation always corresponds to a permutation of the texture coordinates. Consider a general permutation À1 on the four check locations, A k ! A À1 ðkÞ (it will become clear below why we use the inverse here), and a general affine transformation on the gray levels, A ! xA þ y ðmod GÞ, with x 6 ¼ 0. The equation appearing in the definition of the ss1s2 s3s4 ðhÞ direction (Equation 10) becomes:

89Note that here, h is a label identifying the coordinate direction, and therefore is not transformed by the affine transformation applied to the luminance values A k . Since x 6 ¼ 0, we find

90Thus, the effect of the transformation was to convert the original texture direction into a different one. To properly identify the transformed direction, we need to put it in monic form; that is, we need to ensure that the first non-zero coefficient is set to 1. Suppose that this coefficient appears at position k 0 , and is equal to s ðk0Þ . We can write:

91wheres k ¼ s À1 ðk0Þ s ðkÞ ;

92and therefores k0 ¼ 1. Thus the direction ss1s2 s3s4 ðhÞ gets mapped to ss 1s2

93Thus, all transformations correspond to relabeling of the texture coordinates. This approach holds for any prime G, but for G > 3 the affine transformations will no longer be sufficient to model all gray level permutations.

94To find the effect of the geometric and gray-level transformations on the theoretical predictions, we apply this reshuffling to the columns of the N patches  99 matrix giving the distribution of natural image patches in texture space (99 here corresponds to the three probability values in each of the 33 simple texture planes). We then recalculate the threshold predictions and check how much these changed. This is equivalent to first performing the geometric and gray level transformations directly on each image and then rerunning the whole analysis, but is substantially more efficient.

95For the psychophysics, we apply the transformation to each direction in texture space for which we have thresholds. In some cases, the transformed direction is not contained in the experimental dataset; we cannot check for symmetry when this happens. We thus only compare the original and transformed thresholds in cases where the transformed direction maps onto one of the directions in the original dataset.

96Note that some symmetry transformations leave certain directions in texture space invariant. For instance, a left-right flip leaves the entire b 11 plane invariant since it only flips the order of the terms in the sum A 1 þ A 2 . When this happens, the thresholds obtained in those directions are unaffected by the transformation and thus the fact that they do not change cannot be used as evidence that the symmetry is obeyed. For this reason, all invariant directions are ignored when looking at the effect of a transformation. This explains the variability in the number of points in the different plots from Figure 6B.

Statistical tests

97We performed several statistical tests to assess the quality of the match that we found between measurements and natural image predictions. For the permutation tests below, we used a scalar measure of the discrepancy that is given by median absolute error calculated in log space, after accounting for an overall scaling factor between psychophysical measurements and natural image predictions. More precisely, suppose we have n measurements x i and n predictions y i . We define the mean-centered log thresholdsx

98where h:i represents the mean over all measurement directions. Then the mismatch between x and y is given by

99Note that the difference between the natural logarithms of two quantities that are relatively close to each other, a 1 » a 2 » a ða 1 þ a 2 Þ=2, is approximately equal to the relative error between the two quantities,

100where Da ¼ a 1 À a 2 , and the big-O notation shows that the approximation error scales as the square of the absolute prediction error. In fact, the log error is even better approximated by a symmetric form of the relative error, in which the denominator is replaced by the mean between measurement and prediction:

101We see that in this case the approximation error scales with the cubed absolute prediction error. In our case, prediction errors are low enough that the ratio between the log error and the symmetric relative error Da= a is between 1 and 1.034 for all 311 thresholds.

1021. Permutation test over all thresholds. This test estimates how likely it is that the observed value of the difference D could have been obtained by chance in a model in which all the measured thresholds x i are drawn independently from a common random distribution. We generated 10,000 random permutations of the dataset x i , x i (each of which contain 311 data points in 4 single and 22 mixed planes), and for each of these calculated the difference D between the observed values and the predictions y i . We then calculated the fraction of samples for which the difference was smaller than the observed one, D D, which is an estimate of the p-value. 2. Permutation test preserving ellipticity. The naïve permutation test above generates independent thresholds even for directions that are nearby within a given texture plane. To build a more stringent test where the threshold contours are kept close to elliptical, we used a different sampling procedure where permutations were applied only within texture groups, and were forced to be cyclic. In this way, thresholds obtained for adjacent texture directions were kept adjacent to each other, preserving the correlations implied by the elliptical contours. More specifically, assume that we index the n groups texture groups for which we have data by s, and let x s be the subset of elements of x corresponding to group s. Also let R be the shift operator that circularly permutes the elements in a vector to the right, such that the first element becomes the second, the second becomes the third and so on, with the last element being moved to the first position. For each resampling of the measurements x, we sampled n groups non-negative integers k s and performed the transformations x s ! R ks x s . The largest value for k s was chosen to be equal to the number of elements in x s . For each of the 10,000 samples obtained in this way we calculated the D statistic and proceeded as above to get a pvalue. 3. Exponent estimation. The predictions from natural image statistics were obtained by taking the inverse of the standard deviation of the natural texture distribution in each direction. This differs by a square root from the efficient-coding prediction for Gaussian inputs and linear gain (Hermundstad et al., 2014). This is not unreasonable since natural scene statistics are not exactly Gaussian, and we do not expect brain processing to be precisely linear. However, to more fully investigate possible non-linearities, we considered general power-law transformations of the predicted thresholds, and used the data to estimate the exponent h. Specifically, given the mean-centered log predictionsŷ i , we asked whether hŷ i is a better approximation to the measurementsx i (this implies that y h i provides a better prediction for the x i values, which is why we refer to h as an exponent). We can write down the model

103where i are errors drawn from a standard normal distribution, i~N ð0; 1Þ. This model interpolates between the null model above that assumes all thresholds are drawn from the same distribution (when the exponent h ¼ 0), and a model in which they are given by the values predicted from natural images, plus noise (with exponent h ¼ 1). To find h and s, we used a Bayesian approach. The log posterior distribution for the parameters h and s given the measured datax i is:

104where n is the number of measurements, and we assumed that h and s are independent in our prior distribution. We then used slice sampling (taking advantage of the slicesample function in Matlab, RRID:SCR_001622) to draw from the posterior distribution. We used 10,000 samples in total, and we discarded the first 5000 as a burn-in period. We used a flat prior for h and log s, but checked that the results are similar when using other priors.

105The results from these statistical tests are summarized in Appendix 4-table 1 for the various choices of downsampling factor N and patch size R, and they show that the match we see holds across the explored range of N and R. Interestingly, the 95% credible intervals obtained for the exponent h in the exponent-estimation model do not include one for most choices of preprocessing parameters, suggesting that an additional nonlinearity might be at play here.

Systematic trends in the prediction errors

106Overall, the natural-image predictions are in good agreement with the measured psychophysical thresholds. The discrepancies, when they occur, are not entirely random. These trends are shown in Figure 1. As in the main text, we focus on second-order correlations.

C D

107Appendix 5-figure 1. Distribution of prediction errors across specific subsets of thresholds. Each plot shows kernel-density estimates of the distribution of log prediction errors (defined as difference between log prediction and log measurement) after splitting the data into the subgroups indicated at the top right of each plot. Individual data points are shown on the abscissa. The median log prediction error is shown for each group in the corresponding color. (A) Predictions tend to underestimate thresholds in simple planes and overestimate thresholds in mixed planes (p ¼ 0:0014, Kolmogorov-Smirnov (K-S) test). As a reminder, the natural-image analysis predicts thresholds only up to a multiplicative factor, which is chosen in a way that makes the mean log prediction error over all second-order thresholds be zero. (B) Predictions tend to have greater error in planes defined by modular sums (such as the simple plane b þþ or the mixed plane ðb þþ ½0; bþ þ ½1Þ) than in planes defined by modular differences (such as the simple plane b þÀ or the mixed plane ðb þÀ ½1; bþ À ½0Þ) Simple-plane thresholds are more often underestimated than mixedplane thresholds

108As shown in Figure 1A, prediction errors in simple planes tend to be negative, while prediction errors in mixed planes tend to be slightly positive (medians À0.090 and +0.008; p ¼ 0:0014, Kolmogorov-Smirnov (K-S) test). Note that on balance, prediction errors will be close to zero, since we applied an overall scale factor to minimize the overall difference between predictions from natural images and psychophysical data. Thus, this finding means that perceptual performance when more than one kind of correlation is present is (slightly) disproportionately better than perceptual performance when only one kind of correlation is present. This suggests that the brain uses more resources to analyze mixed-plane correlations than our efficient-coding model would predict, or that processing of multiple correlations is in some sense synergistic.

Sum directions tend to have higher errors than difference directions

109Second-order correlations in the texture space employed here are defined using either sums or differences (modulo 3) of discretized luminance values. The wrap-around due to the modular arithmetic has different effects on these two kinds of correlations. Specifically, correlations due to modular sums imply a tendency for adjacent checks of a specific gray level to match (see main text Figure 1C), while correlations due to modular differences imply a tendency for checks to match their neighbor independent of gray level, or, for mini-gradients (black to gray to white) to be present (see main text Figure 1D). To test whether this distinction influenced prediction error, we split the data into planes (either simple or mixed) that use only modular sums, and planes (simple or mixed) that use only modular differences. Mixed planes such as ðb þþ ½0; b þÀ ½0Þ that use both sums and differences were excluded from this analysis. Figure 1B shows that while there is no significant difference between the median log errors in sum versus difference directions, the full distributions are different (K-S p-value is p ¼ 1:8 Á 10 À4 ), largely due to the fact that the sum directions exhibit significantly larger absolute errors compared to the difference ones (median absolute log error 0.19 vs. 0.07, respectively). We suggest that this reflects the greater dependence of the sum-correlations on the gray-level discretization.

On-axis and off-axis prediction errors are roughly matched

110We next examined whether predictions were more or less accurate on the coordinate axes, by comparing prediction errors for on-axis correlations (i.e., correlations described by one of the p i ¼ 1 corners of the probability simplex (see Figure 1); or one of the two axes in mixed planes [see Figure 2]) with all other measurements (off-axis). The distributions of prediction errors for on-axis vs. off-axis thresholds do not exhibit any noticeable differences (see Figure 1C).

Different kinds of mixed planes have slightly different error magnitudes

111Finally, we noted that in the mixed planes, some correlations involved only two checks-and thus were one-dimensional, while others involved overlapping dyads in orthogonal directions and thus were two-dimensional. Specifically, in a mixed plane such as ðb þþ ½0; b þÀ ½0Þ, only a horizontally-oriented pair of checks is involved in both types of correlations, meaning that nearby rows in such textures are independent. In contrast, in the mixed plane ðb þþ ½1; bþ À ½0Þ, a horizontal pair of checks is used in the first dimension and a vertical one in the second, leading to correlations along both dimensions. This distinction was not associated with over-or under-prediction of thresholds (KS test p ¼ 0:25; Wilcoxon rank-sum test p ¼ 0:96, medians 0.042 and 0.004, respectively), but the distribution of errors was wider for the 1-D correlations than for the 2-D correlations (0.19 vs. 0.12, p ¼ 0:01, K-S test on absolute log errors).

112Large thresholds are underestimated In directions where human subjects showed low sensitivity to textures, leading to large measured thresholds, the natural-image predictions were consistently lower than the measurements. This suggests that adding a nonlinearity to the model could improve the fit to the data. Indeed, as shown in Appendix 4, when fitting a model of the form threshold / ðstandard deviationÞ Àh , an exponent slightly smaller than one is most consistent with the data (95% credible interval for h is ½0:81; 0:98).

Log error

113Appendix 6-figure 1. Robustness to changing ternarization thresholds. We varied the fraction of gray checks in the ternarized natural image patches, while keeping the fractions of black and white checks equal to each other. For each value of the fraction of gray checks, we recalculated the threshold predictions and compared them to the psychophysical measurements. Each violin in the figure shows a kernel density estimate for the distribution of prediction errors (in log space) for the 311 second-order single-and mixed-plane threshold measurements available in the psychophysics. We see that the precise thresholds used for ternarization do not significantly affect the match between natural image predictions and psychophysics. The lowest error is close to the value 1/3 which corresponds to equal fractions of black, gray, and white checks, and is the one used in the main text. The corresponding violin is highlighted in blue in the figure.

Changing the image database

114The accuracy of the natural image threshold predictions is also good when we use different image databases. Figure 2 shows the match between predictions and measurements in each plane when using the van Hateren database (van Hateren and van der Schaaf, 1998) with a downsampling ratio N ¼ 2 and patch size R ¼ 32.

Subject dependence

115As mentioned in the main text, the psychophysical thresholds show remarkable consistency across subjects, with most differences attributable to an overall scaling factor. The results are shown in Figure 3. Appendix 6-figure 3. Psychophysical thresholds in the second-order planes shown for different subjects. Depending on the plane, measurements were made in 2-5 subjects in each texture direction. The notations are as in the main text ( Figure 5).

116The differences between different subjects were more pronounced in higher-order planes (Figure 4). Note that the predicted thresholds (shown as blue dots in the figure) are still not far from the measurements; in particular, the predictions reflect the fact that the thresholds in the higher-order planes are generally high.

참고문헌 42건

  1. Natural signal statistics and sensory gain control Nature Neuroscience · Nature Portfolio · 2001 10.1038/90526
  2. A Simple Coding Procedure Enhances a Neuron's Information Capacity Zeitschrift für Naturforschung C · De Gruyter · 1981 10.1515/znc-1981-9-1040
  3. A perceptual space of local image statistics Vision Research · Elsevier BV · 2015 10.1016/j.visres.2015.05.018
  4. Dead leaves and the dirty ground: Low-level image statistics in transmissive and occlusive imaging environments Physical Review E · American Physical Society · 2012 10.1103/physreve.86.066112
  5. Design of a Trichromatic Cone Array PLoS Computational Biology · Public Library of Science · 2010 10.1371/journal.pcbi.1000677
  6. Design of a Neuronal Array Journal of Neuroscience · Society for Neuroscience · 2008 10.1523/jneurosci.5259-07.2008
  7. Local statistics in natural scenes predict the saliency of synthetic textures Proceedings of the National Academy of Sciences · National Academy of Sciences · 2010 10.1073/pnas.0914916107
  8. Temporal Encoding of Spatial Information during Active Visual Fixation Current Biology · Elsevier BV · 2012 10.1016/j.cub.2012.01.050
  9. Variance predicts salience in central sensory processing eLife · eLife Sciences Publications Ltd · 2014 10.7554/elife.03722
  10. Efficient coding of natural sounds Nature Neuroscience · Nature Portfolio · 2002 10.1038/nn831
  11. A visual mechanism tuned to black Vision Research · Elsevier BV · 2004 10.1016/j.visres.2004.07.019
  12. Perception of second- and third-order orientation signals and their interactions Journal of Vision · Association for Research in Vision and Ophthalmology · 2013 10.1167/13.4.21
  13. Sparse Codes for Speech Predict Spectrotemporal Receptive Fields in the Inferior Colliculus PLoS Computational Biology · Public Library of Science · 2012 10.1371/journal.pcbi.1002594
  14. The unsteady eye: an information-processing stage, not a bug Trends in Neurosciences · Elsevier BV · 2015 10.1016/j.tins.2015.01.005
  15. Equation of State Calculations by Fast Computing Machines The Journal of Chemical Physics · American Institute of Physics · 1953 10.1063/1.1699114
  16. Sparse Coding and Decorrelation in Primary Visual Cortex During Natural Vision Science · American Association for the Advancement of Science · 2000 10.1126/science.287.5456.1273
  17. Characterization of Minimum Error Linear Coding with Sensory and Neural Noise Neural Computation · The MIT Press · 2011 10.1162/neco_a_00181
  18. Natural Images from the Birthplace of the Human Eye PLoS ONE · Public Library of Science · 2011 10.1371/journal.pone.0020409
  19. Theoretical predictions of spatiotemporal receptive fields of fly LMCs, and experimental validation Journal of Comparative Physiology A · Springer Science+Business Media · 1992 10.1007/bf00188924
  20. Independent component filters of natural images compared with simple cells in primary visual cortex Proceedings of the Royal Society B Biological Sciences · Royal Society · 1998 10.1098/rspb.1998.0303
  21. Efficiency and ambiguity in an adaptive neural code Nature · Nature Portfolio · 2001 10.1038/35090500
  22. Efficient auditory coding Nature · Nature Portfolio · 2006 10.1038/nature04485
  23. The “independent components” of natural scenes are edge filters Vision Research · Elsevier BV · 1997 10.1016/s0042-6989(97)00121-1
  24. Asymmetries in ON and OFF visual pathways of humans revealed using <i>contrast-evoked</i> cortical potentials Visual Neuroscience · Cambridge University Press · 1988 10.1017/s0952523800001085
  25. Local image statistics: maximum-entropy constructions and perceptual salience Journal of the Optical Society of America A · Optica Publishing Group · 2012 10.1364/josaa.29.001313
  26. Interaction of luminance and higher-order statistics in texture discrimination Vision Research · Elsevier BV · 2004 10.1016/j.visres.2004.08.013
  27. Emergence of simple-cell receptive field properties by learning a sparse code for natural images Nature · Nature Portfolio · 1996 10.1038/381607a0
  28. Neuronal and Perceptual Differences in the Temporal Processing of Darks and Lights Neuron · Cell Press · 2014 10.1016/j.neuron.2014.02.020
  29. Towards a Theory of Early Visual Processing Neural Computation · The MIT Press · 1990 10.1162/neco.1990.2.3.308
  30. Neuronal nonlinearity explains greater visual spatial resolution for darks than lights Proceedings of the National Academy of Sciences · National Academy of Sciences · 2014 10.1073/pnas.1310442111
  31. Retina is structured to process an excess of darkness in natural scenes Proceedings of the National Academy of Sciences · National Academy of Sciences · 2010 10.1073/pnas.1005846107
  32. On and off domains of geniculate afferents in cat primary visual cortex Nature Neuroscience · Nature Portfolio · 2007 10.1038/nn2029
  33. Predictable irregularities in retinal receptive fields Proceedings of the National Academy of Sciences · National Academy of Sciences · 2009 10.1073/pnas.0908926106
  34. A principle of economy predicts the functional architecture of grid cells eLife · eLife Sciences Publications Ltd · 2015 10.7554/elife.08362
  35. Transformation of Stimulus Correlations by the Retina PLoS Computational Biology · Public Library of Science · 2013 10.1371/journal.pcbi.1003344
  36. Unilateral Markov fields Advances in Applied Probability · Cambridge University Press · 1980 10.2307/1426425
  37. Two representations of a high-dimensional perceptual space Vision Research · Elsevier BV · 2017 10.1016/j.visres.2017.05.003
  38. The complexity dividend: when sophisticated inference matters bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2019 10.1101/563346
  39. Adaptation of olfactory receptor abundances for efficient coding eLife · eLife Sciences Publications Ltd · 2019 10.7554/elife.39279
  40. Efficient coding of natural scene statistics predicts discrimination thresholds for grayscale textures eLife · eLife Sciences Publications Ltd · 2020 10.7554/elife.54347
  41. Perceptual salience of fourth-order visual textures and natural scene statistics Journal of Vision · Association for Research in Vision and Ophthalmology · 2013 10.1167/13.9.1234
  42. Principles of Neural Design The MIT Press eBooks · The MIT Press · 2015 10.7551/mitpress/9780262028707.001.0001