Hi Gavin,
Are you using this in an isolated or non isolated solution? Usually an LM431 is used for isolated applications. You can use a common ground and couple it to the input ground using a capacitor. This will prevent your GND from drifting. Please attach schematic so we can help you better.
Thanks,
Anston