atlas

Research map / Architectures and efficiency / RNNs and normalization

FLAME: A Small Language Model for Spreadsheet Formulas

AAAI 2024 · Architectures and efficiency › RNNs and normalization · approach: Non-autoregressive translation · 5 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.

Introduces FLAME, a 60M-parameter T5-style encoder-decoder trained only on Excel formulas with sketch-based deduplication, an Excel-specific tokenizer, and domain-specific pre-training objectives, evaluated on formula repair, completion, and retrieval against much larger code models.

Problem

Large code LLMs are expensive to train and deploy for spreadsheet formula assistance, even though formula-only tasks such as repair and completion need only a narrow language. The paper asks whether a much smaller model trained only on Excel formulas can compete.

Approach

Train a small T5-small-based model exclusively on deduplicated Excel formulas, using an Excel lexer-aware tokenizer and two new objectives (language-aware masked span prediction and user-inspired noise) alongside tail masking and random noise denoising.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use FLAME rather than Codex-Cushman for zero-shot Forum top-1 repairFormula repair models · Forum last-mile repairtop-1 exact match: 0.55 -> 0.71Helped
Use FLAME rather than CodeT5 for formula completionFormula completion models · Formula completion, 0.90 prefixtop-5 exact match: 0.27 -> 0.70Helped
Reduce model size from 60M to 16M parameters (ablation)FLAME · Formula completion, 0.90 prefixexact match: 0.70 -> 0.59Hurt
Replace per-workbook deduplication with global formula deduplication (ablation)FLAME · Formula completion, 0.90 prefixexact match: 0.70 -> 0.45Hurt
Add language-aware masked span prediction (laMSP) (ablation)T5 formula model · Forum formula completion, 0.90 prefixexact match: 0.22 -> 0.51Helped
Add user-inspired denoising to laMSP (ablation)T5 formula model · Forum last-mile repairtop-1 exact match: 0.73 -> 0.75Helped
Add user-inspired denoising to laMSP (ablation)T5 formula model · Forum formula completion, 0.90 prefixexact match: 0.51 -> 0.51No clear effect
Add Excel-specific tokenizer to laMSP and user-inspired denoising (ablation)T5 formula model · Forum formula completion, 0.90 prefixexact match: 0.51 -> 0.70Helped
Add Excel-specific tokenizer to laMSP and user-inspired denoising (ablation)T5 formula model · Forum last-mile repairtop-1 exact match: 0.75 -> 0.76Helped

Surprising findings

Limitations

Experimental setup

Datasets: Excel formulas from 1.8M public web workbooks mrexcel.com and excelforum.com help forum formulas Enron spreadsheet corpus

Benchmarks: AAAI 2021 last-mile repair benchmark (273 forum formulas) Synthetic repair benchmark Formula completion benchmark (273 formulas) Enron formula retrieval (1000 formulas)

Metrics: top-1 exact match top-5 exact match exact match sketch match Pearson correlation latency

Baselines: Codex-Cushman Codex-Davinci CodeT5 CodeBERT GraphCodeBERT

Builds on: T5 BART Mixture-of-Denoisers byte pair encoding LoRA

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