They work by using suction to lift the gravel away from the bed, as the gravel is heavier than the waste embedded amongst it, the gravel will fall whilst the waste rises through the pipe and into the bucket you have it siphoning into.
Simple enough
(This is based on what pump cleaner I think your on about)