Multi-Task Inference: Can Large Language Models Follow Multiple Instructions at Once?

Guijin Son, Sangwon Baek, Sangdae Nam, Ilgyun Jeong, Seungone Kim

Abstract

Large language models (LLMs) are typically prompted to follow a single instruction per inference call. In this work, we analyze whether LLMs also hold the capability to handle multiple instructions simultaneously, denoted as Multi-Task Inference. For this purpose, we introduce the MTI Bench (Multi-Task Inference Benchmark), a comprehensive evaluation benchmark encompassing 5,000 instances across 25 tasks. Each task in the MTI Bench involves 2 to 3 sub-tasks. As expected, we first demonstrate that Multi-Task Inference reduces the total inference time by × 1.46 times in average since it does not require multiple inference calls. Interestingly, contrary to the expectation that LLMs would perform better when tasks are divided, we find that state-of-the-art LLMs, such as Llama-2-Chat-70B and GPT-4, show up to 7.3% and 12.4% improved performance with Multi-Task Inference compared to Single-Task Inference on the MTI Bench.

Introduction

Standard LLM workflows typically follow a "one instruction per call" paradigm. For complex workflows—such as summarizing a text, translating it, and then extracting keywords—users usually make three separate API calls. This sequential approach is inefficient in terms of latency and cost.

Researchers have recently introduced Multi-Task Inference (MTI), a prompting strategy where an LLM handles multiple instructions within a single inference call. Surprisingly, for state-of-the-art models like GPT-4, this approach doesn't just provide a ~1.46x speedup—it actually increases accuracy by up to 12.4% compared to solving tasks one by one. This suggests that "cramming" multiple sub-tasks into one prompt does not necessarily lead to cognitive overload; instead, the model may leverage the holistic context to perform better.

Defining Multi-Task Inference

To evaluate the effectiveness of MTI, the researchers compared it against two common baselines:

  1. Single-Task Inference (STI): Addressing sub-tasks sequentially in separate calls.
  2. Batch Prompting: Processing multiple instances of the same task simultaneously (e.g., translating five different sentences in one go).
Comparison of Single-Task Inference, Batch Prompting, and Multi-Task Inference strategies.

While Batch Prompting is faster (offering a ~2.1x speedup), it often confuses the model because it mixes unrelated contexts. MTI provides a superior balance, offering significant speedups (1.46x) without the accuracy trade-off—in fact, it often yields an accuracy gain.

The MTI Bench

The core contribution of this work is the MTI BENCH (Multi-Task Inference Benchmark), which consists of 5,000 instances across 25 tasks. Each instance contains 2–3 sub-tasks. The benchmark is structured into two primary subsets to test different reasoning capabilities:

  • MULTI-STEP: Tasks with sequential dependencies, where the answer to a subsequent task depends on the output of a previous one.
  • MULTI-PART: Contextually related but independent sub-tasks.
Examples of Multi-Step and Multi-Part task structures in the MTI Bench.

The benchmark was constructed by combining existing high-quality datasets like Quoref, SNLI, MMLU, MATH, and CaseHold, alongside a specialized subset for free-form generation tasks like translation and summarization.

Key Insights: The "Look-Ahead" Effect

The most fascinating finding is the "Look-Ahead" Effect. Strong models appear to use future instructions as "clues" for the current task. For example, if Instruction #2 asks the model to "multiply the answer from Instruction #1 by 2," the model realizes Instruction #1 must result in a number. This holistic understanding helps the model avoid formatting errors or irrelevant text in its initial steps.

However, this performance boost is an emergent property of scale. It is only observed in "strong" models like GPT-4 and Llama-2-70B. Smaller models (7B or 13B parameters) still struggle with the increased complexity and generally perform better when tasks are broken down into single-task calls.

Results and Efficiency

  • Accuracy Gains: GPT-4 showed a 12.4% improvement in final accuracy on MTI BENCH compared to single-tasking. Llama-2-Chat-70B saw a 7.3% improvement.
  • Efficiency: MTI reduced total inference time by an average of 1.46x by eliminating the overhead of multiple calls and redundant context processing.
  • Task Type Performance: Models generally performed better on the MULTI-PART subset than the MULTI-STEP subset, suggesting that managing sequential dependencies remains a significant reasoning hurdle.

Limitations and Future Outlook

While promising, MTI has limitations. The benchmark is predominantly English-centric, and the "look-ahead" effect's translation to less structured, real-world user prompts is still being explored. Furthermore, current LLMs are primarily trained on single-instruction data. Fine-tuning models specifically on multi-task data could further unlock these latent capabilities, potentially making MTI the standard for complex LLM workflows.

Summary updated

BibTeX
@inproceedings{son2024multi,
  author = {Guijin Son and Sangwon Baek and Sangdae Nam and Ilgyun Jeong and Seungone Kim},
  title = {{Multi-Task Inference: Can Large Language Models Follow Multiple Instructions at Once?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=uxNEOjT9vK},
}
Figure