mlsanityData to 7 Oct 2026

Im-Promptu: In-Context Composition from Image Prompts

arXiv 2305.17262 ↗First posted 26 May 2023cs.CV cs.AIcited by 4

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  6. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  7. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  9. 2017Neural Discrete Representation Learningcited by 4,650
  10. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  11. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  12. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
38 more
  1. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  2. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  3. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  4. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  5. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  6. 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,445
  7. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  8. 2022Imagic: Text-Based Real Image Editing with Diffusion Modelscited by 1,172
  9. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  10. 2020Object-Centric Learning with Slot Attentioncited by 865
  11. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  12. 2022Compositional Visual Generation with Composable Diffusion Modelscited by 619
  13. 2021MetaICL: Learning to Learn In Contextcited by 450
  14. 2019MONet: Unsupervised Scene Decomposition and Representationcited by 388
  15. 2023Larger language models do in-context learning differentlycited by 386
  16. 2019Multi-Object Representation Learning with Iterative Variational Inferencecited by 359
  17. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  18. 2022Visual Prompting via Image Inpaintingcited by 248
  19. 2021Conditional Object-Centric Learning from Videocited by 247
  20. 2022Emergent Analogical Reasoning in Large Language Modelscited by 239
  21. 2020On the Binding Problem in Artificial Neural Networkscited by 230
  22. 2019GENESIS: Generative Scene Inference and Sampling with Object-Centric Latent Representationscited by 227
  23. 2019RAVEN: A Dataset for Relational and Analogical Visual rEasoNingcited by 225
  24. 2019Recurrent Independent Mechanismscited by 219
  25. 2022SAVi++: Towards End-to-End Object-Centric Learning from Real-World Videoscited by 165
  26. 2021Meta-learning via Language Model In-context Tuningcited by 163
  27. 2021Illiterate DALL-E Learns to Composecited by 147
  28. 2022Simple Unsupervised Object-Centric Learning for Complex and Naturalistic Videoscited by 139
  29. 2016Discrete Variational Autoencoderscited by 124
  30. 2021GENESIS-V2: Inferring Unordered Object Representations without Iterative Refinementcited by 109
  31. 2023Object-Centric Slot Diffusioncited by 90
  32. 2022A very preliminary analysis of DALL-E 2cited by 82
  33. 2021Unsupervised Learning of Compositional Energy Conceptscited by 71
  34. 2022Learning to Induce Causal Structurecited by 68
  35. 2019Learning to Make Analogies by Contrasting Abstract Relational Structurecited by 53
  36. 2020Object Files and Schemata: Factorizing Declarative and Procedural Knowledge in Dynamical Systemscited by 48
  37. 2019Human few-shot learning of compositional instructionscited by 47
  38. 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

Cited by year

Citing papers per year: 2024: 1; 2025: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Analogist: Out-of-the-box Visual In-Context Learning with Image Diffusion Model
  2. 2026CARV: A Diagnostic Benchmark for Compositional Analogical Reasoning in Multimodal LLMs
  3. 2024In-Context Learning Improves Compositional Understanding of Vision-Language Models
  4. 2025Embracing Collaboration Over Competition: Condensing Multiple Prompts for Visual In-Context Learning
  5. 2025Unveiling the Compositional Ability Gap in Vision-Language Reasoning Model
  6. 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models
  7. 2023In-Context Analogical Reasoning with Pre-Trained Language Models
  8. 2024Iterated Learning Improves Compositionality in Large Vision-Language Models