LaSQuE: Improved Zero-Shot Classification from Explanations Through Quantifier Modeling and Curriculum Learning

Sayan Ghosh, Rakesh R. Menon, Shashank Srivastava

Abstract

A hallmark of human intelligence is the ability to learn new concepts purely from language. Several recent approaches have explored training machine learning models via natural language supervision. However, these approaches fall short in leveraging linguistic quantifiers (such as ‘always’ or ‘rarely’) and mimicking humans in compositionally learning complex tasks. Here, we present LaSQuE, a method that can learn zero-shot classifiers from language explanations by using three new strategies - (1) modeling the semantics of linguistic quantifiers in explanations (including exploiting ordinal strength relationships, such as ‘always’ > ‘likely’), (2) aggregating information from multiple explanations using an attention-based mechanism, and (3) model training via curriculum learning. With these strategies, LaSQuE outperforms prior work, showing an absolute gain of up to 7% in generalizing to unseen real-world classification tasks.

Introduction

Humans possess the remarkable ability to learn new tasks simply by reading rules or explanations. In the field of Natural Language Processing (NLP), "learning from language" is an active area of research, yet current models often struggle with two critical aspects of human-like reasoning: quantifier sensitivity and compositional complexity.

Overview of the LaSQuE framework and its core strategies.

Most models treat linguistic quantifiers like "usually" or "rarely" as absolute rules, failing to capture the inherent uncertainty and exceptions they imply. Furthermore, while humans naturally learn simple concepts before tackling complex ones, models often falter when faced with structurally difficult explanations involving negations or nested conjunctions. LaSQuE (Learning Strategies For Quantified Explanations) addresses these gaps by explicitly modeling quantifier strength and employing a structured curriculum for training.

Methodology

LaSQuE introduces three primary innovations to improve zero-shot classification from explanations:

  1. Quantifier Modeling: The model explicitly represents the semantics of quantifiers as probability values ($p_{quant}$). The authors explored three ways to learn these: initializing from cognitive science literature, learning from scratch, or using ordinal ranking (e.g., enforcing that "always" must be stronger than "likely").
  2. Attention-Based Aggregation: Rather than treating all explanations as equally relevant, LaSQuE uses an attention mechanism to identify the most salient explanation for a given input. This allows the model to prioritize clear, direct rules over more complex or less relevant ones.
  3. Curriculum Learning: Training follows a "syllabus" that increases in difficulty across three axes: binary vs. multiclass tasks, the presence of negations, and structural complexity (simple vs. nested conjunctions).
Technical architecture of the LaSQuE model.

Experimental Results

The framework was evaluated on the CLUES benchmark, which includes both synthetic tasks (designed to test specific linguistic features) and real-world classification tasks with crowdsourced human explanations.

Performance Gains

LaSQuE achieved a 5.2% absolute improvement over the previous state-of-the-art (ExEnt) on synthetic tasks and a 7% absolute gain on the CLUES-Real benchmark. A key finding was that pre-training on synthetic quantified data before fine-tuning on real-world tasks (a "syn2real" curriculum) significantly improved generalization, especially when human explanations were scarce.

Key Insights

  • Ordinality is Key: Enforcing ordinal relationships between quantifiers (e.g., "always > likely") proved more robust than learning exact numerical probabilities from scratch.
  • Attention Dynamics: Qualitative analysis revealed that the attention mechanism naturally favors certain quantifiers (like "definitely") and simpler structural explanations.
  • The Negation Hurdle: Curriculum learning provided its most significant boost—a 17% gain—when helping the model transition from tasks without negations to those with complex label negations.
  • Inductive Bias vs. Scale: Despite having only 125 million parameters, LaSQuE outperformed much larger models like T0-3B and FLAN-T5-XXL (11B parameters), suggesting that specialized inductive biases for reasoning can be more effective than raw model scale.

Conclusion and Future Work

LaSQuE demonstrates that explicit quantifier modeling and curriculum learning can significantly enhance a model's ability to learn from natural language explanations. While the current model assumes a single quantifier per explanation and domain-invariant quantifier meanings, it sets a strong foundation for future work. Next steps include handling multiple quantifiers within a single sentence, exploring context-dependent quantifier semantics, and improving the automated extraction of logical structures from raw text.

Summary updated

BibTeX
@inproceedings{ghosh2023lasque,
  author = {Sayan Ghosh and Rakesh R. Menon and Shashank Srivastava},
  title = {{LaSQuE: Improved Zero-Shot Classification from Explanations Through Quantifier Modeling and Curriculum Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  url = {https://openreview.net/forum?id=pEK0AXMZjt},
}
Figure