Teaching Small Language Models to Learn Logic through Meta-Learning

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Bertolazzi, Leonardo, Guzmán, Manuel Vargas, Bernardi, Raffaella, Malicki, Maciej, Szymanik, Jakub
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910000398467072
author Bertolazzi, Leonardo
Guzmán, Manuel Vargas
Bernardi, Raffaella
Malicki, Maciej
Szymanik, Jakub
author_facet Bertolazzi, Leonardo
Guzmán, Manuel Vargas
Bernardi, Raffaella
Malicki, Maciej
Szymanik, Jakub
contents Large language models (LLMs) are increasingly evaluated on reasoning tasks, yet their logical abilities remain contested. To address this, we study LLMs' reasoning in a well-defined fragment of logic: syllogistic reasoning. We cast the problem as premise selection and construct controlled datasets to isolate logical competence. Beyond evaluation, an open challenge is enabling LLMs to acquire abstract inference patterns that generalize to novel structures. We propose to apply few-shot meta-learning to this domain, thereby encouraging models to extract rules across tasks rather than memorize patterns within tasks. Although meta-learning has been little explored in the context of logic learnability, our experiments show that it is effective: small models (1.5B-7B) fine-tuned with meta-learning demonstrate strong gains in generalization, with especially pronounced benefits in low-data regimes. These meta-learned models outperform GPT-4o and o3-mini on our syllogistic reasoning task.
format Preprint
id arxiv_https___arxiv_org_abs_2505_14313
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Teaching Small Language Models to Learn Logic through Meta-Learning
Bertolazzi, Leonardo
Guzmán, Manuel Vargas
Bernardi, Raffaella
Malicki, Maciej
Szymanik, Jakub
Computation and Language
Large language models (LLMs) are increasingly evaluated on reasoning tasks, yet their logical abilities remain contested. To address this, we study LLMs' reasoning in a well-defined fragment of logic: syllogistic reasoning. We cast the problem as premise selection and construct controlled datasets to isolate logical competence. Beyond evaluation, an open challenge is enabling LLMs to acquire abstract inference patterns that generalize to novel structures. We propose to apply few-shot meta-learning to this domain, thereby encouraging models to extract rules across tasks rather than memorize patterns within tasks. Although meta-learning has been little explored in the context of logic learnability, our experiments show that it is effective: small models (1.5B-7B) fine-tuned with meta-learning demonstrate strong gains in generalization, with especially pronounced benefits in low-data regimes. These meta-learned models outperform GPT-4o and o3-mini on our syllogistic reasoning task.
title Teaching Small Language Models to Learn Logic through Meta-Learning
topic Computation and Language
url https://arxiv.org/abs/2505.14313