Skip to content

GLiNER2 vs GLiClass

Not a bake-off between two classifiers: GLiNER2 is a schema-conditioned encoder with a native label-description slot and a span head; GLiClass is a label-relevance classifier with neither. They see the question differently and need different payloads.

Metatext decisions

Three hand-written workflows (support tickets, security incidents, agent traces), seven questions, about 123 judgments per model. Small, so treat a ±0.1 difference as a tie; every question has a majority baseline the model has to beat.

MetricGLiNER2 largeGLiClass large v3.0
Decision accuracy0.7160.642
Questions over baseline6/75/7
ECE raw → held-out fitted0.2610.250
p50 per case627 ms977 ms
Extraction F10.968n/a
Per-question accuracy
TaskQuestionTypeBaselineGLiNER2 largeGLiClass large v3.0
agent_tracesoutcomechoice0.3570.5710.429
agent_tracesneeds_humannoul0.7140.6430.714
customer_servicedepartmentchoice0.4000.8500.850
customer_servicerefund_requestednoul0.7000.9500.950
customer_servicefrustrationscore0.5000.9500.200
security_incidentsseveritychoice0.3120.4380.625
security_incidentsactively_exploitednoul0.6880.8120.750

typed-decisions

LAYA's public benchmark: four workflows × 100 JSON states × five typed questions = 2,000 decisions. Synthetic; gold is a teacher distribution and the label is its argmax. Large enough to carry an ordering.

MetricGLiNER2 largeGLiClass large v3.0
Decision accuracy0.4860.446
Questions over baseline9/207/20
ECE raw → held-out fitted0.300 → 0.0290.315 → 0.093
p50 per case3.8 s977 ms
Per-question accuracy
TaskQuestionTypeBaselineGLiNER2 largeGLiClass large v3.0
td_agent_trace_observabilityactionchoice0.3600.3100.310
td_agent_trace_observabilityneeds_reviewnoul0.5500.4500.560
td_agent_trace_observabilityoutcomechoice0.5000.2500.510
td_agent_trace_observabilityriskscore0.3400.4600.340
td_agent_trace_observabilityurgencyscore0.3700.3000.350
td_customer_serviceactionchoice0.5200.4700.240
td_customer_servicecategorychoice0.3800.7400.730
td_customer_servicechurn_riskscore0.4700.6600.560
td_customer_serviceneeds_humannoul0.6700.7000.330
td_customer_serviceurgencyscore0.4200.6100.740
td_invoice_processingdiscrepancy_severityscore0.4700.1600.150
td_invoice_processingdispositionchoice0.4500.4500.450
td_invoice_processingduplicatenoul0.8900.1100.110
td_invoice_processingmatches_ordernoul0.5400.6200.540
td_invoice_processingurgencyscore0.5100.3200.690
td_security_incidentscredential_compromisenoul0.5500.5800.400
td_security_incidentsdispositionchoice0.7400.7400.330
td_security_incidentsseverityscore0.4900.5100.510
td_security_incidentstrue_positivenoul0.7300.7300.680
td_security_incidentsurgencyscore0.5000.5400.390

Verdict

GLiNER2 on decisions (0.716 vs 0.642), on Score (which GLiClass cannot answer), on extraction (0.968 F1 vs none). GLiClass base is the better-calibrated and faster option at the base size; GLiClass edge is the latency floor of either family.

Related