Mem-PAL: Towards Memory-based Personalized Dialogue Assistants for Long-term User-Agent Interaction

AuthorsZhaopei Huang, Qifeng Dai, Guozheng Wu et al.

2025

TL;DR

H2Memory in Mem-PAL builds hierarchical heterogeneous memories over logs and dialogues, reaching a GPT-4 G-Score of 32.54 vs 29.33 for Session-level RAG on PAL-Bench.

SharePost on XLinkedIn

Read our summary here, or open the publisher PDF on the next tab.

THE PROBLEM

Personalized Assistants Ignore Long-term Subjective Preferences

Existing service-oriented assistants often overlook long-term interactions and fail to capture users’ subjective characteristics and preferences over time.

This causes user-agent systems to misinterpret implicit needs and personalized requirements, forcing users to repeat context and reducing preference-aligned responses.

HOW IT WORKS

H2Memory: Hierarchical and Heterogeneous Memory Framework

Mem-PAL’s core mechanism is H2Memory, combining Log Graph, Background, Topic Outline, and Principle memories with retrieval-augmented generation over long-term histories.

Think of Log Graph and Topic Outline as fast-access notes, while Background and Principle act like a slowly updated card catalog of the user’s life and preferences.

This hierarchical heterogeneous design lets Mem-PAL infer implicit requirements and stable preference principles that a plain context window or flat memory cannot represent.

DIAGRAM

Memory-based Retrieval-Augmented Generation Flow

This diagram shows how Mem-PAL retrieves heterogeneous memory entries from H2Memory and uses them to generate a personalized response for a current query.

DIAGRAM

PAL-Set Data Synthesis and PAL-Bench Evaluation Pipeline

This diagram shows how Mem-PAL’s PAL-Set is synthesized and then used in PAL-Bench’s three evaluation tasks.

PROCESS

How Mem-PAL Handles a PAL-Bench Query Session

  1. 01

    Log Graph Construction

    Mem-PAL builds Log Graph by linking fragmented logs with Caused by and Follows relations, forming connected subgraphs and situation descriptions for each session.

  2. 02

    Background Memory Updating

    Mem-PAL recursively updates Background memory by summarizing situation entries across sessions into aspect-based paragraphs, keeping long-term user context current.

  3. 03

    Topic Outline Extraction and Requirement Rewriting

    Mem-PAL segments dialogues into topics, builds Topic Outline schemas, and rewrites requirements using retrieved situations from Log Graph to enrich underspecified queries.

  4. 04

    Principle Clustering and Personalized RAG

    Mem-PAL clusters requirements to form Principle memory, then retrieves entries from all components of H2Memory to drive personalized retrieval-augmented generation for responses.

KEY CONTRIBUTIONS

Key Contributions

  • 01

    PAL-Bench and PAL-Set Construction

    Mem-PAL introduces PAL-Bench and PAL-Set with 100 users, averaging 29 sessions, 996 logs, and 401 dialogue turns per user, synthesized via a multi-stage pipeline.

  • 02

    H2Memory Hierarchical Heterogeneous Memory

    Mem-PAL’s H2Memory combines Log Graph, Background, Topic Outline, and Principle memories with RAG to model both concrete events and abstract preferences.

  • 03

    Comprehensive Evaluation on PAL-Bench and LongMemEval

    Mem-PAL demonstrates gains on PAL-Bench tasks and reaches 50.00% accuracy on LongMemEval’s single-session-preference subset using Topic Outline and Principle memories.

RESULTS

By the Numbers

G-Score Requirement Restatement

32.54

+3.21 over Session-level RAG

BLEU-1 Requirement Restatement

26.67

+2.86 over MemoryBank

S-Score Solution Proposal

38.32

+4.54 over MemoryBank

Win Count Requirement Multi-turn

478

vs 29 ties and 319 losses against Vanilla w/o log

On PAL-Bench, Mem-PAL’s H2Memory is evaluated on Requirement Restatement, Solution Proposal, and Multi-turn Dialogue Interaction. These results show Mem-PAL’s hierarchical heterogeneous memory improves requirement inference and preference-aligned solutions compared to Session-level RAG and MemoryBank.

BENCHMARK

By the Numbers

On PAL-Bench, Mem-PAL’s H2Memory is evaluated on Requirement Restatement, Solution Proposal, and Multi-turn Dialogue Interaction. These results show Mem-PAL’s hierarchical heterogeneous memory improves requirement inference and preference-aligned solutions compared to Session-level RAG and MemoryBank.

BENCHMARK

Requirement Restatement GPT-4 G-Score Comparison

GPT-4-based G-Score on PAL-Bench Requirement Restatement task.

BENCHMARK

Solution Proposal Selection Score Comparison

Selection Score on PAL-Bench Solution Proposal task.

KEY INSIGHT

The Counterintuitive Finding

Removing Topic Outline memory drops Solution Proposal S-Score from 38.32 to 28.09, a 10.23 decrease, far larger than removing other components.

This is surprising because one might expect abstract Principle memory to dominate preference modeling, but Mem-PAL shows structured topic-level histories are more critical.

WHY IT MATTERS

What this unlocks for the field

Mem-PAL unlocks assistants that can jointly reason over behavioral logs and dialogues to infer implicit requirements and nuanced preference principles.

Builders can now design long-term personalized dialogue agents that maintain evolving personas across months of interaction without retraining, using H2Memory as an external memory backbone.

~12 min read← Back to papers

Related papers

BenchmarkAgent Memory

Active Context Compression: Autonomous Memory Management in LLM Agents

Nikhil Verma

· 2026

Focus Agent adds start_focus, complete_focus, a persistent Knowledge block, and an optimized Persistent Bash plus String-Replace Editor scaffold to actively compress context during long software-engineering tasks. On five hard SWE-bench Lite instances against a Baseline ReAct agent, Focus Agent achieves 22.7% token reduction (14.9M → 11.5M) while matching 3/5 = 60% task success.

Questions about this paper?

Paper: Mem-PAL: Towards Memory-based Personalized Dialogue Assistants for Long-term User-Agent Interaction

Answers use this explainer on Memory Papers.

Checking…