Comp-H
Extractive ("hard") context compressor from UniCoRn: A Benchmark for Unified Compression and Reranking. Given a query and a document, it scores the document for relevance and prunes it to the query-relevant spans in a single forward pass, so reranking and compression share one encoder.
| Base model | BidirLM/BidirLM-0.6B-Base |
| Architecture | CompressionEncoder (bidirectional encoder + token-classification pruning head) |
| Hidden size / layers | 1024 / 28 |
| Precision | bfloat16 |
| Output | kept-token mask over the document, plus a reranking score |
Compression strength is controlled at inference time by a threshold on the per-token keep probability: higher thresholds prune more aggressively. The benchmark sweeps this threshold to trace the compression/quality frontier.
Note on loading
config.json declares model_type: bidirlm, which is not a built-in
transformers architecture. Loading requires the BidirLM modeling code to be
importable; it is not bundled in this repository.
Related
unicorn-rerank/unicorn-comp-sโ the soft (abstractive) counterpart, which reuses this compressorunicorn-rerank/unicorn-benchmarkโ the evaluation data
Citation
UniCoRn is published in Findings of EACL 2027. If you use this model, please cite:
@misc{byun2026unicornbenchmarkunifiedcompression,
title={UniCoRn: A Benchmark for Unified Compression and Reranking},
author={Grace Byun and Clifton Poth and Carlos Lassance and Nils Reimers},
year={2026},
eprint={2611.35302},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2611.35302},
}
- Downloads last month
- 26