Forgetting Curve: A Reliable Method for Evaluating Memorization Capability for Long-context Models