Relational Programming with Foundation Models
Not on the map. Why?
Abstract (arXiv)
Foundation models have vast potential to enable diverse AI applications. The powerful yet incomplete nature of these models has spurred a wide range of mechanisms to augment them with capabilities such as in-context learning, information retrieval, and code interpreting. We propose Vieira, a declarative framework that unifies these mechanisms in a general solution for programming with foundation models. Vieira follows a probabilistic relational paradigm and treats foundation models as stateless functions with relational inputs and outputs. It supports neuro-symbolic applications by enabling the seamless combination of such models with logic programs, as well as complex, multi-modal applications by streamlining the composition of diverse sub-models. We implement Vieira by extending the Scallop compiler with a foreign interface that supports foundation models as plugins. We implement plugins for 12 foundation models including GPT, CLIP, and SAM. We evaluate Vieira on 9 challenging tasks that span language, vision, and structured and vector databases. Our evaluation shows that programs in Vieira are concise, can incorporate modern foundation models, and have comparable or better accuracy than competitive baselines.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 34 of its 53 references that are in the map. First posted on arXiv 19 Dec 2024.
Builds on
34 of 53 references.
References · 34
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Segment Anythingcited by 8,234
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2021Zero-Shot Text-to-Image Generationcited by 4,288
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
22 more
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
- 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,457
- 2021ViLT: Vision-and-Language Transformer Without Convolution or Region Supervisioncited by 1,230
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
- 2022Visual Programming: Compositional visual reasoning without trainingcited by 516
- 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
- 2019The Neuro-Symbolic Concept Learner: Interpreting Scenes, Words, and Sentences From Natural Supervisioncited by 372
- 2018Neural-Symbolic VQA: Disentangling Reasoning from Vision and Language Understandingcited by 304
- 2019SATNet: Bridging deep learning and logical reasoning using a differentiable satisfiability solvercited by 173
- 2019CLUTRR: A Diagnostic Benchmark for Inductive Reasoning from Textcited by 162
- 2018DSFD: Dual Shot Face Detectorcited by 116
- 2022Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Trainingcited by 88
- 2019GQA: A New Dataset for Real-World Visual Reasoning and Compositional Question Answeringcited by 78
- 2023Scallop: A Language for Neurosymbolic Programmingcited by 63
- 2020Learning Reasoning Strategies in End-to-End Differentiable Provingcited by 60
- 2020Closed Loop Neural-Symbolic Learning via Integrating Neural Perception, Grammar Parsing, and Symbolic Reasoningcited by 58
- 2022From Easy to Hard: Two-stage Selector and Reader for Multi-hop Question Answeringcited by 12
- 2023Testing GPT-4 with Wolfram Alpha and Code Interpreter plug-ins on math and science problemscited by 12
Built on by
Citing papers per year: 2025: 5; 2026: 2.
7 papers.
- 2025Foundation Models for Scientific Discovery: From Paradigm Enhancement to Paradigm Transitioncited by 6
- 2025ESCA: Contextualizing Embodied Agents via Scene-Graph Generationcited by 6
- 2025The Road to Generalizable Neuro-Symbolic Learning Should be Paved with Foundation Modelscited by 4
- 2025Neuro-Symbolic Frameworks: Conceptual Characterization and Empirical Comparative Analysiscited by 2
- 2026On Improving Neurosymbolic Learning by Exploiting the Representation Spacecited by 1
- 2025Compiling to recurrent neuronscited by 0
- 2026BODHI: Precise OS Kernel Specification Inferencecited by 0
- 2026BODHI: Precise OS Kernel Specification Inference22 Apr 2026
- 2026On Improving Neurosymbolic Learning by Exploiting the Representation Space8 Feb 2026
- 2025Compiling to recurrent neurons18 Nov 2025
- 2025Foundation Models for Scientific Discovery: From Paradigm Enhancement to Paradigm Transition17 Oct 2025
- 2025ESCA: Contextualizing Embodied Agents via Scene-Graph Generation11 Oct 2025
- 2025Neuro-Symbolic Frameworks: Conceptual Characterization and Empirical Comparative Analysis8 Sep 2025
- 2025The Road to Generalizable Neuro-Symbolic Learning Should be Paved with Foundation Models30 May 2025