upper bound now measures reconstruction accuracy on the test set