We introduce higher order variants of the Yang-Mills functional that involve
(n−2)th order derivatives of the curvature. We prove coercivity and
smoothness of critical points in Uhlenbeck gauge in dimensions
dimM≤2n. These results are then used to establish the existence
of smooth minimizers on a given principal bundle P→M for subcritical
dimensions dimM<2n. In the case of critical dimension
dimM=2n we construct a minimizer on a bundle which might differ from
the prescribed one, but has the same Chern classes c1,…,cn−1. A key
result is a removable singularity theorem for bundles carrying a
Wn−1,2-connection. This generalizes a recent result by Petrache and
Rivi\`ere