[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82565-en":3,"doc-seo-82565-105":29,"detail-sidebar-cat-0-en-105":91},{"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":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},82565,962075006959,"Anda","https://ap-avatar.wpscdn.com/avatar/e0002397efbe92a78e?_k=1776741047341049297",8,"Research & Report","Dynamic Bidirectional Pattern Memory Inference-Time Gating for Clinical NLP Production-Scale Empirical Characterisation","Dynamic Bidirectional Pattern Memory (DBPM) studies inference-time gating for a production-scale clinical NLP pipeline that couples a generator with a verifier. Over 167,034 PMC-Patients narratives, DBPM adds a lightweight memory learned at deployment to filter extractions using evidence from the verifier’s verdict stream. Four key results show that verifier-rejection-derived learning fails at full scale, while ontology-based filtering works, ontology- and evidence-aligned QA gating succeeds, and selectivity depends on testing the same evidence the verifier weighs.","Dynamic Bidirectional Pattern Memory: A Production-Scale Empirical Characterisation of Inference-Time Gating in Clinical NLP⋆  \nAli H. Lazema,b,∗ (Corresponding Author), William Teahana (Co-Author)  \na School of Computer Science and Engineering, Bangor University, Bangor, Gwynedd, LL57 2DG, United Kingdom b University of Thi-Qar, Nasiriyah, 64001, Iraq  \narXiv :2607 .00870v 1 [ cs .CL] 1 Jul 2026  \nARTICLE INFO  \nKeywords:  \nmulti-agent pattern memory inference-time gating  \nclinical natural language processing large language model verification generator-verifier architecture  \nAB STRACT  \nWe study inference-time pattern-memory gating in a production-scale clinical natural language processing (NLP) pipeline. The pipeline pairs a generator (Llama-3.3 70B) that proposes extractions with a verifier (MMed-Llama-3.1 70B) that accepts or rejects them, over 167,034 PMC-Patients narratives, and we add a lightweight memory that learns at deployment time which extractions to filter, so the verifier need not re-examine candidates already seen to fail. We report four findings. First, learning these filtering rules directly from the verifier’s rejections did not work at full scale: the relation-extraction filter ended up empty even though the pipeline logged 785,797 rejected candidates, because the rejections were spread too thinly across too many distinct forms to accumulate. Second, a simpler rule based on a fixed clinical ontology produced the same filtering without relying on the verifier at all, capturing 49,734 ontologyviolating relations on a held-out 5,000-patient set. Third, we tested five versions of the questionanswering filter; four failed for distinct and instructive reasons, and the fifth succeeded by checking whether a patient’s extracted clinical entities actually support the question being asked; on the categories where it applies, it was 1.84 times more likely to flag an answer the verifier would reject than one it would accept. Fourth, across all five versions one pattern held: a filter is selective only when it tests the same evidence the verifier itself weighs, not when it tries to imitate the verifier’s output. Taken together, these findings give a practical, transferable result for any generator-verifier pipeline: the most natural memory design can fail silently at deployment scale, and whether a pre-generation gate is selective is decided before any engineering effort, by whether its signal probes the question the verifier itself answers. Throughout, the system flags suspect extractions rather than deleting them, so every decision stays visible for clinical review. All code and test artefacts are released openly.  \n1. Introduction  \nLarge language models have transformed clinical natural language processing, enabling extraction of named entities, relations, and question–answer pairs from clinical narratives at scales unattainable with prior rule-based or fine-tuned-classifier pipelines. A growing body of work pairs a generator model with a verifier model that scores or accepts the generator’s outputs (Madaan et al., 2023; Shinn et al., 2023; Yao et al., 2023), adding an inference-time correctness check on top of instruction tuning and retrieval. This pattern is attractive in clinical settings, where an unverified extraction can carry a factual error into a patient record. At the scale of clinical informatics corpora, however, where hundreds of thousands of narratives are processed without model retraining, inference-time verification becomes the dominant computational expense. This motivates a mechanism that avoids invoking the verifier on candidates the pipeline has, in effect, already seen fail: an inference-time memory that accumulates verdict evidence as the pipeline runs and gates future candidates accordingly, without retraining either model.  \nThe design space for such a memory is large, and which choices actually yield selective gating, gating that flags the candidates a verifier would reject while leaving t","cbCaimPlWizzjr04","https://ap.wps.com/l/cbCaimPlWizzjr04","pdf",948848,1,39,"English","en",105,"# Introduction\n## Dynamic Bidirectional Pattern Memory and pipeline design\n## Central research question and gating selectivity\n# Experimental characterisation and findings\n## Learning from verifier rejections at full scale\n## Ontology-based filtering\n## Question-answering filter variants\n## Evidence alignment regularity","[{\"question\":\"What problem does DBPM address in a generator-verifier clinical NLP pipeline?\",\"answer\":\"DBPM reduces the need to call the verifier on candidates that have already been judged as failures, by using an inference-time memory that accumulates verdict evidence and gates future extractions without retraining either model.\"},{\"question\":\"Why did learning filtering rules directly from the verifier’s rejections fail at full scale?\",\"answer\":\"At full scale, the rejections were spread across too many distinct forms, so the relation-extraction filter ended up empty despite the pipeline logging many rejected candidates.\"},{\"question\":\"What determines whether a pre-generation gating signal is selective?\",\"answer\":\"A filter is selective only when it directly tests the same evidence that the verifier itself uses; signals that probe different evidence do not separate verifier-rejected from verifier-accepted candidates.\"}]",1784181553,98,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":27},"dynamic-bidirectional-pattern-memory-inference-time-gating-for-clinical-nlp-production-scale-empirical-characterisation","",{"@graph":35,"@context":85},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/dynamic-bidirectional-pattern-memory-inference-time-gating-for-clinical-nlp-production-scale-empirical-characterisation/82565/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-17","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What problem does DBPM address in a generator-verifier clinical NLP pipeline?","Question",{"text":75,"@type":76},"DBPM reduces the need to call the verifier on candidates that have already been judged as failures, by using an inference-time memory that accumulates verdict evidence and gates future extractions without retraining either model.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"Why did learning filtering rules directly from the verifier’s rejections fail at full scale?",{"text":80,"@type":76},"At full scale, the rejections were spread across too many distinct forms, so the relation-extraction filter ended up empty despite the pipeline logging many rejected candidates.",{"name":82,"@type":73,"acceptedAnswer":83},"What determines whether a pre-generation gating signal is selective?",{"text":84,"@type":76},"A filter is selective only when it directly tests the same evidence that the verifier itself uses; signals that probe different evidence do not separate verifier-rejected from verifier-accepted candidates.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":45,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":45,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":45,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":45,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":45,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":45,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":45,"category_name":137,"show_sort_weight":106,"slug":138},19,"General","general"]