Right now non-standard transactions compete for block space only within mining pools that allow out-of-band payments, which naturally makes them less reliable and more expensive. This makes non-standard transactions economically disincentivized compared to standard transactions.
So filters don't "work" in the sense that they prevent all spam. But they work in the sense that they disincentivize them.

