Relational Programming with Foundation Models
Ziyang Li, Jiani Huang, Jason Liu, Felix Zhu, Eric Zhao, William, Dodds, Neelay Velingker, Rajeev Alur, Mayur Naik

TL;DR
Vieira is a declarative framework that unifies various mechanisms for programming with foundation models, enabling complex neuro-symbolic and multi-modal applications with improved accuracy and conciseness.
Contribution
It introduces Vieira, a probabilistic relational framework that seamlessly integrates foundation models with logic programming and diverse sub-models, extending the Scallop compiler.
Findings
Vieira achieves comparable or better accuracy than baselines.
Programs in Vieira are concise and incorporate modern foundation models.
The framework supports diverse tasks across language, vision, and databases.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Residual Connection · Linear Layer · Weight Decay · Cosine Annealing · Linear Warmup With Cosine Annealing · Discriminative Fine-Tuning · Softmax · Attention Dropout
