starving for gas

I have a 2005 Sportsman 700 EFI. Recently it has developed a fuel starvation problem. When cold it will run ok, but after maybe running for five to ten minutes it starves for gas and eventually will only idle or die altogether. Shut it off for a minute and it will run again with full throttle for a minute or two that go through the same problem. Could this be fuel filter or fuel pump?