[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-84258-en":3,"doc-seo-84258-105":30,"detail-sidebar-cat-0-en-105":92},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":13,"seo_description":14,"update_tm":28,"read_time":29},84258,13056703019662,"Evangeline","https://ap-avatar.wpscdn.com/avatar/be000253a8e92610077?_k=1778726343310543188",8,"Research & Report","A Hierarchical Memory Architecture Overcomes Context Limits in Long-Horizon Multi-Agent Computational Modeling","Large language models (LLMs) excel at reasoning, but their stateless design restricts deployment for long-horizon, multi-session scientific workflows that require continuity and quantitative rigor. Ensemble QSP introduces a three-layer hierarchical memory that keeps injected context bounded and constant over project duration by capping each memory category and evicting completed work. Five specialist agents under principal investigators enforce physical constraints via checklists and structured domain knowledge, enabling continuous autonomous operation. Benchmarks show robust autonomous QSP model selection with improved PK parameter recovery and stable quality across lower-cost and frontier LLMs.","A hierarchical memory architecture overcomes context limits in long  \nhorizon multi-agent computational modeling  \nShivendra G. Tewari and Holly Kimko  \nSystems Medicine, Clinical Pharmacology & Safety Sciences, AstraZeneca, Gaithersburg, Maryland  \nAbstract  \nLarge language models (LLMs) demonstrate remarkable reasoning capabilities, yet their stateless architecture fundamentally limits deployment in long-horizon research workflows requiring multi-session continuity and quantitative rigor. Here we present Ensemble QSP, a multi-agent framework featuring a three-layer hierarchical memory architecture that keeps injected context bounded and constant in project duration (mid-term project state: median 301 tokens, max 4,050, across 104 runs) by capping each state category and evicting completed work, enabling continuous autonomous operation without context degradation. The system orchestrates five specialist worker agents under domain-expert principal investigators, enforcing physical constraints through physics-based checklists and structured-domain knowledge. Comprehensive benchmarking demonstrates robust autonomous pharmacokinetic-pharmacodynamic modelselection without human intervention, consistent result quality across both lower-cost and frontier LLMs, improved PK parameter recovery relative to single-agent baselines, and stable model selection across linguistically diverse prompts ofthe same task. Feature-level ablation across physiologically based pharmacokinetic (PBPK) models spanning a broad complexity range shows that PI-agent oversight improves debugging efficiency while preserving final accuracy across conditions. The architecture is structurally domain-agnostic, adding a new scientific domain requires only a new PI agent configuration.  \nIntroduction  \nThe context window bottleneck  \nLarge language models (LLMs) have advanced from text generation tools to scientific reasoning engines capable of autonomous chemical synthesis [1], protein structure prediction [2], and endto-end scientific discovery and its publication [3] . These successes demonstrate sufficient parametric knowledge and reasoning capacity for complex scientific tasks. However, a critical gap persists, real scientific projects are not single-prompt endeavors. They unfold over weeks or months, require multi-session continuity, accumulate intermediate results, and demand adherence to domain-specific physical constraints throughout.  \nQuantitative systems pharmacology (QSP) exemplifies this challenge [4] . A typical QSP  \nmodeling workflow involves formulating systems of stiff ordinary differential equations (ODEs),  \nfitting parameters to heterogeneous non-clinical and clinical data from multiple studies, validating against held-out observations, and iterating across drug candidates at the same time maintaining physiological plausibility, unit consistency, and regulatory-grade documentation. No existing LLM agent framework supports such workflows autonomously, because they were designed for task-level completion rather than project-level continuity.  \nMulti-agent system (MAS) frameworks such as AutoGen [5], CrewAI, and LangChainLangGraph enable role-based agent collaboration but treat context management naively: agents either pass full conversation histories (leading to O(N×T) token growth where N is session count and T is tokens per session) or start fresh on each interaction (losing accumulated scientific knowledge) . The AI Scientist [3] demonstrated end-to-end drug discovery followed by its paper generation but operates within a single session on well-scoped machine learning tasks, without addressing the stiff-ODE solving, multi-source data integration, and physical constraint enforcement that characterize mathematical biology.  \nWe address this limitation with a hierarchical memory architecture comprising three bounded layers. The short-term layer holds the live working context injected each turn: a fixed window of recent conversation turns (4–20, se","cbCaiuMezMDJxLtF","https://ap.wps.com/l/cbCaiuMezMDJxLtF","pdf",1349334,5,1,19,"English","en",105,"# Introduction\n## The context window bottleneck\n## Hierarchical memory architecture overview\n# Results\n## System architecture","[{\"question\":\"What problem does the hierarchical memory architecture solve in long-horizon multi-agent modeling?\",\"answer\":\"It addresses the LLM context-window bottleneck by preventing injected context from growing with the number of sessions. The approach keeps mid-term project state bounded and evicts completed work so continuity is preserved without context degradation.\"},{\"question\":\"How does Ensemble QSP structure memory across different time horizons?\",\"answer\":\"It uses three layers: a short-term layer with recent turns plus capped scratchpads and a rolling buffer of recent cross-agent outcomes, a mid-term layer with bounded task-relevant slices in structured JSON plus an auto-summarizing decision log, and a long-term layer containing domain-independent or domain knowledge resources like a QSP handbook and physics checklists.\"},{\"question\":\"What evidence supports that the system works autonomously and reliably?\",\"answer\":\"Comprehensive benchmarking demonstrates robust autonomous pharmacokinetic-pharmacodynamic model selection without human intervention. It also reports consistent result quality across different LLM cost tiers and improved PK parameter recovery versus single-agent baselines, with stable model selection across linguistically diverse prompts.\"}]",1784194423,48,{"code":4,"msg":31,"data":32},"ok",{"site_id":25,"language":24,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":87,"head_meta":89,"extra_data":91,"updated_unix":28},"a-hierarchical-memory-architecture-overcomes-context-limits-in-long-horizon-multi-agent-computational-modeling","",{"@graph":36,"@context":86},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/a-hierarchical-memory-architecture-overcomes-context-limits-in-long-horizon-multi-agent-computational-modeling/84258/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":24,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-07-24","2026-07-16",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82],{"name":73,"@type":74,"acceptedAnswer":75},"What problem does the hierarchical memory architecture solve in long-horizon multi-agent modeling?","Question",{"text":76,"@type":77},"It addresses the LLM context-window bottleneck by preventing injected context from growing with the number of sessions. The approach keeps mid-term project state bounded and evicts completed work so continuity is preserved without context degradation.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"How does Ensemble QSP structure memory across different time horizons?",{"text":81,"@type":77},"It uses three layers: a short-term layer with recent turns plus capped scratchpads and a rolling buffer of recent cross-agent outcomes, a mid-term layer with bounded task-relevant slices in structured JSON plus an auto-summarizing decision log, and a long-term layer containing domain-independent or domain knowledge resources like a QSP handbook and physics checklists.",{"name":83,"@type":74,"acceptedAnswer":84},"What evidence supports that the system works autonomously and reliably?",{"text":85,"@type":77},"Comprehensive benchmarking demonstrates robust autonomous pharmacokinetic-pharmacodynamic model selection without human intervention. It also reports consistent result quality across different LLM cost tiers and improved PK parameter recovery versus single-agent baselines, with stable model selection across linguistically diverse prompts.","https://schema.org",{"og:url":52,"og:type":88,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":90,"canonical":52},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":93},[94,98,102,106,110,115,120,123,128,131,135],{"id":21,"doc_module":4,"doc_module_name":46,"category_name":95,"show_sort_weight":96,"slug":97},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":103,"show_sort_weight":104,"slug":105},"Exam",70,"exam",{"id":20,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":46,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":46,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":22,"doc_module":4,"doc_module_name":46,"category_name":136,"show_sort_weight":20,"slug":137},"General","general"]