Natural Gas Generators

Your generator is not giving 'dirty power'.
I think this is an area of semantics and opinion, which the generator and/or UPS manufacturer will spin in their favor. Possibly no two generator models behave the same and I can offer only one example, an Onan "microquiet" RV generator with AVR. This is the no-load voltage output:
onanNoload.jpg

The AVR distorts the output with a reactive load, in this case an air conditioner. This situation isn't in play with a UPS:

onanAC.jpg

Switching regulators, which I assume go hand-in-hand with most UPSs, are non-linear loads which the AVR really doesn't like. This shot has a switching battery charger as the load. By comparison, a Honda inverter generator in the same situation does a whole lot better (AVR on left, Honda inverter on right). Voltage on top trace, current on the bottom:

Onan_PD_fullLoad.jpg <<<AVR -------- Inverter gen>>> eu2000i_PD_fullLoad.jpg

When adding a purely resistive load in addition to the battery charger, the AVR behaves better:

Onan_PD_wH20_htr.jpg

From this one example, I'm not very impressed with how AVR generators handle high PF loads, which a UPS likely is.