atlas

Research map / Vision-language and multimodal / Human and embodied modeling

Relational Programming with Foundational Models

AAAI 2024 · Vision-language and multimodal › Human and embodied modeling · approach: Layout-aware document understanding · 6 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 Vieira, a declarative probabilistic relational framework (extending Scallop) that treats foundation models as stateless relational functions via a foreign interface with plugins, evaluated on 9 no-training tasks.

Problem

Foundation models are powerful but incomplete (hallucination, poor structured-data reasoning, awkward multi-modal composition), and existing augmentation mechanisms lack a unified programming framework.

Approach

Model foundation models as stateless functions with relational inputs and outputs, exposed via a foreign predicate/attribute interface in the Scallop probabilistic Datalog compiler, so LLM/vision models compose with logic programs and probabilistic reasoning without training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Relational program over GPT-4 extracted relations instead of direct GPT-4 answering (few-shot shots contain only extracted facts)Date reasoning · DR (BIG-bench date understanding)accuracy (%): 92.41 vs 87.26 for GPT-4 CoTHelped
Symbolic relational reasoning over GPT-4-extracted possessions and swapsTracking shuffled objects · TSOaccuracy (%): 100.00 vs 84.00 for GPT-4 CoTHelped
Kinship graph extraction with GPT-4 plus external kinship composition rulesCLUTRR kinship reasoning · CLUTRRaccuracy (%): 72.50 vs 43.10 for GPT-4 3-shotHelped
GPT-4 semantic parsing into DSL expressions evaluated symbolically, instead of direct LM answeringGSM8K math reasoning · GSM8Kaccuracy (%): 90.60 vs 92.00 for GPT-4 CoT (5-shot); vs 87.10 0-shotHurt
Retrieval (embedding top-2 documents) followed by GPT QA, without fine-tuningHotpotQA · HotpotQA distractorEM (%): 67.3% vs 71.89-72.07% for fine-tuned methodsHurt
Semantic search with positive/negative query decomposition using ada-002 embeddingsAmazon ESCI product search · Amazon ESCInDCG: 0.798 vs 0.797 for MIPS (ada-002), essentially tied; below fine-tuned 0.830/0.857Helped
VisProg-style DSL with OWL-ViT, ViLT, and CLIP modules, with GPT-4 semantic parsingGQA visual QA · GQARecall@1: 0.579 vs 0.419 for PNP-VQA; 0.049 for ViLT-VQAHelped
DSL with OWL-ViT and CLIP scene graph plus logical query evaluationCLEVR visual QA · CLEVRRecall@1: 0.463 vs 0.241 for ViLT-VQAHelped

Surprising findings

Limitations

Experimental setup

Datasets: BIG-bench date understanding BIG-bench tracking shuffled objects CLUTRR GSM8K HotpotQA Amazon ESCI GQA CLEVR VQAR OFCP IGP20

Benchmarks: BIG-bench date understanding BIG-bench tracking shuffled objects CLUTRR GSM8K HotpotQA Amazon ESCI GQA CLEVR VQAR OFCP IGP20

Metrics: exact match nDCG Recall@1 Recall@3 manual semantic correctness rate lines of code

Baselines: GPT-4 zero-shot GPT-4 chain-of-thought ViLT-VQA PNP-VQA C2FM FE2H MIPS with text-embedding-ada-002 InstructPix2Pix BERT CE-MPNet

Builds on: Scallop DeepProbLog VisProg FE2H Prompt-to-Prompt

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