Predicting the satisfiability of Boolean formulas by incorporating gated recurrent unit (GRU) in the Transformer framework

IF 2.5 4区 计算机科学 Q2 COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE PeerJ Computer Science Pub Date : 2024-08-08 DOI:10.7717/peerj-cs.2169
Wenjing Chang, Mengyu Guo, Junwei Luo
{"title":"Predicting the satisfiability of Boolean formulas by incorporating gated recurrent unit (GRU) in the Transformer framework","authors":"Wenjing Chang, Mengyu Guo, Junwei Luo","doi":"10.7717/peerj-cs.2169","DOIUrl":null,"url":null,"abstract":"The Boolean satisfiability (SAT) problem exhibits different structural features in various domains. Neural network models can be used as more generalized algorithms that can be learned to solve specific problems based on different domain data than traditional rule-based approaches. How to accurately identify these structural features is crucial for neural networks to solve the SAT problem. Currently, learning-based SAT solvers, whether they are end-to-end models or enhancements to traditional heuristic algorithms, have achieved significant progress. In this article, we propose TG-SAT, an end-to-end framework based on Transformer and gated recurrent neural network (GRU) for predicting the satisfiability of SAT problems. TG-SAT can learn the structural features of SAT problems in a weakly supervised environment. To capture the structural information of the SAT problem, we encodes a SAT problem as an undirected graph and integrates GRU into the Transformer structure to update the node embeddings. By computing cross-attention scores between literals and clauses, a weighted representation of nodes is obtained. The model is eventually trained as a classifier to predict the satisfiability of the SAT problem. Experimental results demonstrate that TG-SAT achieves a 2%–5% improvement in accuracy on random 3-SAT problems compared to NeuroSAT. It also outperforms in SR(N), especially in handling more complex SAT problems, where our model achieves higher prediction accuracy.","PeriodicalId":54224,"journal":{"name":"PeerJ Computer Science","volume":"27 1","pages":""},"PeriodicalIF":2.5000,"publicationDate":"2024-08-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"PeerJ Computer Science","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.7717/peerj-cs.2169","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0

Abstract

The Boolean satisfiability (SAT) problem exhibits different structural features in various domains. Neural network models can be used as more generalized algorithms that can be learned to solve specific problems based on different domain data than traditional rule-based approaches. How to accurately identify these structural features is crucial for neural networks to solve the SAT problem. Currently, learning-based SAT solvers, whether they are end-to-end models or enhancements to traditional heuristic algorithms, have achieved significant progress. In this article, we propose TG-SAT, an end-to-end framework based on Transformer and gated recurrent neural network (GRU) for predicting the satisfiability of SAT problems. TG-SAT can learn the structural features of SAT problems in a weakly supervised environment. To capture the structural information of the SAT problem, we encodes a SAT problem as an undirected graph and integrates GRU into the Transformer structure to update the node embeddings. By computing cross-attention scores between literals and clauses, a weighted representation of nodes is obtained. The model is eventually trained as a classifier to predict the satisfiability of the SAT problem. Experimental results demonstrate that TG-SAT achieves a 2%–5% improvement in accuracy on random 3-SAT problems compared to NeuroSAT. It also outperforms in SR(N), especially in handling more complex SAT problems, where our model achieves higher prediction accuracy.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
通过将门控递归单元(GRU)纳入变换器框架来预测布尔公式的可满足性
布尔可满足性(SAT)问题在不同领域表现出不同的结构特征。与传统的基于规则的方法相比,神经网络模型可以作为一种更具通用性的算法,根据不同的领域数据来学习解决特定问题。如何准确识别这些结构特征是神经网络解决 SAT 问题的关键。目前,基于学习的 SAT 求解器,无论是端到端模型还是对传统启发式算法的增强,都取得了长足的进步。在本文中,我们提出了 TG-SAT,一个基于 Transformer 和门控递归神经网络(GRU)的端到端框架,用于预测 SAT 问题的可满足性。TG-SAT 可以在弱监督环境下学习 SAT 问题的结构特征。为了捕捉 SAT 问题的结构信息,我们将 SAT 问题编码为无向图,并将 GRU 集成到 Transformer 结构中以更新节点嵌入。通过计算字面和分句之间的交叉关注分数,可以得到节点的加权表示。该模型最终被训练成一个分类器,用于预测 SAT 问题的可满足性。实验结果表明,与 NeuroSAT 相比,TG-SAT 在随机 3-SAT 问题上的准确率提高了 2%-5%。它在 SR(N) 中的表现也优于 NeuroSAT,尤其是在处理更复杂的 SAT 问题时,我们的模型能达到更高的预测精度。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
PeerJ Computer Science
PeerJ Computer Science Computer Science-General Computer Science
CiteScore
6.10
自引率
5.30%
发文量
332
审稿时长
10 weeks
期刊介绍: PeerJ Computer Science is the new open access journal covering all subject areas in computer science, with the backing of a prestigious advisory board and more than 300 academic editors.
期刊最新文献
Alzheimer's disease detection using a quantum deep neural network with Haralick feature extraction and simulated annealing optimization. A new era in identification of tick genera; artificial intelligence for precision and speed. MS-YieldStackNet: multi-source data fusion for wheat yield estimation using a stacked ensemble neural network. A hybrid algorithmic model for enhancing security in intelligent reflecting surface-assisted wireless communication. Robust coffee plant disease classification using deep learning and advanced feature engineering techniques.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1