TART: A plug-and-play Transformer module for task-agnostic reasoning

K. Bhatia, A. Narayan, Chris De Sa, Christopher Ré
2/12/2026

No official code found. Best implementation: HazyResearch/TART (202 stars, Apache-2.0, last commit 2023-06-22).

Abstract

Large language models (LLMs) exhibit in-context learning abilities which enable the same model to perform several tasks without any task-specific training. In contrast, traditional adaptation approaches, such as fine-tuning, modify the underlying models for each specific task. In-context learning, however, consistently underperforms task-specific tuning approaches even when presented with the same examples. While most existing approaches (e.g., prompt engineering) focus on the LLM's learned representations to patch this performance gap, our analysis actually reveal that LLM representations contain sufficient information to make good predictions. As such, we focus on the LLM's reasoning abilities and demonstrate that this performance gap exists due to their inability to perform simple probabilistic reasoning tasks. This raises an intriguing question: Are LLMs actually capable of learning how to reason in a task-agnostic manner? We answer this in the affirmative and propose TART which generically improves an LLM's reasoning abilities using a synthetically trained Transformer-based reasoning module. TART trains this reasoning module in a task-agnostic manner using only synthetic logistic regression tasks and composes it with an arbitrary real-world pre-trained model without any additional training. With a single inference module, TART improves performance across different model families (GPT-Neo, Pythia, BLOOM), model sizes (100M - 6B), tasks (14 NLP binary classification tasks), and even across different modalities (audio and vision). Additionally, on the RAFT Benchmark, TART improves GPT-Neo (125M)'s performance such that it outperforms BLOOM (176B), and is within 4% of GPT-3 (175B). Our code and models are available at https://github.com/HazyResearch/TART .

View on arXivView PDF

Code Implementations(1)

HazyResearch/TARTCommunity68%
Apache-2.0

TART: A plug-and-play Transformer module for task-agnostic reasoning

20215Shell, PythonJun 12, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{bhatia2026tart,
  title  = {TART: A plug-and-play Transformer module for task-agnostic reasoning},
  author = {K. Bhatia and A. Narayan and Chris De Sa and Christopher Ré},
  year   = {2026},
  eprint = {2306.07536},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.07536},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.07536.svg)](https://codeofpaper.com/paper/2306.07536)

Discussion