Learning algorithms with optimal stability in neural networks | Synapse