AIPLDec 19, 2024

Relational Programming with Foundation Models

arXiv:2412.14515v112 citationsh-index: 86AAAI
Originality Incremental advance
AI Analysis

This provides a general solution for programming with foundation models, enabling neuro-symbolic and multi-modal applications, but it is incremental as it builds on existing mechanisms.

The authors tackled the challenge of unifying diverse augmentation mechanisms for foundation models by proposing Vieira, a declarative framework that treats models as stateless functions with relational inputs and outputs, resulting in programs that are concise, incorporate modern models, and achieve comparable or better accuracy on 9 tasks across language, vision, and databases.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes