Double-base powders - powders which include nitroglycerin - are less hygroscopic than single-base powders. The same is true of the various modern temp-stable powders, whose coatings produce a less porous, plasticized exterior around each grain of powder, than their single-base cousins.
It is tempting, then, to conclude that double-base and temp-stable powders last longer. But that is a leap that, as far as I know, has yet to be proven.
What is clear is that smokeless powders of all stripes, stored in those "cool, dry" conditions that all the manufacturers speak to, will last a very long time. And even when storage conditions are less than ideal - Bruce Hodgdon stored much of his post-WWII surplus powder in a couple of train boxcars; and powders have been sold in everything from plastic bottles to cardboard cans to metal canisters to paper bags - smokeless powders are remarkably resilient.
I personally have canisters in my powder closet dating back to the 1980's. And I've only ever pitched two cans of powder... a 35-year-old can of IMR-3031 a couple years ago because the top of the (old Dupont) metal can was corroding (the powder inside was fine, and I later regretted throwing it away); and a 15-year-old can of LilGun, pitched just last week, because it had begun to smell sour.
Notably, LilGun is a modern, double-base powder.