SMART SLM:结构记忆与推理变换器,一种用于准确文档辅助的小语言模型
SMART SLM: Structured Memory and Reasoning Transformer, A Small Language Model for Accurate Document Assistance
AI总结:
SMART SLM通过结构化记忆与推理变换器,提升工程文档处理的准确性与效率。
摘要:
工程手册(EM)的用户发现阅读EM很困难,因为它们很长,格式密集,包括书面文档、逐步程序和工程设备的标准参数列表。现成的变换器,尤其是紧凑型的,将这种材料视为连续的token流。这种方法导致自信但错误的数值答案,并迫使模型以低效的方式记忆孤立的事实。SMART(结构记忆与推理变换器)提供了一种不同的实用解决方案。SMART通过分层方法来组织其处理,并基于三个主要任务类别(1)一个语法感知的事实提取器(语法学家)树LSTM,从EM句子中提取事实作为主谓宾关系;(2)一个紧凑的索引内存MANN(记忆增强神经网络),将这些理性主谓宾对象索引为384维向量,并与信息来源相关联;(3)一个6层变换器,学习将之前检索的事实融合到其生成的响应中。整个SMART模型使用45.51M参数,比GPT-2(124M)少64%,比BERT(133M)少69%,并且比GPT-2的准确性高21.3%,表明SMART在最小的处理需求下更符合数据。SMART采用双模式推理,一个用于已知文档的索引快速路径(亚秒级回答时间),另一个用于新上传的索引动态路径,由RAGs辅助(FAISS Top 20结果,内存断开在64个槽位)。在现实部署中,该框架比可比的小变换器模型产生更受支持的结果,减少幻觉。
英文摘要:
The user of Engineering Manuals (EM) finds it difficult to read EM s because they are long, have a dense format which includes written documents, step by step procedures, and standard parameter lists for engineering equipment. Off the shelf transformers, especially compact ones, treat this material as a flat stream of tokens. This approach leads to confident but incorrect numeric answers and forces the models to memorize separate facts inefficiently. SMART (Structured Memory and Reasoning Transformer) offers a different and practical solution to the above problem. SMART structures its processing by using a hierarchical approach, and is based upon three main job categories (1) A syntax-aware Fact Extractor (Grammarian) Tree LSTM which extracts facts as subject relation object relations from EM sentences (2) A compact indexed memory MANN (Memory Augmented Neural Network) that indexes these Rational Subject Relation Objects as 384 dimensional vectors that are associated with the source of the information, and (3) A 6 layer Transformer that learns to fuse the previously retrieved facts into its generated response. The entire SMART model utilizes 45.51M parameters, which is 64% less than GPT-2 (124M) and 69% less than BERT (133M), and it achieves a 21.3% higher accuracy than GPT-2, indicating that SMART fits the data better with the least amount of processing requirements. SMART employs dual modes of inference an indexed fast path for known documents (sub-second answer times) and an indexed dynamic path assisted by RAGs for new uploads (FAISS Top 20 results with memory severed at 64 slots). In real world deployment, this framework leads to more well supported results with reduced hallucinations than comparable small transformer models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。