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

Quantifying the Error of Light Transport Algorithms

관련 수소연료전지 · (7) MEA(막전극접합체)

기본 정보

저자
  1. A. Celarek — Aalto University, Finland|||TU Wien, Austria
  2. Wenzel Jakob — École Polytechnique Fédérale de Lausanne (EPFL) Switzerland
  3. Michael Wimmer — TU Wien, Austria
  4. Jaakko Lehtinen — Aalto University, Finland
DOI
10.1111/cgf.13775
저널
Computer Graphics Forum
발행년도
2019
발행기관
Wiley
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1111/cgf.13775
토픽
Color Science and Applications
OpenAlex ID
W2965328240

평가 내용

관련도
관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > MEA(막전극접합체)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract This paper proposes a new methodology for measuring the error of unbiased physically based rendering algorithms. The current state of the art includes mean squared error (MSE) based metrics and visual comparisons of equal‐time renderings of competing algorithms. Neither is satisfying as MSE does not describe behavior and can exhibit significant variance, and visual comparisons are inherently subjective. Our contribution is two‐fold: First, we propose to compute many short renderings instead of a single long run and use the short renderings to estimate MSE expectation and variance as well as per‐pixel standard deviation. An algorithm that achieves good results in most runs, but with occasional outliers is essentially unreliable, which we wish to quantify numerically. We use per‐pixel standard deviation to identify problematic lighting effects of rendering algorithms. The second contribution is the error spectrum ensemble (ESE), a tool for measuring the distribution of error over frequencies. The ESE serves two purposes: It reveals correlation between pixels and can be used to detect outliers, which offset the amount of error substantially.

본문 53,055자

본문 펼치기
DOI: 10.1111/cgf.13775 Eurographics Symposium on Rendering 2019 T. Boubekeur and P. Sen (Guest Editors) _Volume 38_ ( _2019_ ), _Number 4_ # Quantifying the Error of Light Transport Algorithms A. Celarek <sup>12</sup>, W. Jakob <sup>3</sup>, M. Wimmer <sup>2</sup> and J. Lehtinen <sup>1</sup> 1Aalto University, Finland 2TU Wien, Austria 3École Polytechnique Fédérale de Lausanne (EPFL), Switzerland _(e)_ _Fourier error power spectra_ 1... N _(a)_ _Short renderings_ 1... N _(b)_ _Error images_ + 0 1... N + 0 10 <sup>10</sup> 10 <sup>9</sup> 10 <sup>8</sup> 10 <sup>7</sup> + 0 0 50 100 150 200 _N=4000_ Metropolis light transport Path tracing 200 250 Frequency (f) _(c*)_ _Estimator for E[MSE]_ _(d*)_ _Standard deviation_ _(f*)_ _Error spectrum ensemble (ESE)_ Figure 1: _Flow_ _chart_ _of_ _the_ _proposed_ _method_ _with_ _outputs_ _(*):_ _A_ _long_ _rendering_ _process_ _is_ _partitioned_ _into_ _many_ _short_ _runs_ _(a)_ _which_ _are_ _used_ _to_ _estimate_ _error_ _images_ _(b)._ _These_ _are_ _used_ _to_ _calculate_ _a_ _reliable_ _estimate_ _of_ _the_ _expected_ _mean_ _square_ _error_ _(MSE,_ _c*),_ _that_ _could e.g. be used to rank a set of different rendering algorithms. The error images (b) are also used to generate a standard-deviation-per-_ _pixel visualization (d*), which shows which of several competing algorithms is best for a specific lighting situation. Finally, Fourier power_ _spectra (e) are computed and combined into the error spectrum ensemble (ESE, f*) that plots the expected error and outliers with respect to_ _frequency, visualizing for instance correlation between pixels._ Abstract _This_ _paper_ _proposes_ _a_ _new_ _methodology_ _for_ _measuring_ _the_ _error_ _of_ _unbiased_ _physically_ _based_ _rendering_ _algorithms._ _The_ _current_ _state_ _of_ _the_ _art_ _includes_ _mean_ _squared_ _error_ _(MSE)_ _based_ _metrics_ _and_ _visual_ _comparisons_ _of_ _equal-time_ _renderings_ _of_ _competing_ _algorithms._ _Neither_ _is_ _satisfying_ _as_ _MSE_ _does_ _not_ _describe_ _behavior_ _and_ _can_ _exhibit_ _significant_ _variance,_ _and_ _visual comparisons are inherently subjective. Our contribution is two-fold: First, we propose to compute many short renderings_ _instead_ _of_ _a_ _single_ _long_ _run_ _and_ _use_ _the_ _short_ _renderings_ _to_ _estimate_ _MSE_ _expectation_ _and_ _variance_ _as_ _well_ _as_ _per-pixel_ _standard deviation. An algorithm that achieves good results in most runs, but with occasional outliers is essentially unreliable,_ _which we wish to quantify numerically. We use per-pixel standard deviation to identify problematic lighting effects of rendering_ _algorithms. The second contribution is the error spectrum ensemble (ESE), a tool for measuring the distribution of error over_ _frequencies. The ESE serves two purposes: It reveals correlation between pixels and can be used to detect outliers, which offset_ _the amount of error substantially._ CCS Concepts _•_ _Computing methodologies_ _→_ _Ray tracing;_ 1. Introduction Physically based rendering algorithms rely on numerical integration techniques, which yield approximations that converge to an exact solution with increasing computation budget. When limited to a finite computational budget, the inherent rendering error of such algorithms not only differs in magnitude, but also in terms of their spectral characteristics. For instance, Monte Carlo (MC) _⃝_ c 2019 The Author(s). Computer Graphics Forum published by Eurographics - The European Association for Computer Graphics and John Wiley & Sons Ltd. This is an open access article under the terms of the Creative Commons Attribution License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited. algorithms produce white noise error spectra, while correlations in Markov chain Monte Carlo (MCMC) methods produce a disproportionate amount of error in low frequency bands. Surprisingly, there is no established standard method for measuring error across such methods, which limits our ability to compare them systematically. A common approach is to first compute a reference solution, which is then used to calculate the error image for a representa 112 _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ 2. Related Work 1... N (a) _Normal_ (b) _Proxy_ Figure 2: _We modify the original algorithm (a) by partitioning the_ _rendering process into N shorter equal-time runs that each produce_ _an_ _image_ _(b)._ _The_ _computation_ _budget_ _of_ _those_ _short_ _renderings_ _is_ _typically_ _a_ _few_ _CPU_ _seconds._ _From_ _the_ _resulting_ _data,_ _we_ _are_ _able_ _to_ _create_ _statistics_ _for_ _any_ _error_ _metric_ _along_ _with_ _per-pixel_ _standard deviation or variance._ tive run of each algorithm, using an equal rendering budget to make them comparable. Quantitative comparisons are then conducted using mean square error (MSE), or other derived quantities, e.g., root of MSE (RMSE) or other single value metrics. Such error statistics are of limited use with regard to the nature and visual impression of the error. Moreover, they are not informative when assessing the reliability for a particular combination of scene and algorithm. In particular, issues arise from outliers, i.e., low-probability events that introduce a significant amount of error. This can affect individual pixels or larger correlated regions when working with MCMC methods. Frequently, the measurements are supplemented by visual evaluation of the example renderings. However, such qualitative evaluations are inherently subjective and imprecise. To address these problems, we propose several tools based on a simple _proxy_ algorithm (Section 3). Instead of one long rendering, the proxy algorithm takes the average of _N_ short renderings with the same overall budget (Figure 2). If the original algorithm is unbiased, then the resulting proxy is unbiased as well. If the original algorithm has finite per-pixel variance in addition, then it also fulfills the requirements for the central limi _~~√~~_ <u>t</u> <u>theorem</u> (CLT). Hence, its asymptotic convergence rate is Θ(1 _/_ _N_ ) in standard deviation and it is consistent. That _~~√~~_ <u>by itself can be an improvement, as a con-</u> vergence rate of Θ(1 _/_ _N_ ) is not necessarily achieved by every algorithm. More importantly, the proxy algorithm allows to _•_ estimate the _expected_ MSE and its variance, or other measures of reliability, _•_ compute standard deviation or variance per pixel images, showing which light effects are problematic, and _•_ provide more advanced tools based on the short renders. As one such advanced tool we propose the error spectrum ensemble (ESE). Based on the Fourier transform of the error images, it reveals the spatial frequency content of error as well as outliers. An application of the ESE can be quick the deduction of the magnitude and spatial extent of the correlation between pixels, or of the spatial size and intensity of outliers. A number of researchers have investigated the properties of error in light transport algorithms. Arvo et al. [ATS94] identified three sources of error (input data, discretization, and computation) and provided bounds. In contrast to their work, we are only concerned with precise estimation of numerical error in competing integration procedures. Szirmay-Kalos et al. [SKDP99] analyzed the start-up bias and convergence of MLT, but a lot of their analysis is based on very simple example scenes and does not provide a framework for comparing MC with MCMC methods. Ashikhmin et al. [APSS01] showed that the per-pixel variance of Metropolis light transport (MLT) [VG97] is bounded by Θ(1 _/N_ ), which is an important insight, but it does not help in quantifying the error. Rousselle et al. [RKZ12] use two buffers and the sample variance to estimate the error in path tracing. This is comparable to our proxy using _N_ = 2, but their work is focused on adaptive sampling and not a general error metric. Subr and Kautz [SK13] analyzed the error caused by various Monte Carlo (MC) sampling patterns via Fourier analysis, but their conclusions do not generalize. Whittle et al. [WJM17] provided an extensive overview of error metrics for images, and they examined the influence of poor references for computing those measures. However, they did not investigate their variance, or sensitivity to outliers. Durand et al. [DHS*05] investigated the frequency content of radiance and how it is influenced by various light-transport phenomena. Zirr et al. [ZAD15] studied possibilities for the visualization and editing of structured light-transport effects. Both of these works study the effect of various physical phenomena, while our work targets statistical estimators. Kettunen et al. [KMA*15] used the Fourier spectrum to analyze the superior convergence behavior of gradient domain path tracing. Similarly to the proposed ESE, Lehtinen et al. [LKL*13] used radial averages and the Fourier transform to plot error against frequency. However, they used only one long rendering, and neither studied outliers nor the overall reliability. Several other papers also used radial averages of data derived from the Fourier transform for the analysis of low-dimensional sampling patterns [LD08; SK13; PSC*15]. 3. Proxy Algorithm Basics. We treat rendering as a stochastic process that estimates the path-space integral: where _⟨Im⟩_ denotes the estimator or rendering algorithm computing the value of a pixel _m_, _N_ is the computation budget, Ω refers to the set of all transport paths and _fm_ to the contribution function. Throughout the text, angular brackets _⟨X⟩Y_ refer to an estimator _X_ (for instance the MSE) related to a particular a rendering algorithm that uses a computation budget of _Y_ . In practice, _Y_ will be proportional to the number of sample evaluations performed by the MC or MCMC scheme. We limit ourselves to algorithms with finite per-pixel variance that are unbiased (with one exception highlighted in Section 4.3). _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. _~~√~~_ <u>t</u> _~~√~~_ _⟨Im⟩N_ _≈_ _Im_ = Ω _fm_ ( _x_ ¯)d¯ _x,_ (1) _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ 113 The condition on variance is unproblematic as algorithms with infinite variance would not be useful in practice. Unbiasedness is defined as E [ _⟨I⟩N −_ _I_ ] = 0 _,_ (2) i.e., for any algorithm _⟨I⟩N_, the expected value of the algorithm matches the path-space integral.. Consistent algorithms satisfy the following criterion: _N_ lim _→∞_ <sup>_⟨I⟩N_</sup> <sup>=</sup> <sup>_I._</sup> (3) Note that not every unbiased algorithm is consistent (and vice versa). Proxy Algorithm. We define the result of the proxy algorithm as the average of _N_ short and equal-budget renderings of the original algorithm: Unbiased and Consistent. The proxy algorithm is unbiased, because _N_ ## ∑ _n_ =1 - _⟨Im_ <sup>_′_</sup> <sup>_⟩_</sup> _N_ <sup>_−_</sup> <sup>_I_</sup> _m_ - _⟨I_ <sup>_′_</sup> = <sup><u>1</u></sup> _N_ E E - _⟨Im_ <sup>_n_</sup> <sup>_⟩_</sup> 1 <sup>_−_</sup> <sup>_I_</sup> _m_ - _,_ (5) where _n_ is the index of the short rendering, for every pixel _m_, which is a consequence of the unbiasedness of the original algorithm (Equation 2). The applicability of the CLT also means that the weak law of large numbers applies, therefore our proxy is not only unbiased, but also consistent. This is an improvement for algorithms that are unbiased, but not consistent. In the rest of this article we will assume the original algorithm for the short renderings and the proxy for the result and drop the prime symbol ( _⟨I⟩N_ = _⟨I_ <sup>_′_</sup> _⟩N_ ). Rendering Error. Commonly used error measures for a rendering _⟨I⟩K_ include the signed absolute error _⟨E⟩K_ = _⟨I⟩K −_ _I_ or the relative error _⟨E_ <sup>_′_</sup> _⟩K_ = ( _⟨I⟩K −_ _I_ ) _/_ ( _I_ + ε), where ε is a small offset that prevents division by zero. The absolute error can become large in brightly lit areas, despite such errors likely being imperceptible to a human observer. In contrast, the relative error has a singularity in dark areas that is only ameliorated by the epsilon term. Since scenes with almost black areas are common, we deem the problem of singularity more severe and use the absolute error throughout the paper. Since _I_ is unknown, it must be estimated. One option is to estimate it independently using a very high rendering budget, i.e., create a ground truth reference image. In our case it is more efficient to use the proxy result _⟨I⟩N_ for estimating the error of the individual short renderings _⟨I⟩_ 1: _⟨En⟩_ 1 = _⟨I_ <sup>_n_</sup> _⟩_ 1 _−⟨I⟩N_ _._ (6) Such an estimation of signed error is unbiased as E[ _⟨I_ <sup>_n_</sup> _⟩_ 1] = E[ _⟨I⟩N_ ]. The precision of individual observations of _⟨En⟩_ 1 grows with rising _N_ . Estimating the per-pixel variance requires Bessel’s correction to produce an unbiased result. 3.1. Improvements for Measuring Mean Square Error In classical statistics, MSE is a scalar estimator property. The statistical definition using the estimator from Equation 1 is _⟨I_ <sup>_′_</sup> _⟩N_ = <sup><u>1</u></sup> _N_ _N_ ## ∑ ⟨I n ⟩ 1 (4) _n_ =1 _⟨I_ <sup>_n_</sup> _⟩_ 1 is one of the _N_ independent short renderings (Figure 2). Central Limit Theorem. Looking at individual pixels, the preconditions of the central limit theorem (CLT) are satisfied independently of the rendering algorithm: _•_ The short renderings are independent. _•_ Corresponding pixels share common probability distributions, because they were generated by the same scene, camera and algorithm setup, only using different random numbers. _•_ Their expectations are defined. _•_ Their variance is finite. Due to the CLT, the per-pixel value distributions in the proxy result ( _⟨I⟩N_, Equation 4) tend to a normal distribution as _N_ grows. The distributions have _Im_ mean and a standard deviation that varies from pixel to pixel. We therefore propose to routinely show standard deviation per-pixel images (SDpp) (Figure 1e) to visualize the convergence speed throughout an image. Any existing correlation between the pixels, a characteristic property of Markov chain based methods, is not reduced as _N_ grows. Therefore, it would be useful to visualize and measure that correlation - however, this task is non-trivial and left for future work. Convergence Rate. A direct consequence of the CLT is the _~~√~~_ asymptotic convergence rate of Θ(1 _/_ _N_ ) as measured by per-pixel standard deviation _~~√~~_ <u>.</u> <u>This</u> is an improvement over the original algorithm if Θ(1 _/_ _N_ ) cannot be easily achieved using the built in parameters. An example is energy redistribution path tracing (ERPT) [CTE05], where quality and rendering budget are influenced by chain length, number of seed paths, and number of chains. The number of runs _N_, on the other hand, is a parameter of the proxy algorithm. In situations where methods for a better convergence rate are known, e.g., sampling patterns for low dimensions [PSC*15], the proxy algorithm will become a limiting factor. Section 4.3 shows how methods based on the proxy algorithm can be adapted in such cases, and Section 5.2 shows examples of the performance impact in case of Markov-chain-based methods. So while “mean” stands for “expectation” in statistics, it is used for “average over pixels” in rendering. _~~√~~_ - MSE( _⟨Im⟩K_ ) = E ( _⟨Im⟩K −_ _Im_ ) <sup>2</sup> ) _,_ (7) _~~√~~_ for only one pixel, and with unknown _Im_ . In case of unbiased estimators, the statistical MSE is equivalent to (per-pixel) variance. In contrast, MSE in the context of rendering is often defined as a random variable averaging squared errors over the whole image, calculated after a certain rendering budget _K_ : MSE( _⟨I⟩K_ ) = <sup><u>1</u></sup> _M_ _M_ ## ∑ _m_ =0 ( _⟨Im⟩K −_ _Im_ ) <sup>2</sup> _._ (8) _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. 114 _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ Traditional and Proposed MSE. The expectation E[MSE( _⟨I⟩K_ )] is useful to rank a set of algorithms. This quantity is traditionally estimated (denoted by MSE) <sup>�</sup> using a single run of a rendering algorithm: E [MSE( _⟨I⟩N_ )] _≈_ MSE <sup>�</sup> 1( _⟨I⟩N_ ) _N_ ## ∑ ⟨Im⟩ 1 − Im _n_ =0 �2 _._ (9) = <sup><u>1</u></sup> _M_ _M_ - <u>1</u> ## ∑ N _m_ =0 Problems can arise due to high variance, which causes the estimates to be far from the true expectation. We propose to use _N_ observations instead: E [MSE( _⟨I⟩_ 1)] _≈_ MSE <sup>�</sup> _N_ ( _⟨I⟩_ 1) <u>1</u> = ( _N −_ 1) _M_ _N_ _M_ ## ∑ ∑ _n_ =0 _m_ =0 Figure 3: _Comparison_ _of_ _the_ _traditional_ _and_ _the_ _proposed_ _MSE_ _computation for a simple MC integration of Equation 14. The tra-_ _ditional_ _method_ _does_ _not_ _converge_ _to_ _its_ _expectation_ _even_ _with_ _a_ _large computation budget, which the proposed method addresses._ which will be used for a toy example in the following paragraph. Similarly, - _⟨Im_ <sup>_n_</sup> <sup>_⟩_</sup> 1 <sup>_−⟨I_</sup> _m_ <sup>_⟩_</sup> _N_ �2 _,_ (10) where _N_ is the rendering budget of the proxy algorithm, _N −_ 1 accounts for the Bessel correction, _M_ is the pixel count, _⟨Im_ <sup>_n_</sup> _⟩_ 1 the value of pixel _m_ in proxy rendering _n_ and _⟨Im⟩N_ pixel _m_ of the proxy algorithm result. In Equation 9, positive and negative errors cancel each other out in the inner sum of the traditional method, which is avoided in the proposed calculation. Analogy to Statistical MSE. By the law of large numbers, we know that E [MSE( _⟨I⟩_ 1)] =MSE <sup>�</sup> _∞_ ( _⟨I⟩_ 1) For squared error expectation, it does not matter whether we comp _~~√~~_ <u>ute the error for a budget of exactly 1, or for</u> _K_ and then scale by _K_ . We use this fact to accommodate for algorithms with different rendering costs: Var ( _⟨Im⟩_ 1) = _K ×_ Var ( _⟨Im⟩K_ ) _~~√~~_ = Var _⟨Im⟩K ×_ _K_ <u>�</u> _._ _N_ ## ∑ _n_ =0 _⟨E⟩_ 1 = _⟨E⟩t ×_ = <sup><u>1</u></sup> _M_ �2 _~~√~~_ _t,_ (13) lim _N→∞_ <u>1</u> ( _N −_ 1) - _⟨Im_ <sup>_n_</sup> <sup>_⟩_</sup> 1 <sup>_−⟨I_</sup> _m_ <sup>_⟩_</sup> _N_ = <sup><u>1</u></sup> _M_ _M_ ## ∑ _m_ =0 _M_ ## ∑ _m_ =0 Var ( _⟨Im⟩_ 1) _._ (11) where _t_ is the actual render time or budget of a short rendering and 1 is the _unit budget_ used for comparisons. Simple Experiment. To illustrate these concepts, we perform a simple experiment, where _M_ = 100 related integrals are computed and elements _Im_ are analogous to pixels in renderings. The equation for these elements is In case of unbiased algorithms, the proposed method converges to the average per-pixel variance as the term within the limes brackets is simply a variance estimate: If considering biased algorithms (Section 4.3), _⟨Im⟩N_ should be replaced by a high quality reference solution and Bessel’s correction removed. In both cases, the proposed MSE converges towards the average of the classic statistical MSEs defined in Equation 7. Rendering Budget Scaling. Due to the CLT, Var ( _⟨Im⟩K_ ) = <sup><u>Var</u></sup> <sup><u>(</u></sup> <sup>_<u>⟨Im⟩</u>_</sup> <sup><u>1)</u></sup> _K_ applies for every individual pixel. Since the expectation of the proposed MSE is a linear combination of variances (Equation 11), we deduce for the whole image that E [MSE( _⟨I⟩K_ )] = <sup><u>E</u></sup> <sup><u>[MSE(</u></sup> <sup>_<u>⟨I⟩</u>_</sup> <sup><u>1)]</u></sup> _._ _K_ After plugging in the proposed estimator MSE� _N_ ( _⟨I⟩_ 1) for E[MSE( _⟨I⟩_ 1)] we have a derived estimator for E [MSE( _⟨I⟩K_ )] _Im_ = - ( _m_ +1) _/M_ _m/M_ <u>1</u> 0 _._ 01 + _x_ <sup>_dx,_</sup> (14) where _m ∈_ [0 _,_ _M_ [. The goal is to compute a MSE value for a simple MC integration procedure using uniform sampling. Reference values for the _Im_ s and the exact E [MSE( _⟨Im⟩N_ )] were computed using Mathematica. We compare plots of the behavior of the traditional (Equation 9) and proposed computation method (Equations 12 and 10). Using MSE� _N_ ( _⟨I⟩_ 1) _/N_, we estimate MSE as if a rendering budget of _N_ were used, but with a lower computation cost. Figure 3 shows the result of the experiment. The same random samples were reused for the traditional and the proposed method. The proposed method converges to the exact solution. Traditional MSE, on the other hand, converges to a normal distribution, where both, expectation and variance are scaled by _N_ . This is only reliable if the MSE variance is low, i.e., when _M_ is large and there are no outliers. _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. E [MSE( _⟨I⟩K_ )] _≈_ <u>MSE�</u> _<u>N</u>_ <u>(</u> _<u>⟨I⟩</u>_ <u>1)</u> _,_ (12) _X_ _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ 3.2. The Variance of MSE 115 1... N The variance of the MSE is given by Var (MSE( _⟨I⟩K_ )) = Var <u>1</u> _M_ _⟨Em⟩K_ _M_ ## ∑ _m_ =1 = 2 1... N = <sup><u>1</u></sup> _M_ <sup>2</sup> - _M_ ## ∑ _m_ =1 Var _⟨Em⟩K_ 2 <sup>�</sup> + _M_ ## ∑ _m_ = _̸_ _m_ <sup>_′_</sup> Cov 2 <sup>��</sup> 2 _,_ _⟨Em′_ _⟩K_ _⟨Em⟩K_ _,_ (15) where MSE _⟨X⟩_ and _E⟨X⟩_ are random variables and not observations. The formula for MSE (Equation 8) and summation of variances were used. In case of independent pixels (MC), the covariance matrix is zero by definition, and hence the MSE variance is 1 _/M_ <sup>_th_</sup> of the average pixel variance. In algorithms with dependent pixels, a positive sum of the covariance matrix indicates that the positive correlation among pixels is stronger than the negative one. This can potentially increase the variance and impair the reliability of MSE estimates for correlated algorithms like MLT. In practice, we estimate the variance from the _N_ MSE values of the short renderings. Unfortunately, standard methods to compute confidence intervals cannot be used, because the distribution is not normal. 4. Error Spectrum Ensemble The error spectrum ensemble (ESE) descriptor provides a new way to characterize the frequency-space distribution of the error of unbiased rendering algorithms. For each of the _N_ renderings, we compute a scaled error image using Equations 6 and 13: (a) _Error images_ (b) _Error power spectra_ mean 00-100 mean 90-100 MEMLT (RMSE:6.86, s:5.7, t:10x1.9s) <u>mean 80-90</u> mean 50-80 tails mean 20-50 body mean 10-20 head mean 00-10 ensemble mean 0 50 100 150 200 250 frequency 0 50 100 150 200 250 N=400 frequency (c) _Radial averages and_ (d) _Error Spectrum Ensemble_ _percentile means_ Figure 4: _For_ _each_ _of_ _the_ _N_ _short_ _renders,_ _we_ _compute_ _an_ _error_ _image,_ _and_ _the_ _associated_ _radial_ _power_ _spectrum._ _We_ _group_ _the_ _entries of the spectrum into several buckets according to the asso-_ _ciated MSE, and use them to form the region borders of tail, body_ _and head of ESE. Additional data is shown in the legend (s = stan-_ _dard_ _deviation_ _of_ _RMSE,_ _t_ _=_ _samples_ _per_ _pixel_ _used_ _×_ _cost_ _for_ _one_ _sample)._ _The_ _ensemble_ _mean_ _does_ _not_ _lie_ _in_ _the_ _head_ _region_ _because of outliers._ 10%, 10-20%, 20-50%, 50-80%, 80-90%, and highest 10%). The per-frequency means of these buckets (Figure 4c) form the borders of the _tail_, _body_, and _head_ regions in the descriptor (Figure 4d). Head and body show the typical behavior of the algorithm, while the tail shows outliers. 4.1. Implementation The pipeline starting with rendering commands and ending with the ESE and standard deviation per-pixel images (SDpp) was automated using MATLAB and Python. The rendering time for the short renderings was around 10 single-core seconds on a 2018 AMD Ryzen 7 2700X, and the value of _N_ was 4000 in most tests. An HDR format with 32-bit floating-point was used as 16bit formats cause precision issues when averaging short renderings. Additional data available from the proxy algorithm is shown in the legend: _•_ estimated expectation of the RMSE, _•_ estimated standard deviation of the RMSE, _•_ computation budget of a short rendering (samples per pixel _×_ average time for a 1-sample-per-pixel image). We decided to use the linear statistics (RMSE and standard deviation) instead of quadratic ones (MSE and variance) for ease of _~~√~~_ _t,_ (16) _⟨En⟩_ 1 = - _⟨I_ <sup>_n_</sup> _⟩t −⟨I⟩tN_ - _×_ where _n_ is the index of the individual short rendering and _t_ is the rendering time for a single short rendering. We then transform the error images (Figure 4a) into discrete Fourier frequency space and compute associated power spectra by squaring the amplitude of each frequency (Figure 4b). Parseval’s theorem applies, i.e., the sum of all power spectrum elements is proportional to the MSE, and we thus interpret the power spectrum as a frequency-dependent MSE statistic. We reduce the dimensionality of the spectra by computing _radial_ _averages_ on concentric rings around the DC term. This allows us to represent every image by a vector of average frequency errors with the DC error at the beginning (Figure 4c). Low radial frequencies represent just a few 2d frequency elements, while higher radial frequencies represent more elements. This means that higher frequencies have a larger contribution to overall MSE and that low frequency radial averages have more variance even if the power spectrum has uniform distribution. Computing the per-frequency mean of those vectors results in a vector that we call the _ensem-_ _ble_ _mean_ . It is a measure of how much error is to be expected on average, per frequency. Finally, we sort the radial averages of all images according to MSE and divide them into six buckets for each frequency (lowest _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. 116 _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ (a) _RMSE as a function of time (Door)_ (b) _Error Spectrum Ensemble (Door)_ (c) _(Bathroom)_ (d) _(Bathroom)_ Figure 5: _First and second row: Different visualizations of the con-_ _vergence_ _behavior_ _acquired_ _using_ _the_ _proxy_ _algorithm._ _Long_ _ESE_ _tails arise due to RMSE jumps because the tails are generated from_ _(R)MSE outliers. Typically, MC algorithms (BDPT) have a flat er-_ _ror spectrum while MCMC ones (MLT) contain more error in low_ _frequencies. Outliers influence the shape of the ensemble mean (b,_ _MLT) and a flat spectral dependence indicates spatially small out-_ _liers (d, BDPT)._ interpretation. A full MATLAB implementation is provided in the supplemental material. 4.2. Spectrum Shape and Outliers for Different Algorithms We briefly discuss the ESE for some common rendering algorithms. Shape. MC spectra are generally flat, while MCMC spectra contain more error in low frequencies due to correlation (Figures 1g, 5b and 5d). Since the overall brightness in MLT (MCMC) is computed in a separate step, the DC term is independent of all other frequencies. Experiments with the Primary Sample Space MLT algorithm [KSKAC02] (Section 5.3) show that the width of the lowfrequency peak decreases as the correlation radius (mutation size) increases, similarly to the Fourier transform of a Gaussian curve. We have also observed that the peak’s relative height depends on the amount of correlation between pixels – specifically, it becomes smaller when increasing the percentage of large mutations (which propose an independent path). In our experiments, we found that the shape of the upper tail border reveals the nature of the underlying outliers: A spectrally flat shape is caused by isolated pixel outliers (Figure 5d, PT), while a peak in low frequencies is a sign of spatially correlated errors (Figure 4d). Outliers. There is a direct link between the size of the tail area in the ESE and jumps in RMSE over rendering budget plots. RMSE plots (examples in Figures 5a and c) are used to show the asymptotic behavior of algorithms, where a slope of -1 in the logarithmic scaling indicates a convergence rate of Θ(1 _/_ time). The data stems Figure 6: _ESE_ _of_ _the_ _door_ _scene_ _(Figure_ _7c)_ _for_ _SPPM,_ _which_ _is_ _consistent but biased (T_ _is 10 iterations). The ensemble means per-_ _fectly_ _overlap_ _if_ _the_ _convergence_ _rate_ _is_ 1 _/T._ _In_ _this_ _instance,_ _we_ _see that this is the case for low frequencies. Middle and higher fre-_ _quencies have a convergence rate below_ 1 _/T, because the_ 16 _T_ _line_ _is on top._ from proxy algorithms with _N_ = 4000, where the first _X_ short renderings are averaged to generate the RMSE value at the time point of the duration of _X_ renderings. Using this setup, jumps in the otherwise straight line can be tied to particular short renderings with large error. Those correspond to the largest outliers that go into the computation of the upper tail border, while the bottom tail border corresponds to the values with the smallest error. Hence, the tails’ areas correlate with the number and amplitude of jumps (Figures 5b and d). In Figure 5b, we also see that the outliers are the reason for the bad performance of MLT, as most of the samples (the head and body regions) are well below the competing algorithm. Both MC and MCMC algorithms can show this behavior (Figures 5b and d). A large tail area, i.e., outliers, not only negatively impacts the performance, but also _•_ increases the _N_ that is needed for a faithful ensemble mean (in some cases more than the _N_ = 4000 that was used), _•_ slows the convergence of the sample mean of affected pixels to the normal distribution, _•_ increases the time until SDpp converges sufficiently to provide a good error measure. To summarize, the ESE is capable of differentiating between algorithms with varying degrees of correlation and varying amount of outliers. That is an improvement over simple measures like MSE and plain visual interpretation of rendering results. However, ‘catching’ outliers is still a game of luck and therefore, large values for _N_ should be used. _~~√~~_ 4.3. Adaptive Sampling, Consistent and Sub- Θ(1 _/_ _N_ ) Convergence Algorithms Adaptive sampling can be used to allocate more samples to pixels with a large sample variance, for instance in path tracing. It is not a problem to apply adaptive sampling within the short renderings, as long as the result is unbiased. However, adaptive sampling might influence the overall convergence rate, and the proxy algorithm might decrease the performance of an adaptive sampling algorithm. The situation is similar for sampling patterns (QMC and stratified), which have a better asymptotic convergence rate for the _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ (a) _Box_ (b) _Torus_ (c) _Door_ 117 Figure 7: _Illustration_ _of_ _the_ _figures_ _used_ _in_ _the_ _remainder_ _of_ _our_ _evaluation_ _(tone-mapped)._ _The_ _highlighted_ _regions_ _(a_ _and_ _c)_ _are_ _details shown in Figures 9, 12 and 13, respectively._ low-dimensional part of the integrand [PSC*15]. The proxy algorithm is not compatible with biased algorithms, even if they are consistent. In these cases, we can use an alternative procedure to inspect the error spectrum and how it is affected by increasing the rendering budget: 1. Run the algorithm _N_ times with a rendering budget of _T_, 4 _T_ and 16 _T_ . 2. Calculate the erro _~~√~~_ <u>r</u> <u>im</u> _~~√~~_ ages using _~~√~~_ <u>a</u> <u>reference</u> solution and multiply them with _T_, 4 _T_ and 16 _T_, which ‘neutralizes’ the typical convergence of Θ(1 _/T_ ) in squared error. 3. Continue with the steps from Section 4, without rendering cost scaling. Our reference solutions were computed using a cluster and millions of samples per pixel – several orders of magnitude more than were used for _⟨I⟩N_ . To put this into perspective, Whittle et al. recommended to use reference images with at least an order of magnitude more samples [WJM17]. If the _T_, 4 _~~√~~_ _<u>T</u>_ <u>, and 16</u> _T_ curves overlap, then the algorithm behaves like Θ(1 _/_ _T_ ) in that frequency and rendering budget range. If curves _~~√~~_ <u>with larger</u> _T_ are higher, the convergence rate is lower than Θ(1 _/_ _T_ ). The same applies to RMSE. A small tail area means that all the runs are approximately the same, i.e., no outliers were found. Figure 6 shows an example of stochastic progressive photon mapping (SPPM), which is a biased but consisten _~~√~~_ <u>t</u> <u>algorithm.</u> It shows that SPPM converges with a speed of 1 _/_ _T_ in low fre quencies between 10 and 160 iterations, but with a lower speed for higher frequencies. One would need to run tests with higher iteration counts to see whether the convergence stabilizes, but this becomes more and more expensive in terms of computation resources. The ESE also shows that there are little differences between runs, so it would be a possibility to reduce _N_ and thereby reduce the needed resources. More examples for this procedure, including path tracing with QMC for two scenes, can be found in the supplemental material. _~~√~~_ <u>r</u> _T_, _~~√~~_ a <u>ges</u> using _~~√~~_ 4 _T_ and _~~√~~_ _~~√~~_ _~~√~~_ 5. Evaluation We begin with ESE visualizations for various configurations of the box scene (Figure 7a) to provide an intuition about the descriptor. ESE, SDpp, and short rendering examples for more configurations of the box scene, and also several more complex scenes are shown in the supplemental material. The rest of the evaluation will cover _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. (a) _Size_ 400 (b) _Size_ 100 (c) _Size_ 25 Figure 8: _Error_ _descriptors_ _for_ _the_ _box_ _scene_ _with_ _varying_ _light_ _size._ _The_ _scene_ _becomes_ _increasingly_ _hard_ _to_ _render_ _with_ _smaller_ _light sizes. The impact on overall error is less dramatic for the MLT_ _methods. However, the amount of outliers increases._ more technical aspects. One of the goals is to test whether breaking up MLT chains impacts performance. This is important because MLT relies on correlated chains of samples, which eventually cover the whole image. Our technique, based on short renderings, partitions these chains into independent runs. We also provide more details about the link between a lowfrequency peak and inter-pixel correlation. Figures 7a and b show the scenes used in this section. Rendering budget scaling using time, as described in Equation 13, was used only for Section 5.1. In the subsequent sections we tested different configurations of the same rendering algorithm with the same number of samples, and hence wanted to eliminate unnecessary distortions of the results. We show example short renderings and standard deviation per pixel images (SDpp) where they provide additional insight over ESE. The computation time for computing ESE and SDpp is in the range of half an hour per scene. 5.1. Box Scene Figure 8 shows changes of the ESE of a simple box scene (Figure 7a) when the size of the light source is varied, while keeping its power constant. We can see that the error of all algorithms grows when the light source becomes smaller. Path tracing is more sensitive than the MLT methods when looking at RMSE. The standard deviation of RMSE, i.e., a measure for outliers, on the other hand, increases more in MLT methods. The same is also visible when 118 _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ seed pool 1 2 3 45 6 7 8 9 10 9 11 30 37 8 13 135 4 20 (a) _1 seed pool_ seed pool 1 seed pool 2 1 2 3 45 6 7 8 9 10 9 11 30 37 8 13 135 4 20 (b) _2 seed pools_ (a) _1 Chain_ (b) _50_ (c) _500_ _SDpp_ (d) _Error Spectrum Ensemble_ Figure 9: _SDpp_ _and_ _ESEs_ _for_ _various_ _chain_ _lengths_ _in_ _the_ _door_ _scene_ _(Figure_ _7c)._ _All_ _strategies_ _use_ _the_ _same_ _total_ _chain_ _sample_ _count_ _of_ _50_ _times_ _the_ _pixel_ _count._ _The_ _1_ _chain_ _strategy_ _contains_ _most_ _outliers_ _but_ _also_ _the_ _lowest_ _ESE_ _head_ _(d)._ _The_ _SDpp_ _(a_ _-_ _c)_ _shows_ _that_ _much_ _of_ _the_ _error_ _is_ _in_ _a_ _region_ _with_ _complicated_ _re-_ _fractions._ looking at ESE. ESE also shows, that the MLT outliers consist of larger patches and not isolated pixels. 5.2. Impact of the Proxy Algorithm The behavior of the original algorithm and its proxy version are not necessarily identical. While this is the case for many MC algorithms (i.e., the result computed with the original algorithm would be equal to the result from the proxy if the same random numbers were used), it is not the case for MLT algorithms. In the original paper [VG97], it was proposed to maintain a single chain throughout the rendering process (though the possibility of using multiple chains was mentioned). Modern computer architectures made it beneficial to run several shorter chains in parallel and it is even required by our proxy algorithm. For these reasons we tested the impact of changing chain length and pooling strategies on four test scenes. The paper shows only a selection of them, see the supplemental material for the rest. Chain Length. We tested the impact of breaking up Markov chains by computing ESEs and SDpp for 3 different chain strategies: _•_ 1 chain with 50 _×_ _M_ (pixel count, 512 <sup>2</sup> ) samples, _•_ 50 chains with _M_ samples, and _•_ 500 chains with 0 _._ 1 _×_ _M_ samples each. The results show that the strategy with the longest chain was paths ( _x1 ... xM_ ): f( _xi_ )/p0( _xi_ ): paths ( _x1 ... xL_ ): f( _xi_ )/p0( _xi_ ): Figure 10: _Conventionally,_ _one_ _seed_ _pool_ _is_ _used_ _in_ _MLT,_ _from_ _which_ _C_ _chains_ _are_ _sampled_ _proportionally_ _to_ _f_ ( _xi_ ) _/p_ 0( _xi_ ) _(a)._ _It_ _is_ _possible_ _to_ _divide_ _the_ _L_ _seed_ _paths_ _into_ _S_ _pools_ _(b)_ _and_ _sample_ _C/S starting paths from each._ Figure 11: _ESEs_ _for_ _various_ _seed_ _pooling_ _strategies_ _in_ _the_ _torus_ _scene (Figure 7b). The total number of luminance samples is 10k,_ _which_ _is_ _partitioned_ _randomly_ _into_ _50,_ _10_ _and_ _1_ _seed_ _pools_ _with_ _1,_ _5_ _and_ _50_ _chains,_ _each._ _The_ _body_ _and_ _heads_ _of_ _the_ _variants_ _are_ _almost_ _equal,_ _differences_ _in_ _tails,_ _ensemble_ _mean_ _and_ _RMSE_ _are_ _minor,_ _indicating_ _that_ _the_ _strategy_ _plays_ _only_ _a_ _minor_ _role_ _given_ _large enough pools._ never the best. In 2 out of the four scenes, it contained significantly more outliers, an example is shown in Figure 9. We believe that this is due to the bi-directional mutation, which is often unable to lift the chain out of high-valued regions. The shorter chains are simply restarted, which limits the amount of time that a chain can be stuck in-place. The bathroom scene (Figure 1a), which does not suffer from MLT outliers, also does not show significant differences between the chain lengths. This is intuitive considering that samples of a Markov chain are virtually independent if the distance between them is large enough, and an MLT chain should mix quickly enough in order to reach all parts of the image within a reasonable sample budget. In the short renderings, the chain is typically broken up only after it covered every pixel several times on average. Therefore, it does not matter whether the samples are completely independent by break-up or not. Seed Pools. The strategy employed by Mitsuba [Jak10] is to sample all of the chains from a single seed pool (Figure 10a). It is not equivalent to the proxy algorithm, having at least one seed pool per short rendering (Figure 10b for _N_ = 2). In the following, we _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ 119 (a) _Large mutations 0%_ (b) _5%_ (c) _50%_ _Example short renderings on the left and SDpp on the right_ (d) _Error Spectrum Ensemble_ Figure 12: _Changing_ _percentage_ _of_ _large_ _mutations_ _in_ _primary_ _sample space MLT (PSSMLT) in the box scene (Figure 7a): Large_ _mutations generate independent path proposals, reducing correla-_ _tion between pixels. In the renderings (a-c, left), long chains of cor-_ _related proposals show up as high-intensity patches. At_ 0% _, global_ _proposals only occur due to the sequence of short renderings per-_ _formed_ _by_ _the_ _proxy_ _algorithm._ _SDpp_ _shows_ _that_ _raising_ _the_ _per-_ _centage reduces the error in specular light effects, while ESE shows_ _that there is less error in low frequencies._ describe the impact of the changed strategy. The MLT implementation was modified to include an additional parameter: The number of seeds per pool. Setting it equal to the number of chains (a parameter already present in our rendering system) results in Mitsuba’s default strategy of using a single seed pool. Setting it to 1 will divide the original seed pool into one separate sub-pool per chain. This creates an algorithm which is equivalent to our proxy with _N_ chains and one chain per pool. Finally, we compute the ESE using the standard procedure, a short-rendering budget of 50 samples per pixel, 50 chains, and _•_ a single pool (the original algorithm), _•_ 10 pools with (an in-between with 5 chains per pool), and _•_ 50 pools with (the equivalent with 1 chain per pool). The data for the torus scene (Figure 7b) is shown in Figure 11. The results show that head and body are almost exactly the same. We deem differences in the tail, ensemble mean and RMSE inconclusive due to the scarcity of outliers. In summary, the analysis in this section provides preliminary evidence that switching from a rendering algorithm to the corresponding proxy variant can affect its numerical performance - specifically, we found that performance of the proxy algorithm was gen _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. (a) _Mutation size 0.01_ (b) _0.10_ (c) _0.50_ _Example short renderings on the left and SDpp on the right_ (d) _Error Spectrum Ensemble_ Figure 13: _Changing_ _small_ _mutation_ _size_ _in_ _PSSMLT_ _in_ _the_ _box_ _scene_ _(Figure_ _7a):_ _This_ _parameter_ _influences_ _how_ _much_ _a_ _path_ _is_ _modified between large jumps. With very small mutations the corre-_ _lated chain segments barely move away from their initial pixel po-_ _sition (a, left), creating a very wide low frequency peak (d). Larger_ _path_ _modifications_ _cause_ _the_ _correlated_ _segments_ _to_ _move_ _quickly_ _into neighboring pixels, color patches have a larger radius (b and_ _c, left), creating a narrower peak in low frequencies (d). The width_ _of_ _the_ _low_ _frequency_ _peak_ _decreases_ _as_ _the_ _radius_ _of_ _correlation_ _increases, similarly to the Fourier transform of a Gaussian kernel._ erally superior. The chain length was particularly relevant, while the influence of the seed pooling strategy appears to be minor (see also the supplemental material). 5.3. Link Between Low-Frequency Peak and Inter-Pixel Correlation In this section, we show how the typical low-frequency MLT peak reacts to changes in parameters that influence correlation. We use the primary sample space MLT (PSSMLT) algorithm [KSKAC02] and the scene shown in Figure 7a. PSSMLT is built on top of existing MC algorithms, for instance path tracing, and implements MCMC proposals by perturbing the current state, which consists of the “random numbers” that are supplied to the nested rendering algorithm. There are two types of mutations: Large ones propose independently sampled paths, and hence do not create correlation between pixels. In contrast, small mutations only slightly perturb the random number vector used to generate the path. Two main parameters control the behavior of these mutations: The percentage of large mutations, and the size (radius) of small mutations in the 120 _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ random number domain. For this experiment, we changed one parameter and kept the other one steady. Figure 12 shows results for a varying percentage of large mutations. It is not possible to reach true 0% with the proxy algorithm as every short render necessarily starts from an independent path and therefore acts as a ‘large mutation‘. We see that the peak is high when there are few large mutations and becomes smaller when the number increases. The radius, on the other hand, stays approximately the same. Setting the parameter to 100 % would result in an algorithm without correlation between pixels and a flat spectrum, with the only exception at the DC term. The results for changing the size of small mutations are in Figure 13. Using a very small value of 0.01 causes the chain to stay very close to the starting pixel as shown in the example short renderings (Figure 13a), while higher values cause the change to propagate farther in image space (Figure 13c). This is also visible in the ESE, where the width of the low-frequency peak decreases as the mutation size increases. There are limits to this behavior, however. 6. Conclusion We proposed a proxy rendering algorithm that encapsulates any unbiased method. It can be used to estimate standard deviation per-pixel images along with RMSE expectation and RMSE standard deviation. The proxy algorithm serves as the foundation of a tool for spectral and outlier analysis called error spectrum ensemble (ESE). It shows the existence and magnitude of outliers and the typical error levels where the short renderings fall, that are unaffected by outliers. We demonstrated the capabilities by changing parameters of known algorithms and examining the results. To ensure the reproducibility of our work, we provide a MATLAB implementation in the supplemental material. Our method provides three error metrics that can be used to assess the convergence of rendering algorithms in ways that considerably extend simple quantities such as the overall MSE: _•_ Standard deviation per pixel images show the location and quantity of error, which is useful for identifying problematic lighting effects (e.g., Figures 9a through c). _•_ Individual short-time renderings produce information about the robustness of the convergence process, i.e., correlation, outliers etc. It is useful to examine them in order to gain insight into the qualitative behavior of the given algorithm (e.g., Figure 12a through 12c). _•_ Finally, ESE can be used to analyze the frequency content and outliers. It can be used to find suitable parameters, benchmarks, and to compare competing versions of algorithms (e.g., Section 5). Limitations of the proposed tools are the relatively high computation cost, the res _~~√~~_ <u>triction to unbiased algorithms with a conver-</u> gence rate of Θ(1 _/_ _N_ ), and the relatively high complexity, com pared to traditional scalar error metrics like MSE. In future work, the visualization of our approach could be improved. A method for visualizing local pixel correlation might also be useful. _~~√~~_ <u>The</u> procedure for measuring the convergence rate of non-Θ(1 _/_ _N_ ) algorithms in Section 4.3 should be improved. In _~~√~~_ _~~√~~_ _N_ ) algorithms in Section 4.3 should be improved. In particular, a method that is more economical with computational resources and a better visualization are needed. The proposed method can not be computed on-line, which would make it possible to change rendering parameters on the fly. Another direction would be to couple the tools for measuring performance more closely to the algorithms, e.g., the mixing behavior of the Markov Chain in different parts of the scene. Acknowledgements We would like the anonymous reviewers for their valuable input. The “Door” scene was modeled after a scene by Eric Veach by Miika Aittala, Samuli Laine, and Jaakko Lehtinen. The “Sponza” scene is courtesy of Marko Dabrovic. The “Bookshelf”, “Kitchen”, “Bottle” and “Bathroom” scenes have been ported to Mitsuba by Tiziano Portenier. The “Torus” scene is based on a scene by Cline et al. This project was partly supported by the Academy of Finland, grant no. 277833 and by the EU MSCA-ITN project no. 813170. We acknowledge the computational resources provided by the Aalto “Science-IT” project. Notation E [ _X_ ] Expectation of X Var ( _X_ ) Variance of X (pixel-wise for images) _⟨Im_ <sup>_n_</sup> _⟩K_ pixel _m_ of image _n_ of an array of short renderings with budget _K_ ( _m_ and _n_ are omitted in some contexts) _N,_ _n_ Number of short renderings, short rendering index _M,_ _m_ Number of pixels, pixel index _⟨E⟩N_ singed absolute error, i.e., _⟨I⟩N_ _−_ _I_, where _I_ is the ground truth _⟨E_ <sup>_n_</sup> _⟩_ 1 estimated singed absolute error using the proxy algorithm, i.e., _⟨I_ <sup>_n_</sup> _⟩_ 1 _−⟨I⟩N_ MSE� _x_ ( _⟨I⟩K_ ) estimator of E[ _MSE_ ( _⟨I⟩K_ )] using _x_ observations References [APSS01] ASHIKHMIN, MICHAEL, PREMOŽE, SIMON, SHIRLEY, PE TER, and SMITS, BRIAN. “A variance analysis of the Metropolis light transport algorithm”. _Computer & Graphics_ 25.2 (2001), 287–294 2. [ATS94] ARVO, JAMES, TORRANCE, KENNETH, and SMITS, BRIAN. “A framework for the analysis of error in global illumination algorithms”. _Proceedings of SIGGRAPH ’94_ . 1994, 75–84 2. [CTE05] CLINE, DAVID, TALBOT, JUSTIN, and EGBERT, PARRIS. “En ergy redistribution path tracing”. _ACM Transactions on Graphics (TOG)_ 24.3 (2005), 1186 3. [DHS*05] DURAND, FRÉDO, HOLZSCHUCH, NICOLAS, SOLER, CYRIL, et al. “A frequency analysis of light transport”. _ACM_ _Transactions_ _on_ _Graphics (TOG)_ 24.3 (2005), 1115–1126 2. [Jak10] JAKOB, WENZEL. “Mitsuba renderer”. _http://www.mitsuba-_ _renderer.org_ (2010). URL: [http://www.mitsuba- renderer.](http://www.mitsuba-renderer.org) [org 8.](http://www.mitsuba-renderer.org) [KMA*15] KETTUNEN, MARKUS, MANZI, MARCO, AITTALA, MIIKA, et al. “Gradient-domain path tracing”. _ACM_ _Transactions_ _on_ _Graphics_ _(TOG)_ 34.4 (2015), 123 2. _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. _A. Celarek, W. Jakob, M. Wimmer & J. Lehtinen / Quantifying the Error of Light Transport Algorithms_ [KSKAC02] KELEMEN, CSABA, SZIRMAY-KALOS, LÁSZLÓ, ANTAL, GYÖRGY, and CSONKA, FERENC. “A simple and robust mutation strategy for the Metropolis light transport algorithm”. _Computer_ _Graphics_ _Forum_ 21.3 (2002), 531–540 6, 9. [LD08] LAGAE, ARES and DUTRÉ, PHILIP. “A comparison of methods for generating poisson disk distributions”. _Computer_ _Graphics_ _Forum_ 27.1 (2008), 114–129 2. [LKL*13] LEHTINEN, JAAKKO, KARRAS, TERO, LAINE, SAMULI, et al. “Gradient-domain metropolis light transport”. _ACM Transactions on_ _Graphics_ 32.4 (2013), 95. ISSN: 07300301 2. [PSC*15] PILLEBOUE, ADRIEN, SINGH, GURPRIT, COEURJOLLY, DAVID, et al. “Variance analysis for Monte Carlo integration”. _ACM_ _Transactions on Graphics (TOG)_ 34.4 (2015), 124:1–124:14 2, 3, 7. [RKZ12] ROUSSELLE, FABRICE, KNAUS, CLAUDE, and ZWICKER, MATTHIAS. “Adaptive rendering with non-local means filtering”. _ACM_ _Transactions on Graphics (TOG)_ 31.6 (2012), 195 2. [SK13] SUBR, KARTIC and KAUTZ, JAN. “Fourier analysis of stochastic sampling strategies for assessing bias and variance in integration”. _ACM_ _Transactions on Graphics (TOG)_ 32.4 (2013), 128 2. [SKDP99] SZIRMAY-KALOS, LASZLO, DORNBACH, PETER, and PUR GATHOFER, WERNER. “On the start-up bias problem of metropolis sampling”. _Winter School of Computer Graphics ’99_ . 1999, 273–280 2. [VG97] VEACH, ERIC and GUIBAS, LEONIDAS J. “Metropolis light trans port”. _Proceedings of SIGGRAPH ’97_ . 1997, 65–76 2, 8. [WJM17] WHITTLE, JOSS, JONES, MARK W., and MANTIUK, RAFAŁ. “Analysis of reported error in Monte Carlo rendered images”. _Visual_ _Computer_ 33.6-8 (2017), 705–713 2, 7. [ZAD15] ZIRR, TOBIAS, AMENT, MARCO, and DACHSBACHER, CARSTEN. “Visualization of coherent structures of light transport”. _Computer Graphics Forum_ 34.3 (2015), 491–500 2. _⃝_ c 2019 The Author(s) Computer Graphics Forum _⃝_ c 2019 The Eurographics Association and John Wiley & Sons Ltd. 121

섹션 본문 98문단 · 36,225자

(제목 없음)

2A long rendering process is partitioned into many short runs (a) which are used to estimate error images (b). These are used to calculate a reliable estimate of the expected mean square error (MSE, c*), that could e.g. be used to rank a set of different rendering algorithms. The error images (b) are also used to generate a standard-deviation-perpixel visualization (d*), which shows which of several competing algorithms is best for a specific lighting situation. Finally, Fourier power spectra (e) are computed and combined into the error spectrum ensemble (ESE, f*) that plots the expected error and outliers with respect to frequency, visualizing for instance correlation between pixels.

Abstract

3This paper proposes a new methodology for measuring the error of unbiased physically based rendering algorithms. The current state of the art includes mean squared error (MSE) based metrics and visual comparisons of equal-time renderings of competing algorithms. Neither is satisfying as MSE does not describe behavior and can exhibit significant variance, and visual comparisons are inherently subjective. Our contribution is two-fold: First, we propose to compute many short renderings instead of a single long run and use the short renderings to estimate MSE expectation and variance as well as per-pixel standard deviation. An algorithm that achieves good results in most runs, but with occasional outliers is essentially unreliable, which we wish to quantify numerically. We use per-pixel standard deviation to identify problematic lighting effects of rendering algorithms. The second contribution is the error spectrum ensemble (ESE), a tool for measuring the distribution of error over frequencies. The ESE serves two purposes: It reveals correlation between pixels and can be used to detect outliers, which offset the amount of error substantially.

CCS Concepts

4• Computing methodologies → Ray tracing;

Introduction

5Physically based rendering algorithms rely on numerical integration techniques, which yield approximations that converge to an exact solution with increasing computation budget. When limited to a finite computational budget, the inherent rendering error of such algorithms not only differs in magnitude, but also in terms of their spectral characteristics. For instance, Monte Carlo (MC) algorithms produce white noise error spectra, while correlations in Markov chain Monte Carlo (MCMC) methods produce a disproportionate amount of error in low frequency bands. Surprisingly, there is no established standard method for measuring error across such methods, which limits our ability to compare them systematically.

6A common approach is to first compute a reference solution, which is then used to calculate the error image for a representa- Figure 2: We modify the original algorithm (a) by partitioning the rendering process into N shorter equal-time runs that each produce an image (b). The computation budget of those short renderings is typically a few CPU seconds. From the resulting data, we are able to create statistics for any error metric along with per-pixel standard deviation or variance.

7tive run of each algorithm, using an equal rendering budget to make them comparable. Quantitative comparisons are then conducted using mean square error (MSE), or other derived quantities, e.g., root of MSE (RMSE) or other single value metrics. Such error statistics are of limited use with regard to the nature and visual impression of the error. Moreover, they are not informative when assessing the reliability for a particular combination of scene and algorithm. In particular, issues arise from outliers, i.e., low-probability events that introduce a significant amount of error. This can affect individual pixels or larger correlated regions when working with MCMC methods. Frequently, the measurements are supplemented by visual evaluation of the example renderings. However, such qualitative evaluations are inherently subjective and imprecise.

8To address these problems, we propose several tools based on a simple proxy algorithm (Section 3). Instead of one long rendering, the proxy algorithm takes the average of N short renderings with the same overall budget (Figure 2). If the original algorithm is unbiased, then the resulting proxy is unbiased as well. If the original algorithm has finite per-pixel variance in addition, then it also fulfills the requirements for the central limit theorem (CLT). Hence, its asymptotic convergence rate is Θ(1/ √ N) in standard deviation and it is consistent. That by itself can be an improvement, as a convergence rate of Θ(1/ √ N) is not necessarily achieved by every algorithm.

9More importantly, the proxy algorithm allows to • estimate the expected MSE and its variance, or other measures of reliability, • compute standard deviation or variance per pixel images, showing which light effects are problematic, and • provide more advanced tools based on the short renders.

10As one such advanced tool we propose the error spectrum ensemble (ESE). Based on the Fourier transform of the error images, it reveals the spatial frequency content of error as well as outliers. An application of the ESE can be quick the deduction of the magnitude and spatial extent of the correlation between pixels, or of the spatial size and intensity of outliers.

Related Work

11A number of researchers have investigated the properties of error in light transport algorithms. Arvo et al. [ATS94] identified three sources of error (input data, discretization, and computation) and provided bounds. In contrast to their work, we are only concerned with precise estimation of numerical error in competing integration procedures. Szirmay-Kalos et al. [SKDP99] analyzed the start-up bias and convergence of MLT, but a lot of their analysis is based on very simple example scenes and does not provide a framework for comparing MC with MCMC methods. Ashikhmin et al. [APSS01] showed that the per-pixel variance of Metropolis light transport (MLT) [VG97] is bounded by Θ(1/N), which is an important insight, but it does not help in quantifying the error. Rousselle et al. [RKZ12] use two buffers and the sample variance to estimate the error in path tracing. This is comparable to our proxy using N = 2, but their work is focused on adaptive sampling and not a general error metric. Subr and Kautz [SK13] analyzed the error caused by various Monte Carlo (MC) sampling patterns via Fourier analysis, but their conclusions do not generalize. Whittle et al. [WJM17] provided an extensive overview of error metrics for images, and they examined the influence of poor references for computing those measures. However, they did not investigate their variance, or sensitivity to outliers.

12Durand et al. [DHS*05] investigated the frequency content of radiance and how it is influenced by various light-transport phenomena. Zirr et al. [ZAD15] studied possibilities for the visualization and editing of structured light-transport effects. Both of these works study the effect of various physical phenomena, while our work targets statistical estimators.

13Kettunen et al. [KMA*15] used the Fourier spectrum to analyze the superior convergence behavior of gradient domain path tracing. Similarly to the proposed ESE, Lehtinen et al. [LKL*13] used radial averages and the Fourier transform to plot error against frequency. However, they used only one long rendering, and neither studied outliers nor the overall reliability. Several other papers also used radial averages of data derived from the Fourier transform for the analysis of low-dimensional sampling patterns [LD08; SK13; PSC*15].

Proxy Algorithm

14Basics. We treat rendering as a stochastic process that estimates the path-space integral:

15where Im denotes the estimator or rendering algorithm computing the value of a pixel m, N is the computation budget, Ω refers to the set of all transport paths and fm to the contribution function.

16Throughout the text, angular brackets X Y refer to an estimator X (for instance the MSE) related to a particular a rendering algorithm that uses a computation budget of Y . In practice, Y will be proportional to the number of sample evaluations performed by the MC or MCMC scheme.

17We limit ourselves to algorithms with finite per-pixel variance that are unbiased (with one exception highlighted in Section 4.3). The condition on variance is unproblematic as algorithms with infinite variance would not be useful in practice. Unbiasedness is defined as

18i.e., for any algorithm I N , the expected value of the algorithm matches the path-space integral..

19Consistent algorithms satisfy the following criterion:

20Note that not every unbiased algorithm is consistent (and vice versa).

21Proxy Algorithm. We define the result of the proxy algorithm as the average of N short and equal-budget renderings of the original algorithm:

22I n 1 is one of the N independent short renderings ( Figure 2).

23Central Limit Theorem. Looking at individual pixels, the preconditions of the central limit theorem (CLT) are satisfied independently of the rendering algorithm:

24• The short renderings are independent.

25• Corresponding pixels share common probability distributions, because they were generated by the same scene, camera and algorithm setup, only using different random numbers. • Their expectations are defined.

26• Their variance is finite.

27Due to the CLT, the per-pixel value distributions in the proxy result ( I N , Equation 4) tend to a normal distribution as N grows. The distributions have Im mean and a standard deviation that varies from pixel to pixel. We therefore propose to routinely show standard deviation per-pixel images (SDpp) (Figure 1e) to visualize the convergence speed throughout an image. Any existing correlation between the pixels, a characteristic property of Markov chain based methods, is not reduced as N grows. Therefore, it would be useful to visualize and measure that correlation -however, this task is non-trivial and left for future work.

28Convergence Rate. A direct consequence of the CLT is the asymptotic convergence rate of Θ(1/ √ N) as measured by per-pixel standard deviation. This is an improvement over the original algorithm if Θ(1/ √ N) cannot be easily achieved using the builtin parameters. An example is energy redistribution path tracing (ERPT) [CTE05], where quality and rendering budget are influenced by chain length, number of seed paths, and number of chains. The number of runs N, on the other hand, is a parameter of the proxy algorithm. In situations where methods for a better convergence rate are known, e.g., sampling patterns for low dimensions [PSC*15], the proxy algorithm will become a limiting factor. Section 4.3 shows how methods based on the proxy algorithm can be adapted in such cases, and Section 5.2 shows examples of the performance impact in case of Markov-chain-based methods.

29Unbiased and Consistent. The proxy algorithm is unbiased, because

30where n is the index of the short rendering, for every pixel m, which is a consequence of the unbiasedness of the original algorithm (Equation 2). The applicability of the CLT also means that the weak law of large numbers applies, therefore our proxy is not only unbiased, but also consistent. This is an improvement for algorithms that are unbiased, but not consistent.

31In the rest of this article we will assume the original algorithm for the short renderings and the proxy for the result and drop the prime symbol ( I N = I N ).

32Rendering Error. Commonly used error measures for a rendering I K include the signed absolute error E K = I K − I or the relative error E K = ( I K − I)/(I + ε), where ε is a small offset that prevents division by zero. The absolute error can become large in brightly lit areas, despite such errors likely being imperceptible to a human observer. In contrast, the relative error has a singularity in dark areas that is only ameliorated by the epsilon term. Since scenes with almost black areas are common, we deem the problem of singularity more severe and use the absolute error throughout the paper.

33Since I is unknown, it must be estimated. One option is to estimate it independently using a very high rendering budget, i.e., create a ground truth reference image. In our case it is more efficient to use the proxy result I N for estimating the error of the individual short renderings I 1 :

34Such an estimation of signed error is unbiased as E[ I n 1 ] = E[ I N ]. The precision of individual observations of En 1 grows with rising N. Estimating the per-pixel variance requires Bessel's correction to produce an unbiased result.

Improvements for Measuring Mean Square Error

35In classical statistics, MSE is a scalar estimator property. The statistical definition using the estimator from Equation 1 is

36for only one pixel, and with unknown Im. In case of unbiased estimators, the statistical MSE is equivalent to (per-pixel) variance.

37In contrast, MSE in the context of rendering is often defined as a random variable averaging squared errors over the whole image, calculated after a certain rendering budget K:

38So while "mean" stands for "expectation" in statistics, it is used for "average over pixels" in rendering.

Traditional and Proposed MSE. The expectation E[MSE( I K )]

39is useful to rank a set of algorithms. This quantity is traditionally estimated (denoted by MSE) using a single run of a rendering algorithm:

40Problems can arise due to high variance, which causes the estimates to be far from the true expectation. We propose to use N observations instead:

41where N is the rendering budget of the proxy algorithm, N − 1 accounts for the Bessel correction, M is the pixel count, I n m 1 the value of pixel m in proxy rendering n and Im N pixel m of the proxy algorithm result. In Equation 9, positive and negative errors cancel each other out in the inner sum of the traditional method, which is avoided in the proposed calculation.

42Analogy to Statistical MSE. By the law of large numbers, we know that

43Var ( Im 1 ) .

44In case of unbiased algorithms, the proposed method converges to the average per-pixel variance as the term within the limes brackets is simply a variance estimate: If considering biased algorithms (Section 4.3), Im N should be replaced by a high quality reference solution and Bessel's correction removed. In both cases, the proposed MSE converges towards the average of the classic statistical MSEs defined in Equation 7.

45Rendering Budget Scaling. Due to the CLT,

46applies for every individual pixel. Since the expectation of the proposed MSE is a linear combination of variances (Equation 11), we deduce for the whole image that

47After plugging in the proposed estimator MSE N ( . The traditional method does not converge to its expectation even with a large computation budget, which the proposed method addresses.

48which will be used for a toy example in the following paragraph. Similarly,

49For squared error expectation, it does not matter whether we compute the error for a budget of exactly 1, or for K and then scale by √ K. We use this fact to accommodate for algorithms with different rendering costs:

50where t is the actual render time or budget of a short rendering and 1 is the unit budget used for comparisons.

51Simple Experiment. To illustrate these concepts, we perform a simple experiment, where M = 100 related integrals are computed and elements Im are analogous to pixels in renderings. The equation for these elements is

52where

53The goal is to compute a MSE value for a simple MC integration procedure using uniform sampling. Reference values for the Ims and the exact E [MSE( Im N )] were computed using Mathematica. We compare plots of the behavior of the traditional (Equation 9) and proposed computation method (Equations 12 and 10). Using MSE N ( I 1 )/N, we estimate MSE as if a rendering budget of N were used, but with a lower computation cost.

The Variance of MSE

54The variance of the MSE is given by

55where MSE X and E X are random variables and not observations. The formula for MSE (Equation 8) and summation of variances were used.

56In case of independent pixels (MC), the covariance matrix is zero by definition, and hence the MSE variance is 1/M th of the average pixel variance. In algorithms with dependent pixels, a positive sum of the covariance matrix indicates that the positive correlation among pixels is stronger than the negative one. This can potentially increase the variance and impair the reliability of MSE estimates for correlated algorithms like MLT.

57In practice, we estimate the variance from the N MSE values of the short renderings. Unfortunately, standard methods to compute confidence intervals cannot be used, because the distribution is not normal.

Error Spectrum Ensemble

58The error spectrum ensemble (ESE) descriptor provides a new way to characterize the frequency-space distribution of the error of unbiased rendering algorithms.

59For each of the N renderings, we compute a scaled error image using Equations 6 and 13:

60where n is the index of the individual short rendering and t is the rendering time for a single short rendering. We then transform the error images (Figure 4a) into discrete Fourier frequency space and compute associated power spectra by squaring the amplitude of each frequency (Figure 4b). Parseval's theorem applies, i.e., the sum of all power spectrum elements is proportional to the MSE, and we thus interpret the power spectrum as a frequency-dependent MSE statistic.

61We reduce the dimensionality of the spectra by computing radial averages on concentric rings around the DC term. This allows us to represent every image by a vector of average frequency errors with the DC error at the beginning (Figure 4c). Low radial frequencies represent just a few 2d frequency elements, while higher radial frequencies represent more elements. This means that higher frequencies have a larger contribution to overall MSE and that low frequency radial averages have more variance even if the power spectrum has uniform distribution. Computing the per-frequency mean of those vectors results in a vector that we call the ensemble mean. It is a measure of how much error is to be expected on average, per frequency.

62Finally, we sort the radial averages of all images according to MSE and divide them into six buckets for each frequency (lowest 10%, 10-20%, 20-50%, 50-80%, 80-90%, and highest 10%). The per-frequency means of these buckets (Figure 4c) form the borders of the tail, body, and head regions in the descriptor (Figure 4d). Head and body show the typical behavior of the algorithm, while the tail shows outliers.

Implementation

63The pipeline starting with rendering commands and ending with the ESE and standard deviation per-pixel images (SDpp) was automated using MATLAB and Python. The rendering time for the short renderings was around 10 single-core seconds on a 2018 AMD Ryzen 7 2700X, and the value of N was 4000 in most tests. An HDR format with 32-bit floating-point was used as 16bit formats cause precision issues when averaging short renderings.

64Additional data available from the proxy algorithm is shown in the legend: interpretation. A full MATLAB implementation is provided in the supplemental material.

Spectrum Shape and Outliers for Different Algorithms

65We briefly discuss the ESE for some common rendering algorithms.

66Shape. MC spectra are generally flat, while MCMC spectra contain more error in low frequencies due to correlation (Figures 1g, 5b and 5d). Since the overall brightness in MLT (MCMC) is computed in a separate step, the DC term is independent of all other frequencies. Experiments with the Primary Sample Space MLT algorithm [KSKAC02] (Section 5.3) show that the width of the lowfrequency peak decreases as the correlation radius (mutation size) increases, similarly to the Fourier transform of a Gaussian curve.

67We have also observed that the peak's relative height depends on the amount of correlation between pixels -specifically, it becomes smaller when increasing the percentage of large mutations (which propose an independent path).

68In our experiments, we found that the shape of the upper tail border reveals the nature of the underlying outliers: A spectrally flat shape is caused by isolated pixel outliers (Figure 5d, PT), while a peak in low frequencies is a sign of spatially correlated errors (Figure 4d).

69Outliers. There is a direct link between the size of the tail area in the ESE and jumps in RMSE over rendering budget plots. RMSE plots (examples in Figures 5a and c) are used to show the asymptotic behavior of algorithms, where a slope of -1 in the logarithmic scaling indicates a convergence rate of Θ(1/time). The data stems Figure 6: ESE of the door scene (Figure 7c) for SPPM, which is consistent but biased (T is 10 iterations). The ensemble means perfectly overlap if the convergence rate is 1/T . In this instance, we see that this is the case for low frequencies. Middle and higher frequencies have a convergence rate below 1/T , because the 16T line is on top. from proxy algorithms with N = 4000, where the first X short renderings are averaged to generate the RMSE value at the time point of the duration of X renderings. Using this setup, jumps in the otherwise straight line can be tied to particular short renderings with large error. Those correspond to the largest outliers that go into the computation of the upper tail border, while the bottom tail border corresponds to the values with the smallest error. Hence, the tails' areas correlate with the number and amplitude of jumps (Figures 5b and d). In Figure 5b, we also see that the outliers are the reason for the bad performance of MLT, as most of the samples (the head and body regions) are well below the competing algorithm. Both MC and MCMC algorithms can show this behavior (Figures 5b and d).

70A large tail area, i.e., outliers, not only negatively impacts the performance, but also

71• increases the N that is needed for a faithful ensemble mean (in some cases more than the N = 4000 that was used), • slows the convergence of the sample mean of affected pixels to the normal distribution, • increases the time until SDpp converges sufficiently to provide a good error measure.

72To summarize, the ESE is capable of differentiating between algorithms with varying degrees of correlation and varying amount of outliers. That is an improvement over simple measures like MSE and plain visual interpretation of rendering results. However, 'catching' outliers is still a game of luck and therefore, large values for N should be used.

Adaptive Sampling, Consistent and Sub-Θ(1/ √ N) Convergence Algorithms

73Adaptive sampling can be used to allocate more samples to pixels with a large sample variance, for instance in path tracing. It is not a problem to apply adaptive sampling within the short renderings, as long as the result is unbiased. However, adaptive sampling might influence the overall convergence rate, and the proxy algorithm might decrease the performance of an adaptive sampling algorithm. The situation is similar for sampling patterns (QMC and stratified), which have a better asymptotic convergence rate for the low-dimensional part of the integrand [PSC*15]. The proxy algorithm is not compatible with biased algorithms, even if they are consistent. In these cases, we can use an alternative procedure to inspect the error spectrum and how it is affected by increasing the rendering budget:

741. Run the algorithm N times with a rendering budget of T , 4T and 16T . 2. Calculate the error images using a reference solution and multiply them with √ T , √ 4T and √ 16T , which 'neutralizes' the typical convergence of Θ(1/T ) in squared error. 3. Continue with the steps from Section 4, without rendering cost scaling.

75Our reference solutions were computed using a cluster and millions of samples per pixel -several orders of magnitude more than were used for I N . To put this into perspective, Whittle et al. recommended to use reference images with at least an order of magnitude more samples [WJM17]. If the T , 4T , and 16T curves overlap, then the algorithm behaves like Θ(1/ √ T ) in that frequency and rendering budget range. If curves with larger T are higher, the convergence rate is lower than Θ(1/ √ T ). The same applies to RMSE. A small tail area means that all the runs are approximately the same, i.e., no outliers were found. Figure 6 shows an example of stochastic progressive photon mapping (SPPM), which is a biased but consistent algorithm. It shows that SPPM converges with a speed of 1/ √ T in low frequencies between 10 and 160 iterations, but with a lower speed for higher frequencies. One would need to run tests with higher iteration counts to see whether the convergence stabilizes, but this becomes more and more expensive in terms of computation resources. The ESE also shows that there are little differences between runs, so it would be a possibility to reduce N and thereby reduce the needed resources. More examples for this procedure, including path tracing with QMC for two scenes, can be found in the supplemental material.

Evaluation

76We begin with ESE visualizations for various configurations of the box scene (Figure 7a) to provide an intuition about the descriptor. ESE, SDpp, and short rendering examples for more configurations of the box scene, and also several more complex scenes are shown in the supplemental material. The rest of the evaluation will cover more technical aspects. One of the goals is to test whether breaking up MLT chains impacts performance. This is important because MLT relies on correlated chains of samples, which eventually cover the whole image. Our technique, based on short renderings, partitions these chains into independent runs.

77We also provide more details about the link between a lowfrequency peak and inter-pixel correlation. Figures 7a and b show the scenes used in this section. Rendering budget scaling using time, as described in Equation 13, was used only for Section 5.1. In the subsequent sections we tested different configurations of the same rendering algorithm with the same number of samples, and hence wanted to eliminate unnecessary distortions of the results. We show example short renderings and standard deviation per pixel images (SDpp) where they provide additional insight over ESE. The computation time for computing ESE and SDpp is in the range of half an hour per scene. Figure 8 shows changes of the ESE of a simple box scene ( Figure 7a) when the size of the light source is varied, while keeping its power constant. We can see that the error of all algorithms grows when the light source becomes smaller. Path tracing is more sensitive than the MLT methods when looking at RMSE. The standard deviation of RMSE, i.e., a measure for outliers, on the other hand, increases more in MLT methods. The same is also visible when (Figure 7c). All strategies use the same total chain sample count of 50 times the pixel count. The 1 chain strategy contains most outliers but also the lowest ESE head (d). The SDpp (a -c) shows that much of the error is in a region with complicated refractions.

Box Scene

78looking at ESE. ESE also shows, that the MLT outliers consist of larger patches and not isolated pixels.

Impact of the Proxy Algorithm

79The behavior of the original algorithm and its proxy version are not necessarily identical. While this is the case for many MC algorithms (i.e., the result computed with the original algorithm would be equal to the result from the proxy if the same random numbers were used), it is not the case for MLT algorithms. In the original paper [VG97], it was proposed to maintain a single chain throughout the rendering process (though the possibility of using multiple chains was mentioned). Modern computer architectures made it beneficial to run several shorter chains in parallel and it is even required by our proxy algorithm. For these reasons we tested the impact of changing chain length and pooling strategies on four test scenes. The paper shows only a selection of them, see the supplemental material for the rest.

80Chain Length. We tested the impact of breaking up Markov chains by computing ESEs and SDpp for 3 different chain strategies:

81• 1 chain with 50 × M (pixel count, 512 2 ) samples,

82• 50 chains with M samples, and • 500 chains with 0.1 × M samples each.

83The results show that the strategy with the longest chain was f(x i )/p 0 (x i ):

84seed pool 1 seed pool 2 (b) 2 seed pools Figure 10: Conventionally, one seed pool is used in MLT, from which C chains are sampled proportionally to f (x i )/p 0 (x i )(a). It is possible to divide the L seed paths into S pools (b) and sample C/S starting paths from each. Figure 11: ESEs for various seed pooling strategies in the torus scene ( Figure 7b). The total number of luminance samples is 10k, which is partitioned randomly into 50, 10 and 1 seed pools with 1, 5 and 50 chains, each. The body and heads of the variants are almost equal, differences in tails, ensemble mean and RMSE are minor, indicating that the strategy plays only a minor role given large enough pools.

85never the best. In 2 out of the four scenes, it contained significantly more outliers, an example is shown in Figure 9. We believe that this is due to the bi-directional mutation, which is often unable to lift the chain out of high-valued regions. The shorter chains are simply restarted, which limits the amount of time that a chain can be stuck in-place.

86The bathroom scene (Figure 1a), which does not suffer from MLT outliers, also does not show significant differences between the chain lengths. This is intuitive considering that samples of a Markov chain are virtually independent if the distance between them is large enough, and an MLT chain should mix quickly enough in order to reach all parts of the image within a reasonable sample budget. In the short renderings, the chain is typically broken up only after it covered every pixel several times on average. Therefore, it does not matter whether the samples are completely independent by break-up or not.

87Seed Pools. The strategy employed by Mitsuba [Jak10] is to sample all of the chains from a single seed pool (Figure 10a). It is not equivalent to the proxy algorithm, having at least one seed pool per short rendering (Figure 10b for N = 2). In the following, we describe the impact of the changed strategy. The MLT implementation was modified to include an additional parameter: The number of seeds per pool. Setting it equal to the number of chains (a parameter already present in our rendering system) results in Mitsuba's default strategy of using a single seed pool. Setting it to 1 will divide the original seed pool into one separate sub-pool per chain. This creates an algorithm which is equivalent to our proxy with N chains and one chain per pool. Finally, we compute the ESE using the standard procedure, a short-rendering budget of 50 samples per pixel, 50 chains, and

88• a single pool (the original algorithm),

89• 10 pools with (an in-between with 5 chains per pool), and • 50 pools with (the equivalent with 1 chain per pool).

90The data for the torus scene (Figure 7b) is shown in Figure 11. The results show that head and body are almost exactly the same. We deem differences in the tail, ensemble mean and RMSE inconclusive due to the scarcity of outliers.

91In summary, the analysis in this section provides preliminary evidence that switching from a rendering algorithm to the corresponding proxy variant can affect its numerical performance -specifically, we found that performance of the proxy algorithm was gen- Figure 7a): This parameter influences how much a path is modified between large jumps. With very small mutations the correlated chain segments barely move away from their initial pixel position (a, left), creating a very wide low frequency peak (d). Larger path modifications cause the correlated segments to move quickly into neighboring pixels, color patches have a larger radius (b and c, left), creating a narrower peak in low frequencies (d). The width of the low frequency peak decreases as the radius of correlation increases, similarly to the Fourier transform of a Gaussian kernel.

92erally superior. The chain length was particularly relevant, while the influence of the seed pooling strategy appears to be minor (see also the supplemental material).

Link Between Low-Frequency Peak and Inter-Pixel Correlation

93In this section, we show how the typical low-frequency MLT peak reacts to changes in parameters that influence correlation. We use the primary sample space MLT (PSSMLT) algorithm [KSKAC02] and the scene shown in Figure 7a. PSSMLT is built on top of existing MC algorithms, for instance path tracing, and implements MCMC proposals by perturbing the current state, which consists of the "random numbers" that are supplied to the nested rendering algorithm. There are two types of mutations: Large ones propose independently sampled paths, and hence do not create correlation between pixels. In contrast, small mutations only slightly perturb the random number vector used to generate the path. Two main parameters control the behavior of these mutations: The percentage of large mutations, and the size (radius) of small mutations in the random number domain. For this experiment, we changed one parameter and kept the other one steady. Figure 12 shows results for a varying percentage of large mutations. It is not possible to reach true 0% with the proxy algorithm as every short render necessarily starts from an independent path and therefore acts as a 'large mutation'. We see that the peak is high when there are few large mutations and becomes smaller when the number increases. The radius, on the other hand, stays approximately the same. Setting the parameter to 100 % would result in an algorithm without correlation between pixels and a flat spectrum, with the only exception at the DC term.

94The results for changing the size of small mutations are in Figure 13. Using a very small value of 0.01 causes the chain to stay very close to the starting pixel as shown in the example short renderings (Figure 13a), while higher values cause the change to propagate farther in image space (Figure 13c). This is also visible in the ESE, where the width of the low-frequency peak decreases as the mutation size increases. There are limits to this behavior, however.

Conclusion

95We proposed a proxy rendering algorithm that encapsulates any unbiased method. It can be used to estimate standard deviation per-pixel images along with RMSE expectation and RMSE standard deviation. The proxy algorithm serves as the foundation of a tool for spectral and outlier analysis called error spectrum ensemble (ESE). It shows the existence and magnitude of outliers and the typical error levels where the short renderings fall, that are unaffected by outliers. We demonstrated the capabilities by changing parameters of known algorithms and examining the results. To ensure the reproducibility of our work, we provide a MATLAB implementation in the supplemental material.

96Our method provides three error metrics that can be used to assess the convergence of rendering algorithms in ways that considerably extend simple quantities such as the overall MSE:

97• Standard deviation per pixel images show the location and quantity of error, which is useful for identifying problematic lighting effects (e.g., Figures 9a through c). • Individual short-time renderings produce information about the robustness of the convergence process, i.e., correlation, outliers etc. It is useful to examine them in order to gain insight into the qualitative behavior of the given algorithm (e.g., Figure 12a through 12c). • Finally, ESE can be used to analyze the frequency content and outliers. It can be used to find suitable parameters, benchmarks, and to compare competing versions of algorithms (e.g., Section 5).

98Limitations of the proposed tools are the relatively high computation cost, the restriction to unbiased algorithms with a convergence rate of Θ(1/ √ N), and the relatively high complexity, compared to traditional scalar error metrics like MSE.

99In future work, the visualization of our approach could be improved. A method for visualizing local pixel correlation might also be useful. The procedure for measuring the convergence rate of non-Θ(1/ √ N) algorithms in Section 4.3 should be improved. In particular, a method that is more economical with computational resources and a better visualization are needed. The proposed method can not be computed on-line, which would make it possible to change rendering parameters on the fly. Another direction would be to couple the tools for measuring performance more closely to the algorithms, e.g., the mixing behavior of the Markov Chain in different parts of the scene.

참고문헌 15건

  1. Visualization of Coherent Structures of Light Transport Computer Graphics Forum · Wiley · 2015 10.1111/cgf.12661
  2. Variance analysis for Monte Carlo integration ACM Transactions on Graphics · Association for Computing Machinery · 2015 10.1145/2766930
  3. Gradient-domain path tracing ACM Transactions on Graphics · Association for Computing Machinery · 2015 10.1145/2766997
  4. Adaptive rendering with non-local means filtering ACM Transactions on Graphics · Association for Computing Machinery · 2012 10.1145/2366145.2366214
  5. A framework for the analysis of error in global illumination algorithms 1994 10.1145/192161.192179
  6. A Comparison of Methods for Generating Poisson Disk Distributions Computer Graphics Forum · Wiley · 2007 10.1111/j.1467-8659.2007.01100.x
  7. Metropolis light transport 1997 10.1145/258734.258775
  8. A frequency analysis of light transport ACM Transactions on Graphics · Association for Computing Machinery · 2005 10.1145/1073204.1073320
  9. Energy redistribution path tracing ACM Transactions on Graphics · Association for Computing Machinery · 2005 10.1145/1073204.1073330
  10. A Simple and Robust Mutation Strategy for the Metropolis Light Transport Algorithm Computer Graphics Forum · Wiley · 2002 10.1111/1467-8659.t01-1-00703
  11. Fourier analysis of stochastic sampling strategies for assessing bias and variance in integration ACM Transactions on Graphics · Association for Computing Machinery · 2013 10.1145/2461912.2462013
  12. Gradient-domain metropolis light transport ACM Transactions on Graphics · Association for Computing Machinery · 2013 10.1145/2461912.2461943
  13. A variance analysis of the Metropolis Light Transport algorithm Computers & Graphics · Elsevier BV · 2001 10.1016/s0097-8493(00)00131-x
  14. Analysis of reported error in Monte Carlo rendered images The Visual Computer · Springer Science+Business Media · 2017 10.1007/s00371-017-1384-7
  15. Energy redistribution path tracing 2005 10.1145/1186822.1073330