Task-Level Thinking Steps Help Large Language Models for Challenging Classification Task

Chunhui Du, Jidong Tian, Haoran Liao, Jindou Chen, Hao He, Yaohui Jin

Introduction: The Fragility of In-Context Learning

In-context learning (ICL) allows Large Language Models (LLMs) to perform tasks by observing a few demonstrations. However, this approach is notoriously fragile; performance often fluctuates based on example selection, ordering, or label distribution—a phenomenon known as demonstration bias. While Chain-of-Thought (CoT) prompting improves reasoning, it typically functions at the instance level, explaining logic for specific cases. For complex classification tasks like medical relation extraction, instance-level CoT can lead to hallucinations or confusion between similar classes. Researchers identify a critical need for a high-level "task-level" strategy that defines the overall rules and pitfalls of a specific task.

The Progressive Revision Framework (PRTS)

To address these limitations, the authors propose the Progressive Revision Framework (PRTS). This method moves beyond simple examples by employing a teacher-student agent architecture to develop a comprehensive task manual.

The framework operates through an iterative loop:

  1. The Teacher Agent: Using a high-capability model like GPT-4, the Teacher generates and refines "task-level thinking steps." It analyzes "hard demonstrations"—instances where the model initially failed—to update general instructions.
  2. The Student Agent: The Student attempts the task using the Teacher's thinking steps.
  3. Iterative Refinement: If the Student fails, the Teacher revises the steps (e.g., adding specific rules to distinguish between confusing classes).
  4. Checking Mechanism: A validation step ensures that new revisions do not degrade performance on previously successful examples, preventing the Teacher from introducing oversimplified "shortcuts."
The iterative Teacher-Student loop for refining task-level thinking steps using hard demonstrations.

Unlike standard CoT, these "thinking steps" are global instructions applied to every future input, providing a robust strategic foundation for the model.

Experimental Setup and Datasets

The PRTS framework was evaluated across six challenging classification datasets:

  • Subjective Text: Stance16 (stance detection) and Emotion20 (emotion recognition).
  • Fine-grained Classification: 20news (20 similar news topics).
  • Medical Domain: i2b2 (clinical relations), ChemProt (chemical-protein), and DDI (drug-drug interactions).

Key Insights: Task-Level vs. Instance-Level Reasoning

The core innovation is the shift from instance-specific logic to general task rules. By defining a global strategy, the model becomes less susceptible to the quirks of specific few-shot demonstrations. This approach effectively "debiases" the model, preventing it from over-relying on the specific labels seen in the prompt.

A key finding is that the "Teacher" must be highly capable. While models like GPT-3.5 can follow the resulting steps, only a model like GPT-4 possesses the analytical depth required to diagnose errors and produce meaningful strategic revisions.

Results and Performance Gains

PRTS consistently outperformed standard prompting and Auto-CoT across all tested scenarios. In zero-shot settings, PRTS achieved an average F1-score of 62.67%, compared to 46.78% for standard "Let's think step by step" prompting. In few-shot-CoT settings, it surpassed state-of-the-art baselines by an average of 20.64%.

Performance improvement (F1-score) over iterations on Stance16 and i2b2 datasets, highlighting the benefit of the checking mechanism.

The framework also demonstrated remarkable robustness. Even when provided with intentionally biased or unbalanced demonstrations, the task-level thinking steps maintained high performance levels where other methods failed.

Conclusion and Future Directions

While PRTS shows significant promise for classification, its applicability to generative tasks like summarization remains an open question. Additionally, the increased token count from detailed thinking steps may impact inference costs and latency. Future work will explore automated selection of "hard demonstrations" and the use of unlabeled data—leveraging model uncertainty to identify informative failures for the Teacher to analyze.

Summary updated

BibTeX
@inproceedings{du2023task,
  author = {Chunhui Du and Jidong Tian and Haoran Liao and Jindou Chen and Hao He and Yaohui Jin},
  title = {{Task-Level Thinking Steps Help Large Language Models for Challenging Classification Task}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.150},
}
Figure