Any Neural Network implementations that allow for a cost function of more than just the network output?
You should be able to do that in Keras, actually you should be able to do that in almost any flexible package. For example regularization does exactly that, it adds a penalty term to your loss function that punishes high weights.