On homological duality