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

Unsupervised learning predicts human perception and misperception of gloss

간접 관련 모빌리티 소재 · (3) 자동차 인테리어 소재 (2) 샤무드(인공피혁)(11) 배리어 필름

기본 정보

저자
  1. Katherine R. Storrs — Department of Experimental Psychology, Justus Liebig University Giessen, Giessen, Germany. katherine.storrs@gmail.com|||Department of Experimental Psychology, Justus Liebig University Giessen, Giessen, Germany
  2. Barton L. Anderson — School of Psychology, University of Sydney, Sydney, Australia
  3. Roland W. Fleming — Centre for Mind, Brain and Behaviour (CMBB), University of Marburg and Justus Liebig University Giessen, Giessen, Germany|||Department of Experimental Psychology, Justus Liebig University Giessen, Giessen, Germany
DOI
10.1038/s41562-021-01097-6
저널
Nature Human Behaviour
발행년도
2021
발행기관
Nature Portfolio
피인용수
81
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41562-021-01097-6
토픽
Color Science and Applications
OpenAlex ID
W3157521173

평가 내용

관련도
간접 관련
사업분야
모빌리티 소재 · (3) 자동차 인테리어 소재
부 분야
(2) 샤무드(인공피혁), (11) 배리어 필름
R&D 측면
분석·모델링
확신도
0.70
근거 용어
surface glossiness, specular reflectance, unsupervised generative neural networks, visual perception, material, shape and lighting
판단 근거
본 논문은 인간의 광택(gloss) 인지 메커니즘을 비지도 학습 신경망으로 모델링하는 심리학 및 컴퓨터 비전 연구입니다. 직접적인 소재 개발은 아니나, 자동차 인테리어(3)나 인공피혁(2) 등 표면 질감이 중요한 제품의 시각적 품질 평가 및 광택 제어 알고리즘 개발에 응용될 수 있습니다.
R&D 활용 포인트
자동차 내장재나 인공피혁의 표면 광택(gloss) 및 질감을 인간의 시각적 인지 기준에 맞춰 정량적으로 평가하거나, AI 기반의 외관 품질 검사 모델을 구축하는 데 활용 가능합니다.
평가 입력
본문 122,223자 중 30,032자 발췌

초록

초록이 없습니다.

본문 122,223자

본문 펼치기
#### Articles https://doi.org/10.1038/s41562-021-01097-6 ## Unsupervised learning predicts human perception and misperception of gloss [Katherine R. Storrs](http://orcid.org/0000-0001-9573-8654) <sup>1</sup> <sup>✉</sup> , Barton L. Anderson <sup>2</sup> [and Roland W. Fleming](http://orcid.org/0000-0001-5033-5069) <sup>1,3</sup> Reflectance, lighting and geometry combine in complex ways to create images. How do we disentangle these to perceive individual properties, such as surface glossiness? We suggest that brains disentangle properties by learning to model statistical structure in proximal images. To test this hypothesis, we trained unsupervised generative neural networks on renderings of glossy surfaces and compared their representations with human gloss judgements. The networks spontaneously cluster images according to distal properties such as reflectance and illumination, despite receiving no explicit information about these properties. Intriguingly, the resulting representations also predict the specific patterns of ‘successes’ and ‘errors’ in human perception. Linearly decoding specular reflectance from the model’s internal code predicts human gloss perception better than ground truth, supervised networks or control models, and it predicts, on an image-by-image basis, illusions of gloss perception caused by interactions between material, shape and lighting. Unsupervised learning may underlie many perceptual dimensions in vision and beyond. photograph of a glass of water might consist of large bright patches, sparkling dots and low-contrast blurs—yet we immediately see these as reflections on the water’s surface, # Abubbles within and smudges on the glass. Identifying the distal physical causes of proximal image features is widely considered to be the central challenge of vision <sup>1–7</sup> . Yet how we infer the outside world from ambiguous sensory data remains mysterious. Somehow, the visual system infers the combination of distal scene variables that most plausibly explains the proximal sensory input <sup>4,8–11</sup> . But a major unsolved question is how the candidate explanations of proximal inputs came to be known in the first place. Our visual systems did not—and do not—have access to ground truth information about the number or kinds of distal sources of image structure that operate in the world. Any knowledge about the world must have been acquired from exposure to proximal stimuli over evolutionary and/or developmental timescales <sup>12–14</sup> . Here we explore the intriguing possibility that visual systems might be able to discover the operation of distal scene variables by learning statistical regularities in proximal images rather than by learning an explicit mapping between proximal cues and known distal causes. Specifically, we show that by learning to efficiently compress and spatially predict images of surfaces, an unsupervised generative deep neural network (DNN) not only spontaneously clusters inputs by distal factors such as material and illumination but also strikingly reproduces many characteristic ‘misperceptions’ of human observers. Two general principles motivate our approach. The first is that variability in proximal sensory stimuli is caused by variations in a lower-dimensional set of environmental factors (such as shape, reflectance and illumination). This implies that the variation between images can be captured in a more compact or simple way when represented in terms of its underlying causes rather than, say, in terms of pixels <sup>15–17</sup> . A machine learning model encouraged to discover a compact representation of images might therefore converge on the finite sources that generate image variability. But identifying and disentangling these distal sources is possible only if a second principle holds: different distal sources must generate statistically distinguishable effects in the proximal input <sup>18</sup> . This seems intuitively true—for example, changes in illumination generate different kinds or patterns of variability in images than changes in surface material do. On the basis of these two principles, we reasoned that it should be possible for a sufficiently powerful statistical learning model to discover the existence of distal variables without a priori knowledge of either the number or kinds of distal variables that exist in the world, solely on the basis of the variability they generate in images. The idea that our perceptual systems exploit statistical regularities to derive information about the world has a long and venerable history in both psychology and neuroscience <sup>19–21</sup> . For example, neural response properties in early visual cortex are well predicted by models trained to generate sparse codes for natural image patches <sup>19,21–24</sup> . Unfortunately, such ‘efficient coding’ approaches have not yet scaled beyond the initial encoding of images. One of the main motivations for the present work was to determine whether such ideas could provide leverage into mid-level scene understanding—that is, inferring the distal physical causes of sense data. Even if different distal factors have different statistical effects on images, and a sufficiently powerful unsupervised neural network is able to learn these effects, its success in disentangling different factors is unlikely to be perfect—that is, the network would sometimes misattribute the distal causes responsible for the data. However, we regard such misattributions as a potential strength. There are well-documented examples where the human visual system systematically misattributes image structure to the wrong distal source—failures of ‘perceptual constancy’ <sup>1,5,25–33</sup> . We were interested in whether the pattern of successful and unsuccessful attributions made by human observers would also be exhibited by networks that failed to fully disentangle distal scene variables. The goal was not to understand visual processes as an estimation of ground truth but rather to understand why our visual systems extract what they do about the world in the absence of access to ground truth knowledge. 1Department of Experimental Psychology, Justus Liebig University Giessen, Giessen, Germany. 2School of Psychology, University of Sydney, Sydney, Australia. <sup>3</sup> Centre for Mind, Brain and Behaviour (CMBB), University of Marburg and Justus Liebig University Giessen, Giessen, Germany. ✉ [e-mail: katherine.storrs@gmail.com](mailto:katherine.storrs@gmail.com) One of the most striking patterns of successes and failures in estimating distal scene variables occurs in the perception of surface gloss <sup>3,5,31,34–37</sup> . Gloss perception is a paradigmatic case of a perceptual judgement where multiple physical effects must be separated. The pattern of specular reflections can change dramatically as a function of a surface’s three-dimensional (3D) shape, illumination and the observer’s viewpoint. Indeed, psychophysical evidence has shown that the perception of gloss in human observers depends not only on specular reflectance, as expected <sup>32,38–44</sup>, but also on lighting and shape <sup>33–37,45</sup> . We were interested in whether the specific pattern of these complex interactions could be a consequence of the visual system having learned to approximately disentangle distal sources from their effects on image structure. Our work exploits DNN methods that have emerged for learning sophisticated models of image structure in the form of latent variables, which summarize how images differ from one another <sup>46–50</sup> . DNNs achieve complex transformations by passing input data through layers of units that apply weighted summations and nonlinearities, roughly mimicking the operations of biological neurons <sup>51–55</sup> . During training, connections between units are iteratively adjusted to improve the network’s performance on some learning objective. In supervised learning, networks are directly told what label to output for every input image in a training dataset, from which they learn to subsequently output appropriate labels for new test images. Supervised DNNs have revolutionized computer vision, achieving near-human object and face recognition <sup>56–59</sup>, and are the best extant models of late ventral stream function <sup>51–53,60–63</sup> . However, unlike humans, they are often fragile to tiny image perturbations <sup>64,65</sup> and over-rely on local texture <sup>66,67</sup> . As models of biological gloss perception, it is unclear from where the necessary training labels could come. In unsupervised learning, training objectives encourage networks to learn statistical regularities in the training data without being given any explicit labels. For example, autoencoder networks are trained to compress training images into compact descriptions and then reconstruct them as accurately as possible <sup>50,68,69</sup> . Here, we use a variant known as a PixelVAE <sup>47,48</sup>, which learns to both summarize and spatially predict images, in two connected processing streams (Fig. 1c). It is a generative model that can create completely novel images with high-order statistical structure similar to the training data—in our case, images of glossy and matte surfaces. Our main finding is that the representation of gloss learned by an unsupervised PixelVAE network closely matches the pattern of successes and failures in perceived gloss shown by human observers. The unsupervised models better match human data than do a range of supervised networks and simpler comparison models, suggesting that the learning process by which different distal sources are disentangled may play a fundamental role in shaping our visual experience of the world. This finding provides a potential answer to the conundrum of how we learn to see without explicit training. Results To test whether an unsupervised DNN can learn human-like gloss perception, we rendered 10,000 images from a virtual world consisting of frontal views of bumpy surfaces with either high (‘gloss’) or low (‘matte’) specular reflectance. Using renderings grants tight control over the statistics of the training environment, allowing us to guarantee that reflectance could not be trivially decoded from raw images and that physical factors varied independently of one another. Each image had a different random configuration of bumps, depth of surface relief and colour, and was illuminated by one of six natural light fields (Fig. 1a,b). We then trained ten different instances of a PixelVAE <sup>47,48</sup> network with different initial random weights on this dataset to ensure that the results were robust to representational differences between training instances of the same architecture <sup>70</sup> . The network culminates in a probability distribution over pixel values (Fig. 1c). Its training objective is to adjust the shape of this distribution in order to increase the likelihood of the training images under it, leading to a model of the structure and variability within and across images. New images can be created from the unsupervised PixelVAE model. These are generated pixel-by-pixel from the top left corner by probabilistically sampling from the network’s learned distribution, conditioned both on previous pixels and on values in the model’s ten-dimensional (10D) latent code (Fig. 1c). The representations in this latent code are a highly compressed representation of whole-image properties and are the focus of all subsequent analyses. After training, all ten instances of the model could generate wholly novel images that look like plausible surfaces (Fig. 1d). As a comparison DNN, we also trained ten instances of a supervised ResNet <sup>71</sup> network to classify the same images as high or low gloss, using ground truth (high or low specular reflectance in the rendering parameters) as training labels. Its mean classification accuracy was 99.4 ± 0.001% (s.d.). This supervised model also contained a 10D fully connected layer prior to its two-unit output classification layer, which we treated as its high-level latent code for comparisons with the unsupervised model (Fig. 1c). An unsupervised generative model disentangles distal scene properties. We are interested in the extent to which models transform raw images into a feature space within which different physical causes are disentangled <sup>12,14,16,72</sup> . Surfaces with similar reflectance properties may occupy very disparate points in raw pixel space but should cluster together in the feature space of a good perceptual model. Although the unsupervised PixelVAE model’s training objective deals only with proximal image data, after training on the rendered dataset, we found that distal scene properties—such as reflectance and lighting—spontaneously clustered within the networks’ 10D latent codes <sup>47,50,73</sup> . Visualizing in two dimensions using _t_ -distributed stochastic neighbourhood embedding (tSNE) <sup>74</sup> reveals that low-gloss images cluster together, while high-gloss images form multiple tight clusters, corresponding to different light fields (Fig. 2a). Within each light-field cluster, images are arranged by the angle of illumination, as well as by surface relief, with flatter surfaces occupying nearby points and bumpier surfaces more distant points. This shows that without explicit labels, the unsupervised model learns at least partially to reorganize stimuli by their physical properties, one of the core challenges of mid-level vision. The emergence of this clustering of images by scene properties is far from trivial. It was not caused by raw image similarities, since tSNE visualization of the same images in raw pixel space showed a tight entangling of scene properties (Fig. 2b). Other linear and nonlinear pixel embeddings such as multidimensional scaling (MDS) and locally linear embedding (LLE) <sup>75</sup> also failed to separate low-gloss from high-gloss surfaces (Supplementary Fig. 2). When the same visualization was applied to the 10D layer of the gloss-supervised models, high-gloss and low-gloss images were neatly separated, but other world factors were intermixed (Fig. 2c). Similar qualitative patterns held for all ten instances of both unsupervised and supervised models. To quantify these clustering effects, we used representational similarity analysis <sup>76</sup> (Fig. 2d). The results support the tSNE visualizations. Pairs of images belonging to the same gloss condition (both glossy or both matte) corresponded to closer points in the unsupervised models’ 10D latent codes than pairs of images belonging to different gloss conditions (repeated-measures _t_ -test comparing average distances between same-gloss versus different-gloss image pairs, across network training instances: _t_ 9 = 16.73; _P_ < 0.001; Cohen’s _d_ = 0.97; 95% confidence interval (CI) of difference, 0.37– 0.46). Likewise, pairs of images illuminated by the same light field had more similar latent representations than those lit by different a x x Variable surface relief High-gloss or low-gloss material Random base colour 1 of 6 light fields, random rotation d PixelVAE samples b Training examples c Latent code Network samples new images, conditioned on previous pixels and latent code. Unsupervised PixelVAE network Network categorizes gloss: "high" "low" Supervised ResNet network Fig. 1 | An unsupervised neural network learns to generate plausible novel images from a simulated visual world. a, The simulated physical world consisted of a bumpy surface viewed from above. The scene varied in depth of surface relief (left), surface base colour and whether the surface material had high or low gloss (middle), and illumination environment (right). b, Six examples from a training set of 10,000 images rendered from the simulated world by randomly varying the world factors. c, The dataset was used to train an unsupervised PixelVAE network (top). The network learns a probability distribution capturing image structure in the training dataset, which can be sampled from one pixel at a time to create novel images with similar structures. A substream of the network learns a highly compressed 10D latent code capturing whole-image attributes, which is used to condition the sampling of pixels. The same dataset was used to train a supervised ResNet network (bottom), which output a classification of ‘high gloss’ or ‘low gloss’ for each input image. The penultimate layer of the supervised network is a 10D fully connected layer, creating a representation of equivalent dimensionality for comparison with the unsupervised model’s latent code. d, Six example images created by sampling pixels from a trained PixelVAE network, conditioning on different latent code values to achieve diverse surface appearances. These images are not reconstructions of any specific images from the training set; they are completely novel samples from the probability distribution that the network has learned. light fields ( _t_ 9 = 29.76; _P_ < 0.001; _d_ = 0.95; 95% CI, 0.36–0.41). In the supervised models, clustering was dominated by gloss (Fig. 2e; two-way mixed-effects analysis of variance (ANOVA) interaction between model type and scene factor: _F_ 1,18 = 9,878.34; _P_ < 0.001; _η_ <sup>2</sup> = 0.99; follow-up tests show far stronger gloss clustering in supervised than unsupervised models, _t_ 18 = 99.39; _P_ < 0.001; _d_ = 44.45; 95% CI, 6.42–6.66; but stronger light-field clustering in unsupervised models, _t_ 18 = −19.90; _P_ < 0.001; _d_ = 8.90; 95% CI, 0.27–0.32). Thus, while the supervised model optimizes disentanglement of the single physical property on which it is trained, the unsupervised model spontaneously discovers multiple scene factors contributing to image structure. The unsupervised model predicts human gloss perception for novel images. Our central question was whether the spontaneous separation of high-gloss and low-gloss images in the unsupervised model could capture human gloss judgements. To derive quantitative gloss predictions from the models, a linear support vector machine (SVM) classifier was trained to find the hyperplane in the 10D latent code of each network that best separates high from low specular reflectance images (Fig. 3a). Although this evaluation step involves label-based decoding, it is simply a formal way of quantifying the degree and form of the disentanglement. In neuroscience, information that is available directly via a linear readout from units or neurons is generally considered to be explicitly represented by a model or brain region (for example, see refs. <sup>16,77–81</sup> ). The linear classifier does not provide the model with any new information but merely measures the relative placement of different classes of images within its existing feature space. On the basis of this linear decoding, we find that gloss-classification accuracy for novel renderings across the ten unsupervised models was extremely good at 99.3% (±0.002%)— practically as good as decoding gloss from the 10D latent code of the supervised models (99.4 ± 0.002%; Fig. 3b). Light field and surface relief could also be decoded well above chance from the unsupervised networks (Fig. 3b) and significantly better than from a Embedding of images in unsupervised model's latent code Gloss level Light field Light angle Surface relief c 0° 360° 0.05 1.00 b High gloss Low gloss 1 2 3 4 5 6 Embedding in pixel space Embedding in gloss-supervised model Gloss level Light field Light angle Surface relief Gloss level Light field Light angle Surface relief d Representational dissimilarity (unsupervised models) e Representational dissimilarity (supervised models) 3 2 1 3 2 1 Light fields 1–6 0 0 High gloss Low gloss Light fields 1–6 6 4 2 0 High gloss Low gloss 6 4 2 0 Fig. 2 | World factors are disentangled in the unsupervised model’s latent code. a, Visualizations of distances between 4,000 images, in the 10D latent code of one unsupervised PixelVAE network, projected into two dimensions using tSNE. Unsupervised learning spontaneously disentangles the underlying world factors, arriving at a nested representation. Images of low-gloss surfaces form one large cluster, while images of high-gloss surfaces form multiple small subclusters (left), according to the light field used to render the image (centre left). Lighting direction varies smoothly within each subcluster (centre right), and surfaces with low relief are closer to one another than are those with high relief (right). b, tSNE visualization of the same images in raw pixel space, where world factors are thoroughly entangled. c, tSNE visualization of the same images in the 10D latent code of one gloss-supervised ResNet network, showing a less rich representation. High- and low-gloss images form two clearly separated clusters, but other world factors are entangled. d, Dissimilarity matrices showing Euclidean distances between all pairs of images in the latent representations of all PixelVAE networks, averaged across surfaces with the same gloss level (left) or illumination (right). Pairs of images belonging to the same gloss or lighting condition (the diagonal blocks in each matrix) were represented more similarly than pairs of images belonging to different conditions (the off-diagonal blocks) (gloss: _t_ 9 = 16.73; _P_ < 0.001; _d_ = 0.97; 95% CI, 0.37–0.46; light field: _t_ 9 = 29.76; _P_ < 0.001; _d_ = 0.95; 95% CI, 0.36–0.41). e, Corresponding dissimilarity matrices calculated from the representations in the 10D latent codes of the supervised networks reveal stronger clustering by the task-relevant dimension of gloss and weaker clustering by light field (model × factor interaction: _F_ 1,18 = 9,878.34, _P_ < 0.001, _η_ <sup>2</sup> = 0.99). the supervised networks (independent-measures _t_ -test comparing light field decoding between unsupervised and supervised models: _t_ 18 = 23.25; _P_ < 0.001; Cohen’s _d_ = 10.40; 95% CI of difference, 0.28–0.34; surface relief: _t_ 18 = 3.30; _P_ = 0.004; _d_ = 1.48; 95% CI, 0.08– 0.36). Thus, linear decoding further demonstrates that the unsupervised networks learn a compact representation that summarizes information about not only surface material but also other scene properties such as illumination and surface relief. The analysis also revealed that representations were distributed rather than sparse. The full latent code predicted scene properties much better than any individual dimension could (Fig. 3b and Supplementary Fig. 1c). Crucially, we could now derive a predicted gloss value for any image by inputting it to a network and calculating the SVM decision value for its corresponding point in latent space (that is, the signed distance of the point from the network’s gloss-separating hyperplane; Fig. 3a). This allowed us to compare the model against human gloss perception. For Experiment 1 (gloss ratings), we rendered 50 new images of surfaces with random magnitudes of specular reflectance, sampled uniformly from almost matte to almost mirror-like. Twenty observers rated the apparent gloss of each surface, from 1 (matte) to 6 (glossy). We compared their ratings with the gloss values predicted by the unsupervised model. Figure 4a shows that agreement was excellent (mean _R_ <sup>2</sup> over ten model training instances, 0.84) and was substantially better than for the supervised model (mean _R_ <sup>2</sup> = 0.40; independent-samples _t_ -test _t_ 18 = 12.45; _P_ < 0.001; Cohen’s _d_ = 5.57; 95% CI of difference, 0.37–0.50). Notably, the unsupervised model even predicted human ratings better than ground truth (specular magnitude within the rendering engine; _R_ <sup>2</sup> = 0.73; one-sample _t_ -test of difference, across model training instances: _t_ 9 = 4.74; _P_ = 0.001; _d_ = 1.50; 95% CI, 0.05–0.13). We also considered a number of alternative models (bar graph in Fig. 4a), all of which predicted human judgements less well than ground truth. The best of these was a feature space consisting of the 1,000 final-layer features from a ResNet DNN trained on 1.2 million images to classify objects <sup>58,71</sup> . This is consistent with previous findings that representations in object-recognition DNNs capture perceptually relevant features of textures and images <sup>61,82–84</sup> . Other, a 10D latent code SVM decision value: b Unsupervised 1.0 Supervised 0.8 0.6 0.4 0.2 10D latent code SVM decision value: +10.5 +0.4 ...7,500 images –9.7 0.0 Gloss Light field Surface relief Fig. 3 | Disentangled world factors are available via a simple linear readout. a, To quantify how explicitly gloss was represented in each model, we trained linear SVM discriminants to classify gloss from the representations of images within the latent code of each network. As well as obtaining decoding accuracy, this allowed us to use decision values (that is, the distance from the SVM hyperplane) to make continuously valued predictions from the model regarding the gloss of novel images (three examples are shown), which was critical in subsequent experiments. b, Average decoding accuracy for each world factor from latent codes of unsupervised and supervised networks (the _y_ axis shows the proportions correct for two-way gloss classification and six-way light field classification, as well as _R_ <sup>2</sup> for surface relief regression). The pale lower regions of the bars indicate the average decoding accuracy when using the best single latent dimension and give an impression of how distributed the representations are. The data points show the individual performance for each of the ten training instances of each model type (the black outline indicates full dimensionality; the white outline indicates the best single dimension). less well-performing models included a multiscale texture description comprising 1,350 feature dimensions <sup>85</sup> ; the 4,096 latent features from a relatively simple image autoencoder; 10D embeddings of raw images via tSNE <sup>74</sup>, MDS or LLE <sup>75</sup> ; and luminance histogram skewness—a measure previously proposed to predict human gloss perception <sup>86</sup> (Methods). Supplementary Fig. 2 shows visualizations of how reflectance and other scene factors are organized within each of these feature spaces. Since PixelVAE networks are generative models, novel images can be generated by sampling from them (Fig. 1d). In Experiment 2 (gloss manipulation), we used such images to test whether perceived gloss varied systematically with an image’s location in the model’s latent space. From each of the model training instances, four sequences of five images were generated by conditioning the image-sampling process first on a low-gloss point in the latent space and then on progressively higher-gloss points (that is, moving along the model’s gloss-discriminating axis, orthogonal to the SVM hyperplane). Another four sequences progressed from high-gloss to lower-gloss points (Fig. 4c). The same 20 observers sorted the images within each sequence from least to most glossy. Figure 4b shows that moving along the model’s gloss-discriminating axis systematically reduced the apparent gloss of generated images when moving in the matte direction (one-way repeated-measures ANOVA: _F_ 4,76 = 244.11; _P_ < 0.001; _η_ <sup>2</sup> = 0.93; 95% CI of correlation _r_, 0.87–0.93) and increased it when moving in the high-gloss direction ( _F_ 4,76 = 649.82; _P_ < 0.001; _η_ <sup>2</sup> = 0.97; 95% CI of _r_, 0.97–0.98). We thus find that the unsupervised networks develop internal representations that not only disentangle distal causes that are impossible to tease apart in the raw input (Fig. 2b and Supplementary Fig. 2) but also, more remarkably, predict human gloss perception better than the true physical reflectance properties of surfaces, even though these networks are never given information about scene properties during training. The unsupervised model predicts failures of human gloss constancy. Although human gloss perception generally aligns well with specular reflectance, it also exhibits some well-documented ‘errors’. For example, bumpier surfaces tend to look glossier than flatter surfaces, and specific combinations of lighting and surface relief yield specific patterns of misperception (Fig. 5a and refs. <sup>34,35</sup> ). Mimicking such perceptual errors is a key test of any computational model of biological vision <sup>87</sup> . We assessed how well different models capture the systematic failures of gloss constancy exhibited by human observers. To do this, we rendered sequences where surface relief increased in seven steps, while reflectance and other scene properties remained fixed (Fig. 5a). For stimuli in Experiments 3a and 3b (patterns of gloss constancy), we selected two sets of ten sequences for which both the unsupervised and supervised models predicted deviations from constant gloss and the models made different predictions about the particular pattern of deviations (Methods). The rationale behind this is that cases where models disagree provide the strongest power to test which model is superior <sup>88,89</sup> . With these image sequences in hand, in Experiments 3a and 3b, two groups of 20 observers judged gloss in a paired-comparison task (Methods). If the observers correctly estimated reflectance, all surfaces should appear equally glossy, yet we find that they do not. The observers exhibited strong failures of gloss constancy, usually reporting surfaces with deeper relief to be glossier, although perceived gloss was non-monotonic in 7 of the 20 sequences, being the highest for intermediate reliefs (four examples are shown in Fig. 5b; the complete data are shown in Supplementary Fig. 3). The unsupervised model, despite never being explicitly trained to represent gloss and without being fit to human data, predicted patterns of failures of gloss constancy remarkably well (median _R_ <sup>2</sup> across sequences and model training instances, 0.71). The model correctly predicted the qualitative pattern of constancy failure (monotonic versus non-monotonic) for 18 out of the 20 stimulus sequences. In contrast, the supervised model completely failed to predict human gloss constancy. For almost all sequences, it made predictions that were anticorrelated with human patterns (median _R_ <sup>2</sup>, –1.45). Of the alternative models (Fig. 5c), a set of mid-level texture features <sup>85</sup> provided the next-best performance (median _R_ <sup>2</sup>, 0.54) but was significantly poorer than the unsupervised model (one-sample _t_ -test of difference across model training instances: _t_ 9 = 10.48; _P_ < 0.001; Cohen’s _d_ = 3.31; 95% CI of difference, 0.14–0.20). Human gloss constancy ranges from good to bad depending on interactions between lighting and shape <sup>30,33–35,90</sup> . For Experiment 4 (degrees of gloss constancy), we rendered 40 image pairs depicting surfaces with identical material but different surface relief or lighting (Fig. 5d and Methods), for which the unsupervised model predicted a wide range of degrees of gloss constancy, from excellent (near-identical predicted gloss for both images in a pair) to a c Examples of network-generated samples manipulated to have lower or higher gloss Seed images Generated samples Decrease gloss Increase gloss 6 5 4 3 2 Experiment 1: gloss ratings _r_ = 0.96 b Experiment 2: gloss manipulation 5 High-gloss seed images 4 3 2 1 –5 0 5 10 15 Model-predicted gloss value Unsupervised Ground truth Object-DNN features Texture features Supervised Simple autoencoder Pixel MDS Skewness Pixel LLE Pixel tSNE 0 0.2 0.4 Mean model error (RMSE) Low-gloss seed images 1 0 0.09 0.18 0.26 0.35 Distance from seed point in latent code Fig. 4 | The unsupervised model can be used to modulate the gloss of generated samples, and it predicts human-perceived gloss of new surfaces. a, Gloss values in the unsupervised networks well predict human gloss ratings for 50 novel rendered surfaces of random gloss levels. The scatter plot shows the decision value on a glossy-versus-matte SVM classifier for each image in the PixelVAE networks on the _x_ axis (averaged over ten training instances) and human gloss ratings on the _y_ axis ( _N_ = 20). The error bars indicate the s.e.m. over 20 observers (vertical) or 10 model training instances (horizontal). The bar plot shows the average error in predicting each individual observer’s ratings, after normalizing ratings and model predictions into the range 0–1, for the unsupervised model and for diverse alternative predictors (see the text and Methods for details). The vertical grey line indicates how well individual human ratings can be predicted from the data of other observers, giving the minimum possible model error. The data points show the values for each observer. RMSE, root mean square error. b, Moving along the gloss-discriminating axis in a network’s latent code as shown in c successfully modulates perceived gloss, both when adding gloss to initially matte surfaces (pale blue line; _F_ 4,76 = 649.82; _P_ < 0.001; _η_ <sup>2</sup> = 0.97; 95% CI for _r_, 0.97–0.98) and when removing it from initially glossy surfaces (dark blue line; _F_ 4,76 = 244.11; _P_ < 0.001; _η_ <sup>2</sup> = 0.93; 95% CI, 0.87–0.93). The dots show each observer’s gloss rankings of each of five modulation steps, averaged over four test sequences starting from low-gloss initial seed images and four starting from high-gloss seed images. The lines indicate the mean over 20 observers. c, Example gloss-modulated sequences. A glossy or matte rendered image (left) is input to a network, and its 10D latent representation is recorded. New images are generated from the model, conditioned first on the original (‘seed’) point in latent space, and after stepping by small amounts along the model’s gloss-discriminating axis (that is, the axis orthogonal to the decision plane of a glossy-versus-matte SVM classifier), in either the ‘matte’ (top) or ‘glossy’ (bottom) direction. very poor (the images received very different predicted gloss values; see Methods). Twenty observers indicated which surface in each pair appeared glossier, with each pair repeated eight times. The unsupervised model predicted the degree and direction of human (failures of) constancy reasonably well (mean _r_ across model training instances, 0.70; Fig. 5e) and outperformed all alternative models (the next-best model was object-DNN features, _r_ = 0.64; one-sample _t_ -test of difference, across PixelVAE training instances: _t_ 9 = 4.00; _P_ = 0.003; Cohen’s _d_ = 1.27; 95% CI of difference, 0.03–0.08). Fitting a simple logistic function to relate model and human gloss values further improves the prediction (from an average _R_ <sup>2</sup> across model training instances of 0.60 for a linear fit, to an _R_ <sup>2</sup> of 0.74 for a logistic fit). Aggregating the results across the three experiments using renderings (Experiments 1, 3 and 4) shows that the unsupervised model predicts human perceptual judgements better than all others (Fig. 6). It achieves near-perfect ground-truth gloss-classification accuracy while still predicting idiosyncratic errors of human gloss perception (Fig. 6a), with a feature space two orders of magnitude more compact than the next-best model (Fig. 6b). The next-best model was a set of texture features hand-engineered to efficiently capture higher-order statistical structure in images <sup>85</sup>, which performed significantly less well (one-sample _t_ -test of difference in root mean square error predicting individual data across the three experiments: _t_ 59 = 10.73; _P_ < 0.001; Cohen’s _d_ = 1.39; 95% CI, 0.05–0.07). Simple image statistics, such as the skewness of the luminance histogram <sup>86</sup>, failed to capture human gloss perception under our deliberately challenging stimulus conditions, where differences in specular reflectance must be de-confounded from differences in lighting and surface shape. Model generalization and effects of training set. The composition of the training dataset has profound effects on all machine learning models. However, a good model of human mid-level vision should a 1 2 3 4 5 6 7 b c d e Experiment 3 summary 1.0 0.8 0.6 0.4 0.2 Experiment 3: patterns of gloss constancy Example sequence 1 Unsupervised Example sequence 2 Example sequence 3 Example sequence 4 model Human data Constancy Supervised model 0.8 0.6 0.4 0.2 0 0 1 2 3 4 5 6 7 Surface relief level 1 2 3 4 5 6 7 1 2 3 4 5 6 7 1 2 3 4 5 6 7 Experiment 4: degrees of gloss constancy 0.50 0.25 0 –0.25 –0.50 –0.50 –0.25 Unsupervised Texture features Object-DNN features Ground truth Pixel tSNE Simple autoencoder Pixel LLE Pixel MDS Supervised Skewness 20 10 0 –10 Low relief HDRI-lit, change in relief HDRI-lit, change in light field Lamp-lit, change in relief Lamp-lit, change in light angle Oblique Frontal High relief 0 0.25 0.50 0 0.2 0.4 0.6 Low relief High relief Model error (RMSE) Predicted deviation from constancy Fig. 5 | Unsupervised learning predicts human perception and misperception of gloss on an image-by-image basis. a, Material properties of the surface are identical in all seven images, but the surface relief increases. People often see bumpier surfaces as glossier than flatter ones, constituting a failure of gloss constancy <sup>34,35</sup> . b, Examples of various patterns of human gloss constancy failure for four sequences of images increasing in surface relief. The leftmost panel shows the data for the sequence in a . Black indicates the human data (the proportion of times each image step was reported as being glossier than others within each sequence), purple indicates the predictions of the unsupervised model and teal indicates the predictions of the supervised model. Veridical gloss perception would be a flat horizontal line. The shading indicates the standard deviation over 20 human observers or 10 model instances. See Supplementary Fig. 3 for the full data. c, Summary of the average error of each model’s prediction of each observer’s data, averaged across all 20 image sequences. The conventions are as in Fig. 4a. d, Changes in lighting also often change apparent material properties for human observers. The quartet of images shows the same surface material rendered on a low-relief versus a high-relief surface (left versus right columns) and illuminated straight-on versus at a 30-degree angle (top versus bottom rows). The plot on the right shows the unsupervised model predictions for these four images (the error bars indicate standard deviations over ten training instances). The model predicts a larger difference in apparent gloss for the low-relief images than for the high-relief images, and an interaction between changes in lighting and relief. e, Magnitude of deviations from constancy for 40 pairs of images depicting the same surface material with different scene properties (the proportion of times that image A of a pair was seen as glossier than image B). The scenes were illuminated by either natural high-dynamic-range image (HDRI) lighting (blue dots) or directional lamp (red dots). The image pairs differed in surface relief (unfilled dots), light field (blue filled dots) or lighting angle (red filled dots). The _y_ axis shows the average human data over 20 observers, expressed in terms of raw proportion minus 0.5, so that zero indicates good constancy, +0.5 indicates that image A always ranked glossier than image B and −0.5 indicates the opposite. The error bars indicate the s.e.m. over observers. The _x_ axis shows the difference in predicted gloss values between the images in each pair, averaged over ten training instances of the PixelVAE model. generalize over changes to training or test data. Our unsupervised networks were trained on a simulated environment with bimodally distributed specular reflectance (near-matte or high-gloss). Nevertheless, they well predicted gloss in new image sets containing continuously varying reflectance (Fig. 7a; mean _R_ <sup>2</sup>, 0.79; s.d. of _R_ <sup>2</sup>, 0.03; see also Supplementary Fig. 6a), and they predicted gloss for scenes with novel geometries and light fields as well as they did for familiar scenes (Fig. 7a). Model predictions do not seem to depend on artefacts of the specific computer graphics techniques used to generate our images (real-time rasterized rendering), as gloss predictions were near identical for matched surfaces rendered using more time-intensive but physically faithful ray-traced rendering (Supplementary Fig. 6b). Remarkably, given their constrained training environments, the models even seem able to broadly categorize close-up photographs of real-world surfaces <sup>91</sup> as being of high or low gloss, although they fail when shown surfaces far outside their training data, such as fabrics with high-contrast patterns (Supplementary Fig. 6c,d). We performed two tests of robustness to different training datasets. First, five new PixelVAE networks were trained on 10,000 additional renderings in which gloss was sampled continuously a b Model performance versus gloss classification Model performance versus dimensionality tSNE MDS Skewness Supervised Simple autoencoder LLE tSNE 0.40 0.35 0.30 0.25 Texture features Unsupervised 0 10 20 30 40 50 Gloss classification error (%) Skewness Supervised Ground truth Object-DNN features LLE Simple autoencoder MDS Ground truth Object-DNN features Texture features Unsupervised 0 1,000 2,000 3,000 4,000 Dimensionality of representation Fig. 6 | The unsupervised model outperforms diverse alternative models. a, Relationship between error at classifying surfaces as glossy or matte ( _x_ axis) and error in predicting human psychophysical gloss judgements ( _y_ axis) for all models. The data are averaged over the three psychophysical experiments in which the ground truth gloss of stimuli is defined (Experiments 1, 3 and 4, each with _N_ = 20). b, Relationship between the dimensionality of each model’s representation and its error in predicting human judgements (the _y_ axis is shared with a ). Not only does the unsupervised PixelVAE model best explain the human data (difference from the next-best model: _t_ 59 = 10.73; _P_ < 0.001; Cohen’s _d_ = 1.39; 95% CI, 0.05–0.07), but it does so with around two orders of magnitude fewer dimensions than the nearest competing models (a 1,350-dimensional texture feature space <sup>85</sup> and a 1,000-dimensional layer from an object-recognition supervised DNN <sup>57</sup> ). rather than bimodally (continuously sampled gloss training dataset; Methods). Second, an additional PixelVAE was trained on a third dataset of 10,000 renderings in which surface geometry and lighting varied far more widely (higher-variation training dataset; Methods), with each scene comprising one of ten novel surface geometries combined with one of 50 novel light fields. Both new training environments produced models with latent codes that could well subserve gloss classification on the original bimodal gloss dataset (with mean accuracies of 96.7% and 91.4%, respectively). Importantly, we found that all three versions of the PixelVAE model (original, continuous-gloss training and higher-variation training) made highly similar predictions regarding the relative gloss levels of experimental stimuli. This indicates that the ability to predict human perception is not highly sensitive to the training set. The three versions of the unsupervised PixelVAE model, trained on non-overlapping datasets, made more similar gloss predictions to one another than to those made by any of the ten diverse alternative models (the dark cluster of low dissimilarity values in the bottom left of Fig. 7b). All three training environments led to unsupervised models that predicted human data reasonably well (Fig. 7c), both for gloss ratings of novel rendered images (Experiment 1) and for the more challenging task of predicting patterns (Experiment 3) and degrees (Experiment 4) of (failures of) gloss constancy. Each of the three model versions predicted human data significantly better than the supervised model in all experiments ( _t_ 19 = 4.01–31.08; _P_ < 0.001; Cohen’s _d_ = 0.56–7.00; 95% CI, 0.06–0.18 to 0.60–1.07 in nine repeated-measures _t_ -tests comparing unsupervised versus supervised model correlation with individual participants’ data; Bonferroni-corrected _α_, 0.006) and were significantly better than the most promising alternative model, texture features <sup>85</sup>, in six out of nine comparisons ( _t_ 19 = 0.73–5.84; _P_ = 0.47 to <0.001; _d_ = 0.17– 1.16; 95% CI, −0.12–0.25 to 0.12–0.31). Several analyses were performed to assess how robustly unsupervised models outperformed their supervised counterparts. In building and training a DNN, values must be chosen for the many hyperparameters controlling network architecture and training. We evaluated the effects of some of these hyperparameters by training 28 additional models (14 unsupervised and 14 supervised) that differed from the original implementations in depth, learning rate, learning rate decay, training batch size and complexity of the learned model (for unsupervised PixelVAEs); see Supplementary Table 1 for the details. Eleven of the 14 unsupervised network variants outperformed all supervised network variants in predicting human gloss judgements; the three exceptions were networks that failed to train due to poor learning rate settings (Supplementary Fig. 5). We also found that representations in the unsupervised model better predicted human judgements than those in the supervised model for all intermediate layers (Supplementary Fig. 4a). Finally, we created a version of the supervised model that outputs continuous-valued gloss estimates rather than categorical decisions and trained it on a dataset with continuous rather than bimodal reflectances (Supplementary Methods and Results). This version predicted human gloss judgements better than the category-supervised model but less well than the unsupervised model, failing to exhibit the systematic errors that characterize human gloss perception (Supplementary Fig. 4b). Overall, unsupervised learning in PixelVAE models seems to converge on a representation that captures key aspects of human gloss perception and tolerates changes in the particular network hyperparameters, or the statistics, illuminations or geometries of the training and test sets. Features underlying gloss representation in the model. Previous research <sup>35</sup> identified specific image features—the coverage, contrast and sharpness of specular highlights—that predicted perceived gloss for surfaces like those evaluated here. To test whether the PixelVAE model was also sensitive to these cues, we measured the coverage, contrast and sharpness of highlights in 10,000 new renderings of surfaces with specular reflectance varying continuously from near-matte to near-mirror. All three cues could be decoded from the latent code of a PixelVAE trained on these images (mean _R_ <sup>2</sup> = 0.71) and could be increasingly well decoded from successive convolutional and fully connected layers (Supplementary Fig. 7a). A linear combination of the three cues in the layer immediately preceding the 10D latent code correlated with gloss predicted a 40 30 20 10 0 –10 Linear fit _R_ <sup>2</sup> = 0.6 Quadratic fit _R_ <sup>2</sup> = 0.74 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 Gloss decoding for novel surface geometries and illuminants Trained geometry Novel geometry 1 Novel geometry 2 Novel geometry 3 Novel geometry 4 Linear fit _R_ <sup>2</sup> = 0.69 Quadratic fit _R_ <sup>2</sup> = 0.79 Linear fit _R_ <sup>2</sup> = 0.64 Quadratic fit _R_ <sup>2</sup> = 0.8 Linear fit _R_ <sup>2</sup> = 0.66 Quadratic fit _R_ <sup>2</sup> = 0.77 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 Specular reflectance Linear fit _R_ <sup>2</sup> = 0.69 Quadratic fit _R_ <sup>2</sup> = 0.83 b c Different PixelVAEs make similar predictions Correlation with human data for different PixelVAEs 10 9 8 7 6 5 4 3 2 1c 1b 1a Model 1a. PixelVAE (original training) 1b. PixelVAE (continuous gloss) 1c. PixelVAE (higher variation) 2. Ground truth 3. Texture features 4. Object-DNN features 2.5 2.0 1.5 1.0 0.5 0 5. Supervised 6. Pixel LLE 7. Autoencoder 8. Pixel MDS 9. Skewness 10. Pixel tSNE –0.5 0 0.5 1.0 Correlation with human data ( _r_ ) Experiment 1: Gloss ratings PixelVAE (original training) PixelVAE (continuous gloss) PixelVAE (higher variation) Supervised model Experiment 3: Patterns of gloss constancy Experiment 4: Degrees of gloss constancy Fig. 7 | The unsupervised model generalizes well to novel scenes and makes similar gloss predictions after retraining on different visual environments. a, Scatter plots show predicted gloss ( _y_ axis) and ground-truth specular reflectance ( _x_ axis) for sets of 500 new images rendered with random continuously sampled gloss levels, using the trained surface geometry (leftmost panel) or four novel geometries unseen during training (right panels). A single example image from each set is shown above the plots (magnitude and concentration of specular component, 0.65). All scenes were illuminated by light fields never seen during training. b, New instances of the PixelVAE model with substantially different visual experiences during training all make similar predictions for the gloss levels of experimental stimuli. The matrix shows the dissimilarity between the gloss predictions made by the original set of ten PixelVAE networks, averaged over training instances (1a); five PixelVAE networks trained on a new set of 10,000 images using the same surface geometry and light fields, but with specular reflectance continuously sampled, averaged over training instances (1b); a PixelVAE network trained on a third set of 10,000 images using ten surface geometries and 50 light fields, non-overlapping with the geometry and light fields used in the main training dataset (1c); and alternative models, ordered by the similarity of their predictions to that of the original PixelVAE (2–10). The gloss predictions are for all stimuli used in Experiments 1, 3 and 4 and were normalized into the range 0–1 for comparability across models. c, Average correlation between model-predicted gloss and individual human judgements in each psychophysical experiment for the PixelVAE implementations described in b . The data points show the values for each observer ( _N_ = 20 in each experiment). All unsupervised models predicted the human data better than the supervised model in all experiments (across nine comparisons: _t_ 19 = 4.01–31.08; _P_ < 0.001; Cohen’s _d_ = 0.56–7.00; 95% CI, 0.06–0.18 to 0.60–1.07). The vertical grey lines indicate how well the data can be predicted on average from those of other observers, giving the highest possible average model correlation. from the latent code ( _r_ = 0.80; Supplementary Fig. 7b). Moreover, manipulating the highlights in images to weaken each cue also reduced predicted gloss (Fig. 8a,b; one-way repeated-measures ANOVA for the effect of highlight contrast reduction: _F_ 9,81 = 11.20; _P_ < 0.001; _η_ <sup>2</sup> = 0.55; 95% CI of correlation _r_, −0.65 to −0.41; sharpness: _F_ 9,81 = 9.65; _P_ < 0.001; _η_ <sup>2</sup> = 0.52; 95% CI of _r_, −0.61 to −0.40; coverage: _F_ 9,81 = 18.14; _P_ < 0.001; _η_ <sup>2</sup> = 0.67; 95% CI of _r_, −0.58 to −0.29). Interestingly, we did not find evidence that the model’s predicted gloss decreased when the specular component of images was shifted so that highlights were misaligned with the geometry of the depicted surfaces (Fig. 8b; _F_ 9,81 = 0.48; _P_ = 0.88; _η_ <sup>2</sup> = 0.05; 95% CI of _r_, −0.21–0.09). This manipulation preserves coverage, contrast and sharpness, yet infringes photogeometric constraints that are a precondition for humans to identify highlights as specularities and therefore to see gloss at all <sup>6,92,93</sup> . The fact that the model predicts a b 0 –2 –4 Manipulations that diminish highlight features also reduce model's predicted gloss value Example original image 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 Reduce highlight sharpness Reduce highlight coverage 0 4 Translate highlights Reduce highlight contrast 0 1 2 3 4 5 6 7 8 9 0 –2 –4 –2.5 –5.0 –7.5 –2 2 0 Degree of highlight alteration Degree of highlight alteration Degree of highlight alteration Degree of highlight alteration Fig. 8 | Reducing the coverage, sharpness or contrast of highlights reduces model-predicted gloss. a, We separately rendered the specular and matte components for ten probe images and manipulated the specular component by reducing contrast, by blurring it, by shrinking coverage via an image erosion algorithm or by laterally translating it, in ten progressive steps. We then recombined the two components to produce ten sequences of images and presented them to the unsupervised networks. The insets show each of these manipulations applied to part of an example image. b, Model-predicted gloss declined when any of the three highlight features was reduced (left three plots; contrast: _F_ 9,81 = 11.20; _P_ < 0.001; _η_ <sup>2</sup> = 0.55; 95% CI of _r_, −0.65 to −0.41; sharpness: _F_ 9,81 = 9.65; _P_ < 0.001; _η_ <sup>2</sup> = 0.52; 95% CI, −0.61 to −0.40; coverage: _F_ 9,81 = 18.14; _P_ < 0.001; _η_ <sup>2</sup> = 0.67; 95% CI, −0.58 to −0.29). The green lines show the predicted gloss for each step in each sequence, relative to that of the original unmanipulated image, averaged over ten training instances of the model; the black lines show the mean and standard deviation over all sequences. Translating the specular components (rightmost plot), which does not affect the coverage, sharpness or contrast of the highlights, did not measurably affect predicted gloss ( _F_ 9,81 = 0.48; _P_ = 0.88; _η_ <sup>2</sup> = 0.05; 95% CI, −0.21–0.09). human gloss constancy without seeming to be sensitive to such constraints suggests that although these constraints are crucial to many aspects of surface perception <sup>7,93–96</sup>, the degree of perceived gloss, within surfaces that are seen as having highlights, may be largely explainable in terms of image features. Discussion The efficient representation of sensory data has long been hypothesized as a central goal of neural coding <sup>15,19–24,97</sup> . But while such approaches predict many aspects of low-level image encoding, they have not explained how we visually infer properties of the outside world. Unsupervised learning objectives in modern DNNs, such as data compression and spatial prediction, offer powerful new implementations of these statistical learning principles <sup>17</sup> . Our findings show that mid-level perceptual dimensions, such as gloss— which imperfectly map onto properties of the physical world—can emerge spontaneously by learning to efficiently encode images. Unsupervised learning may thus provide a bridge that links theoretical views emphasizing the importance of image statistics (for example, see refs. <sup>86,98,99</sup> ) to those that treat perceptual processes as a decomposition of images into distinct physical causes (for example, see refs. <sup>4,6,8,100</sup> ). One of the fundamental unsolved questions in vision science is how the visual system became aware of the different physical sources that contribute to image structure. Perception is commonly framed as the optimal estimation of a set of known physical quantities <sup>4,9–11</sup> . But these quantities that the brain putatively estimates were not specified a priori; they must somehow be discoverable (over either the course of evolution or learning) on the basis of their manifestation in sensory experience <sup>12–14</sup> . Here, we suggest that different physical causes give rise to different high-order regularities in visual data, making them discoverable through data-driven unsupervised learning processes <sup>15–18</sup> . We provide a proof-of-principle that it is possible to learn to disentangle distal causes without prior knowledge about which classes of causes exist in the world, the cues that could be used to distinguish them or even how many different classes of causes there are. An unsupervised statistical learning model predicted the expected changes in perceived gloss caused by varying specular reflectance (Experiment 1; refs. <sup>32,33,39–41,43</sup> ), as well as illusory changes in perceived gloss that arise from varying lighting and shape (Experiments 3 and 4; refs. <sup>34,35</sup> ). We suggest that known systematic errors in gloss perception can be attributed to the particular pattern of partial disentanglement arising from unsupervised statistical learning of surface appearances. One of our more intriguing results is that the unsupervised model predicted human perception better than the supervised model that we tested. It is important to note that this is not because humans and unsupervised networks were better at extracting ground truth in these stimuli. Categorization-supervised networks categorized gloss almost perfectly (Fig. 3b), and regression-supervised networks predicted continuous gloss levels almost perfectly (Supplementary Fig. 4b), yet both predicted human judgements less well than unsupervised networks. This implies that the systematic errors exhibited by humans and the PixelVAE model are not a trivial consequence of some inherent impossibility in recovering specular reflectance for these stimuli. Nor is this result explained by the supervised model reporting ground-truth specular reflectance too faithfully. Although the supervised model is near-perfect at coarsely categorizing surfaces as having high or low specular reflectance, it still predicts different degrees of glossiness for different images, including sometimes erroneously. Yet the supervised and unsupervised models make different predictions on an image-by-image basis, with the latter more closely matching those made by humans. We propose that this shared pattern of deviation from ideal performance may arise from shared characteristics in how the human visual system and the unsupervised model learn to encode images. One of the most notable failures of the PixelVAE in capturing human data is its insensitivity to photogeometric constraints known to affect human surface perception, such as the alignment of specular highlights with diffuse shading <sup>7,92,93</sup> (Fig. 8). We believe that this failure is probably due to the relative poverty of 3D shape information in its training set. The link between highlights and diffuse shading arises from constraints imposed by the 3D shape of a surface <sup>94,96</sup> . It seems implausible to expect any visual system trained solely on monocular, static images to develop good sensitivity to these constraints, and without a detailed representation of 3D shape, no model is likely to explain all aspects of human gloss perception <sup>94,95,101</sup> . We tailored the training sets towards modelling variations in perceived glossiness for physically realistic surfaces, where highlights are assumed to align with surface shading <sup>32,33,39–41,43</sup> . An important direction for future research is testing whether unsupervised DNNs can also learn photogeometric relationships, if training sets provide additional information about shape (for example, through motion, stereo, occlusion or larger variations in geometry). In using deep learning models, we do not wish to imply that all material perception is learned during an individual lifetime. Unsupervised learning principles can also operate on an evolutionary timescale. For example, V1 cell receptive fields are predicted by simple unsupervised learning models such as independent components analysis <sup>22</sup>, and these seem to be present at birth in macaques <sup>102</sup> . The developmental trajectory of gloss perception is not fully known. There is evidence that five- to eight-month-old infants can distinguish between matte and specular surfaces <sup>103</sup>, but also evidence that material recognition and classification are still developing in five- to ten-year-old children <sup>104,105</sup> . Even five to eight months of visual experience provides a huge dataset for statistical regularity learning <sup>106</sup> . It could be that approximate versions of many perceptual dimensions are rapidly learned during the first days, weeks and months of life. Although we do not propose the PixelVAE architecture as a physiological simulation of visual cortex, its computational principles are eminently achievable in biological brains. Data compression and spatial prediction are learning objectives that require no additional information beyond the incoming sensory data, and there are several mechanisms by which brains could represent the probability distributions used in the PixelVAE network <sup>107–109</sup> . At the same time, the brain certainly does not learn statistical distributions over RGB pixels. If the visual system uses learning objectives like the ones investigated here, they presumably operate on image representations that have undergone substantial retinal processing <sup>110,111</sup> . In conclusion, unsupervised DNN models provide an ecologically feasible solution to the problem of how brains come to represent properties of the distal world without access to ground truth training data <sup>12–14,17,112</sup> . Nonlinear transformations reorganize inputs according to high-order regularities within and across images, allowing the visual system to better summarize and predict sensory data. Because regularities in images are caused by underlying physical objects and processes, these new configurations often end up (partially) disentangling physical properties from one another. Our results suggest that the imperfect nature of this disentanglement may account for the characteristic errors that humans make. Failures of constancy, which are rife in vision, may therefore offer clues to how we learn to see. Unsupervised learning may account for these failures not just in gloss perception but in perception more broadly. Methods Participants. Three groups of human naive observers reported perceived gloss across five experiments: Experiments 1 and 2 ( _N_ = 20; mean age, 23.45; age range, 19–32; 16 female, 4 male), Experiment 3a ( _N_ = 20; mean age, 23.45; age range, 19–31; 16 female, 4 male) and Experiments 3b and 4 ( _N_ = 20; mean age, 24.45; age range, 19–35; 14 female, 6 male). Six individuals participated in two different experimental groups but received no information about the experimental design or hypotheses after the first session. No statistical methods were used to predetermine sample sizes, but our sample sizes are larger than those reported in previous publications measuring gloss constancy <sup>34,35,37</sup> . All participants had normal or corrected-to-normal visual acuity. Two male participants self-reported poor red–green colour vision. The experiments were conducted in accordance with the Declaration of Helsinki (sixth revision), with prior approval from the ethics committee of Justus Liebig University, Giessen, Germany. The volunteers gave written informed consent and were paid €8 per hour. Stimuli. The stimuli were 800 pixel × 800 pixel images of bumpy surfaces rendered [using Unity3D (v.2018.2.3; Unity Technologies, https://unity.com/). A virtual](https://unity.com/) 40 cm × 40 cm sheet with irregularly positioned bumps was placed in a scene and illuminated by one of six high-dynamic-range image (HDRI) light probes. The light probes were white-balanced 8,192 pixel × 4,096 pixel images of four exterior (beach, bay, woodland and savannah) and two interior (church and conference [hall) environments, captured by Unity Technologies (https://assetstore.unity.com/](https://assetstore.unity.com/packages/2d/textures-materials/sky/unity-hdri-pack-72511) [packages/2d/textures-materials/sky/unity-hdri-pack-72511). A virtual camera](https://assetstore.unity.com/packages/2d/textures-materials/sky/unity-hdri-pack-72511) (60° field of view) hovered 12 cm above the sheet, viewing directly downwards. By randomly varying the camera’s location and orientation, an extremely large number of unique images could be generated from the scene. _Main training dataset._ We rendered 10,000 images to create the main training dataset for the neural network models. For each rendering, one of the six HDRIs was randomly selected to illuminate the scene. Surface relief was scaled multiplicatively in depth by a uniformly sampled random scaling factor, so that the distance between the lowest and highest points on the surface was between 0.1 cm and 2.5 cm. The surface’s reflectance properties were controlled via the Unity3D standard shader, using the ‘specular setup’. The diffuse reflectance component of the surface material was chosen by selecting RGB values randomly uniformly within the interval 0.3 to 0.7, independently for each channel. The surface was either low or high gloss, with equal probability. For low-gloss surfaces, the specular reflectance component of the material was selected randomly uniformly between 0.1 and 0.3, and the concentration of the specular component was selected randomly uniformly between 0.2 and 0.4. For high-gloss surfaces, specular reflectance was between 0.3 and 0.5, and specular concentration was between 0.75 and 0.95. The training dataset therefore had a bimodal distribution of approximately 50% low-gloss and 50% high-gloss surfaces, with small variations in reflectance properties within each group. The same dataset was also used when training classifiers to decode gloss and other world factors from models. _Continuously sampled gloss training dataset._ To verify that the representations learned by our models were not artefacts of the bimodal gloss sampling in the main dataset, we rendered 10,000 new images in which both the magnitude and concentration of the specular reflectance component were sampled randomly uniformly between 0.1 and 0.8, independently of each other. All other scene properties were varied as in the main dataset. _Higher-variation training dataset._ To verify that less-constrained visual diets could lead to similar gloss representations, we created a third training dataset in which 10,000 images each randomly combined one of ten novel surface geometries with 50 novel light fields. The novel geometries were virtual 40 cm × 40 cm sheets with different shapes and sizes of irregularly placed ridges, bumps and indentations (examples are shown in Fig. 7a). The novel light fields were 4,096 pixel × 2,048 pixel [HDR images (25 exterior and 25 interior) from the HDRI Haven database (http://](http://www.hdrihaven.com) [www.hdrihaven.com). The distance of the virtual camera above the surface varied](http://www.hdrihaven.com) randomly uniformly between 8 cm and 12 cm to introduce scale variation. All other scene properties varied as in the main dataset. _Renderings with continuously sampled gloss levels (Experiment 1: gloss ratings)._ The stimuli were 50 new rendered images with specular reflectance chosen randomly uniformly between 0.2 and 1.0, and specular concentration set to the same value. Other attributes were varied as in the main dataset. For all rendered images used as stimuli in the psychophysical experiments (Experiments 1, 3 and 4), the same geometry and set of light fields were used as in the main training dataset, but the images were novel renderings unseen by any model during training. _Gloss-modulated images generated from PixelVAE models (Experiment 2: gloss_ _manipulation)._ For each of the PixelVAE networks, we first determined the axis in 10D latent space along which gloss could be most strongly discriminated (‘Data analysis’). Eight images (four low-gloss and four high-gloss) from the main training dataset were input to each network, and their corresponding latent points were recorded. These were used as seed points to generate eight gloss-modulated sequences for each network. The first step in each sequence was generated by conditioning the model’s pixel-sampling process on the respective seed point in latent space and then sampling a 128 pixel × 128 pixel image (‘Neural network architectures and training’). The conditioning point was then moved 0.07 units in latent space along that model’s gloss-discriminating axis, in either the matte (for high-gloss seed images) or glossy (for low-gloss seed images) direction, and a second image was generated. This was repeated three more times, yielding a five-step sequence for each seed image from each model training instance (400 experimental images in total). _Sequences of renderings with increasing surface relief (Experiments 3a and 3b:_ _patterns of gloss constancy)._ To create a strong test of the different models, we wanted to probe human gloss constancy using stimuli for which there were clear differences in constancy patterns predicted by unsupervised versus supervised models <sup>88,89</sup>, and which were likely to produce diverse patterns of failures of constancy in human observers. We therefore first generated candidate stimuli and then selected those that best satisfied these desiderata. For each experiment, we rendered 200 different candidate sequences of seven images with fixed random material, illumination and camera position, but exponentially increasing surface relief (maximum bump heights of 0.10, 0.18, 0.31, 0.55, 0.97, 0.70 and 3.0 cm). All surfaces had relatively high gloss. In Experiment 3a, specular reflectance was selected randomly uniformly between 0.2 and 1.0, and specular concentration was between 0.7 and 1.0. In Experiment 3b, reflectance was between 0.1 and 0.3, and concentration was between 0.8 and 1.0. Other attributes were varied as in the main dataset. All 1,400 images in each set were input to each of the unsupervised PixelVAE and supervised ResNet networks to obtain predicted gloss values (‘Data analysis’). For each candidate sequence of seven images, we then simulated the responses from each network under a two-alternative forced-choice (2AFC) experiment in which each possible pair of images was compared, and the image for which the model predicted a higher gloss value was selected. This was analogous to the ‘Which is more glossy?’ task performed by human observers (‘Psychophysical procedures’). First, for each sequence we performed a 2 × 7 (model × surface relief) ANOVA between unsupervised and supervised model predictions, averaged over the training instances of each model. The sequences were sorted according to the _F_ interaction statistic, prioritizing those with strong disagreements between model predictions <sup>88,89</sup> . In Experiment 3a, we visually inspected the top-ranked sequences and selected ten with diverse appearances and subjective failures of gloss constancy. In Experiment 3b, we selected test sequences in an entirely automated manner by classifying the sequences into four qualitative groups on the basis of the average constancy pattern predicted by the unsupervised models: - Group 1: the model predicts approximate constancy (range of predicted ‘proportion glossier’ values < 0.25, and a linear function fit achieved _R_ <sup>2</sup> - 0.70); - Group 2: the model predicts an approximately linear increase in gloss with bump height (range > 0.50, and a linear fit achieved _R_ <sup>2</sup> - 0.90); - Group 3: the model predicts a non-monotonic failure of constancy (range > 0.50, and a quadratic fit of _R_ <sup>2</sup> - 0.90 with a negative coefficient of the squared term); - Group 4: the model predicts an upward-swinging nonlinear failure of constancy (range > 0.50, and a quadratic fit of _R_ <sup>2</sup> - 0.90 with a positive coefficient of the squared term). We then selected the top sequences in each group (ranked by the _F_ interaction term), in proportion to the size of each group (one constant, four linear, two non-monotonic and three nonlinear sequences). _Pairs of renderings with differing surface relief or lighting (Experiment 4: degrees of_ _gloss constancy)._ Here we sought pairs of stimuli with diverse scene differences (some differing in surface relief, some in lighting environment and some in angle of illumination) and for which the unsupervised model made a wide range of predictions, ranging from good constancy to strong failure of constancy. We rendered 800 candidate image pairs with the same random material properties and camera position, but differing in either surface relief (0.40 cm versus 1.5 cm maximum bump height) or illumination. Pairs differing in illumination were either ‘naturally’ lit (differing in HDRI lighting environment, from among the six used in the main training dataset) or illuminated by a directional lamp (at a 30° versus 90° angle). Candidate pairs were generated in four groups of 200: - Group 1: identical natural light field; different surface relief; - Group 2: identical lamp angle; different surface relief; - Group 3: identical surface relief; different natural light field; - Group 4: identical surface relief; different lamp angle. Average predicted gloss values were obtained for each image, across training instances of the unsupervised PixelVAE model (‘Data analysis’). Within each group, we ranked pairs by the absolute difference in predicted gloss of the images in the pair, and we selected pairs lying at each of the 10th percentiles, yielding 40 test pairs. _Geometry and lighting generalization test set._ To test the generalization of models trained on the main dataset, we rendered five sets of 500 new images, one using the original surface sheet and four using novel surface geometries (Fig. 7a). Illumination was randomly one of eight novel 4,096 pixel × 2,048 pixel HDR light probes (six exterior and two interior) from the Dutch Skies 360° HDRI [Project (http://www.dutch360hdr.com/). Specular reflectance was varied as in the](http://www.dutch360hdr.com/) continuously sampled gloss training dataset. _Highlight-feature manipulated images._ To manipulate highlight features (Fig. 8), we manipulated the specular component image in four different ways, before combining with the diffuse component image by addition: - Translated highlights: the specular component was shifted rightwards in ten five-pixel steps. To avoid edge artefacts after translation, the images were rendered at 1,024 × 1,024 resolution and then cropped to the lower-right 800 pixels × 800 pixels. - Reducing highlight coverage: we applied image erosion to the specular component using the OpenCV package for Python. The kernel size was 2 × 2. Up to ten iterations were applied to create ten progressively reduced highlight maps. - Reducing highlight sharpness: the specular image was convolved with a Gaussian filter, with the step size ranging from 1 × 1 to 11 × 11. - Reducing highlight contrast: we created a ‘highlight mask’ by identifying pixels with values >4 (from a range of 0–255) in the greyscale version of the specular image. The standard deviation of pixel intensity within the highlight map was multiplicatively reduced in ten steps, from 1 to 0.1 times their original s.d., while retaining the original mean. Neural network architectures and training. The DNNs were implemented [and trained in Python v.2.7 (Python Software Foundation, https://www.python.](https://www.python.org/) [org/) with Tensorflow v.1.14 (https://www.tensorflow.org/) on a GPU-accelerated](https://www.python.org/) machine using 1-4 GTX1080 graphics cards. The networks were trained on the first 9,000 images of the main training dataset, using the next 500 for validation and the final 500 for testing the accuracy of the supervised networks. All images were input at a resolution of 128 pixels × 128 pixels. For both unsupervised and supervised models, ten independent instances of the same architecture were trained from different random initial weights and with different random sampling of training batches, to ensure robustness to representational differences between training instances <sup>70</sup> . We also trained five instances of the PixelVAE network on the continuously sampled gloss dataset and one on the higher-variation dataset (‘Stimuli’), dividing training and validation data in the same proportions. No data augmentation was used. All architectures used rectified linear activation functions. _Unsupervised PixelVAE model._ We used the implementation from ref. <sup>47</sup> of the PixelVAE architecture <sup>48</sup> [, available at https://github.com/ermongroup/](https://github.com/ermongroup/Generalized-PixelVAE) [Generalized-PixelVAE. The architecture consists of two streams of convolutional](https://github.com/ermongroup/Generalized-PixelVAE) layers, which learn jointly via backpropagation. One stream is a ‘conditioning network’, which is a convolutional variational autoencoder that takes an image as input and outputs a 10D smooth latent representation. We chose a 10D latent code as being approximately the most compact representation that still allowed the network to learn a good model of the training images, on the basis of pilot data (Supplementary Fig. 1a,b). The other stream is an autoregressive PixelCNN++ <sup>113,114</sup> model that learns the structure of the training data in terms of a logistic mixture probability distribution over pixel values and takes as inputs both the image and the latent code output by the conditioning network. To generate new images, the autoregressive stream chooses an RGB value for each pixel, working from the top left to the bottom right of the image. Each pixel is sampled from the learned probability distribution, conditioning both on the values of pixels generated so far (which constrain the local structure of the image) and on the values provided in the latent code (which constrain more holistic image properties). The conditioning network consisted of three convolutional layers of 64, 128 and 256 feature maps, followed by a fully connected layer of 512 units and a 10-unit latent code layer. The autoregressive network consisted of six ‘residual blocks’ of three layers of 64 convolutional feature maps each, with skip connections linking the first and sixth, and second and fifth blocks. Pixel likelihood distributions were modelled with a mixture of 12 logistic functions, and the networks were trained with a batch size of 5 and a learning rate of 0.001 for 200 epochs, around which point the validation error plateaued. The learning rate was gradually decayed by multiplying by 0.999995 after each epoch. No regularization was used during training, to encourage the network to depend on information in its latent code <sup>47</sup> . _Supervised ResNet model._ We used the Tensorflow implementation of the ResNet architecture <sup>57</sup> [from https://github.com/wenxinxu/resnet-in-tensorflow. The](https://github.com/wenxinxu/resnet-in-tensorflow) networks consisted of three residual blocks each made up of three layers of 56 convolutional feature maps, with skip connections between each. The output of the final layer was passed to a ten-unit fully connected layer, which we treated as the ‘latent code’ of the model for analysis purposes. This passed, via one more nonlinearity, to a two-unit softmax output layer. Ten networks were trained, from different random initial weights, to classify images as renderings of surfaces with high or low specular reflectance (‘Stimuli’). The networks were trained with a batch size of 32 and a learning rate of 0.001 to minimize the sparse softmax cross-entropy between outputs and correct labels. The learning rate was gradually decayed by multiplying by 0.99995 after each epoch. The networks were trained for 21 epochs, by which point the validation accuracy plateaued above 99%. _Simple autoencoder._ We also considered a far simpler unsupervised model, in the form of a non-variational convolutional autoencoder implemented using Keras [v.2.2.5 (https://keras.io/) for Tensorflow. The architecture comprised four layers](https://keras.io/) of 64, 32, 16 and 16 feature maps alternating with 2 × 2 pooling layers, leading to a 4,096-unit fully connected bottleneck layer, which we treated as the model’s latent feature space for analysis purposes. The compressed code was expanded through mirrored layers of 16, 16, 32 and 64 feature maps to an output of the original dimensionality (128 × 128 × 3). The network was trained for 1,000 epochs to minimize mean absolute error between its input and output images (batch size 32, other learning parameters used the default Adam optimizer values as implemented in Keras). _Object-trained DNN._ Finally, we evaluated a pretrained DNN supervised on object recognition: an 18-layer ResNet <sup>57</sup> model available from the Deep Learning toolbox [(https://mathworks.com/help/deeplearning/ref/resnet18.html) for MATLAB](https://mathworks.com/help/deeplearning/ref/resnet18.html) 2019b (The MathWorks Inc.). The network had been pretrained on the ImageNet Large-Scale Visual Recognition Challenge database to classify 1.2 million images into 1,000 object and animal categories <sup>58</sup> . For the analyses, we used representations in the 1,000-unit fully connected layer immediately before softmax category readout. Additional comparison models. _Histogram skewness._ Skewness was defined as the skew (third moment) of the distribution of pixel intensities in a greyscale version of each image. _MDS, tSNE and LLE._ MDS is a linear dimensionality reduction technique that finds the linear projection of a dataset that best preserves the distances between all data points. tSNE <sup>74</sup> is a nonlinear technique that preferentially preserves the distances between nearby data points. LLE <sup>75</sup> is a nonlinear technique that seeks a lower-dimensional manifold that best preserves all distances. Each dimensionality reduction algorithm was used to create a 10D embedding of the 10,000 images from the main training dataset, as well as all 270 rendered images used in the experiments (50 images from Experiment 1, 140 from Experiment 3 and 80 from Experiment 4). The experimental probe images were included because it is not possible to project new data points into the reduced-dimensionality solution discovered by tSNE or LLE. Additional 2D embeddings were performed to create the visualizations (Fig. 2a–c and Supplementary Fig. 2) using 4,000 images randomly selected from the main training dataset. The default parameters were used, as implemented in the scikit-learn package for Python. _Texture features._ For each image, we calculated a multiscale texture feature description <sup>85</sup> [using the TextureSynth package for MATLAB (www.cns.nyu.](http://www.cns.nyu.edu/~lcv/texture/) [edu/~lcv/texture/). The images were rescaled to 256 pixels × 256 pixels and](http://www.cns.nyu.edu/~lcv/texture/) analysed at three scales, four orientations, with a spatial neighbourhood of seven, producing a description of each image in terms of 1,350 feature dimensions. Psychophysical procedures. The psychophysical experiments were conducted in a dimly lit room, sitting at a comfortable distance from the screen. The participants could freely view the screen and were given no fixation instructions. The stimuli were presented on an EIZO ColorEdge CG277 self-calibrating LCD monitor with [a resolution of 2,560 × 1,440 and a refresh rate of 60 Hz. PsychoPy v.3.1 (https://](https://www.psychopy.org/) [www.psychopy.org/) with Python v.3.6 was used to present the stimuli and record](https://www.psychopy.org/) the responses. At the beginning of each experiment, the observers were shown 4–12 example experimental stimuli, randomly arranged, to familiarize them with the appearance and range of material properties that they would be asked to judge. Response times were unconstrained, and the stimuli were displayed until a response was recorded. _Experiment 1: gloss ratings._ Experiment 1 measured gloss ratings for novel rendered images. Fifty 800 pixel × 800 pixel (18.6 cm × 18.6 cm) images were presented singly in the centre of the screen. Each was repeated three times, for a total of 150 trials, presented in a random order. The participants were asked to rate the apparent gloss of each image using a six-point scale with endpoints labelled ‘1 = completely matte’ and ‘6 = extremely glossy’. _Experiment 2: gloss manipulation._ Experiment 2 measured gloss rankings for gloss-modulated network-generated images. Eighty sets of five 128 pixel × 128 pixel (2.9 cm × 2.9 cm) PixelVAE-generated images were shown. The five images in each set were arrayed in a random order in a row in the centre of the screen. The participants were asked to use the keyboard number keys to sort the images into a row of initially empty boxes at the bottom of the screen, in order from least glossy to most glossy. Each set of stimuli was shown once, for a total of 80 trials, presented in a random order. _Experiments 3a and 3b: patterns of gloss constancy._ Experiment 3 measured pairwise gloss comparisons for probe sequences differing only in surface relief. Experiments 3a and 3b differed only in the specific sequences shown to the participants. Both experiments consisted of 10 sequences of 7 images, within which all possible pairs were shown twice each, for a total of 420 trials. The mages appeared at a resolution of 800 pixels × 800 pixels (18.6 cm × 18.6 cm), side by side on screen. Side of screen and trial order were randomized, with all sequences interleaved with one another. The participants were asked to report, using the left and right arrow keys, which surface appeared more glossy. _Experiment 4: degrees of gloss constancy._ Experiment 4 measured pairwise gloss comparisons for pairs of images differing in surface relief or illumination. Each of 40 pairs of images was shown 8 times, for a total of 360 trials. The images appeared at a resolution of 128 pixels × 128 pixels (2.9 cm × 2.9 cm), side by side, with side of screen and trial order randomized. The participants reported, using the left and right arrow keys, which surface appeared more glossy. Data analysis. All analyses of human and model data were performed in Python v.2.7 or v.3.6, using the numpy v.1.16.5 and/or scikit-learn v.0.21.3 packages. _Representational similarity analysis._ We measured the average correlation distance (1 minus Pearson’s _r_ ) between the latent representations of all 10,000 images in the main training dataset, grouped by whether they used the same (diagonal blocks) or different (off-diagonal blocks) gloss/lighting conditions, for each network training instance. Representational dissimilarity matrices (Fig. 2d,e) were created by averaging these values over the training instances of each model. To visualize the similarity of the model predictions (Fig. 7b), we created a vector, for each model, of predicted gloss values for all 270 rendered images used as experimental stimuli (50 images from Experiment 1, 140 images from Experiment 3 and 80 images from Experiment 4), normalized into the range 0–1. The Euclidean distance between these prediction vectors was calculated for all pairs of models. _Decoding world factors from models and deriving gloss predictions._ For models with multidimensional feature spaces (that is, all except histogram skewness), a linear SVM was used to classify the specular reflectance (high versus low) of the rendered images from their representations within the model. The SVMs were trained on a random sample of 7,500 of the main training dataset images and tested on the remaining 2,500 to derive gloss classification accuracies (Fig. 3, Fig. 6a and Supplementary Figs. 4a and 5a). To derive continuously valued gloss predictions for the experimental images, the images were input to each model, and the signed distance of their representation from the model’s SVM decision boundary was measured. Positive values indicate high-gloss classifications, and negative values indicate low-gloss, with the absolute magnitude indicating the strength of evidence for that classification (Fig. 3, Fig. 4b,c, Fig. 5d,e, Fig. 7a, Fig. 8b and Supplementary Figs. 6b–d and 7b). For the unsupervised PixelVAE and supervised ResNet models, we also trained linear SVMs to perform a six-way light-field classification, and we fitted linear regressions to predict surface relief (Fig. 3b). Classifiers and regressions were performed once using the full 10D latent space for each network and again using each of the network’s individual latent dimensions (Fig. 3b; see also Supplementary Fig. 1c for a visualization of the individual dimensions in one unsupervised network). For the histogram skewness model, the raw skew values were used as gloss predictors for the purposes of model comparison. Ground-truth gloss classification accuracy (Fig. 6a) was defined as the accuracy using an optimal threshold to separate high-specular-reflectance from low-specular-reflectance images on the basis of their skewness, fitting the threshold on 7,500 main training dataset images and testing on the remaining 2,500. _Deriving predicted 2AFC experimental data from models._ The model predictions for Experiment 3 were derived by simulating responses of each model in the 2AFC task performed by humans. For each sequence of seven images, the predicted gloss values of each possible pair of images were compared, and the image for which the model predicted higher gloss was selected. The predicted responses were summarized as ‘proportion selected as being glossier’ for each level in the sequence, as for the human data (Fig. 5b and Supplementary Fig. 3). _Measuring highlight features._ Coverage, sharpness and contrast of highlights (Fig. 8) were measured using a MATLAB package developed by Schmid et al. <sup>115</sup> . Briefly, coverage is defined as the proportion of pixels with higher intensities in the full image than in the diffuse component image, sharpness is defined as the local phase coherence <sup>116</sup> within the specular component image and contrast is defined as the sum of the root mean square contrast across eight bandpass-filtered versions of the specular component image. Psychophysical data analysis. No participants or trials were excluded from the analysis. In Experiment 1, both human ratings and model-predicted gloss values were normalized to the range 0–1 before comparing, individually for each participant or model instance. In Experiment 2, the rankings were converted to average rank position of each image step for each participant, averaging within matte and glossy seed image sequences. In Experiments 3a and 3b, the pairwise comparisons were converted to the proportion of times each image in each sequence was judged as having higher gloss, across pairings and repetitions, for each participant. In Experiment 4, the pairwise comparisons were converted to the proportion of times that image A (arbitrarily labelled) was judged as having higher gloss than image B, and this proportion was subtracted from 0.5 (that is, 0 indicates equal apparent gloss and good constancy; deviations in either direction indicate deviations from constancy). The model predictions were obtained by subtracting the predicted gloss value of image B from that of image A and scaling this gloss difference into the range −0.5 to 0.5, retaining the original zero point. For models with multiple training instances, model predictions were always derived (and performances calculated) for each individual training instance. Statistical analysis. The statistical analyses were performed using the Pingouin <sup>117</sup> package for Python (v.0.3.10). All tests were two-tailed. The CIs reported for mean differences and correlations were calculated by bootstrapping the respective estimate 10,000 times. The data distributions were assumed to be normal, but this was not formally tested. The gloss predictions of all models were fixed, with no free parameters in evaluation against human data, except for the analysis of the data in Fig. 5e, where the performance of a logistic transform of unsupervised model predictions is also reported. Reporting Summary. Further information on research design is available in the Nature Research Reporting Summary linked to this article. Data availability [All human and model data are available on Zenodo at https://doi.org/10.5281/](https://doi.org/10.5281/zenodo.4495586) [zenodo.4495586.](https://doi.org/10.5281/zenodo.4495586) Code availability The custom analysis code that supports the findings of this study is available on [Zenodo at https://doi.org/10.5281/zenodo.4495586.](https://doi.org/10.5281/zenodo.4495586) Received: 16 June 2020; Accepted: 9 March 2021; Published online: 6 May 2021 References 1. Adelson, E. H. Lightness perception and lightness illusions. in _The New_ _Cognitive Neurosciences_ (ed. Gazzaniga, M.S.) 339–351 (MIT Press, 2000). 2. Anderson, B. L. Mid-level vision. _Curr. Biol._ 30, R105–R109 (2020). 3. Anderson, B. L. The perceptual representation of transparency, lightness, and gloss. in _Handbook of Perceptual Organization_ (ed. Wagemans, J.) 466–483 (Oxford University Press, 2015). 4. Barrow, H., Tenenbaum, J., Hanson, A. & Riseman, E. Recovering intrinsic scene characteristics. _Comput. Vis. Syst._ 2, 3–26 (1978). 5. Fleming, R. W. Material perception. _Annu. Rev. Vis. Sci._ 3, 365–388 (2017). 6. Todd, J. T. The visual perception of 3D shape. _Trends Cogn. Sci._ 8, 115–121 (2004). 7. Todd, J. T., Norman, J. F. & Mingolla, E. Lightness constancy in the presence of specular highlights. _Psychol. Sci._ 15, 33–39 (2004). 8. Marr, D. _Vision_ (Freeman, 1982). 9. Kersten, D., Mamassian, P. & Yuille, A. Object perception as Bayesian inference. _Annu. Rev. Psychol._ 55, 271–304 (2004). 10. Geisler, W. S. & Kersten, D. Illusions, perception and Bayes. _Nat. Neurosci._ 5, 508–510 (2002). 11. von Helmholtz, H. _Handbuch der physiologischen Optik_ Vol. 3 (1867). English edition: _Treatise on Physiological Optics_ Vol. 3 (trans. Ladd-Franklin, C., Gullstrand, A. and von Kries, J.) (Courier Corporation, 2013). 12. Anderson, B. L. Can computational goals inform theories of vision? _Top. Cogn. Sci._ 7, 274–286 (2015). 13. Hoffman, D. D., Singh, M. & Prakash, C. The interface theory of perception. _Psychon. Bull. Rev._ 22, 1480–1506 (2015). 14. Fleming, R. W. & Storrs, K. R. Learning to see stuff. _Curr. Opin. Behav. Sci._ 30, 100–108 (2019). 15. Barlow, H. The exploitation of regularities in the environment by the brain. _Behav. Brain Sci._ 24, 602–607 (2001). 16. DiCarlo, J. J. & Cox, D. D. Untangling invariant object recognition. _Trends_ _Cogn. Sci._ 11, 333–341 (2007). 17. Storrs, K. R. & Fleming, R. W. Learning about the world by learning about images. _Curr. Dir. Psychol. Sci._ (in the press). 18. Higgins, I. et al. Towards a definition of disentangled representations. Preprint at _arXiv_ [https://arxiv.org/abs/1812.02230 (2018).](https://arxiv.org/abs/1812.02230) 19. Barlow, H. B. Possible principles underlying the transformation of sensory messages. _Sens. Commun._ 1, 217–234 (1961). 20. Attneave, F. Some informational aspects of visual perception. _Psychol. Rev._ 61, 183–193 (1954). 21. Simoncelli, E. P. & Olshausen, B. A. Natural image statistics and neural representation. _Annu. Rev. Neurosci._ 24, 1193–1216 (2001). 22. Olshausen, B. A. & Field, D. J. Emergence of simple-cell receptive field properties by learning a sparse code for natural images. _Nature_ 381, 607–609 (1996). 23. Grossberg, S. Adaptive pattern classification and universal recoding: I. Parallel development and coding of neural feature detectors. _Biol. Cybern._ 23, 121–134 (1976). 24. Földiak, P. Forming sparse representations by local anti-Hebbian learning. _Biol. Cybern._ 64, 165–170 (1990). 25. Anderson, B. L. Visual perception of materials and surfaces. _Curr. Biol._ 21, R978–R983 (2011). 26. Gilchrist, A. et al. An anchoring theory of lightness perception. _Psychol. Rev._ 106, 795–834 (1999). 27. Pont, S. C. & te Pas, S. F. Material—illumination ambiguities and the perception of solid objects. _Perception_ 35, 1331–1350 (2006). 28. Adams, W. J., Kucukoglu, G., Landy, M. S. & Mantiuk, R. K. Naturally glossy: gloss perception, illumination statistics, and tone mapping. _J. Vis._ 18, 4 (2018). 29. Foster, D. H. Color constancy. _Vis. Res._ 51, 674–700 (2011). 30. Motoyoshi, I. & Matoba, H. Variability in constancy of the perceived surface reflectance across different illumination statistics. _Vis. Res._ 53, 30–39 (2012). 31. Chadwick, A. C. & Kentridge, R. The perception of gloss: a review. _Vis. Res._ 109, 221–235 (2015). 32. Obein, G., Knoblauch, K. & Viéot, F. Difference scaling of gloss: nonlinearity, binocularity, and constancy. _J. Vis._ 4, 4 (2004). 33. Fleming, R. W., Dror, R. O. & Adelson, E. H. Real-world illumination and the perception of surface reflectance properties. _J. Vis._ 3, 3 (2003). 34. Ho, Y.-X., Landy, M. S. & Maloney, L. T. Conjoint measurement of gloss and surface texture. _Psychol. Sci._ 19, 196–204 (2008). 35. Marlow, P. J., Kim, J. & Anderson, B. L. The perception and misperception of specular surface reflectance. _Curr. Biol._ 22, 1909–1913 (2012). 36. Doerschner, K. et al. Visual motion and the perception of surface material. _Curr. Biol._ 21, 2010–2016 (2011). 37. Wendt, G., Faul, F., Ekroll, V. & Mausfeld, R. Disparity, motion, and color information improve gloss constancy performance. _J. Vis._ 10, 7 (2010). 38. Toscani, M., Guarnera, D., Guarnera, C., Hardeberg, J. Y. & Gegenfurtner, K. Three perceptual dimensions for specular and diffuse reflection. _ACM_ _Trans. Appl. Percept._ 17, 6 (2020). 39. Ferwerda, J. A., Pellacini, F. & Greenberg, D. P. Psychophysically based model of surface gloss perception. _Proc. SPIE Int. Soc. Opt. Eng._ 4299, 291–301 (2001). 40. Lagunas, M. et al. A similarity measure for material appearance. _ACM_ _Trans. Graph._ 38, 135 (2019). 41. Ingersoll, L. R. The glarimeteran instrument for measuring the gloss of paper. _J. Opt. Soc. Am._ 5, 213–217 (1921). 42. Ward, G. J. Measuring and modeling anisotropic reflection. In _Proc. 19th_ _Annual Conference on Computer Graphics and Interactive Techniques_ (ed. Thomas, J.J.) 265–272 (Association for Computing Machinery, 1992). 43. Wills, J., Agarwal, S., Kriegman, D. & Belongie, S. Toward a perceptual space for gloss. _ACM Trans. Graph._ 28, 103 (2009). 44. Serrano, A., Gutierrez, D., Myszkowski, K., Seidel, H.-P. & Masia, B. An intuitive control space for material appearance. _ACM Trans. Graph._ 35 (2016). 45. Vangorp, P., Laurijssen, J. & Dutré, P. The influence of shape on the perception of material reflectance. _ACM SIGGRAPH 2007_ 77 (2007). 46. Salakhutdinov, R. Learning deep generative models. _Annu. Rev. Stat. Appl._ 2, 361–385 (2015). 47. Zhao, S., Song, J. & Ermon, S. Towards deeper understanding of variational autoencoding models. Preprint at _arXiv_ [https://arxiv.org/abs/1702.08658](https://arxiv.org/abs/1702.08658) (2017). 48. Gulrajani, I. et al. PixelVAE: a latent variable model for natural images. Preprint at _arXiv_ [https://arxiv.org/abs/1611.05013 (2016).](https://arxiv.org/abs/1611.05013) 49. Radford, A., Metz, L. & Chintala, S. Unsupervised representation learning with deep convolutional generative adversarial networks. Preprint at _arXiv_ [https://arxiv.org/abs/1511.06434 (2015).](https://arxiv.org/abs/1511.06434) 50. Higgins, I. et al. beta-VAE: learning basic visual concepts with a constrained variational framework. in _5th International Conference on_ _Learning Representations (ICLR)_ [https://openreview.net/pdf?id=Sy2fzU9gl](https://openreview.net/pdf?id=Sy2fzU9gl) (2017). 51. Lindsay, G. Convolutional neural networks as a model of the visual system: past, present, and future. _J. Cogn. Neurosci._ [https://doi.org/10.1162/](https://doi.org/10.1162/jocn_a_01544) [jocn_a_01544 (2020).](https://doi.org/10.1162/jocn_a_01544) 52. Yamins, D. L. & DiCarlo, J. J. Using goal-driven deep learning models to understand sensory cortex. _Nat. Neurosci._ 19, 356–365 (2016). 53. Storrs, K. R. & Kriegeskorte, N. Deep learning for cognitive neuroscience. in _The Cognitive Neurosciences_ (eds. Poeppel, D., Mangun, G. R., & Gazzaniga, M. S.) 703–716 (MIT Press, 2020). 54. Richards, B. A. et al. A deep learning framework for neuroscience. _Nat._ _Neurosci._ 22, 1761–1770 (2019). 55. Kriegeskorte, N. Deep neural networks: a new framework for modeling biological vision and brain information processing. _Annu. Rev. Vis. Sci._ 1, 417–446 (2015). 56. LeCun, Y., Bengio, Y. & Hinton, G. Deep learning. _Nature_ 521, 436–444 (2015). 57. He, K., Zhang, X., Ren, S. & Sun, J. Deep residual learning for image recognition. In _Proc. IEEE Conference on Computer Vision and Pattern_ _Recognition_ 770–778 (2016). 58. Russakovsky, O. et al. ImageNet Large Scale Visual Recognition Challenge. _Int. J. Comput. Vis._ 115, 211–252 (2015). 59. Taigman, Y., Yang, M., Ranzato, M. & Wolf, L. Deepface: closing the gap to human-level performance in face verification. In _Proc. IEEE Conference on_ _Computer Vision and Pattern Recognition_ 1701–1708 (2014). 60. Cadieu, C. F. et al. Deep neural networks rival the representation of primate IT cortex for core visual object recognition. _PLoS Comput. Biol._ 10, e1003963 (2014). 61. Schrimpf, M. et al. Brain-score: which artificial neural network for object recognition is most brain-like? Preprint at _bioRxiv_ [https://doi.](https://doi.org/10.1101/407007) [org/10.1101/407007 (2018).](https://doi.org/10.1101/407007) 62. Storrs, K. R., Kietzmann, T. C., Walther, A., Mehrer, J. & Kriegeskorte, N. Diverse deep neural networks all predict human IT well, after training and fitting. _J. Cogn. Neurosci._ (in the press). 63. Khaligh-Razavi, S.-M. & Kriegeskorte, N. Deep supervised, but not unsupervised, models may explain IT cortical representation. _PLoS Comput._ _Biol._ 10 (2014). 64. Nguyen, A., Yosinski, J. & Clune, J. Deep neural networks are easily fooled: high confidence predictions for unrecognizable images. in _Proc. IEEE_ _Conference on Computer Vision and Pattern Recognition_ 427–436 (2015). 65. Geirhos, R. et al. Generalisation in humans and deep neural networks. _Adv. Neural Inf. Process. Syst._ 31, 7538–7550 (2018). 66. Geirhos, R. et al. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. Preprint at _arXiv_ [https://arxiv.org/abs/1811.12231 (2018).](https://arxiv.org/abs/1811.12231) 67. Geirhos, R. et al. Shortcut learning in deep neural networks. _Nature_ _Machine Intelligence_ 2, 665–673 (2020). 68. Kingma, D. P. & Welling, M. Auto-encoding variational Bayes. in _International Conference on Learning Representations 2013_ [https://](https://openreview.net/forum?id=33X9fd2-9FyZd) [openreview.net/forum?id=33X9fd2-9FyZd (2013).](https://openreview.net/forum?id=33X9fd2-9FyZd) 69. Hinton, G. E. & Salakhutdinov, R. R. Reducing the dimensionality of data with neural networks. _Science_ 313, 504–507 (2006). 70. Mehrer, J., Spoerer, C. J., Kriegeskorte, N. & Kietzmann, T. C. Individual differences among deep neural network models. _Nat. Commun_ . 11 (2020). 71. He, K., Zhang, X., Ren, S. & Sun, J. Delving deep into rectifiers: surpassing human-level performance on ImageNet classification. In _Proc. IEEE_ _International Conference on Computer Vision_ 1026–1034 (2015). 72. Bengio, Y., Courville, A. & Vincent, P. Representation learning: a review and new perspectives. _IEEE Trans. Pattern Anal. Mach. Intell._ 35, 1798–1828 (2013). 73. Testolin, A., Stoianov, I. & Zorzi, M. Letter perception emerges from unsupervised deep learning and recycling of natural image features. _Nat. Hum. Behav._ 1, 657–664 (2017). 74. van der Maaten, L. & Hinton, G. Visualizing data using t-SNE. _J. Mach._ _Learn. Res._ 9, 2579–2605 (2008). 75. Roweis, S. T. & Saul, L. K. Nonlinear dimensionality reduction by locally linear embedding. _Science_ 290, 2323–2326 (2000). 76. Nili, H. et al. A toolbox for representational similarity analysis. _PLoS_ _Comput. Biol._ 10, e1003553 (2014). 77. Kriegeskorte, N. & Kievit, R. A. Representational geometry: integrating cognition, computation, and the brain. _Trends Cogn. Sci._ 17, 401–412 (2013). 78. Kriegeskorte, N. & Diedrichsen, J. Inferring brain-computational mechanisms with models of activity measurements. _Phil. Trans. R. Soc. B_ 371, 20160278 (2016). 79. Testolin, A. & Zorzi, M. Probabilistic models and generative neural networks: towards an unified framework for modeling normal and impaired neurocognitive functions. _Front. Comput. Neurosci._ 10, 73 (2016). 94, 62–75 (2014). 80. Hong, H., Yamins, D. L., Majaj, N. J. & DiCarlo, J. J. Explicit information for category-orthogonal object properties increases along the ventral stream. _Nat. Neurosci._ 19, 613–622 (2016). 81. Naselaris, T., Kay, K. N., Nishimoto, S. & Gallant, J. L. Encoding and decoding in fMRI. _NeuroImage_ 56, 400–410 (2011). 82. Gatys, L., Ecker, A. S. & Bethge, M. Texture synthesis using convolutional neural networks. _Adv. Neural Inf. Process. Syst._ 29, 262–270 (2015). 83. Zhang, R., Isola, P., Efros, A. A., Shechtman, E. & Wang, O. The unreasonable effectiveness of deep features as a perceptual metric. In _Proc. IEEE Conference on Computer Vision and Pattern Recognition_ 586–595 (2018). 84. Rajalingham, R. et al. Large-scale, high-resolution comparison of the core visual object recognition behavior of humans, monkeys, and state-of-the-art deep artificial neural networks. _J. Neurosci._ 38, 7255–7269 (2018). 85. Portilla, J. & Simoncelli, E. P. A parametric texture model based on joint statistics of complex wavelet coefficients. _Int. J. Comput. Vis._ 40, 49–70 (2000). 86. Motoyoshi, I., Nishida, S., Sharan, L. & Adelson, E. H. Image statistics and the perception of surface qualities. _Nature_ 447, 206–209 (2007). 87. Funke, C. M. et al. Five points to check when comparing visual perception in humans and machines. _J. Vis._ 21, 16 (2021). 88. Golan, T., Raju, P. C. & Kriegeskorte, N. Controversial stimuli: pitting neural networks against each other as models of human cognition. _Proc. Natl Acad. Sci. USA_ 117, 29330–29337 (2020). 89. Wang, Z. & Simoncelli, E. P. Maximum differentiation (MAD) competition: a methodology for comparing computational models of perceptual quantities. _J. Vis._ 8, 8 (2008). 90. Havran, V., Filip, J. & Myszkowski, K. Perceptually motivated BRDF comparison using single image. _Comput. Graph. Forum_ 35, 1–12 (2016). 91. Wiebel, C. B., Valsecchi, M. & Gegenfurtner, K. R. The speed and accuracy of material recognition in natural images. _Atten. Percept. Psychophys._ 75, 954–966 (2013). 92. Beck, J. & Prazdny, S. Highlights and the perception of glossiness. _Percept._ _Psychophys._ 30, 407–410 (1981). 93. Anderson, B. L. & Kim, J. Image statistics do not explain the perception of gloss and lightness. _J. Vis._ 9, 10 (2009). 94. Marlow, P. J., Todorović, D. & Anderson, B. L. Coupled computations of three-dimensional shape and material. _Curr. Biol._ 25, R221–R222 (2015). 95. Marlow, P. J. & Anderson, B. L. Material properties derived from three-dimensional shape representations. _Vis. Res._ 115, 199–208 (2015). 96. Marlow, P. J. & Anderson, B. L. Generative constraints on image cues for perceived gloss. _J. Vis._ 13, 2 (2013). 97. Simoncelli, E. P. Vision and the statistics of the visual environment. _Curr. Opin. Neurobiol._ 13, 144–149 (2003). 98. Sawayama, M. & Nishida, S. Material and shape perception based on two types of intensity gradient information. _PLoS Comput. Biol._ 14, e1006061 (2018). 99. Nishida, S. & Shinya, M. Use of image-based information in judgments of surface-reflectance properties. _J. Opt. Soc. Am. A_ 15, 2951–2965 (1998). 100. Adelson, E. H. & Pentland, A. P. in _Perception as Bayesian Inference_ (eds Knill, D. S. & Richards, W.) 409–423 (Cambridge Univ. Press, 1996). 101. Marlow, P. J. & Anderson, B. L. Motion and texture shape cues modulate perceived material properties. _J. Vis._ 16, 5 (2016). 102. Wiesel, T. N. & Hubel, D. H. Ordered arrangement of orientation columns in monkeys lacking visual experience. _J. Comp. Neurol._ 158, 307–318 (1974). 103. Yang, J., Otsuka, Y., Kanazawa, S., Yamaguchi, M. K. & Motoyoshi, I. Perception of surface glossiness by infants aged 5 to 8 months. _Perception_ 40, 1491–1502 (2011). 104. Balas, B. Children’s use of visual summary statistics for material categorization. _J. Vis._ 17, 22 (2017). 105. Balas, B., Auen, A., Thrash, J. & Lammers, S. Children’s use of local and global visual features for material perception. _J. Vis._ 20, 10 (2020). 106. Smith, L. B. & Slone, L. K. A developmental approach to machine learning? _Front. Psychol._ 8, 2124 (2017). 107. Pouget, A., Beck, J. M., Ma, W. J. & Latham, P. E. Probabilistic brains: knowns and unknowns. _Nat. Neurosci._ 16, 1170–1178 (2013). 108. Friston, K. The free-energy principle: a rough guide to the brain? _Trends_ _Cogn. Sci._ 13, 293–301 (2009). 109. Deneve, S. Bayesian spiking neurons I: inference. _Neural Comput._ 20, 91–117 (2008). 110. Brainard, D. H. et al. Functional consequences of the relative numbers of L and M cones. _J. Opt. Soc. Am. A_ 17, 607–614 (2000). 111. Smirnakis, S. M., Berry, M. J., Warland, D. K., Bialek, W. & Meister, M. Adaptation of retinal processing to image contrast and spatial scale. _Nature_ 386, 69–73 (1997). 112. Fleming, R. W. Visual perception of materials and their properties. _Vis. Res._ 113. Salimans, T., Karpathy, A., Chen, X. & Kingma, D. P. PixelCNN++: improving the PixelCNN with discretized logistic mixture likelihood and other modifications. Preprint at _arXiv_ [https://arxiv.org/abs/1701.05517](https://arxiv.org/abs/1701.05517) (2017). 114. Van den Oord, A. et al. Conditional image generation with PixelCNN decoders. _Adv. Neural Inf. Process. Syst._ 30, 4790–4798 (2016). 115. Schmid, A. C., Barla, P. & Doerschner, K. Material category determined by specular reflection structure mediates the processing of image features for perceived gloss. Preprint at _bioRxiv_ [https://doi.](https://doi.org/10.1101/2019.12.31.892083) [org/10.1101/2019.12.31.892083 (2020).](https://doi.org/10.1101/2019.12.31.892083) 116. Hassen, R., Wang, Z. & Salama, M. M. A. Image sharpness assessment based on local phase coherence. _IEEE Trans. Image Process._ 22, 2798–2810 (2013). 117. Vallat, R. Pingouin: statistics in Python. _J. Open Source Softw._ 3, 1026 (2018). Acknowledgements This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation; project number 222641018–SFB/TRR 135 TP C1), the Australian Research Council, the Hessisches Ministerium für Wissenschaft und Kunst (HMWK; project ‘The Adaptive Mind’), by an award from the European Research Council (ERC; Consolidator Award ‘SHAPE’—project number ERC-CoG-2015-682859) to R.W.F. and by an Alexander von Humboldt Postdoctoral Research Fellowship to K.R.S. The funders had no role in study design, data collection and analysis, decision to publish or preparation of the manuscript. We thank A. Schmid and K. Doerschner for sharing code to implement the highlight feature measurement model and thank K. Gegenfurtner and J. Todd for comments on earlier versions of this manuscript. Author contributions Conceptualization, K.R.S., R.W.F. and B.L.A.; methodology, K.R.S. and R.W.F.; software, K.R.S.; formal analysis, K.R.S.; investigation, K.R.S.; resources, R.W.F.; writing—original draft, K.R.S. and R.W.F.; writing—review and editing, K.R.S., R.W.F. and B.L.A.; visualization, K.R.S.; supervision, R.W.F.; funding acquisition, R.W.F. and K.R.S. Competing interests The authors declare no competing interests. Additional information Supplementary information The online version contains supplementary material [available at https://doi.org/10.1038/s41562-021-01097-6.](https://doi.org/10.1038/s41562-021-01097-6) Correspondence and requests for materials should be addressed to K.R.S. Peer review information _Nature Human Behaviour_ thanks Gemma Roig, Daniel Yamins and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Reprints and permissions information [is available at www.nature.com/reprints.](http://www.nature.com/reprints) Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permis[sion directly from the copyright holder. To view a copy of this license, visit http://](http://creativecommons.org/licenses/by/4.0/) [creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2021 Corresponding author(s): <u>Katherine Storrs</u> Last updated by author(s): <u>Feb 24, 2021</u> ### Reporting Summary Nature Research wishes to improve the reproducibility of the work that we publish. This form provides structure for consistency and transparency in reporting. For further information on Nature Research policies, see our <u>Editorial Policies</u> and the <u>Editorial Policy Checklist.</u> ###### Statistics For all statistical analyses, confirm that the following items are present in the figure legend, table legend, main text, or Methods section. n/a Confirmed The exact sample size ( _n_ ) for each experimental group/condition, given as a discrete number and unit of measurement A statement on whether measurements were taken from distinct samples or whether the same sample was measured repeatedly The statistical test(s) used AND whether they are one- or two-sided _Only common tests should be described solely by name; describe more complex techniques in the Methods section._ A description of all covariates tested A description of any assumptions or corrections, such as tests of normality and adjustment for multiple comparisons A full description of the statistical parameters including central tendency (e.g. means) or other basic estimates (e.g. regression coefficient) AND variation (e.g. standard deviation) or associated estimates of uncertainty (e.g. confidence intervals) For null hypothesis testing, the test statistic (e.g. _F_, _t_, _r_ ) with confidence intervals, effect sizes, degrees of freedom and _P_ value noted _Give P values as exact values whenever suitable._ For Bayesian analysis, information on the choice of priors and Markov chain Monte Carlo settings For hierarchical and complex designs, identification of the appropriate level for tests and full reporting of outcomes Estimates of effect sizes (e.g. Cohen's _d_, Pearson's _r_ ), indicating how they were calculated _Our web collection on_ _<u>statistics for biologists contains articles on many of the points above.</u>_ ###### Software and code Policy information about <u>availability of computer code</u> Data collection Human data collection: PsychoPy 3.1 with Python 3.6; Deep neural network implementation and analysis: Tensorflow 1.14 with Python 2.7 Data analysis All analyses of human and model data were performed in Python 2.7 or 3.6, using numpy v1.16.5, scikit-learn v0.21.3 and/or pinguoin v0.3.10 packages. For manuscripts utilizing custom algorithms or software that are central to the research but not yet described in published literature, software must be made available to editors and reviewers. We strongly encourage code deposition in a community repository (e.g. GitHub). See the Nature Research <u>guidelines for submitting code & software</u> for further information. ###### Data Policy information about <u>availability of data</u> All manuscripts must include a <u>data availability statement. This statement should provide the following information, where applicable:</u> - Accession codes, unique identifiers, or web links for publicly available datasets - A list of figures that have associated raw data - A description of any restrictions on data availability All human and model data are available on Zenodo at http://doi.org/10.5281/zenodo.4495586, along with custom analysis code that reproduces all figures and statistical tests involving human data. 1 #### Field-specific reporting Please select the one below that is the best fit for your research. If you are not sure, read the appropriate sections before making your selection. Life sciences Behavioural & social sciences Ecological, evolutionary & environmental sciences For a reference copy of the document with all sections, see <u>nature.com/documents/nr-reporting-summary-flat.pdf</u> #### Behavioural & social sciences study design All studies must disclose on these points even when the disclosure is negative. Study description Quantitative psychophysics experiments measuring human visual perception. Research sample Three groups of 20 human observers were recruited for the five psychophysical experiments. In Experiments 1 and 2, participants were 16 women and 4 men with a mean age of 23.5. In Experiment 3a, participants were a different group of 16 women and 4 men, also with a mean age of 23.5 In Experiments 3 and 4, participants were 14 women and 6 men with a mean age of 24.3. Participants were primarily undergraduate students from the psychology programme at Justus Liebig University Giessen, Germany. Visual perception of materials likely varies somewhat with environmental and cultural exposure to different materials. We consider our sample of educated young adults to be representative of visual material perception within industrialised Western countries, but not <u>necessarily representative of all humans.</u> Sampling strategy A predetermined sample size of 20 participants was used in all experiments, as erring slightly above the conventional sample size in psychophysical studies of mid-level perception, e.g. groups of 12 in van Assen et al (2018) Current Biology (10.1016/ j.cub.2017.12.037), groups of 8-23 in Marlow et al (2012) Current Biology (https://doi.org/10.1016/j.cub.2012.08.009). Participants were recruited through the university's experimental volunteer system until the quota of 20 was filled for each experiment. Data collection All data were collected by having participants view a computer screen and respond via keyboard presses. Data collection was conducted by a research assistant who understood the broad programme of research but was blind to specific hypotheses in each <u>experiment. Only the participant and research assistant were present in the room during data collection.</u> Timing Data were collected between 12th April 2019 and 16th August 2019 Data exclusions No data were excluded from analyses. Non-participation No participants dropped out, declined participation, or were excluded from participating. Randomization All experimental designs are within-subjects, so all participants took part in all conditions (with trials from different conditions presented in a random order). Assignment to each experiment was on the basis of which participants signed up to volunteer at the time we were running each experiment. Six individuals participated in two different experiments at separate times, but received no information about the design or hypothesis of the experiments after their first session. #### Reporting for specific materials, systems and methods We require information from authors about some types of materials, experimental systems and methods used in many studies. Here, indicate whether each material, system or method listed is relevant to your study. If you are not sure if a list item applies to your research, read the appropriate section before selecting a response. <u>Materials & experimental systems</u> n/a Involved in the study Antibodies Eukaryotic cell lines Palaeontology and archaeology Animals and other organisms Human research participants Clinical data Dual use research of concern ###### Human research participants <u>Methods</u> n/a Involved in the study ChIP-seq Flow cytometry MRI-based neuroimaging Policy information about <u>studies involving human research participants</u> Population characteristics See above. Recruitment <u>Participants volunteered via a university experimental volunteer system. They were primarily undergraduate psychology</u> 2 Recruitment <u>students, and are likely more familiar with visual perception science and associated experimental methods than the average</u> person. Since data analyses hinged on comparing how well a range of detailed predictions from different models could predict human perception across the specific experimental images used, any general knowledge participants had of material <u>perception would not plausibly benefit any particular model in our tests.</u> Ethics oversight Ethics approval was granted by the local ethics committee of Justus Liebig University Giessen, Germany. Note that full information on the approval of the study protocol must also be provided in the manuscript. 3

섹션 본문 97문단 · 78,968자

(제목 없음)

1Reflectance, lighting and geometry combine in complex ways to create images. How do we disentangle these to perceive individual properties, such as surface glossiness? We suggest that brains disentangle properties by learning to model statistical structure in proximal images. To test this hypothesis, we trained unsupervised generative neural networks on renderings of glossy surfaces and compared their representations with human gloss judgements. The networks spontaneously cluster images according to distal properties such as reflectance and illumination, despite receiving no explicit information about these properties. Intriguingly, the resulting representations also predict the specific patterns of 'successes' and 'errors' in human perception. Linearly decoding specular reflectance from the model's internal code predicts human gloss perception better than ground truth, supervised networks or control models, and it predicts, on an image-by-image basis, illusions of gloss perception caused by interactions between material, shape and lighting. Unsupervised learning may underlie many perceptual dimensions in vision and beyond.

2A photograph of a glass of water might consist of large bright patches, sparkling dots and low-contrast blurs-yet we immediately see these as reflections on the water's surface, bubbles within and smudges on the glass. Identifying the distal physical causes of proximal image features is widely considered to be the central challenge of vision [1][2][3][4][5][6][7] . Yet how we infer the outside world from ambiguous sensory data remains mysterious.

3Somehow, the visual system infers the combination of distal scene variables that most plausibly explains the proximal sensory input 4,[8][9][10][11] . But a major unsolved question is how the candidate explanations of proximal inputs came to be known in the first place. Our visual systems did not-and do not-have access to ground truth information about the number or kinds of distal sources of image structure that operate in the world. Any knowledge about the world must have been acquired from exposure to proximal stimuli over evolutionary and/or developmental timescales [12][13][14] .

4Here we explore the intriguing possibility that visual systems might be able to discover the operation of distal scene variables by learning statistical regularities in proximal images rather than by learning an explicit mapping between proximal cues and known distal causes. Specifically, we show that by learning to efficiently compress and spatially predict images of surfaces, an unsupervised generative deep neural network (DNN) not only spontaneously clusters inputs by distal factors such as material and illumination but also strikingly reproduces many characteristic 'misperceptions' of human observers.

5Two general principles motivate our approach. The first is that variability in proximal sensory stimuli is caused by variations in a lower-dimensional set of environmental factors (such as shape, reflectance and illumination). This implies that the variation between images can be captured in a more compact or simple way when represented in terms of its underlying causes rather than, say, in terms of pixels [15][16][17] . A machine learning model encouraged to discover a compact representation of images might therefore converge on the finite sources that generate image variability. But identifying and disentangling these distal sources is possible only if a second principle holds: different distal sources must generate statistically distinguishable effects in the proximal input 18 . This seems intuitively true-for example, changes in illumination generate different kinds or patterns of variability in images than changes in surface material do. On the basis of these two principles, we reasoned that it should be possible for a sufficiently powerful statistical learning model to discover the existence of distal variables without a priori knowledge of either the number or kinds of distal variables that exist in the world, solely on the basis of the variability they generate in images.

6The idea that our perceptual systems exploit statistical regularities to derive information about the world has a long and venerable history in both psychology and neuroscience [19][20][21] . For example, neural response properties in early visual cortex are well predicted by models trained to generate sparse codes for natural image patches 19,[21][22][23][24] . Unfortunately, such 'efficient coding' approaches have not yet scaled beyond the initial encoding of images. One of the main motivations for the present work was to determine whether such ideas could provide leverage into mid-level scene understanding-that is, inferring the distal physical causes of sense data.

7Even if different distal factors have different statistical effects on images, and a sufficiently powerful unsupervised neural network is able to learn these effects, its success in disentangling different factors is unlikely to be perfect-that is, the network would sometimes misattribute the distal causes responsible for the data. However, we regard such misattributions as a potential strength. There are well-documented examples where the human visual system systematically misattributes image structure to the wrong distal source-failures of 'perceptual constancy' 1,5,[25][26][27][28][29][30][31][32][33] . We were interested in whether the pattern of successful and unsuccessful attributions made by human observers would also be exhibited by networks that failed to fully disentangle distal scene variables. The goal was not to understand visual processes as an estimation of ground truth but rather to understand why our visual systems extract what they do about the world in the absence of access to ground truth knowledge.

NaTURe HUmaN BeHavIoUR

8One of the most striking patterns of successes and failures in estimating distal scene variables occurs in the perception of surface gloss 3,5,31,[34][35][36][37] . Gloss perception is a paradigmatic case of a perceptual judgement where multiple physical effects must be separated. The pattern of specular reflections can change dramatically as a function of a surface's three-dimensional (3D) shape, illumination and the observer's viewpoint. Indeed, psychophysical evidence has shown that the perception of gloss in human observers depends not only on specular reflectance, as expected 32,[38][39][40][41][42][43][44] , but also on lighting and shape [33][34][35][36][37]45 . We were interested in whether the specific pattern of these complex interactions could be a consequence of the visual system having learned to approximately disentangle distal sources from their effects on image structure.

9Our work exploits DNN methods that have emerged for learning sophisticated models of image structure in the form of latent variables, which summarize how images differ from one another [46][47][48][49][50] . DNNs achieve complex transformations by passing input data through layers of units that apply weighted summations and nonlinearities, roughly mimicking the operations of biological neurons [51][52][53][54][55] . During training, connections between units are iteratively adjusted to improve the network's performance on some learning objective.

10In supervised learning, networks are directly told what label to output for every input image in a training dataset, from which they learn to subsequently output appropriate labels for new test images. Supervised DNNs have revolutionized computer vision, achieving near-human object and face recognition [56][57][58][59] , and are the best extant models of late ventral stream function [51][52][53][60][61][62][63] . However, unlike humans, they are often fragile to tiny image perturbations 64,65 and over-rely on local texture 66,67 . As models of biological gloss perception, it is unclear from where the necessary training labels could come.

11In unsupervised learning, training objectives encourage networks to learn statistical regularities in the training data without being given any explicit labels. For example, autoencoder networks are trained to compress training images into compact descriptions and then reconstruct them as accurately as possible 50,68,69 . Here, we use a variant known as a PixelVAE 47,48 , which learns to both summarize and spatially predict images, in two connected processing streams (Fig. 1c). It is a generative model that can create completely novel images with high-order statistical structure similar to the training data-in our case, images of glossy and matte surfaces.

12Our main finding is that the representation of gloss learned by an unsupervised PixelVAE network closely matches the pattern of successes and failures in perceived gloss shown by human observers. The unsupervised models better match human data than do a range of supervised networks and simpler comparison models, suggesting that the learning process by which different distal sources are disentangled may play a fundamental role in shaping our visual experience of the world. This finding provides a potential answer to the conundrum of how we learn to see without explicit training.

Results

13To test whether an unsupervised DNN can learn human-like gloss perception, we rendered 10,000 images from a virtual world consisting of frontal views of bumpy surfaces with either high ('gloss') or low ('matte') specular reflectance. Using renderings grants tight control over the statistics of the training environment, allowing us to guarantee that reflectance could not be trivially decoded from raw images and that physical factors varied independently of one another. Each image had a different random configuration of bumps, depth of surface relief and colour, and was illuminated by one of six natural light fields (Fig. 1a,b). We then trained ten different instances of a PixelVAE 47,48 network with different initial random weights on this dataset to ensure that the results were robust to representational differences between training instances of the same architecture 70 . The network culminates in a probability distribution over pixel values (Fig. 1c). Its training objective is to adjust the shape of this distribution in order to increase the likelihood of the training images under it, leading to a model of the structure and variability within and across images.

14New images can be created from the unsupervised PixelVAE model. These are generated pixel-by-pixel from the top left corner by probabilistically sampling from the network's learned distribution, conditioned both on previous pixels and on values in the model's ten-dimensional (10D) latent code (Fig. 1c). The representations in this latent code are a highly compressed representation of whole-image properties and are the focus of all subsequent analyses. After training, all ten instances of the model could generate wholly novel images that look like plausible surfaces (Fig. 1d).

15As a comparison DNN, we also trained ten instances of a supervised ResNet 71 network to classify the same images as high or low gloss, using ground truth (high or low specular reflectance in the rendering parameters) as training labels. Its mean classification accuracy was 99.4 ± 0.001% (s.d.). This supervised model also contained a 10D fully connected layer prior to its two-unit output classification layer, which we treated as its high-level latent code for comparisons with the unsupervised model (Fig. 1c). An unsupervised generative model disentangles distal scene properties. We are interested in the extent to which models transform raw images into a feature space within which different physical causes are disentangled 12,14,16,72 . Surfaces with similar reflectance properties may occupy very disparate points in raw pixel space but should cluster together in the feature space of a good perceptual model. Although the unsupervised PixelVAE model's training objective deals only with proximal image data, after training on the rendered dataset, we found that distal scene properties-such as reflectance and lighting-spontaneously clustered within the networks' 10D latent codes 47,50,73 . Visualizing in two dimensions using t-distributed stochastic neighbourhood embedding (tSNE) 74 reveals that low-gloss images cluster together, while high-gloss images form multiple tight clusters, corresponding to different light fields (Fig. 2a). Within each light-field cluster, images are arranged by the angle of illumination, as well as by surface relief, with flatter surfaces occupying nearby points and bumpier surfaces more distant points. This shows that without explicit labels, the unsupervised model learns at least partially to reorganize stimuli by their physical properties, one of the core challenges of mid-level vision.

16The emergence of this clustering of images by scene properties is far from trivial. It was not caused by raw image similarities, since tSNE visualization of the same images in raw pixel space showed a tight entangling of scene properties (Fig. 2b). Other linear and nonlinear pixel embeddings such as multidimensional scaling (MDS) and locally linear embedding (LLE) 75 also failed to separate low-gloss from high-gloss surfaces ( Supplementary Fig. 2). When the same visualization was applied to the 10D layer of the gloss-supervised models, high-gloss and low-gloss images were neatly separated, but other world factors were intermixed (Fig. 2c). Similar qualitative patterns held for all ten instances of both unsupervised and supervised models.

17To quantify these clustering effects, we used representational similarity analysis 76 (Fig. 2d). The results support the tSNE visualizations. Pairs of images belonging to the same gloss condition (both glossy or both matte) corresponded to closer points in the unsupervised models' 10D latent codes than pairs of images belonging to different gloss conditions (repeated-measures t-test comparing average distances between same-gloss versus different-gloss image pairs, across network training instances: t 9 = 16.73; P < 0.001; Cohen's d = 0.97; 95% confidence interval (CI) of difference, 0.37-0.46). Likewise, pairs of images illuminated by the same light field had more similar latent representations than those lit by different Articles NaTURe HUmaN BeHavIoUR light fields (t 9 = 29.76; P < 0.001; d = 0.95; 95% CI, 0.36-0.41). In the supervised models, clustering was dominated by gloss ( Fig. 2e; two-way mixed-effects analysis of variance (ANOVA) interaction between model type and scene factor: F 1,18 = 9,878.34; P < 0.001; η 2 = 0.99; follow-up tests show far stronger gloss clustering in supervised than unsupervised models, t 18 = 99.39; P < 0.001; d = 44.45; 95% CI, 6.42-6.66; but stronger light-field clustering in unsupervised models, t 18 = −19.90; P < 0.001; d = 8.90; 95% CI, 0.27-0.32). Thus, while the supervised model optimizes disentanglement of the single physical property on which it is trained, the unsupervised model spontaneously discovers multiple scene factors contributing to image structure.

18The unsupervised model predicts human gloss perception for novel images. Our central question was whether the spontaneous separation of high-gloss and low-gloss images in the unsupervised model could capture human gloss judgements. To derive quantitative gloss predictions from the models, a linear support vector machine (SVM) classifier was trained to find the hyperplane in the 10D latent code of each network that best separates high from low specular reflectance images (Fig. 3a). Although this evaluation step involves label-based decoding, it is simply a formal way of quantifying the degree and form of the disentanglement. In neuroscience, information that is available directly via a linear readout from units or neurons is generally considered to be explicitly represented by a model or brain region (for example, see refs. 16,[77][78][79][80][81]. The linear classifier does not provide the model with any new information but merely measures the relative placement of different classes of images within its existing feature space.

19On the basis of this linear decoding, we find that gloss-classification accuracy for novel renderings across the ten unsupervised models was extremely good at 99.3% (±0.002%)practically as good as decoding gloss from the 10D latent code of the supervised models (99.4 ± 0.002%; Fig. 3b). Light field and surface relief could also be decoded well above chance from the unsupervised networks (Fig. 3b) and significantly better than from d PixelVAE samples Fig. 1 | An unsupervised neural network learns to generate plausible novel images from a simulated visual world. a, the simulated physical world consisted of a bumpy surface viewed from above. the scene varied in depth of surface relief (left), surface base colour and whether the surface material had high or low gloss (middle), and illumination environment (right). b, Six examples from a training set of 10,000 images rendered from the simulated world by randomly varying the world factors. c, the dataset was used to train an unsupervised PixelVAE network (top). the network learns a probability distribution capturing image structure in the training dataset, which can be sampled from one pixel at a time to create novel images with similar structures. A substream of the network learns a highly compressed 10D latent code capturing whole-image attributes, which is used to condition the sampling of pixels. the same dataset was used to train a supervised resNet network (bottom), which output a classification of 'high gloss' or 'low gloss' for each input image. the penultimate layer of the supervised network is a 10D fully connected layer, creating a representation of equivalent dimensionality for comparison with the unsupervised model's latent code. d, Six example images created by sampling pixels from a trained PixelVAE network, conditioning on different latent code values to achieve diverse surface appearances. these images are not reconstructions of any specific images from the training set; they are completely novel samples from the probability distribution that the network has learned.

Articles

20NaTURe HUmaN BeHavIoUR the supervised networks (independent-measures t-test comparing light field decoding between unsupervised and supervised models: t 18 = 23.25; P < 0.001; Cohen's d = 10.40; 95% CI of difference, 0.28-0.34; surface relief: t 18 = 3.30; P = 0.004; d = 1.48; 95% CI, 0.08-0.36). Thus, linear decoding further demonstrates that the unsupervised networks learn a compact representation that summarizes information about not only surface material but also other scene properties such as illumination and surface relief. The analysis also revealed that representations were distributed rather than sparse. The full latent code predicted scene properties much better than any individual dimension could ( Fig. 3b and Supplementary Fig. 1c).

21Crucially, we could now derive a predicted gloss value for any image by inputting it to a network and calculating the SVM decision value for its corresponding point in latent space (that is, the signed distance of the point from the network's gloss-separating hyperplane; Fig. 3a). This allowed us to compare the model against human gloss perception.

22For Experiment 1 (gloss ratings), we rendered 50 new images of surfaces with random magnitudes of specular reflectance, sampled uniformly from almost matte to almost mirror-like. Twenty observers rated the apparent gloss of each surface, from 1 (matte) to 6 (glossy). We compared their ratings with the gloss values predicted by the unsupervised model. Figure 4a shows that agreement was excellent (mean R 2 over ten model training instances, 0.84) and was substantially better than for the supervised model (mean R 2 = 0.40; independent-samples t-test t 18 = 12.45; P < 0.001; Cohen's d = 5.57; 95% CI of difference, 0.37-0.50). Notably, the unsupervised model even predicted human ratings better than ground truth (specular magnitude within the rendering engine; R 2 = 0.73; one-sample t-test of difference, across model training instances: t 9 = 4.74; P = 0.001; d = 1.50; 95% CI, 0.05-0.13).

23We also considered a number of alternative models (bar graph in Fig. 4a), all of which predicted human judgements less well than ground truth. The best of these was a feature space consisting of the 1,000 final-layer features from a ResNet DNN trained on 1.2 million images to classify objects 58,71 . This is consistent with previous findings that representations in object-recognition DNNs capture perceptually relevant features of textures and images 61 ,000 images, in the 10D latent code of one unsupervised PixelVAE network, projected into two dimensions using tSNE. Unsupervised learning spontaneously disentangles the underlying world factors, arriving at a nested representation. Images of low-gloss surfaces form one large cluster, while images of high-gloss surfaces form multiple small subclusters (left), according to the light field used to render the image (centre left). Lighting direction varies smoothly within each subcluster (centre right), and surfaces with low relief are closer to one another than are those with high relief (right). b, tSNE visualization of the same images in raw pixel space, where world factors are thoroughly entangled. c, tSNE visualization of the same images in the 10D latent code of one gloss-supervised resNet network, showing a less rich representation. High-and low-gloss images form two clearly separated clusters, but other world factors are entangled. d, Dissimilarity matrices showing Euclidean distances between all pairs of images in the latent representations of all PixelVAE networks, averaged across surfaces with the same gloss level (left) or illumination (right). Pairs of images belonging to the same gloss or lighting condition (the diagonal blocks in each matrix) were represented more similarly than pairs of images belonging to different conditions (the off-diagonal blocks) (gloss: t 9 = 16.73; P < 0.001; d = 0.97; 95% CI, 0.37-0.46; light field: t 9 = 29.76; P < 0.001; d = 0.95; 95% CI, 0.36-0.41). e, Corresponding dissimilarity matrices calculated from the representations in the 10D latent codes of the supervised networks reveal stronger clustering by the task-relevant dimension of gloss and weaker clustering by light field (model × factor interaction: F 1,18 = 9,878.34, P < 0.001, η 2 = 0.99).

24NaTURe HUmaN BeHavIoUR less well-performing models included a multiscale texture description comprising 1,350 feature dimensions 85 ; the 4,096 latent features from a relatively simple image autoencoder; 10D embeddings of raw images via tSNE 74 , MDS or LLE 75 ; and luminance histogram skewness-a measure previously proposed to predict human gloss perception 86 (Methods). Supplementary Fig. 2 shows visualizations of how reflectance and other scene factors are organized within each of these feature spaces.

25Since PixelVAE networks are generative models, novel images can be generated by sampling from them (Fig. 1d). In Experiment 2 (gloss manipulation), we used such images to test whether perceived gloss varied systematically with an image's location in the model's latent space. From each of the model training instances, four sequences of five images were generated by conditioning the image-sampling process first on a low-gloss point in the latent space and then on progressively higher-gloss points (that is, moving along the model's gloss-discriminating axis, orthogonal to the SVM hyperplane). Another four sequences progressed from high-gloss to lower-gloss points (Fig. 4c). The same 20 observers sorted the images within each sequence from least to most glossy. Figure 4b shows that moving along the model's gloss-discriminating axis systematically reduced the apparent gloss of generated images when moving in the matte direction (one-way repeated-measures ANOVA: F 4,76 = 244.11; P < 0.001; η 2 = 0.93; 95% CI of correlation r, 0.87-0.93) and increased it when moving in the high-gloss direction (F 4,76 = 649.82; P < 0.001; η 2 = 0.97; 95% CI of r, 0.97-0.98).

26We thus find that the unsupervised networks develop internal representations that not only disentangle distal causes that are impossible to tease apart in the raw input ( Fig. 2b and Supplementary Fig. 2) but also, more remarkably, predict human gloss perception better than the true physical reflectance properties of surfaces, even though these networks are never given information about scene properties during training.

27The unsupervised model predicts failures of human gloss constancy. Although human gloss perception generally aligns well with specular reflectance, it also exhibits some well-documented 'errors' . For example, bumpier surfaces tend to look glossier than flatter surfaces, and specific combinations of lighting and surface relief yield specific patterns of misperception ( Fig. 5a and refs. 34,35 ). Mimicking such perceptual errors is a key test of any computational model of biological vision 87 . We assessed how well different models capture the systematic failures of gloss constancy exhibited by human observers.

28To do this, we rendered sequences where surface relief increased in seven steps, while reflectance and other scene properties remained fixed (Fig. 5a). For stimuli in Experiments 3a and 3b (patterns of gloss constancy), we selected two sets of ten sequences for which both the unsupervised and supervised models predicted deviations from constant gloss and the models made different predictions about the particular pattern of deviations (Methods). The rationale behind this is that cases where models disagree provide the strongest power to test which model is superior 88,89 .

29With these image sequences in hand, in Experiments 3a and 3b, two groups of 20 observers judged gloss in a paired-comparison task (Methods). If the observers correctly estimated reflectance, all surfaces should appear equally glossy, yet we find that they do not. The observers exhibited strong failures of gloss constancy, usually reporting surfaces with deeper relief to be glossier, although perceived gloss was non-monotonic in 7 of the 20 sequences, being the highest for intermediate reliefs (four examples are shown in Fig. 5b; the complete data are shown in Supplementary Fig. 3). The unsupervised model, despite never being explicitly trained to represent gloss and without being fit to human data, predicted patterns of failures of gloss constancy remarkably well (median R 2 across sequences and model training instances, 0.71). The model correctly predicted the qualitative pattern of constancy failure (monotonic versus non-monotonic) for 18 out of the 20 stimulus sequences. In contrast, the supervised model completely failed to predict human gloss constancy. For almost all sequences, it made predictions that were anticorrelated with human patterns (median R 2 , -1.45). Of the alternative models (Fig. 5c), a set of mid-level texture features 85 provided the next-best performance (median R 2 , 0.54) but was significantly poorer than the unsupervised model (one-sample t-test of difference across model training instances: t 9 = 10.48; P < 0.001; Cohen's d = 3.31; 95% CI of difference, 0.14-0.20).

30Human gloss constancy ranges from good to bad depending on interactions between lighting and shape 30,[33][34][35]90 . For Experiment 4 (degrees of gloss constancy), we rendered 40 image pairs depicting surfaces with identical material but different surface relief or lighting ( Fig. 5d and Methods), for which the unsupervised model predicted a wide range of degrees of gloss constancy, from excellent (near-identical predicted gloss for both images in a pair) to

NaTURe HUmaN BeHavIoUR

31very poor (the images received very different predicted gloss values; see Methods). Twenty observers indicated which surface in each pair appeared glossier, with each pair repeated eight times. The unsupervised model predicted the degree and direction of human (failures of) constancy reasonably well (mean r across model training instances, 0.70; Fig. 5e) and outperformed all alternative models (the next-best model was object-DNN features, r = 0.64; one-sample t-test of difference, across PixelVAE training instances: t 9 = 4.00; P = 0.003; Cohen's d = 1.27; 95% CI of difference, 0.03-0.08). Fitting a simple logistic function to relate model and human gloss values further improves the prediction (from an average R 2 across model training instances of 0.60 for a linear fit, to an R 2 of 0.74 for a logistic fit).

32Aggregating the results across the three experiments using renderings (Experiments 1, 3 and 4) shows that the unsupervised model predicts human perceptual judgements better than all others (Fig. 6). It achieves near-perfect ground-truth gloss-classification accuracy while still predicting idiosyncratic errors of human gloss perception (Fig. 6a), with a feature space two orders of magnitude more compact than the next-best model (Fig. 6b). The next-best model was a set of texture features hand-engineered to efficiently capture higher-order statistical structure in images 85 , which performed significantly less well (one-sample t-test of difference in root mean square error predicting individual data across the three experiments: t 59 = 10.73; P < 0.001; Cohen's d = 1.39; 95% CI, 0.05-0.07). Simple image statistics, such as the skewness of the luminance histogram 86 , failed to capture human gloss perception under our deliberately challenging stimulus conditions, where differences in specular reflectance must be de-confounded from differences in lighting and surface shape. . the dots show each observer's gloss rankings of each of five modulation steps, averaged over four test sequences starting from low-gloss initial seed images and four starting from high-gloss seed images. the lines indicate the mean over 20 observers. c, Example gloss-modulated sequences. A glossy or matte rendered image (left) is input to a network, and its 10D latent representation is recorded. New images are generated from the model, conditioned first on the original ('seed') point in latent space, and after stepping by small amounts along the model's gloss-discriminating axis (that is, the axis orthogonal to the decision plane of a glossy-versus-matte SVM classifier), in either the 'matte' (top) or 'glossy' (bottom) direction. . 6a), and they predicted gloss for scenes with novel geometries and light fields as well as they did for familiar scenes (Fig. 7a).

33Model predictions do not seem to depend on artefacts of the specific computer graphics techniques used to generate our images (real-time rasterized rendering), as gloss predictions were near identical for matched surfaces rendered using more time-intensive but physically faithful ray-traced rendering ( Supplementary Fig. 6b). Remarkably, given their constrained training environments, the models even seem able to broadly categorize close-up photographs of real-world surfaces 91 as being of high or low gloss, although they fail when shown surfaces far outside their training data, such as fabrics with high-contrast patterns ( Supplementary Fig. 6c,d).

34We performed two tests of robustness to different training datasets. First, five new PixelVAE networks were trained on 10,000 additional renderings in which gloss was sampled continuously Fig. 4a. d, Changes in lighting also often change apparent material properties for human observers. the quartet of images shows the same surface material rendered on a low-relief versus a high-relief surface (left versus right columns) and illuminated straight-on versus at a 30-degree angle (top versus bottom rows). the plot on the right shows the unsupervised model predictions for these four images (the error bars indicate standard deviations over ten training instances). the model predicts a larger difference in apparent gloss for the low-relief images than for the high-relief images, and an interaction between changes in lighting and relief. e, Magnitude of deviations from constancy for 40 pairs of images depicting the same surface material with different scene properties (the proportion of times that image A of a pair was seen as glossier than image B). the scenes were illuminated by either natural high-dynamic-range image (HDrI) lighting (blue dots) or directional lamp (red dots). the image pairs differed in surface relief (unfilled dots), light field (blue filled dots) or lighting angle (red filled dots). the y axis shows the average human data over 20 observers, expressed in terms of raw proportion minus 0.5, so that zero indicates good constancy, +0.5 indicates that image A always ranked glossier than image B and −0.5 indicates the opposite. the error bars indicate the s.e.m. over observers. the x axis shows the difference in predicted gloss values between the images in each pair, averaged over ten training instances of the PixelVAE model.

Articles

35NaTURe HUmaN BeHavIoUR rather than bimodally (continuously sampled gloss training dataset; Methods). Second, an additional PixelVAE was trained on a third dataset of 10,000 renderings in which surface geometry and lighting varied far more widely (higher-variation training dataset; Methods), with each scene comprising one of ten novel surface geometries combined with one of 50 novel light fields. Both new training environments produced models with latent codes that could well subserve gloss classification on the original bimodal gloss dataset (with mean accuracies of 96.7% and 91.4%, respectively). Importantly, we found that all three versions of the PixelVAE model (original, continuous-gloss training and higher-variation training) made highly similar predictions regarding the relative gloss levels of experimental stimuli. This indicates that the ability to predict human perception is not highly sensitive to the training set. The three versions of the unsupervised PixelVAE model, trained on non-overlapping datasets, made more similar gloss predictions to one another than to those made by any of the ten diverse alternative models (the dark cluster of low dissimilarity values in the bottom left of Fig. 7b). All three training environments led to unsupervised models that predicted human data reasonably well (Fig. 7c), both for gloss ratings of novel rendered images (Experiment 1) and for the more challenging task of predicting patterns (Experiment 3) and degrees (Experiment 4) of (failures of) gloss constancy. Several analyses were performed to assess how robustly unsupervised models outperformed their supervised counterparts. In building and training a DNN, values must be chosen for the many hyperparameters controlling network architecture and training. We evaluated the effects of some of these hyperparameters by training 28 additional models (14 unsupervised and 14 supervised) that differed from the original implementations in depth, learning rate, learning rate decay, training batch size and complexity of the learned model (for unsupervised PixelVAEs); see Supplementary Table 1 for the details. Eleven of the 14 unsupervised network variants outperformed all supervised network variants in predicting human gloss judgements; the three exceptions were networks that failed to train due to poor learning rate settings ( Supplementary Fig. 5). We also found that representations in the unsupervised model better predicted human judgements than those in the supervised model for all intermediate layers ( Supplementary Fig. 4a). Finally, we created a version of the supervised model that outputs continuous-valued gloss estimates rather than categorical decisions and trained it on a dataset with continuous rather than bimodal reflectances (Supplementary Methods and Results). This version predicted human gloss judgements better than the category-supervised model but less well than the unsupervised model, failing to exhibit the systematic errors that characterize human gloss perception ( Supplementary Fig. 4b). Overall, unsupervised learning in PixelVAE models seems to converge on a representation that captures key aspects of human gloss perception and tolerates changes in the particular network hyperparameters, or the statistics, illuminations or geometries of the training and test sets.

36Features underlying gloss representation in the model. Previous research 35 identified specific image features-the coverage, contrast and sharpness of specular highlights-that predicted perceived gloss for surfaces like those evaluated here. To test whether the PixelVAE model was also sensitive to these cues, we measured the coverage, contrast and sharpness of highlights in 10,000 new renderings of surfaces with specular reflectance varying continuously from near-matte to near-mirror. All three cues could be decoded from the latent code of a PixelVAE trained on these images (mean R 2 = 0.71) and could be increasingly well decoded from successive convolutional and fully connected layers ( Supplementary Fig. 7a). A linear combination of the three cues in the layer immediately preceding the 10D latent code correlated with gloss predicted

NaTURe HUmaN BeHavIoUR

37from the latent code (r = 0.80; Supplementary Fig. 7b). Moreover, manipulating the highlights in images to weaken each cue also reduced predicted gloss (Fig. 8a,b; one-way repeated-measures ANOVA for the effect of highlight contrast reduction: Interestingly, we did not find evidence that the model's predicted gloss decreased when the specular component of images was shifted so that highlights were misaligned with the geometry of the depicted surfaces ( Fig. 8b; F 9,81 = 0.48; P = 0.88; η 2 = 0.05; 95% CI of r, −0.21-0.09). This manipulation preserves coverage, contrast and sharpness, yet infringes photogeometric constraints that are a precondition for humans to identify highlights as specularities and therefore to see gloss at all 6,92,93 . The fact that the model predicts

Fig. 7 | the unsupervised model generalizes well to novel scenes and makes similar gloss predictions after retraining on different visual environments.

38a, Scatter plots show predicted gloss (y axis) and ground-truth specular reflectance (x axis) for sets of 500 new images rendered with random continuously sampled gloss levels, using the trained surface geometry (leftmost panel) or four novel geometries unseen during training (right panels). A single example image from each set is shown above the plots (magnitude and concentration of specular component, 0.65). All scenes were illuminated by light fields never seen during training. b, New instances of the PixelVAE model with substantially different visual experiences during training all make similar predictions for the gloss levels of experimental stimuli. the matrix shows the dissimilarity between the gloss predictions made by the original set of ten PixelVAE networks, averaged over training instances (1a); five PixelVAE networks trained on a new set of 10,000 images using the same surface geometry and light fields, but with specular reflectance continuously sampled, averaged over training instances (1b); a PixelVAE network trained on a third set of 10,000 images using ten surface geometries and 50 light fields, non-overlapping with the geometry and light fields used in the main training dataset (1c); and alternative models, ordered by the similarity of their predictions to that of the original PixelVAE (2-10). the gloss predictions are for all stimuli used in Experiments 1, 3 and 4 and were normalized into the range 0-1 for comparability across models. c, Average correlation between model-predicted gloss and individual human judgements in each psychophysical experiment for the PixelVAE implementations described in b. the data points show the values for each observer (N = 20 in each experiment). All unsupervised models predicted the human data better than the supervised model in all experiments (across nine comparisons: t 19 = 4.01-31.08; P < 0.001; Cohen's d = 0.56-7.00; 95% CI, 0.06-0.18 to 0.60-1.07). the vertical grey lines indicate how well the data can be predicted on average from those of other observers, giving the highest possible average model correlation.

NaTURe HUmaN BeHavIoUR

39human gloss constancy without seeming to be sensitive to such constraints suggests that although these constraints are crucial to many aspects of surface perception 7,93-96 , the degree of perceived gloss, within surfaces that are seen as having highlights, may be largely explainable in terms of image features.

Discussion

40The efficient representation of sensory data has long been hypothesized as a central goal of neural coding 15,[19][20][21][22][23][24]97 . But while such approaches predict many aspects of low-level image encoding, they have not explained how we visually infer properties of the outside world. Unsupervised learning objectives in modern DNNs, such as data compression and spatial prediction, offer powerful new implementations of these statistical learning principles 17 . Our findings show that mid-level perceptual dimensions, such as glosswhich imperfectly map onto properties of the physical world-can emerge spontaneously by learning to efficiently encode images. Unsupervised learning may thus provide a bridge that links theoretical views emphasizing the importance of image statistics (for example, see refs. 86,98,99 ) to those that treat perceptual processes as a decomposition of images into distinct physical causes (for example, see refs. 4,6,8,100 ). One of the fundamental unsolved questions in vision science is how the visual system became aware of the different physical sources that contribute to image structure. Perception is commonly framed as the optimal estimation of a set of known physical quantities 4,[9][10][11] . But these quantities that the brain putatively estimates were not specified a priori; they must somehow be discoverable (over either the course of evolution or learning) on the basis of their manifestation in sensory experience [12][13][14] . Here, we suggest that different physical causes give rise to different high-order regularities in visual data, making them discoverable through data-driven unsupervised learning processes [15][16][17][18] . We provide a proof-of-principle that it is possible to learn to disentangle distal causes without prior knowledge about which classes of causes exist in the world, the cues that could be used to distinguish them or even how many different classes of causes there are. An unsupervised statistical learning model predicted the expected changes in perceived gloss caused by varying specular reflectance (Experiment 1; refs. 32,33,[39][40][41]43 ), as well as illusory changes in perceived gloss that arise from varying lighting and shape (Experiments 3 and 4; refs. 34,35 ). We suggest that known systematic errors in gloss perception can be attributed to the particular pattern of partial disentanglement arising from unsupervised statistical learning of surface appearances.

41One of our more intriguing results is that the unsupervised model predicted human perception better than the supervised model that we tested. It is important to note that this is not because humans and unsupervised networks were better at extracting ground truth Articles NaTURe HUmaN BeHavIoUR in these stimuli. Categorization-supervised networks categorized gloss almost perfectly (Fig. 3b), and regression-supervised networks predicted continuous gloss levels almost perfectly ( Supplementary Fig. 4b), yet both predicted human judgements less well than unsupervised networks. This implies that the systematic errors exhibited by humans and the PixelVAE model are not a trivial consequence of some inherent impossibility in recovering specular reflectance for these stimuli. Nor is this result explained by the supervised model reporting ground-truth specular reflectance too faithfully. Although the supervised model is near-perfect at coarsely categorizing surfaces as having high or low specular reflectance, it still predicts different degrees of glossiness for different images, including sometimes erroneously. Yet the supervised and unsupervised models make different predictions on an image-by-image basis, with the latter more closely matching those made by humans. We propose that this shared pattern of deviation from ideal performance may arise from shared characteristics in how the human visual system and the unsupervised model learn to encode images. One of the most notable failures of the PixelVAE in capturing human data is its insensitivity to photogeometric constraints known to affect human surface perception, such as the alignment of specular highlights with diffuse shading 7,92,93 (Fig. 8). We believe that this failure is probably due to the relative poverty of 3D shape information in its training set. The link between highlights and diffuse shading arises from constraints imposed by the 3D shape of a surface 94,96 . It seems implausible to expect any visual system trained solely on monocular, static images to develop good sensitivity to these constraints, and without a detailed representation of 3D shape, no model is likely to explain all aspects of human gloss perception 94,95,101 . We tailored the training sets towards modelling variations in perceived glossiness for physically realistic surfaces, where highlights are assumed to align with surface shading 32,33,[39][40][41]43 . An important direction for future research is testing whether unsupervised DNNs can also learn photogeometric relationships, if training sets provide additional information about shape (for example, through motion, stereo, occlusion or larger variations in geometry).

42In using deep learning models, we do not wish to imply that all material perception is learned during an individual lifetime. Unsupervised learning principles can also operate on an evolutionary timescale. For example, V1 cell receptive fields are predicted by simple unsupervised learning models such as independent components analysis 22 , and these seem to be present at birth in macaques 102 . The developmental trajectory of gloss perception is not fully known. There is evidence that five-to eight-month-old infants can distinguish between matte and specular surfaces 103 , but also evidence that material recognition and classification are still developing in five-to ten-year-old children 104,105 . Even five to eight months of visual experience provides a huge dataset for statistical regularity learning 106 . It could be that approximate versions of many perceptual dimensions are rapidly learned during the first days, weeks and months of life.

43Although we do not propose the PixelVAE architecture as a physiological simulation of visual cortex, its computational principles are eminently achievable in biological brains. Data compression and spatial prediction are learning objectives that require no additional information beyond the incoming sensory data, and there are several mechanisms by which brains could represent the probability distributions used in the PixelVAE network [107][108][109] . At the same time, the brain certainly does not learn statistical distributions over RGB pixels. If the visual system uses learning objectives like the ones investigated here, they presumably operate on image representations that have undergone substantial retinal processing 110,111 .

44In conclusion, unsupervised DNN models provide an ecologically feasible solution to the problem of how brains come to represent properties of the distal world without access to ground truth training data [12][13][14]17,112 . Nonlinear transformations reorganize inputs according to high-order regularities within and across images, allowing the visual system to better summarize and predict sensory data. Because regularities in images are caused by underlying physical objects and processes, these new configurations often end up (partially) disentangling physical properties from one another. Our results suggest that the imperfect nature of this disentanglement may account for the characteristic errors that humans make. Failures of constancy, which are rife in vision, may therefore offer clues to how we learn to see. Unsupervised learning may account for these failures not just in gloss perception but in perception more broadly. . Six individuals participated in two different experimental groups but received no information about the experimental design or hypotheses after the first session. No statistical methods were used to predetermine sample sizes, but our sample sizes are larger than those reported in previous publications measuring gloss constancy 34,35,37 . All participants had normal or corrected-to-normal visual acuity. Two male participants self-reported poor red-green colour vision. The experiments were conducted in accordance with the Declaration of Helsinki (sixth revision), with prior approval from the ethics committee of Justus Liebig University, Giessen, Germany. The volunteers gave written informed consent and were paid €8 per hour.

45Stimuli. The stimuli were 800 pixel × 800 pixel images of bumpy surfaces rendered using Unity3D (v.2018.2.3; Unity Technologies, https://unity.com/). A virtual 40 cm × 40 cm sheet with irregularly positioned bumps was placed in a scene and illuminated by one of six high-dynamic-range image (HDRI) light probes. The light probes were white-balanced 8,192 pixel × 4,096 pixel images of four exterior (beach, bay, woodland and savannah) and two interior (church and conference hall) environments, captured by Unity Technologies (https://assetstore.unity.com/ packages/2d/textures-materials/sky/unity-hdri-pack-72511). A virtual camera (60° field of view) hovered 12 cm above the sheet, viewing directly downwards. By randomly varying the camera's location and orientation, an extremely large number of unique images could be generated from the scene.

46Main training dataset. We rendered 10,000 images to create the main training dataset for the neural network models. For each rendering, one of the six HDRIs was randomly selected to illuminate the scene. Surface relief was scaled multiplicatively in depth by a uniformly sampled random scaling factor, so that the distance between the lowest and highest points on the surface was between 0.1 cm and 2.5 cm. The surface's reflectance properties were controlled via the Unity3D standard shader, using the 'specular setup' . The diffuse reflectance component of the surface material was chosen by selecting RGB values randomly uniformly within the interval 0.3 to 0.7, independently for each channel. The surface was either low or high gloss, with equal probability. For low-gloss surfaces, the specular reflectance component of the material was selected randomly uniformly between 0.1 and 0.3, and the concentration of the specular component was selected randomly uniformly between 0.2 and 0.4. For high-gloss surfaces, specular reflectance was between 0.3 and 0.5, and specular concentration was between 0.75 and 0.95. The training dataset therefore had a bimodal distribution of approximately 50% low-gloss and 50% high-gloss surfaces, with small variations in reflectance properties within each group. The same dataset was also used when training classifiers to decode gloss and other world factors from models.

47Continuously sampled gloss training dataset. To verify that the representations learned by our models were not artefacts of the bimodal gloss sampling in the main dataset, we rendered 10,000 new images in which both the magnitude and concentration of the specular reflectance component were sampled randomly uniformly between 0.1 and 0.8, independently of each other. All other scene properties were varied as in the main dataset.

48Higher-variation training dataset. To verify that less-constrained visual diets could lead to similar gloss representations, we created a third training dataset in which 10,000 images each randomly combined one of ten novel surface geometries with 50 novel light fields. The novel geometries were virtual 40 cm × 40 cm sheets with different shapes and sizes of irregularly placed ridges, bumps and indentations (examples are shown in Fig. 7a). The novel light fields were 4,096 pixel × 2,048 pixel HDR images (25 exterior and 25 interior) from the HDRI Haven database (http:// www.hdrihaven.com). The distance of the virtual camera above the surface varied randomly uniformly between 8 cm and 12 cm to introduce scale variation. All other scene properties varied as in the main dataset.

NaTURe HUmaN BeHavIoUR

49Renderings with continuously sampled gloss levels (Experiment 1: gloss ratings). The stimuli were 50 new rendered images with specular reflectance chosen randomly uniformly between 0.2 and 1.0, and specular concentration set to the same value. Other attributes were varied as in the main dataset. For all rendered images used as stimuli in the psychophysical experiments (Experiments 1, 3 and 4), the same geometry and set of light fields were used as in the main training dataset, but the images were novel renderings unseen by any model during training.

50Gloss-modulated images generated from PixelVAE models (Experiment 2: gloss manipulation). For each of the PixelVAE networks, we first determined the axis in 10D latent space along which gloss could be most strongly discriminated ('Data analysis'). Eight images (four low-gloss and four high-gloss) from the main training dataset were input to each network, and their corresponding latent points were recorded. These were used as seed points to generate eight gloss-modulated sequences for each network. The first step in each sequence was generated by conditioning the model's pixel-sampling process on the respective seed point in latent space and then sampling a 128 pixel × 128 pixel image ('Neural network architectures and training'). The conditioning point was then moved 0.07 units in latent space along that model's gloss-discriminating axis, in either the matte (for high-gloss seed images) or glossy (for low-gloss seed images) direction, and a second image was generated. This was repeated three more times, yielding a five-step sequence for each seed image from each model training instance (400 experimental images in total).

Sequences of renderings with increasing surface relief (Experiments 3a and 3b: patterns of gloss constancy).

51To create a strong test of the different models, we wanted to probe human gloss constancy using stimuli for which there were clear differences in constancy patterns predicted by unsupervised versus supervised models 88,89 , and which were likely to produce diverse patterns of failures of constancy in human observers. We therefore first generated candidate stimuli and then selected those that best satisfied these desiderata.

52For each experiment, we rendered 200 different candidate sequences of seven images with fixed random material, illumination and camera position, but exponentially increasing surface relief (maximum bump heights of 0.10, 0.18, 0.31, 0.55, 0.97, 0.70 and 3.0 cm). All surfaces had relatively high gloss. In Experiment 3a, specular reflectance was selected randomly uniformly between 0.2 and 1.0, and specular concentration was between 0.7 and 1.0. In Experiment 3b, reflectance was between 0.1 and 0.3, and concentration was between 0.8 and 1.0. Other attributes were varied as in the main dataset. All 1,400 images in each set were input to each of the unsupervised PixelVAE and supervised ResNet networks to obtain predicted gloss values ('Data analysis'). For each candidate sequence of seven images, we then simulated the responses from each network under a two-alternative forced-choice (2AFC) experiment in which each possible pair of images was compared, and the image for which the model predicted a higher gloss value was selected. This was analogous to the 'Which is more glossy?' task performed by human observers ('Psychophysical procedures').

53First, for each sequence we performed a 2 × 7 (model × surface relief) ANOVA between unsupervised and supervised model predictions, averaged over the training instances of each model. The sequences were sorted according to the F interaction statistic, prioritizing those with strong disagreements between model predictions 88,89 . In Experiment 3a, we visually inspected the top-ranked sequences and selected ten with diverse appearances and subjective failures of gloss constancy.

54In Experiment 3b, we selected test sequences in an entirely automated manner by classifying the sequences into four qualitative groups on the basis of the average constancy pattern predicted by the unsupervised models:

55• Group 1: the model predicts approximate constancy (range of predicted 'proportion glossier' values < 0.25, and a linear function fit achieved R 2 > 0.70); • Group 2: the model predicts an approximately linear increase in gloss with bump height (range > 0.50, and a linear fit achieved R 2 > 0.90); • Group 3: the model predicts a non-monotonic failure of constancy (range > 0.50, and a quadratic fit of R 2 > 0.90 with a negative coefficient of the squared term); • Group 4: the model predicts an upward-swinging nonlinear failure of constancy (range > 0.50, and a quadratic fit of R 2 > 0.90 with a positive coefficient of the squared term).

56We then selected the top sequences in each group (ranked by the F interaction term), in proportion to the size of each group (one constant, four linear, two non-monotonic and three nonlinear sequences).

Pairs of renderings with differing surface relief or lighting (Experiment 4: degrees of gloss constancy).

57Here we sought pairs of stimuli with diverse scene differences (some differing in surface relief, some in lighting environment and some in angle of illumination) and for which the unsupervised model made a wide range of predictions, ranging from good constancy to strong failure of constancy.

58We rendered 800 candidate image pairs with the same random material properties and camera position, but differing in either surface relief (0.40 cm versus 1.5 cm maximum bump height) or illumination. Pairs differing in illumination were either 'naturally' lit (differing in HDRI lighting environment, from among the six used in the main training dataset) or illuminated by a directional lamp (at a 30° versus 90° angle). Candidate pairs were generated in four groups of 200:

59• Group 1: identical natural light field; different surface relief; • Group 2: identical lamp angle; different surface relief; • Group 3: identical surface relief; different natural light field; • Group 4: identical surface relief; different lamp angle.

60Average predicted gloss values were obtained for each image, across training instances of the unsupervised PixelVAE model ('Data analysis'). Within each group, we ranked pairs by the absolute difference in predicted gloss of the images in the pair, and we selected pairs lying at each of the 10th percentiles, yielding 40 test pairs.

61Geometry and lighting generalization test set. To test the generalization of models trained on the main dataset, we rendered five sets of 500 new images, one using the original surface sheet and four using novel surface geometries (Fig. 7a). Illumination was randomly one of eight novel 4,096 pixel × 2,048 pixel HDR light probes (six exterior and two interior) from the Dutch Skies 360° HDRI Project (http://www.dutch360hdr.com/). Specular reflectance was varied as in the continuously sampled gloss training dataset.

62Highlight-feature manipulated images. To manipulate highlight features (Fig. 8), we manipulated the specular component image in four different ways, before combining with the diffuse component image by addition:

63• Translated highlights: the specular component was shifted rightwards in ten five-pixel steps. To avoid edge artefacts after translation, the images were rendered at 1,024 × 1,024 resolution and then cropped to the lower-right 800 pixels × 800 pixels. • Reducing highlight coverage: we applied image erosion to the specular component using the OpenCV package for Python. The kernel size was 2 × 2. Up to ten iterations were applied to create ten progressively reduced highlight maps. • Reducing highlight sharpness: the specular image was convolved with a Gaussian filter, with the step size ranging from 1 × 1 to 11 × 11. • Reducing highlight contrast: we created a 'highlight mask' by identifying pixels with values >4 (from a range of 0-255) in the greyscale version of the specular image. The standard deviation of pixel intensity within the highlight map was multiplicatively reduced in ten steps, from 1 to 0.1 times their original s.d., while retaining the original mean.

64Neural network architectures and training. The DNNs were implemented and trained in Python v.2.7 (Python Software Foundation, https://www.python. org/) with Tensorflow v.1.14 (https://www.tensorflow.org/) on a GPU-accelerated machine using 1-4 GTX1080 graphics cards. The networks were trained on the first 9,000 images of the main training dataset, using the next 500 for validation and the final 500 for testing the accuracy of the supervised networks. All images were input at a resolution of 128 pixels × 128 pixels. For both unsupervised and supervised models, ten independent instances of the same architecture were trained from different random initial weights and with different random sampling of training batches, to ensure robustness to representational differences between training instances 70 . We also trained five instances of the PixelVAE network on the continuously sampled gloss dataset and one on the higher-variation dataset ('Stimuli'), dividing training and validation data in the same proportions. No data augmentation was used. All architectures used rectified linear activation functions.

65Unsupervised PixelVAE model. We used the implementation from ref. 47 of the PixelVAE architecture 48 , available at https://github.com/ermongroup/ Generalized-PixelVAE. The architecture consists of two streams of convolutional layers, which learn jointly via backpropagation. One stream is a 'conditioning network' , which is a convolutional variational autoencoder that takes an image as input and outputs a 10D smooth latent representation. We chose a 10D latent code as being approximately the most compact representation that still allowed the network to learn a good model of the training images, on the basis of pilot data ( Supplementary Fig. 1a,b). The other stream is an autoregressive PixelCNN++ 113,114 model that learns the structure of the training data in terms of a logistic mixture probability distribution over pixel values and takes as inputs both the image and the latent code output by the conditioning network. To generate new images, the autoregressive stream chooses an RGB value for each pixel, working from the top left to the bottom right of the image. Each pixel is sampled from the learned probability distribution, conditioning both on the values of pixels generated so far (which constrain the local structure of the image) and on the values provided in the latent code (which constrain more holistic image properties).

66The conditioning network consisted of three convolutional layers of 64, 128 and 256 feature maps, followed by a fully connected layer of 512 units and a 10-unit latent code layer. The autoregressive network consisted of six 'residual blocks' of three layers of 64 convolutional feature maps each, with skip connections linking the first and sixth, and second and fifth blocks. Pixel likelihood distributions were modelled with a mixture of 12 logistic functions, and the networks were trained with a batch size of 5 and a learning rate of 0.001 for 200 epochs, around which point the validation error plateaued. The learning rate was gradually decayed by Articles NaTURe HUmaN BeHavIoUR multiplying by 0.999995 after each epoch. No regularization was used during training, to encourage the network to depend on information in its latent code 47 .

67Supervised ResNet model. We used the Tensorflow implementation of the ResNet architecture 57 from https://github.com/wenxinxu/resnet-in-tensorflow. The networks consisted of three residual blocks each made up of three layers of 56 convolutional feature maps, with skip connections between each. The output of the final layer was passed to a ten-unit fully connected layer, which we treated as the 'latent code' of the model for analysis purposes. This passed, via one more nonlinearity, to a two-unit softmax output layer. Ten networks were trained, from different random initial weights, to classify images as renderings of surfaces with high or low specular reflectance ('Stimuli'). The networks were trained with a batch size of 32 and a learning rate of 0.001 to minimize the sparse softmax cross-entropy between outputs and correct labels. The learning rate was gradually decayed by multiplying by 0.99995 after each epoch. The networks were trained for 21 epochs, by which point the validation accuracy plateaued above 99%.

68Simple autoencoder. We also considered a far simpler unsupervised model, in the form of a non-variational convolutional autoencoder implemented using Keras v.2.2.5 (https://keras.io/) for Tensorflow. The architecture comprised four layers of 64, 32, 16 and 16 feature maps alternating with 2 × 2 pooling layers, leading to a 4,096-unit fully connected bottleneck layer, which we treated as the model's latent feature space for analysis purposes. The compressed code was expanded through mirrored layers of 16, 16, 32 and 64 feature maps to an output of the original dimensionality (128 × 128 × 3). The network was trained for 1,000 epochs to minimize mean absolute error between its input and output images (batch size 32, other learning parameters used the default Adam optimizer values as implemented in Keras). 58 . For the analyses, we used representations in the 1,000-unit fully connected layer immediately before softmax category readout.

69Additional comparison models. Histogram skewness. Skewness was defined as the skew (third moment) of the distribution of pixel intensities in a greyscale version of each image.

MDS, tSNE and LLE.

70MDS is a linear dimensionality reduction technique that finds the linear projection of a dataset that best preserves the distances between all data points. tSNE 74 is a nonlinear technique that preferentially preserves the distances between nearby data points. LLE 75 is a nonlinear technique that seeks a lower-dimensional manifold that best preserves all distances.

71Each dimensionality reduction algorithm was used to create a 10D embedding of the 10,000 images from the main training dataset, as well as all 270 rendered images used in the experiments (50 images from Experiment 1, 140 from Experiment 3 and 80 from Experiment 4). The experimental probe images were included because it is not possible to project new data points into the reduced-dimensionality solution discovered by tSNE or LLE. Additional 2D embeddings were performed to create the visualizations (Fig. 2a-c and Supplementary Fig. 2) using 4,000 images randomly selected from the main training dataset. The default parameters were used, as implemented in the scikit-learn package for Python.

72Texture features. For each image, we calculated a multiscale texture feature description 85 using the TextureSynth package for MATLAB (www.cns.nyu. edu/~lcv/texture/). The images were rescaled to 256 pixels × 256 pixels and analysed at three scales, four orientations, with a spatial neighbourhood of seven, producing a description of each image in terms of 1,350 feature dimensions.

73Psychophysical procedures. The psychophysical experiments were conducted in a dimly lit room, sitting at a comfortable distance from the screen. The participants could freely view the screen and were given no fixation instructions. The stimuli were presented on an EIZO ColorEdge CG277 self-calibrating LCD monitor with a resolution of 2,560 × 1,440 and a refresh rate of 60 Hz. PsychoPy v.3.1 (https:// www.psychopy.org/) with Python v.3.6 was used to present the stimuli and record the responses. At the beginning of each experiment, the observers were shown 4-12 example experimental stimuli, randomly arranged, to familiarize them with the appearance and range of material properties that they would be asked to judge. Response times were unconstrained, and the stimuli were displayed until a response was recorded. Experiment 1: gloss ratings. Experiment 1 measured gloss ratings for novel rendered images. Fifty 800 pixel × 800 pixel (18.6 cm × 18.6 cm) images were presented singly in the centre of the screen. Each was repeated three times, for a total of 150 trials, presented in a random order. The participants were asked to rate the apparent gloss of each image using a six-point scale with endpoints labelled '1 = completely matte' and '6 = extremely glossy' . Experiment 2: gloss manipulation. Experiment 2 measured gloss rankings for gloss-modulated network-generated images. Eighty sets of five 128 pixel × 128 pixel (2.9 cm × 2.9 cm) PixelVAE-generated images were shown. The five images in each set were arrayed in a random order in a row in the centre of the screen. The participants were asked to use the keyboard number keys to sort the images into a row of initially empty boxes at the bottom of the screen, in order from least glossy to most glossy. Each set of stimuli was shown once, for a total of 80 trials, presented in a random order.

74Experiments 3a and 3b: patterns of gloss constancy. Experiment 3 measured pairwise gloss comparisons for probe sequences differing only in surface relief. Experiments 3a and 3b differed only in the specific sequences shown to the participants. Both experiments consisted of 10 sequences of 7 images, within which all possible pairs were shown twice each, for a total of 420 trials. The mages appeared at a resolution of 800 pixels × 800 pixels (18.6 cm × 18.6 cm), side by side on screen. Side of screen and trial order were randomized, with all sequences interleaved with one another. The participants were asked to report, using the left and right arrow keys, which surface appeared more glossy.

75Experiment 4: degrees of gloss constancy. Experiment 4 measured pairwise gloss comparisons for pairs of images differing in surface relief or illumination. Each of 40 pairs of images was shown 8 times, for a total of 360 trials. The images appeared at a resolution of 128 pixels × 128 pixels (2.9 cm × 2.9 cm), side by side, with side of screen and trial order randomized. The participants reported, using the left and right arrow keys, which surface appeared more glossy. Representational similarity analysis. We measured the average correlation distance (1 minus Pearson's r) between the latent representations of all 10,000 images in the main training dataset, grouped by whether they used the same (diagonal blocks) or different (off-diagonal blocks) gloss/lighting conditions, for each network training instance. Representational dissimilarity matrices (Fig. 2d,e) were created by averaging these values over the training instances of each model. To visualize the similarity of the model predictions (Fig. 7b), we created a vector, for each model, of predicted gloss values for all 270 rendered images used as experimental stimuli (50 images from Experiment 1, 140 images from Experiment 3 and 80 images from Experiment 4), normalized into the range 0-1. The Euclidean distance between these prediction vectors was calculated for all pairs of models.

76Decoding world factors from models and deriving gloss predictions. For models with multidimensional feature spaces (that is, all except histogram skewness), a linear SVM was used to classify the specular reflectance (high versus low) of the rendered images from their representations within the model. The SVMs were trained on a random sample of 7,500 of the main training dataset images and tested on the remaining 2,500 to derive gloss classification accuracies (Fig. 3, Fig. 6a and Supplementary Figs. 4a and 5a). To derive continuously valued gloss predictions for the experimental images, the images were input to each model, and the signed distance of their representation from the model's SVM decision boundary was measured. Positive values indicate high-gloss classifications, and negative values indicate low-gloss, with the absolute magnitude indicating the strength of evidence for that classification (Fig. 3, Fig. 4b,c, Fig. 5d,e, Fig. 7a, Fig. 8b and Supplementary Figs. 6b-d and 7b).

77For the unsupervised PixelVAE and supervised ResNet models, we also trained linear SVMs to perform a six-way light-field classification, and we fitted linear regressions to predict surface relief (Fig. 3b). Classifiers and regressions were performed once using the full 10D latent space for each network and again using each of the network's individual latent dimensions ( Fig. 3b; see also Supplementary Fig. 1c for a visualization of the individual dimensions in one unsupervised network).

78For the histogram skewness model, the raw skew values were used as gloss predictors for the purposes of model comparison. Ground-truth gloss classification accuracy (Fig. 6a) was defined as the accuracy using an optimal threshold to separate high-specular-reflectance from low-specular-reflectance images on the basis of their skewness, fitting the threshold on 7,500 main training dataset images and testing on the remaining 2,500.

79Deriving predicted 2AFC experimental data from models. The model predictions for Experiment 3 were derived by simulating responses of each model in the 2AFC task performed by humans. For each sequence of seven images, the predicted gloss values of each possible pair of images were compared, and the image for which the model predicted higher gloss was selected. The predicted responses were summarized as 'proportion selected as being glossier' for each level in the sequence, as for the human data ( Fig. 5b and Supplementary Fig. 3).

NaTURe HUmaN BeHavIoUR

80Measuring highlight features. Coverage, sharpness and contrast of highlights (Fig. 8) were measured using a MATLAB package developed by Schmid et al. 115 . Briefly, coverage is defined as the proportion of pixels with higher intensities in the full image than in the diffuse component image, sharpness is defined as the local phase coherence 116 within the specular component image and contrast is defined as the sum of the root mean square contrast across eight bandpass-filtered versions of the specular component image.

Psychophysical data analysis.

81No participants or trials were excluded from the analysis. In Experiment 1, both human ratings and model-predicted gloss values were normalized to the range 0-1 before comparing, individually for each participant or model instance. In Experiment 2, the rankings were converted to average rank position of each image step for each participant, averaging within matte and glossy seed image sequences. In Experiments 3a and 3b, the pairwise comparisons were converted to the proportion of times each image in each sequence was judged as having higher gloss, across pairings and repetitions, for each participant. In Experiment 4, the pairwise comparisons were converted to the proportion of times that image A (arbitrarily labelled) was judged as having higher gloss than image B, and this proportion was subtracted from 0.5 (that is, 0 indicates equal apparent gloss and good constancy; deviations in either direction indicate deviations from constancy). The model predictions were obtained by subtracting the predicted gloss value of image B from that of image A and scaling this gloss difference into the range −0.5 to 0.5, retaining the original zero point. For models with multiple training instances, model predictions were always derived (and performances calculated) for each individual training instance.

82Statistical analysis. The statistical analyses were performed using the Pingouin 117 package for Python (v.0.3.10). All tests were two-tailed. The CIs reported for mean differences and correlations were calculated by bootstrapping the respective estimate 10,000 times. The data distributions were assumed to be normal, but this was not formally tested. The gloss predictions of all models were fixed, with no free parameters in evaluation against human data, except for the analysis of the data in Fig. 5e, where the performance of a logistic transform of unsupervised model predictions is also reported.

83Reporting Summary. Further information on research design is available in the Nature Research Reporting Summary linked to this article.

Data availability

84All human and model data are available on Zenodo at https://doi.org/10.5281/ zenodo.4495586.

Code availability

85The custom analysis code that supports the findings of this study is available on Zenodo at https://doi.org/10.5281/zenodo.4495586.

nature research | reporting summary

86April 2020

87Corresponding author(s): Katherine Storrs Last updated by author(s): Feb 24, 2021 Reporting Summary Nature Research wishes to improve the reproducibility of the work that we publish. This form provides structure for consistency and transparency in reporting. For further information on Nature Research policies, see our Editorial Policies and the Editorial Policy Checklist.

Statistics

88For all statistical analyses, confirm that the following items are present in the figure legend, table legend, main text, or Methods section.

n/a Confirmed

89The exact sample size (n) for each experimental group/condition, given as a discrete number and unit of measurement A statement on whether measurements were taken from distinct samples or whether the same sample was measured repeatedly

90The statistical test(s) used AND whether they are one-or two-sided Only common tests should be described solely by name; describe more complex techniques in the Methods section.

91A description of all covariates tested A description of any assumptions or corrections, such as tests of normality and adjustment for multiple comparisons A full description of the statistical parameters including central tendency (e.g. means) or other basic estimates (e.g. regression coefficient) AND variation (e.g. standard deviation) or associated estimates of uncertainty (e.g. confidence intervals)

92For null hypothesis testing, the test statistic (e.g. F, t, r) with confidence intervals, effect sizes, degrees of freedom and P value noted

Software and code

93Policy information about availability of computer code Data collection Human data collection: PsychoPy 3.1 with Python 3.6; Deep neural network implementation and analysis: Tensorflow 1.14 with Python 2.7

Data analysis

94All analyses of human and model data were performed in Python 2.7 or 3.6, using numpy v1.16.5, scikit-learn v0.21.3 and/or pinguoin v0.3.10 packages.

95For manuscripts utilizing custom algorithms or software that are central to the research but not yet described in published literature, software must be made available to editors and reviewers. We strongly encourage code deposition in a community repository (e.g. GitHub). See the Nature Research guidelines for submitting code & software for further information.

Data

96Policy information about availability of data All manuscripts must include a data availability statement. This statement should provide the following information, where applicable:

97-Accession codes, unique identifiers, or web links for publicly available datasets -A list of figures that have associated raw data -A description of any restrictions on data availability All human and model data are available on Zenodo at http://doi.org/10.5281/zenodo.4495586, along with custom analysis code that reproduces all figures and statistical tests involving human data.

참고문헌 127건

  1. Possible Principles Underlying the Transformations of Sensory Messages The MIT Press eBooks · The MIT Press · 2012 10.7551/mitpress/9780262518420.003.0013
  2. The perception of shading and reflectance Cambridge University Press eBooks · Cambridge University Press · 1996 10.1017/cbo9780511984037.014
  3. Perception as Bayesian Inference Cambridge University Press eBooks · Cambridge University Press · 1996 10.1017/cbo9780511984037
  4. Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification 2015 10.1109/iccv.2015.123
  5. The Interface Theory of Perception Psychonomic Bulletin & Review · Springer Science+Business Media · 2015 10.3758/s13423-015-0890-8
  6. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images 2015 10.1109/cvpr.2015.7298640
  7. Shape and fluctuation of cellular premixed flames: lean combustion system of CH4/O2/CO2 mixtures Journal of Visualization · Springer Science+Business Media · 2012 10.1007/s12650-012-0151-0
  8. Adaptive pattern classification and universal recoding: I. Parallel development and coding of neural feature detectors Biological Cybernetics · Springer Science+Business Media · 1976 10.1007/bf00344744
  9. Untangling invariant object recognition Trends in Cognitive Sciences · Elsevier BV · 2007 10.1016/j.tics.2007.06.010
  10. The Glarimeteran Instrument for Measuring the Gloss of Paper Journal of the Optical Society of America · Optica Publishing Group · 1921 10.1364/josa.5.000213
  11. Material — Illumination Ambiguities and the Perception of Solid Objects Perception · SAGE Publishing · 2006 10.1068/p5440
  12. Adaptation of retinal processing to image contrast and spatial scale Nature · Nature Portfolio · 1997 10.1038/386069a0
  13. An anchoring theory of lightness perception. Psychological Review · American Psychological Association · 1999 10.1037/0033-295x.106.4.795
  14. Image statistics do not explain the perception of gloss and lightness Journal of Vision · Association for Research in Vision and Ophthalmology · 2009 10.1167/9.11.10
  15. Lightness Constancy in the Presence of Specular Highlights Psychological Science · SAGE Publishing · 2004 10.1111/j.0963-7214.2004.01501006.x
  16. Highlights and the perception of glossiness Perception & Psychophysics · Springer Science+Business Media · 1981 10.3758/bf03206160
  17. Generative constraints on image cues for perceived gloss Journal of Vision · Association for Research in Vision and Ophthalmology · 2013 10.1167/13.14.2
  18. The exploitation of regularities in the environment by the brain Behavioral and Brain Sciences · Cambridge University Press · 2001 10.1017/s0140525x01000024
  19. Dynamics of isolated columnar vortex in tube with sinusoidal cross-section Journal of Visualization · Springer Science+Business Media · 2005 10.1007/bf03181597
  20. Image statistics and the perception of surface qualities Nature · Nature Portfolio · 2007 10.1038/nature05724
  21. Illusions, perception and Bayes Nature Neuroscience · Nature Portfolio · 2002 10.1038/nn0602-508
  22. 2. Instability of an annular sheet liquid flow, bubble regime Journal of Visualization · Springer Science+Business Media · 2001 10.1007/bf03182446
  23. Probabilistic brains: knowns and unknowns Nature Neuroscience · Nature Portfolio · 2013 10.1038/nn.3495
  24. Coupled computations of three-dimensional shape and material Current Biology · Elsevier BV · 2015 10.1016/j.cub.2015.01.062
  25. Variability in constancy of the perceived surface reflectance across different illumination statistics Vision Research · Elsevier BV · 2011 10.1016/j.visres.2011.11.010
  26. &lt;title&gt;Psychophysically based model of surface gloss perception&lt;/title&gt; Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2001 10.1117/12.429501
  27. Deep Supervised, but Not Unsupervised, Models May Explain IT Cortical Representation PLoS Computational Biology · Public Library of Science · 2014 10.1371/journal.pcbi.1003915
  28. The influence of shape on the perception of material reflectance 2007 10.1145/1275808.1276473
  29. Nonlinear Dimensionality Reduction by Locally Linear Embedding Science · American Association for the Advancement of Science · 2000 10.1126/science.290.5500.2323
  30. A Toolbox for Representational Similarity Analysis PLoS Computational Biology · Public Library of Science · 2014 10.1371/journal.pcbi.1003553
  31. The perception of gloss: A review Vision Research · Elsevier BV · 2014 10.1016/j.visres.2014.10.026
  32. Visual Motion and the Perception of Surface Material Current Biology · Elsevier BV · 2011 10.1016/j.cub.2011.10.036
  33. Encoding and decoding in fMRI NeuroImage · Elsevier BV · 2010 10.1016/j.neuroimage.2010.07.073
  34. Disparity, motion, and color information improve gloss constancy performance Journal of Vision · Association for Research in Vision and Ophthalmology · 2010 10.1167/10.9.7
  35. The Perception and Misperception of Specular Surface Reflectance Current Biology · Elsevier BV · 2012 10.1016/j.cub.2012.08.009
  36. Perception of Surface Glossiness by Infants Aged 5 to 8 Months Perception · SAGE Publishing · 2011 10.1068/p6893
  37. Ordered arrangement of orientation columns in monkeys lacking visual experience The Journal of Comparative Neurology · Wiley · 1974 10.1002/cne.901580306
  38. The visual perception of 3D shape Trends in Cognitive Sciences · Elsevier BV · 2004 10.1016/j.tics.2004.01.006
  39. Transportation of a dye in upstream and downstream wakes of the cylinder in continuously stratified liquid Journal of Visualization · Springer Science+Business Media · 2007 10.1007/bf03181791
  40. Reducing the Dimensionality of Data with Neural Networks Science · American Association for the Advancement of Science · 2006 10.1126/science.1127647
  41. Use of image-based information in judgments of surface-reflectance properties Journal of the Optical Society of America A · Optica Publishing Group · 1998 10.1364/josaa.15.002951
  42. Forming sparse representations by local anti-Hebbian learning Biological Cybernetics · Springer Science+Business Media · 1990 10.1007/bf02331346
  43. Real-world illumination and the perception of surface reflectance properties Journal of Vision · Association for Research in Vision and Ophthalmology · 2003 10.1167/3.5.3
  44. ImageNet Large Scale Visual Recognition Challenge International Journal of Computer Vision · Springer Science+Business Media · 2015 10.1007/s11263-015-0816-y
  45. Image Sharpness Assessment Based on Local Phase Coherence IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2013 10.1109/tip.2013.2251643
  46. The speed and accuracy of material recognition in natural images Attention Perception & Psychophysics · Springer Science+Business Media · 2013 10.3758/s13414-013-0436-y
  47. Difference scaling of gloss: Nonlinearity, binocularity, and constancy Journal of Vision · Association for Research in Vision and Ophthalmology · 2004 10.1167/4.9.4
  48. Vision and the statistics of the visual environment Current Opinion in Neurobiology · Elsevier BV · 2003 10.1016/s0959-4388(03)00047-3
  49. Conjoint Measurement of Gloss and Surface Texture Psychological Science · SAGE Publishing · 2008 10.1111/j.1467-9280.2008.02067.x
  50. Object Perception as Bayesian Inference Annual Review of Psychology · Annual Reviews · 2004 10.1146/annurev.psych.55.090902.142005
  51. Some informational aspects of visual perception. Psychological Review · American Psychological Association · 1954 10.1037/h0054663
  52. Maximum differentiation (MAD) competition: A methodology for comparing computational models of perceptual quantities Journal of Vision · Association for Research in Vision and Ophthalmology · 2008 10.1167/8.12.8
  53. (제목 없음) International Journal of Computer Vision · Springer Science+Business Media · 2000 10.1023/a:1026553619983
  54. Visual perception of materials and surfaces Current Biology · Elsevier BV · 2011 10.1016/j.cub.2011.11.022
  55. Bayesian Spiking Neurons I: Inference Neural Computation · The MIT Press · 2007 10.1162/neco.2008.20.1.91
  56. Measuring and modeling anisotropic reflection 1992 10.1145/133994.134078
  57. DeepFace: Closing the Gap to Human-Level Performance in Face Verification 2014 10.1109/cvpr.2014.220
  58. Emergence of simple-cell receptive field properties by learning a sparse code for natural images Nature · Nature Portfolio · 1996 10.1038/381607a0
  59. Natural Image Statistics and Neural Representation Annual Review of Neuroscience · Annual Reviews · 2001 10.1146/annurev.neuro.24.1.1193
  60. Representational geometry: integrating cognition, computation, and the brain Trends in Cognitive Sciences · Elsevier BV · 2013 10.1016/j.tics.2013.06.007
  61. The free-energy principle: a rough guide to the brain? Trends in Cognitive Sciences · Elsevier BV · 2009 10.1016/j.tics.2009.04.005
  62. Functional consequences of the relative numbers of L and M cones Journal of the Optical Society of America A · Optica Publishing Group · 2000 10.1364/josaa.17.000607
  63. Representation Learning: A Review and New Perspectives IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2013 10.1109/tpami.2013.50
  64. Can Computational Goals Inform Theories of Vision? Topics in Cognitive Science · Wiley · 2015 10.1111/tops.12136
  65. Learning Deep Generative Models Annual Review of Statistics and Its Application · Annual Reviews · 2015 10.1146/annurev-statistics-010814-020120
  66. Visual perception of materials and their properties Vision Research · Elsevier BV · 2013 10.1016/j.visres.2013.11.004
  67. Deep Neural Networks Rival the Representation of Primate IT Cortex for Core Visual Object Recognition PLoS Computational Biology · Public Library of Science · 2014 10.1371/journal.pcbi.1003963
  68. Toward a perceptual space for gloss ACM Transactions on Graphics · Association for Computing Machinery · 2009 10.1145/1559755.1559760
  69. Deep Neural Networks: A New Framework for Modeling Biological Vision and Brain Information Processing Annual Review of Vision Science · Annual Reviews · 2015 10.1146/annurev-vision-082114-035447
  70. The perceptual representation of transparency, lightness, and gloss Oxford University Press eBooks · Oxford University Press · 2014 10.1093/oxfordhb/9780199686858.013.030
  71. Visualizing Data using t-SNE Journal of Machine Learning Research · The MIT Press · 2008
  72. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  73. Material properties derived from three-dimensional shape representations Vision Research · Elsevier BV · 2015 10.1016/j.visres.2015.05.003
  74. Using goal-driven deep learning models to understand sensory cortex Nature Neuroscience · Nature Portfolio · 2016 10.1038/nn.4244
  75. Motion and texture shape cues modulate perceived material properties Journal of Vision · Association for Research in Vision and Ophthalmology · 2016 10.1167/16.1.5
  76. Explicit information for category-orthogonal object properties increases along the ventral stream Nature Neuroscience · Nature Portfolio · 2016 10.1038/nn.4247
  77. Conditional Image Generation with PixelCNN Decoders arXiv (Cornell University) · Cornell University · 2016
  78. Probabilistic Models and Generative Neural Networks: Towards an Unified Framework for Modeling Normal and Impaired Neurocognitive Functions Frontiers in Computational Neuroscience · Frontiers Media · 2016 10.3389/fncom.2016.00073
  79. Perceptually Motivated BRDF Comparison using Single Image Computer Graphics Forum · Wiley · 2016 10.1111/cgf.12944
  80. Inferring brain-computational mechanisms with models of activity measurements Philosophical Transactions of the Royal Society B Biological Sciences · Royal Society · 2016 10.1098/rstb.2016.0278
  81. An intuitive control space for material appearance ACM Transactions on Graphics · Association for Computing Machinery · 2016 10.1145/2980179.2980242
  82. PixelVAE: A Latent Variable Model for Natural Images International Conference on Learning Representations · 2016
  83. PixelCNN++: Improving the PixelCNN with Discretized Logistic Mixture Likelihood and Other Modifications arXiv (Cornell University) · Cornell University · 2017
  84. Towards Deeper Understanding of Variational Autoencoding Models arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1702.08658
  85. Color constancy 2007
  86. Letter perception emerges from unsupervised deep learning and recycling of natural image features Nature Human Behaviour · Nature Portfolio · 2017 10.1038/s41562-017-0186-2
  87. beta-VAE: Learning Basic Visual Concepts with a Constrained Variational Framework International Conference on Learning Representations · 2017
  88. Children's use of visual summary statistics for material categorization Journal of Vision · Association for Research in Vision and Ophthalmology · 2017 10.1167/17.12.22
  89. A Developmental Approach to Machine Learning? Frontiers in Psychology · Frontiers Media · 2017 10.3389/fpsyg.2017.02124
  90. Large-scale, high-resolution comparison of the core visual object recognition behavior of humans, monkeys, and state-of-the-art deep artificial neural networks bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2018 10.1101/240614
  91. Material and shape perception based on two types of intensity gradient information PLoS Computational Biology · Public Library of Science · 2018 10.1371/journal.pcbi.1006061
  92. Generalisation in humans and deep neural networks neural information processing systems · 2018 10.15496/publikation-30814
  93. Brain-Score: Which Artificial Neural Network for Object Recognition is most Brain-Like? bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2018 10.1101/407007
  94. Pingouin: statistics in Python The Journal of Open Source Software · Open Journals · 2018 10.21105/joss.01026
  95. Towards a Definition of Disentangled Representations arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1812.02230
  96. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness arXiv (Cornell University) · Cornell University · 2018
  97. Naturally glossy: Gloss perception, illumination statistics, and tone mapping Journal of Vision · Association for Research in Vision and Ophthalmology · 2018 10.1167/18.13.4
  98. Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
  99. Deep Learning for Cognitive Neuroscience The MIT Press eBooks · The MIT Press · 2020 10.7551/mitpress/11442.003.0077
  100. PixelVAE: A Latent Variable Model for Natural Images arXiv (Cornell University) · Cornell University · 2016
  101. Auto-Encoding Variational Bayes 2013
  102. Large-Scale, High-Resolution Comparison of the Core Visual Object Recognition Behavior of Humans, Monkeys, and State-of-the-Art Deep Artificial Neural Networks Journal of Neuroscience · Society for Neuroscience · 2018 10.1523/jneurosci.0388-18.2018
  103. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness arXiv (Cornell University) · Cornell University · 2018
  104. The Unreasonable Effectiveness of Deep Features as a Perceptual Metric 2018 10.1109/cvpr.2018.00068
  105. Conditional Image Generation with PixelCNN Decoders arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1606.05328
  106. Texture synthesis using convolutional neural networks arXiv (Cornell University) · Cornell University · 2015
  107. A similarity measure for material appearance ACM Transactions on Graphics · Association for Computing Machinery · 2019 10.1145/3306346.3323036
  108. Learning to see stuff Current Opinion in Behavioral Sciences · Elsevier BV · 2019 10.1016/j.cobeha.2019.07.004
  109. Children's use of local and global visual features for material perception Journal of Vision · Association for Research in Vision and Ophthalmology · 2020 10.1167/jov.20.2.10
  110. A deep learning framework for neuroscience Nature Neuroscience · Nature Portfolio · 2019 10.1038/s41593-019-0520-2
  111. Material category of visual objects computed from specular image structure Nature Human Behaviour · Nature Portfolio · 2023 10.1038/s41562-023-01601-0
  112. Mid-level vision Current Biology · Elsevier BV · 2020 10.1016/j.cub.2019.11.088
  113. Convolutional Neural Networks as a Model of the Visual System: Past, Present, and Future Journal of Cognitive Neuroscience · The MIT Press · 2020 10.1162/jocn_a_01544
  114. Shortcut learning in deep neural networks Nature Machine Intelligence · Nature Portfolio · 2020 10.1038/s42256-020-00257-z
  115. 1. Three-dimensional instabilities in a counterrotating vortex pair Journal of Visualization · Springer Science+Business Media · 2000 10.1007/bf03182431
  116. Three Perceptual Dimensions for Specular and Diffuse Reflection ACM Transactions on Applied Perception · Association for Computing Machinery · 2020 10.1145/3380741
  117. Five points to check when comparing visual perception in humans and machines Journal of Vision · Association for Research in Vision and Ophthalmology · 2021 10.1167/jov.21.3.16
  118. Individual differences among deep neural network models Nature Communications · Nature Portfolio · 2020 10.1038/s41467-020-19632-w
  119. Controversial stimuli: Pitting neural networks against each other as models of human cognition Proceedings of the National Academy of Sciences · National Academy of Sciences · 2020 10.1073/pnas.1912334117
  120. An intuitive control space for material appearance ACM Transactions on Graphics · Association for Computing Machinery · 2016 10.1145/2980179.2980242
  121. Learning About the World by Learning About Images Current Directions in Psychological Science · SAGE Publishing · 2021 10.1177/0963721421990334
  122. Five points to check when comparing visual perception in humans and machines Journal of Vision · Association for Research in Vision and Ophthalmology · 2021 10.1167/jov.21.3.16
  123. 2012 IEEE Conference on Computer Vision and Pattern Recognition 2012
  124. Material category of visual objects computed from specular image structure bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2020 10.1101/2019.12.31.892083
  125. Diverse deep neural networks all predict human IT well, after training and fitting bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2020 10.1101/2020.05.07.082743
  126. Color constancy Vision Research · Elsevier BV · 2010 10.1016/j.visres.2010.09.006
  127. Material Perception Annual Review of Vision Science · Annual Reviews · 2017 10.1146/annurev-vision-102016-061429