paper-with-me

Papers

Mastering Symbolic Operations: Augmenting Language Models with Compiled Neural Networks

2023-04-04 · Yixuan Weng, Minjun Zhu, Fei Xia, Bin Li, Shizhu He, Kang Liu, Jun Zhao

Language models' (LMs) proficiency in handling deterministic symbolic reasoning and rule-based tasks remains limited due to their dependency implicit learning on textual data. To endow LMs with genuine rule comprehension abilities, we propose "Neural Comprehension" - a framework that synergistically integrates compiled neural networks (CoNNs) into the standard transformer architecture. CoNNs are neural modules designed to explicitly encode rules through artificially generated attention weights. By incorporating CoNN modules, the Neural Comprehension framework enables LMs to accurately and robustly execute rule-intensive symbolic tasks. Extensive experiments demonstrate the superiority of our approach over existing techniques in terms of length generalization, efficiency, and interpretability for symbolic operations. Furthermore, it can be applied to LMs across different model scales, outperforming tool-calling methods in arithmetic reasoning tasks while maintaining superior inference efficiency. Our work highlights the potential of seamlessly unifying explicit rule learning via CoNNs and implicit pattern learning in LMs, paving the way for true symbolic comprehension capabilities.

📄 PDF Abstract BibTeX arXiv:2304.01665

Code (3)

wengsyx/neural-comprehension 공식 구현 pytorch
wengsyx/controllm pytorch
wengsyx/lmtuner pytorch

Tasks

Arithmetic ReasoningLanguage Modelling

Similar Papers 제목 키워드 기반

Algorithmic Language Models with Neurally Compiled Libraries

2024-07-06 · Lucas Saldyt, Subbarao Kambhampati

Important tasks such as reasoning and planning are fundamentally algorithmic, meaning that solving them robustly requires acquiring true reasoning or planning algorithms, rather than shortcuts. Large Language Models lack…

NeSyCoCo: A Neuro-Symbolic Concept Composer for Compositional Generalization

2024-12-20 · Danial Kamali, Elham J. Barezi, Parisa Kordjamshidi

Compositional generalization is crucial for artificial intelligence agents to solve complex vision-language reasoning tasks. Neuro-symbolic approaches have demonstrated promise in capturing compositional structures, but …

Compositional Generalization (AVG)Novel ConceptsVisual Question AnsweringVisual Question Answering (VQA)+2

Sutra: Tensor-Op RNNs as a Compilation Target for Vector Symbolic Architectures

2026-05-20 · Emma Leonhart arxiv

Sutra is a typed, purely functional programming language whose compiled forward pass is a PyTorch neural network. The compiler beta-reduces the whole program -- primitives, control flow, string I/O -- to one fused tensor…

Protein Language Model

H-STAR: LLM-driven Hybrid SQL-Text Adaptive Reasoning on Tables

2024-06-29 · Nikhil Abhyankar, Vivek Gupta, Dan Roth, Chandan K. Reddy

Tabular reasoning involves interpreting natural language queries about tabular data, which presents a unique challenge of combining language understanding with structured data analysis. Existing methods employ either tex…

Fact VerificationMathematical ReasoningNatural Language QueriesQuestion Answering+2

The Neural Compiler: Program-to-Network Translation for Hybrid Scientific Machine Learning

2026-05-21 · Lucas Sheneman arxiv

Scientific machine learning often requires combining known physics with unknown parameters or correction terms learned from data. Existing approaches either ignore known structure, encode it as a soft penalty, or require…