Im-Promptu: In-Context Composition from Image Prompts
Not on the map. Why?
Abstract (arXiv)
Large language models are few-shot learners that can solve diverse tasks from a handful of demonstrations. This implicit understanding of tasks suggests that the attention mechanisms over word tokens may play a role in analogical reasoning. In this work, we investigate whether analogical reasoning can enable in-context composition over composable elements of visual stimuli. First, we introduce a suite of three benchmarks to test the generalization properties of a visual in-context learner. We formalize the notion of an analogy-based in-context learner and use it to design a meta-learning framework called Im-Promptu. Whereas the requisite token granularity for language is well established, the appropriate compositional granularity for enabling in-context generalization in visual stimuli is usually unspecified. To this end, we use Im-Promptu to train multiple agents with different levels of compositionality, including vector representations, patch representations, and object slots. Our experiments reveal tradeoffs between extrapolation abilities and the degree of compositionality, with non-compositional representations extending learned composition rules to unseen domains but performing poorly on combinatorial tasks. Patch-based representations require patches to contain entire objects for robust extrapolation. At the same time, object-centric tokenizers coupled with a cross-attention module generate consistent and high-fidelity solutions, with these inductive biases being particularly crucial for compositional generalization. Lastly, we demonstrate a use case of Im-Promptu as an intuitive programming interface for image generation.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 53 of its 75 references that are in the map. First posted on arXiv 26 May 2023.
Builds on
53 of 75 references.
References · 53
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2017Neural Discrete Representation Learningcited by 4,650
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
38 more
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,445
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2022Imagic: Text-Based Real Image Editing with Diffusion Modelscited by 1,172
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2020Object-Centric Learning with Slot Attentioncited by 865
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022Compositional Visual Generation with Composable Diffusion Modelscited by 619
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2019MONet: Unsupervised Scene Decomposition and Representationcited by 388
- 2023Larger language models do in-context learning differentlycited by 386
- 2019Multi-Object Representation Learning with Iterative Variational Inferencecited by 359
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2022Visual Prompting via Image Inpaintingcited by 248
- 2021Conditional Object-Centric Learning from Videocited by 247
- 2022Emergent Analogical Reasoning in Large Language Modelscited by 239
- 2020On the Binding Problem in Artificial Neural Networkscited by 230
- 2019GENESIS: Generative Scene Inference and Sampling with Object-Centric Latent Representationscited by 227
- 2019RAVEN: A Dataset for Relational and Analogical Visual rEasoNingcited by 225
- 2019Recurrent Independent Mechanismscited by 219
- 2022SAVi++: Towards End-to-End Object-Centric Learning from Real-World Videoscited by 165
- 2021Meta-learning via Language Model In-context Tuningcited by 163
- 2021Illiterate DALL-E Learns to Composecited by 147
- 2022Simple Unsupervised Object-Centric Learning for Complex and Naturalistic Videoscited by 139
- 2016Discrete Variational Autoencoderscited by 124
- 2021GENESIS-V2: Inferring Unordered Object Representations without Iterative Refinementcited by 109
- 2023Object-Centric Slot Diffusioncited by 90
- 2022A very preliminary analysis of DALL-E 2cited by 82
- 2021Unsupervised Learning of Compositional Energy Conceptscited by 71
- 2022Learning to Induce Causal Structurecited by 68
- 2019Learning to Make Analogies by Contrasting Abstract Relational Structurecited by 53
- 2020Object Files and Schemata: Factorizing Declarative and Procedural Knowledge in Dynamical Systemscited by 48
- 2019Human few-shot learning of compositional instructionscited by 47
- 2022Object Representations as Fixed Points: Training Iterative Refinement Algorithms with Implicit Differentiationcited by 46
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2024: 1; 2025: 3.
4 papers.
- 2024Neural Slot Interpreters: Grounding Object Semantics in Emergent Slot Representationscited by 2
- 2025Disassociating performance from compositional feature learningcited by 0
- 2025Beyond Task-Specific Reasoning: A Unified Conditional Generative Framework for Abstract Visual Reasoningcited by 0
- 2025In-Context Compositional Learning via Sparse Coding Transformercited by 0
- 2025In-Context Compositional Learning via Sparse Coding Transformer25 Nov 2025
- 2025Beyond Task-Specific Reasoning: A Unified Conditional Generative Framework for Abstract Visual Reasoning15 Jul 2025
- 2025Disassociating performance from compositional feature learning14 May 2025
- 2024Neural Slot Interpreters: Grounding Object Semantics in Emergent Slot Representations2 Feb 2024
Similar, not cited
Close in wording, no citation either way
- 2024Analogist: Out-of-the-box Visual In-Context Learning with Image Diffusion Model
- 2026CARV: A Diagnostic Benchmark for Compositional Analogical Reasoning in Multimodal LLMs
- 2024In-Context Learning Improves Compositional Understanding of Vision-Language Models
- 2025Embracing Collaboration Over Competition: Condensing Multiple Prompts for Visual In-Context Learning
- 2025Unveiling the Compositional Ability Gap in Vision-Language Reasoning Model
- 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models
- 2023In-Context Analogical Reasoning with Pre-Trained Language Models
- 2024Iterated Learning Improves Compositionality in Large Vision-Language Models