arXiv:2610.13750cs.LGOct 2026

Manuscript Offprint

arXiv:2610.13750

Studying the Effects of Task Diversity Using Small Mathematical Worlds

Emily Xia Meng, Xuanyu Yang, Junaid Hasan, Michael Ruofan Zeng, Henry Kvinge

Emily Xia Meng

University of Washington, Seattle

xmeng05@uw.edu

Xuanyu Yang

University of Washington, Seattle

xy223@uw.edu

Junaid Hasan

University of Washington, Seattle

junaid01@uw.edu

Michael Ruofan Zeng

University of Washington, Seattle

zengrf@uw.edu

Henry Kvinge

University of Washington

Pacific Northwest National Laboratory

henry.kvinge@pnnl.gov

Abstract

Basic mathematical tasks like modular addition have been a valuable tool for illuminating aspects of neural network behavior that are challenging to see in noisy, unverifiable, large-scale, real-world settings. These studies have typically focused on a single task. However, modern language models are exposed to a vast number of tasks despite being trained with a next-token prediction objective. In this work, we introduce two mathematical task ecosystems, IntWorld and PermWorld, built from distinct but related tasks on integers and permutations. Both are designed to simulate task diversity within a cohesive mathematical ‘world’ where tasks are distinct but related. Because the datasets are procedurally generated, we can precisely vary the number of tasks, allowing us to begin to disentangle the role of task variety from other factors in training. After describing the datasets, we provide some initial results obtained from these datasets which support the idea that increasing task diversity increases the richness of a model’s internal representations.

1 Introduction

From basic arithmetic assignments to scheduling problems to writing letters of recommendation, language models see a vast number of tasks during pretraining. Disentangling how this impacts model training is thus important for understanding the language models we have now as well as paths to designing better models across modalities in the future.

Simple synthetic tasks have historically been a fruitful place to explore training dynamics and representation structure. These settings have the benefit that (i) we can control the contents of the training data exactly, (ii) we already know of algorithmic approaches to solving the problems, and (iii) we can verify the correctness of model outputs. As an example of the power of these frameworks, we note that the phenomenon of grokking was discovered by researchers studying how neural networks learn tasks such as modular arithmetic [1]. Modular addition and multiplication have also provided a setting in which a learned algorithm was successfully decoded [2], [3]. These single-task analyses

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: The 6th Workshop on Mathematical Reasoning and AI.

leave interactions between tasks unexplored, making it challenging to study the impact of task diversity in these settings.

In this work, we describe progress toward addressing this limitation through the development of two mathematical task ecosystems that are designed to simulate multi-task learning. One is based on integers and the other is based on permutations. Both integers and permutations are fundamental mathematical objects with a diverse array of tasks and properties associated with them. Most importantly, each of these tasks illuminates one facet of these mathematical objects. This allows us to design a diverse collection of interrelated tasks. Just as experience writing a cover letter may impact one's ability to write a letter of recommendation, the task of multiplying numbers is also related to the task of determining divisibility properties. Finally, since these datasets are procedurally generated, we can exactly control the number of tasks in a dataset.

We focus on three questions: what properties are represented, which tasks support transfer learning, and how performance changes on longer inputs.

Our contributions include the two task ecosystems, experiments varying the number of training tasks, and comparisons that test the effects of related tasks and training exposure.