Man I remembered something similar I had tried working on in 2018, but gave up after all my PhD applications got rejected.
https://github.com/ixaxaar/pytorch-dni
The concept here goes a bit further and tries to replicate backprop with an external network, arguing that that's probably what the brain actually does.