Characteristic forms and geometric invariants