Via Goldman:
Historically, gold’s relationship with inflation is non-linear. Gold does not display a strong correlation with inflation while the latter is moderate but becomes strongly correlated when inflation gets above a certain threshold. Gold also tends to go up moderately in deflationary environments.
In fact, we find that what matters most is the deviation of inflation from its trend, rather than its absolute level (see Exhibit 11 and Exhibit 12).