MIL-BERT: Classification of Arbitrarily Large Text with Performance and Explanatory Guarantees

John Cadigan, Dayne Freitag, Eric Yeh
8/21/2026
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Many text classification decisions are viable based on constituent excerpts alone. Taking inspiration from the field of multiple instance learning, we present an algorithm for training a neural network to classify text by selecting such excerpts.

Show full abstract

We show that our approach is also scalable with demonstrated learning against samples with nearly 1M tokens. We evaluate our methods on 7 datasets with emphasis on long-textual collections that far exceed the encoding limit of our base model. We present state-of-the-art results with this algorithm on 3 datasets: identification of political bias in news outlets, trigger warnings in long stories, and demographic characteristics of authors in tweet collections. Furthermore, the model trained on weakly-labeled collections of text (bags) generalizes to accurately classify constituent, smaller instances. Besides a new state-of-the-art for these problems, this approach is one of the few neural methods to excel in these datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cadigan2026milbert,
  title  = {MIL-BERT: Classification of Arbitrarily Large Text with Performance and Explanatory Guarantees},
  author = {John Cadigan and Dayne Freitag and Eric Yeh},
  year   = {2026},
  eprint = {2608.20636},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.20636v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.20636.svg)](https://codeofpaper.com/paper/2608.20636)

Discussion