TL;DR
EventWeave is a novel framework that structures long-term dialogue history into a dynamic, hierarchical event graph, explicitly separating main conversational goals from supporting details. By selectively retrieving only the most relevant context using a multi-perspective attention mechanism, it helps large language models (LLMs) generate more coherent responses while slashing token consumption by 30–40%.
What Problem Does This Paper Address?
While large language models excel at short chats, they struggle to maintain context over long or multi-session conversations. Existing systems usually manage memory in one of two ways: they either pass the entire raw history (which quickly hits context window limits and causes "information explosion"), or they use flat text summaries (which treat all past information as equally important).
Human conversations don't work this way. We naturally organize dialogue around core events (e.g., planning to attend a music festival) and supporting events (e.g., recalling a past train delay or discussing band preferences).
Without distinguishing between the main plot and the background details, dialogue agents often suffer from "information conflict," leading to generic, repetitive, or contextually inappropriate responses.
Methods
EventWeave solves this by building a Hierarchical Event Graph that evolves incrementally as the conversation unfolds. The pipeline consists of three main components:
- Event Detection & Clustering: Incoming dialogue turns are processed by a BERT-based binary classifier to filter out conversational fillers. Meaningful turns are segmented into granular sub-events and grouped into thematic "Event Nodes" using semantic similarity.
- Dynamic Graph Construction: Unlike standard graph methods, EventWeave maps three distinct relationship types between nodes:
- Sequential Edges: Maintain the chronological turn-by-turn flow.
- Temporal Edges: Link events with explicit time references (e.g., "last year" to "next week").
- Reasoning Links: Connect thematically related nodes across non-adjacent turns.
- Adaptive Node Preservation: To prevent the graph from growing indefinitely, the framework uses a reinforcement learning (RL) policy gradient method to dynamically prune nodes. It calculates a utility score based on information uniqueness, predicted future utility (via an LSTM), and computational maintenance costs.
- Multi-Perspective Query Mechanism: When generating a response, EventWeave queries the graph using a combination of recency, semantic relevance, and graph topology (via a modified PageRank algorithm) to create a compact graph-context vector for the LLM decoder.
Datasets
The authors evaluated EventWeave across three rigorous multi-session and long-dialogue benchmarks:
- Conversation Chronicle (CC): Focuses on diverse temporal and relational dynamics, averaging 58.5 turns per session.
- Multi-Session Chat (MSC): Covers long-term open-domain conversations spanning five distinct sessions.
- LoCoMo (Long Conversation Modeling): Features extremely long interactions, averaging 304.9 turns per conversation across nearly 20 sessions.
Extended evaluations were also conducted on LongMemEval, SHARE, and MiSC datasets.
Key Insights and Ideas
- More Context $\neq$ Better Responses: Ablation studies proved that EventWeave’s performance gains stem from better relationship modeling rather than simply packing more information into the prompt. Surfacing background details at the wrong time only confuses the model.
- Countering the "Length Degradation" Trend: In vanilla LLMs, response quality typically degrades as conversations get longer. EventWeave flips this trend: its performance actually improves in longer dialogues because the hierarchical graph structure effectively filters out historical noise and preserves long-distance dependencies.
- Structural Resilience: Through "Backtracking Recall" experiments—where edges were randomly deleted to simulate imperfect graph updates—EventWeave consistently outperformed baselines. This proves that a hierarchical, event-centric design safeguards conversational context even when data is missing.
Key Results
EventWeave consistently outperformed strong memory-augmented baselines (including MemWalker, LongMem, and LifeLongMem) across all datasets in both automated metrics (BLEU-4, ROUGE-L, Mauve) and human evaluations.
- Token Efficiency: On the long-context LoCoMo dataset, EventWeave achieved a 35–40% reduction in token usage compared to LifeLongMem while scoring higher on ROUGE-L.
- Event-Centric Metrics: On metrics measuring Core Event Awareness (CEA) and Supporting Event Coverage (SEC), EventWeave outperformed vanilla GPT-4o by massive margins, particularly in "Very Long" dialogues (31+ turns), where it showed a 57.3 percentage point improvement in Event Coherence.
Limitations and Future Work
Despite its efficiency during inference, EventWeave introduces computational overhead during graph maintenance. As dialogue complexity scales, progressively updating and re-building the hierarchical graph layers demands additional memory and processing power.
The authors note that future work will focus on optimizing these graph-expansion demands through advanced graph pruning techniques, distributed computing approaches, and more adaptive hierarchy management strategies. They also plan to explore incorporating specialized edge types, such as causal or emotional relationships, to handle highly rhetorical or empathetic discourse.
Summary updated