MemFlow: Intent-Driven Memory Orchestration for Small Language Model Agents

MemFlow is a memory orchestration framework designed to enable Small Language Model (SLM) agents to operate effectively over long-horizon, multi-turn histories. It externalizes memory planning from the SLM via a route-then-compile architecture: a Router Agent classifies queries by intent and dispatches to one of three specialized memory tiers (Profile Lookup, Targeted Retrieval, or Deep Reasoning), each with a dynamic token budget. An Answer Agent generates responses from compact context, with an optional Validator Agent retry mechanism.

Creator: Jiayi Chen, Yingcong Li, Guiling Wang | Category: memory | Status: draft

Key Capabilities

  • Intent-driven query routing via Router Agent
  • Three-tier memory system (Profile Lookup, Targeted Retrieval, Deep Reasoning)
  • Dynamic tier-aware token budget management
  • Training-free framework compatible with frozen SLMs
  • Validator Agent for retry with heavier memory tier on unsupported responses
  • Deterministic evidence preparation avoiding tool-selection hallucination