In-Context Analogical Reasoning with Pre-Trained Language Models
Xiaoyang Hu, Shane Storks, Richard L. Lewis, Joyce Chai
Abstract
Analogical reasoning is a fundamental capacity of human cognition that allows us to reason abstractly about novel situations by relating them to past experiences. While it is thought to be essential for robust reasoning in AI systems, conventional approaches require significant training and/or hard-coding of domain knowledge to be applied to benchmark tasks. Inspired by cognitive science research that has found connections between human language and analogy-making, we explore the use of intuitive language-based abstractions to support analogy in AI systems. Specifically, we apply large pre-trained language models (PLMs) to visual Raven’s Progressive Matrices (RPM), a common relational reasoning test. By simply encoding the perceptual features of the problem into language form, we find that PLMs exhibit a striking capacity for zero-shot relational reasoning, exceeding human performance and nearing supervised vision-based methods. We explore different encodings that vary the level of abstraction over task features, finding that higher-level abstractions further strengthen PLMs’ analogical reasoning. Our detailed analysis reveals insights on the role of model complexity, in-context learning, and prior knowledge in solving RPM tasks.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers5
- Unlocking Scientific Concepts: How Effective Are LLM-Generated Analogies for Student Understanding and Classroom Practice?Zekai Shao, Siyu Yuan, Lin Gao, Yixuan He et al.CHI 2025 · 12 citations
- Experience Transfer for Multimodal LLM Agents in Minecraft GameChenghao Li, Jun Liu, Songbo Zhang, Huadong Jian et al.CVPR 2026 · 4 citations
- ANALOGYKB: Unlocking Analogical Reasoning of Language Models with A Million-scale Knowledge BaseSiyu Yuan, Jiangjie Chen, Changzhi Sun, Jiaqing Liang et al.ACL 2024
- LogiDynamics: Unraveling the Dynamics of Inductive, Abductive and Deductive Logical Inferences in LLM ReasoningTianshi Zheng, Cheng Jiayang, Chunyang Li, Haochen Shi et al.EMNLP 2025
- Density estimation with LLMs: a geometric investigation of in-context learning trajectoriesToni J. B. Liu, Nicolas Boullé, Raphaël Sarfati, Christopher J. EarlsICLR 2025
Builds on10
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- Mapping Language Models to Grounded Conceptual SpacesRoma Patel, Ellie PavlickICLR 2022 · 197 citations
- Stratified Rule-Aware Network for Abstract Visual ReasoningSheng Hu, Yuqing Ma, Xianglong Liu, Yanlu Wei et al.AAAI 2021 · 126 citations
- V-PROM: A Benchmark for Visual Reasoning Using Visual Progressive MatricesDamien Teney, Peng Wang, Jiewei Cao, Lingqiao Liu et al.AAAI 2020 · 37 citations
Related papers
- Neural Prediction Errors enable Analogical Visual Reasoning in Human Standard Intelligence TestsLingxiao Yang, Hongzhi You, Zonglei Zhen, Dahui Wang et al.ICML 2023 · 16 citations
- Learning to reason over visual objectsShanka Subhra Mondal, Taylor Whittington Webb, Jonathan CohenICLR 2023 · 7 citations
- VOILA: Evaluation of MLLMs For Perceptual Understanding and Analogical ReasoningNilay Yilmaz, Maitreya Patel, Yiran Lawrence Luo, Tejas Gokhale et al.ICLR 2025
- AnaloBench: Benchmarking the Identification of Abstract and Long-context AnalogiesXiao Ye, Andrew Wang, Jacob Choi, Yining Lu et al.EMNLP 2024 · 3 citations
- Raven's Progressive Matrices Completion with Latent Gaussian Process PriorsFan Shi, Bin Li, Xiangyang XueAAAI 2021 · 10 citations
