atlas

Research map / Large language models / Agents, code and math

Mastering Symbolic Operations: Augmenting Language Models with Compiled Neural Networks

ICLR 2024 · Large language models › Agents, code and math · approach: Inductive and abstract reasoning evaluation · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Neural Comprehension, which plugs compiled neural networks (CoNNs, built via Tracr/RASP and an LLM-based AutoCoNN toolkit) into a pretrained LM with a gating scheme so that rule-based symbolic operations are executed exactly.

Problem

Language models struggle with deterministic symbolic operations and rule-based tasks (e.g., multi-digit addition, length generalization) because they learn rules implicitly from text statistics.

Approach

Integrate transformer modules whose attention weights are compiled from human-specified rules (CoNNs) into a standard LM, with a MoE-style gate that decides when a CoNN's one-hot output replaces the LM's token distribution, so the rule is executed without tools or interpreters.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
integrate Addition and Subtraction CoNNsGPT-3 (175B) CoT · GSM8Kproblem solve rate (%): 13.84 -> 13.95 (+0.11)Helped
integrate Addition and Subtraction CoNNsGPT-3 (175B) CoT · SingleEqproblem solve rate (%): 62.02 -> 62.83 (+0.81)Helped
integrate Addition and Subtraction CoNNsGPT-3 (175B) CoT · AddSubproblem solve rate (%): 57.22 -> 60.25 (+3.03)Helped
integrate Addition and Subtraction CoNNsGPT-3 (175B) CoT · MultiArithproblem solve rate (%): 45.85 -> 45.85 (+0.0)No clear effect
integrate Addition and Subtraction CoNNsGPT-3 (175B) CoT · SVAMPproblem solve rate (%): 38.42 -> 38.62 (+0.2)Helped
integrate Addition and Subtraction CoNNsGPT-3.5 (175B) CoT · SingleEqproblem solve rate (%): 91.01 -> 91.01 (+0.0)No clear effect
integrate Addition and Subtraction CoNNsGPT-3.5 (175B) CoT · GSM8Kproblem solve rate (%): 60.20 -> 60.42 (+0.22)Helped
use explicit operational instructions instead of Examples alone (ablation)AutoCoNN · Parity CoNN generationsuccessful generations: 3/20 -> 7/20Helped
use explicit operational instructions instead of Examples alone (ablation)AutoCoNN · Reverse CoNN generationsuccessful generations: 11/20 -> 16/20Helped
use explicit operational instructions instead of Examples alone (ablation)AutoCoNN · Last Letter CoNN generationsuccessful generations: 10/20 -> 12/20Helped
use explicit operational instructions instead of Examples alone (ablation)AutoCoNN · Copy CoNN generationsuccessful generations: 15/20 -> 17/20Helped
increase training data from 1 million to 15 million examples (ablation)T5-large · symbolic operations OOD length generalizationOOD performanceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K AddSub SingleEq MultiArith SVAMP GSM8K-Hard

Benchmarks: GSM8K SingleEq AddSub MultiArith SVAMP GSM8K-Hard AddSub+ length generalization addition (1-40 digits)

Metrics: accuracy solve rate (%) inference latency

Baselines: Vanilla Fine-tune Vanilla Few-shot Scratchpad Algorithmic PAL CoT

Builds on: Tracr RASP Looped Transformers as Programmable Computers chain-of-thought PAL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy