Definition 1. If a multivariate polynomial $f$ can be written as a finite sum of squared polynomials, i.e., $f(x)=\sum_{i = 1}^n g_i^2(x)$, then $f$ is SOS.
Definition 2. If an $n$-variate polynomial $f$ is nonnegative on $\Bbb R^n$, then $f$ is positive semidefinite (PSD).
We know all SOS polynomials are PSD. However, It is not correct that all PSD polynomials are SOS. For example, the Motzkin polynomial:
$$f(x,y)= 1 + x^2 y^4 + x^4 y^2 - 3 x^2 y^2 $$
Suppose $f(x_1, \dots ,x_n)$ is SOS and $\min\limits_{x \in \Bbb R^n} f =: r $. Is $f(x)-\alpha$ SOS for all $0 \le \alpha <r$?
If not, would you please give me a counterexample?
Edit
One way to give a counterexample is to consider a PSD polynomial $p(x)$ which is not SOS. Then, if $p(x) +k$ becomes SOS for $k=k^*$, $f(x)=p(x) +k^*$ can be our counterexample. This is because $f$ is SOS while $f-k$ is not for some $k\le k^*$.
$m(x,y)= 1 + x^2 y^4 + x^4 y^2 - 3 x^2 y^2 $ is not SOS but PSD. Also, according to https://arxiv.org/abs/math/0103170, $m(x,y)+k$ is not SOS for any real $k$. Unfortunately, this example neither proves my first question nor gives a counterexample.