Small Models, Smarter Learning: The Power of Joint Task Training

Csaba Both, Benjamin Hoover, Hendrik Strobelt, Dmitry Krotov, Daniel Karl I. Weidele, Mauro Martino, Nima Dehmamy · Submission to ICLR 2026 · Rejected

TL;DR

Standard scaling laws suggest that harder tasks demand strictly larger models. This paper shows that joint multi-task training breaks this rule: co-training tiny transformers on easier or structured auxiliary tasks (like finding the maximum, median, or modular product) enables models 2× to 7× smaller to solve otherwise intractable tasks like modular addition and permutation group multiplication. Principal Component Analysis (PCA) reveals that this synergy works by forcing token embeddings into highly structured, arithmetic representations early in training.

What Problem Does This Paper Address?

In deep learning, the emergence of capabilities is often viewed through the lens of parameter scaling and Kolmogorov complexity: complex, non-linear algorithmic tasks supposedly require a minimum model size. On symbolic tasks like modular arithmetic (e.g., $(A + B) \pmod n$) or nested expressions, small transformers often fail or resort to brute-force memorization rather than learning generalizable algorithms.

The authors investigate whether training curriculum and task composition can fundamentally shift this emergence threshold: Can training a model on multiple tasks simultaneously alter its internal optimization trajectory, allowing much smaller models to learn algorithms that would otherwise fail in isolation?

Methods

  • Architecture: The authors employ tiny autoregressive transformer models based on nanoGPT with a recurrent variant (a single transformer block applied iteratively $n$ times) using a single attention head and feedforward dimension set to $4 \times d_{\text{embed}}$ (varying $d_{\text{embed}}$ from 8 to 362).
  • Chain-of-Thought (CoT) Scratchpads: Nested expressions are evaluated character-by-character using step-by-step resolution of innermost parentheses marked by a > delimiter.
  • Embedding PCA & Clustering Analysis: To compare models across varying widths, the authors compute average $n_{\text{vocab}} \times n_{\text{vocab}}$ correlation matrices and evaluate the principal components (PCs) of learned token representations (e.g., checking for parity separation or modular divisor clustering).
  • Sublayer Ratio Metrics: They measure the ratio of output-to-input norms for self-attention ($\| \text{SA} \| / \|x\|$) versus feedforward ($\| \text{FFN} \| / \|x_1\|$) sublayers to see which architectural components carry the computational load.
  • Transfer / Curriculum Phase-in: Models are pretrained on easy tasks (MAX/MED) and gradually transitioned to a hard task (ADD) to isolate the causal role of embedding constraints.

Datasets

All evaluations use procedural, unambiguously verifiable synthetic benchmarks:

  1. Nested ListOps (Arithmetic): Synthetically generated nested expressions with depths up to 5 and up to 5 operands. Operations include $\text{MAX}$, $\text{MIN}$, $\text{MED}$ (median), $\text{ADD}$ (sum $\bmod n$), $\text{PROD}$ (product $\bmod n$), and $\text{NADD}$ (alternating modular sum $\sum_i (-1)^i x_i$). Moduli range from $n=10$ to $n=226$. Triplet exclusion sets ensure models cannot simply memorize seen digit combinations.
  2. Shuffled ADD (Control): A synthetic symmetric addition table ($A + B = B + A \pmod{26}$) where output assignments $C$ are randomly permuted, destroying intrinsic numerical properties (such as associativity and parity).
  3. Permutation Groups: A non-arithmetic benchmark using $6 \times 6$ block-diagonal permutation matrices composed of two $3 \times 3$ sub-blocks (36 group elements). Operations include full matrix multiplication ($\text{OP}$) and sub-block products ($\text{OP\_TOP}$, $\text{OP\_BOTTOM}$).

Key Insights and Ideas

  • The Joint Training Paradox: Training on isolated $\text{ADD}$ requires large models ($\sim 10^5$ parameters), but adding seemingly redundant operations like $\text{PROD}$ or $\text{MAX}$ allows models that are a fraction of the size to succeed. Conversely, mixing two hard tasks (like $\text{ADD} + \text{PROD}$ over prime moduli) does not help.
  • Embedding Space Structuring: Tasks like $\text{MAX}$ and $\text{MED}$ force the model to organize token embeddings by ordinal value, while $\text{PROD}$ separates tokens by parity and divisor sub-clusters (e.g., modulo 4). This structure restricts the embedding search space, providing an inductive bias that lets modular addition converge without memorization.
  • Failure on Random Mappings: When trained on Shuffled ADD, joint training with $\text{MAX}/\text{MED}$ fails completely ($\sim 20\%$ accuracy). Because the shuffled table lacks algebraic structure, the number ordering enforced by $\text{MAX}/\text{MED}$ directly conflicts with the arbitrary mappings, demonstrating that synergy requires compatible underlying representations.
  • Algorithmic Specialization: Attention-to-FFN norm analysis shows that single-task $\text{ADD}$ models rely heavily on feedforward layers (suggesting memorized table lookup), whereas jointly trained models exhibit higher attention engagement focused directly on operand bindings during CoT steps.

Key Results

  • Parameter Reduction:
  • Jointly training $\text{ADD} + \text{PROD}$ ($\bmod 20$) reduced the parameter threshold by $2.5\times$ compared to $\text{ADD}$ alone.
  • Pairing $\text{PROD}$ on prime moduli with $\text{MAX}$ lowered the required parameters by $2.6\times$.
  • A phased transfer curriculum (starting on $\text{MAX} + \text{MED}$, switching to pure $\text{ADD}$) allowed models $7\times$ smaller ($d_{\text{embed}} = 24$) to master modular addition.
  • Permutation Groups: Jointly learning full permutation operations ($\text{OP}$) with top/bottom block subtasks ($\text{OP\_TOP}$, $\text{OP\_BOTTOM}$) achieved a $5\times$ to $6\times$ reduction in the minimum model size needed for convergence.

Limitations and Future Work

  • Synthetic Domain: Experiments are currently limited to synthetic, character-level symbolic reasoning and small algebraic groups. Extending this to natural language, code, or real-world mathematical reasoning remains an open challenge.
  • Theoretical Mechanism: While empirical PCA and sublayer norm metrics show clear structural differences, a rigorous mathematical theory explaining exactly how joint gradient dynamics bypass local minima is not yet developed.
  • Non-Group Auxiliary Tasks: Several operations that aided learning (such as $\text{MED}$ and sub-block projections) do not form algebraic groups, leaving room for a broader formal taxonomy of what constitutes a "synergistic" auxiliary task.

Summary updated

Abstract

The ability of a model to learn a task depends critically on both task difficulty and model size. We study this relationship for compositional operations, focusing on nested ListOps and extending beyond arithmetic to permutation groups, with the goal of determining how task difficulty sets the minimum parameter requirements for small transformer models. We vary task difficulty by introducing new operations or combinations of operations into the training data. We find that while operations such as modular addition or permutation group products are difficult in isolation, joint training with other operations, including product, maximum, or auxiliary sub-block operations, reduces the parameter requirements by factors of 2 to 7. Analysis of learned embeddings using PCA reveals that when joint training helps it is usually accompanied by an increase in highly regular structures in the embedding of inputs. These results suggest that joint training leads to qualitatively different learning trajectories than learning operations in isolation, with shared number representations supporting difficult tasks such as addition. Our findings further demonstrate the importance of training curriculum on the emergence of abilities in language models.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Triplet ListOps, held-out SUM test setMAX+MED+SUM joint trainingaccuracy50%split: test · model-size=10× smaller than SUM-only models · training-mix=900 mixed triplets (300 per operation) · evaluation-subset=100 held-out SUM triplets
Source quote
L740: The red and blue boxes beneath the main plot display the average PCA embedding representations at selected regions; red corresponds to high-accuracy models, while blue indicates low-accuracy ones. Models trained on the combined MAX+MED+SUM task develop a discernible structure during training, unlike models trained solely on SUM. Notably, augmenting MAX and MED data with only 300 SUM samples allows the model to achieve 50% accuracy on a held-out 100 SUM sample test set, using a model 10× smaller than those trained on 900 SUM samples alone, which only reach \approx80% accuracy.}
BibTeX
@misc{both2025small,
  author = {Csaba Both and Benjamin Hoover and Hendrik Strobelt and Dmitry Krotov and Daniel Karl I. Weidele and Mauro Martino and Nima Dehmamy},
  title = {{Small Models, Smarter Learning: The Power of Joint Task Training}},
  year = {2025},
  eprint = {2505.18369},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.18369},
}
Figure