Learning How and What to Memorize: Cognition-Inspired Two-Stage Optimization for Evolving Memory (ArXiv cs.CL Recent Papers, 2026)