Generalization of Auslander-Reiten duality for algebras