Compensation phenomena in geometric partial differential equations