用结构化记忆让历史人物对话又准又快,适合资源有限的场景。
Cognitively-Inspired Episodic Memory Architectures for Accurate and Efficient Character AI
- 将传记数据转为1774条带情感语义的个人记忆,支持并行高效检索。
- 生成延迟仅0.52秒,在小模型上性能远超传统RAG。
- 可生成时空热力图与情绪轨迹,兼具对话与研究双重用途。
大型语言模型在对话系统中模拟历史人物方面展现出潜力,但现有方法存在明显权衡:简单检索增强生成导致回应浅显,多阶段反思虽深度够却延迟过高。本文提出一种架构,通过离线数据增强和结构化情景记忆的并行高效检索解决此矛盾。系统将传记资料转化为1,774条富含情感-语义元数据的第一人称记忆,实现0.52秒内的提示生成。基于LLM-as-judge和RAGAs评估显示,该方法在GPT-4上达到与传统RAG相当的效果,而在GPT-3.5、GPT-3等小型模型上显著更优,表明其在资源受限部署中的价值。除对话外,结构化记忆还支持新颖可视化工具:时空热力图、情绪轨迹分析与交互式路径追踪,使系统兼具对话界面与传记研究功能。以梵高为例验证,该架构适用于任何有充分文本记录的历史人物,为教育、博物馆及研究场景提供兼具准确与高效的实用框架。
原文摘要 · Abstract (English)
Large language models show promise for embodying historical characters in dialogue systems, but existing approaches face a critical trade-off: simple retrieval-augmented generation produces shallow responses, while multi-stage reflection achieves depth at prohibitive latency. We present an architecture that resolves this tension through offline data augmentation and efficient parallel retrieval from structured episodic memory. Our system transforms biographical data into 1,774 enriched first-person memories with affective-semantic metadata, then employs two-stage retrieval achieving 0.52s prompt generation. Evaluation using LLM-as-judge and RAGAs metrics shows our approach achieves parity with traditional RAG on GPT-4 while significantly outperforming it on smaller models (GPT-3.5, GPT-3), suggesting particular value for resource-constrained deployments. Beyond dialogue, the structured memory enables novel visualization tools: spatiotemporal heatmaps, emotional trajectory analysis, and interactive path tracking, positioning the system as both a dialogue interface and research tool for biographical analysis. We use Van Gogh as a test case, but the architecture is generalizable to any historical figure with substantial textual records, offering a practical framework for educational, museum, and research applications requiring both accuracy and efficiency
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。