GLiClass: Generalist Lightweight Model for Sequence Classification Tasks
Ihor Stepanov, Mykhailo Shtopko, Dmytro Vodianytskyi, Oleksandr Lukashov, Alexander Yavorskyi, Mykyta Yaroshenko

TL;DR
GLiClass introduces a versatile, efficient, and accurate lightweight model for sequence classification that excels in zero-shot and few-shot scenarios, addressing limitations of generative LLMs and cross-encoders.
Contribution
The paper presents GLiClass, a novel adaptation of the GLiNER architecture for sequence classification, combining high efficiency with strong zero-shot and few-shot capabilities.
Findings
Achieves accuracy comparable to embedding-based methods
Maintains efficiency in large label set scenarios
Effective in data-sparse and human feedback settings
Abstract
Classification is one of the most widespread tasks in AI applications, serving often as the first step in filtering, sorting, and categorizing data. Since modern AI systems must handle large volumes of input data and early pipeline stages can propagate errors downstream, achieving high efficiency and accuracy is critical. Moreover, classification requirements can change dynamically based on user needs, necessitating models with strong zero-shot capabilities. While generative LLMs have become mainstream for zero-shot classification due to their versatility, they suffer from inconsistent instruction following and computational inefficiency. Cross-encoders, commonly used as rerankers in RAG pipelines, face a different bottleneck: they must process text-label pairs sequentially, significantly reducing efficiency with large label sets. Embedding-based approaches offer good efficiency but…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗knowledgator/gliclass-instruct-large-v1.0model· 7.5k dl· ♡ 407.5k dl♡ 40
- 🤗knowledgator/gliclass-modern-base-v3.0model· 786 dl· ♡ 5786 dl♡ 5
- 🤗knowledgator/gliclass-instruct-edge-v1.0model· 1.1k dl· ♡ 51.1k dl♡ 5
- 🤗knowledgator/gliclass-small-v1.0-initmodel· 11 dl· ♡ 511 dl♡ 5
- 🤗knowledgator/gliclass-base-v1.0-initmodel· 7 dl· ♡ 27 dl♡ 2
- 🤗knowledgator/gliclass-large-v1.0-initmodel· 10 dl· ♡ 1410 dl♡ 14
- 🤗knowledgator/gliclass-small-v1.0-lwmodel· 1 dl1 dl
- 🤗knowledgator/gliclass-base-v1.0-lwmodel· 18 dl· ♡ 218 dl♡ 2
- 🤗knowledgator/gliclass-large-v1.0-lwmodel· 9 dl· ♡ 39 dl♡ 3
- 🤗knowledgator/gliclass-small-v1.0model· 841 dl· ♡ 2841 dl♡ 2
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDomain Adaptation and Few-Shot Learning · Text and Document Classification Technologies · Machine Learning and Data Classification
