# Adaptive noise spreading

As discussed above, each atomic $$w\_i \in W$$ has its distortion contribution at the spatial region $$k\_i$$ on the rendered image. Since the rendering process contains multiple options to improve the quality of the output (noise reduction, anti-aliasing, etc.), it is severe if the region $$k\_i$$(s) fall into perceptually insignificant regions [\[7\]](/inferix-whitepaper/references.md#7) of the image because the deliberate distortions raised by $$w\_i$$(s) would be eliminated by the rendering enhancement. Hence, distortions are preferred to be placed in human perceptually significant regions. However, to keep the compromise between the fidelity of the rendered frames and the robustness of noise verification, the strength of the distortion of each $$w\_i$$ must be tuned so that its deviation from locally enclosed regions is within a predetermined bound.

We handle this problem using the adaptive noise spreading [\[16\]](/inferix-whitepaper/references.md#16), [\[17\]](/inferix-whitepaper/references.md#17), [\[18\]](/inferix-whitepaper/references.md#18). Research on the human visual perception agrees that the important information of images is located at high energy and low frequency spectral regions [\[10\]](/inferix-whitepaper/references.md#10). Then before embedding the object vector $$\Omega$$, we render the scene $$G$$ at some low settings to get a sampling instance of the image. Next, we proceed both the spatial and spectral analysis on this instance to get perceptually significant spatial regions, called preferred regions. The atomic noises $$w\_i$$(s) will be placed in these regions. Simultaneously, we tune the expectation value $$\mu$$ used in generating atomic noises so that the energy (statistically given in proposition below) of high frequencies of the noises are sufficiently higher than the threshold used in the [noise verification](/inferix-whitepaper/implementation/noise-verification.md).

***Proposition 2.*** (Convergence of energies)

Let $$\left{ \mathcal{X}\_i, \mathcal{Y}\_i \mid i \in \mathbb{N} \right}$$ be a set of independent and identically distributed normal random variables $$\mathcal{X}\_i \sim \mathcal{Y}\_i \sim \mathcal{N}\left(\mu, \sigma^2\right)$$. Let $$\[X\_i \quad Y\_i]^t$$ be a sample of the random vector $$\[\mathcal{X}\_i \quad \mathcal{Y}\_i]^t$$ and $$w\_i$$ be the signal $$\left(x,y\right) \mapsto Ae^{2i\pi\left(\frac{x}{X\_i} + \frac{y}{Y\_i}\right)}$$ for any $$i \in \mathbb{N}$$. Then the average of discrete Fourier transforms $$\overline{F}*n = \frac{1}{n}\sum\limits*{i=1}^{n} F\_i$$ converges:

$$
\overline{F}\_n \left(u,v\right) \xrightarrow\[n \to \infty]{a.s} \frac{A}{M \times N} \frac{\left(1 - e^{2i\pi \frac{M}{\mu}}\right) \left(1 - e^{2i\pi \frac{N}{\mu}}\right)}{\left(1 - e^{2i\pi\left(\frac{1}{\mu} + \frac{u}{M}\right)}\right) \left(1 - e^{2i\pi\left(\frac{1}{\mu} + \frac{v}{N}\right)}\right)}
$$

for all $$0 \leq u < M, \ 0 \leq v < N$$.

***Proof.*** Direct application of the continuous mapping theorem. For details, see [Appendix A](/inferix-whitepaper/appendix.md).

It is worth noting that the rendering work of $$G$$ generally contains multiple tasks, each requires to render multiple image frames. But the number of reference instances used for spectral analysis is much smaller, practically less than 1% the total number of rendered frames. While keeping the robustness of ANGV, we can adjust this ratio be even smaller by increasing the size $$n$$ of the noise vector $$W$$.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inferix.io/inferix-whitepaper/implementation/adaptive-noise-spreading.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
