Does it die completely when this happens? If it does, leave it shut off, pull over (only if it's safe to do this) and see if the carb has any fuel. If the accelerator pump pumps little or nothing, I would say you have a supply problem. Usually a pump and/or filter problem.
Good luck,
Scott