This is a myth. Roasting does not alter caffeine levels, as it is very heat stable. You might get more caffeine from a light roast if you are measuring your beans by volume. Light roasts expand less and are more dense than darker roasts, so you ultimately end up with more mass.