I would say that would be impossible since refraction becomes physical property of the material itself.
If it's for compositing, you can make the objects behind invisible to refraction and they will not render for Pass A, and then another Pass B where you invert everything and only render the background.