Pyramid snails are obligate parasites - they bore through the shell and suck lymphatic fluid. In the wild, clams almost always have them, but in low numbers. In our tanks, there aren't natural predators and huge numbers of clams, so they muliply quickly.
People seem to try predation with limited results. As mentioned above, yellow coris wrasses (REQUIRE good sandbed of at least a few inches if you want them to live more than a few weeks) and some other wrasses seem to be a hit or miss.
The only surefire way is to constantly pick them off. Wait until lights out for a while then get your clam and pick 'em off. Be thorough. Look for gelatinous egg masses. Scrape those off, too. Check the scutes (ridges on the side of the clam as they are a fav hiding place). Some ppl will actually break 'em off since it is easier and doesn't hurt the clam.
No FW dipping, iodine dips, etc. Those only stress the clam out more. If you're diligent you can beat them back. Another solution is to remove the clams from the display tank and QT them for several weeks -- making sure the clams themselves are clean.
Pyramid snails come in a bunch of different varieties, each of which is a specific obligate parasite meaning that clam parasitizing pyramellids won't parasitize snails (like turbos and vice versa). This means that if you don't have clams, you won't have pyramids. Remove the clams and the pyramids will die given time.
Long-winded answer, eh? Sorry about that! HTH!
John