jimnoneill commited on
Commit
1f6e582
·
verified ·
1 Parent(s): 61c3012

Release 1.1.0: MIT-clean pipeline (pdfplumber + pypdfium2)

Browse files

Head retrained on features re-extracted with pdfplumber (text/structure) and pypdfium2 (rendering), replacing AGPL PyMuPDF. Held-out 89.2 percent, out-of-fold 88.0 percent.

Files changed (3) hide show
  1. README.md +23 -22
  2. config.json +10 -6
  3. models/poster_sentry_head.npz +1 -1
README.md CHANGED
@@ -35,7 +35,8 @@ Developed by the [**FAIR Data Innovations Hub**](https://fairdataihub.org/) at t
35
 
36
  | Version | Date | Notes |
37
  |---------|------|-------|
38
- | **1.0.0** | 2026-08-18 | Head trained on the human-validated corpus: 3,381 documents labeled by a three-reviewer survey (Krippendorff's alpha 0.79) with blinded adjudication of the 439 contested documents. This is the model reported in the PosterSentry paper. |
 
39
 
40
  Earlier unversioned weights (April 2026) were trained on heuristically labeled data and are superseded; they remain available in the repository history.
41
 
@@ -86,14 +87,14 @@ Evaluated against human-validated labels (three-reviewer survey with blinded adj
86
 
87
  | Metric | Value |
88
  |--------|-------|
89
- | **Held-out accuracy** (508 documents) | **90.2%** (95% CI 87.3 to 92.5) |
90
- | Macro F1 (held-out) | 0.902 |
91
- | Precision / Recall / F1 (poster) | 0.895 / 0.909 / 0.902 |
92
- | Precision / Recall / F1 (non-poster) | 0.908 / 0.894 / 0.901 |
93
- | Out-of-fold accuracy (all 3,381 documents, 5-fold) | 89.0% (95% CI 87.9 to 90.0) |
94
- | Inference speed | ~300 docs/sec (CPU) |
95
 
96
- Errors concentrate where the human panel itself divided: out-of-fold agreement is 91.8% on documents the panel rated unanimously and 71.4% on documents decided two to one.
97
 
98
  ### Top Features by Importance
99
 
@@ -101,18 +102,18 @@ Standardized logistic regression coefficients of the trained head (positive push
101
 
102
  | Rank | Feature | Coefficient | Signal |
103
  |------|---------|------------|--------|
104
- | 1 | `page_width_pt` | +2.65 | Posters are physically wide |
105
- | 2 | `img_width` | +2.65 | Large rendered width |
106
- | 3 | `edge_density` | +2.32 | Visually busy layouts |
107
- | 4 | `color_diversity` | +2.14 | Posters are visually rich |
108
- | 5 | `avg_font_size` | -1.94 | Papers use body text sizes |
109
- | 6 | `size_per_page_kb` | +1.89 | Dense, high-resolution single pages |
110
- | 7 | `page_count` | -1.44 | More pages pushes away from poster |
111
- | 8 | `file_size_kb` | -1.21 | Multi-page documents are bigger overall |
112
- | 9 | `white_space_ratio` | -1.19 | Sparse pages are not posters |
113
- | 10 | `text_block_count` | +1.17 | Multi-column poster layouts |
114
-
115
- Structural and visual cues carry most of the decision; four embedding dimensions appear among the fifteen largest coefficients.
116
 
117
  ## Training Data
118
 
@@ -185,7 +186,7 @@ Training completes in ~40 minutes on CPU (PDF rendering is the bottleneck, not t
185
  - **CPU**: Any modern CPU (no GPU needed)
186
  - **RAM**: ≥4GB
187
  - **Python**: ≥3.10
188
- - **Dependencies**: numpy, model2vec, scikit-learn, PyMuPDF, Pillow
189
 
190
  ## Citation
191
 
@@ -194,7 +195,7 @@ Training completes in ~40 minutes on CPU (PDF rendering is the bottleneck, not t
194
  title = {PosterSentry: Multimodal Scientific Poster Classifier},
195
  author = {O'Neill, Jamey and Portillo, Dorian and Zeinali, Nahid and Soundarajan, Sanjay and Blake, Gerard and Sarin, Parth and Buttrick, Adam and Patel, Bhavesh},
196
  year = {2026},
197
- version = {1.0.0},
198
  url = {https://huggingface.co/fairdataihub/poster-sentry},
199
  note = {Part of the posters.science initiative}
200
  }
 
35
 
36
  | Version | Date | Notes |
37
  |---------|------|-------|
38
+ | **1.1.0** | 2026-08-28 | Feature extraction moved off the AGPL-licensed PyMuPDF to pdfplumber (text and structure) and pypdfium2 (page rendering), both permissively licensed, so the whole stack is MIT-compatible. The head was retrained on the re-extracted features; held-out accuracy is 89.2%. |
39
+ | **1.0.0** | 2026-08-18 | Head trained on the human-validated corpus: 3,381 documents labeled by a three-reviewer survey (Krippendorff's alpha 0.79) with blinded adjudication of the 439 contested documents. |
40
 
41
  Earlier unversioned weights (April 2026) were trained on heuristically labeled data and are superseded; they remain available in the repository history.
42
 
 
87
 
88
  | Metric | Value |
89
  |--------|-------|
90
+ | **Held-out accuracy** (508 documents) | **89.2%** (95% CI 86.2 to 91.6) |
91
+ | Macro F1 (held-out) | 0.892 |
92
+ | Precision / Recall / F1 (poster) | 0.887 / 0.897 / 0.892 |
93
+ | Precision / Recall / F1 (non-poster) | 0.897 / 0.886 / 0.892 |
94
+ | Out-of-fold accuracy (all 3,381 documents, 5-fold) | 88.0% |
95
+ | Classifier speed | under one second per file on a CPU (PDF parsing is the bottleneck) |
96
 
97
+ Errors concentrate where the human panel itself divided: out-of-fold agreement is 90.3% on documents the panel rated unanimously and 73.2% on documents decided two to one.
98
 
99
  ### Top Features by Importance
100
 
 
102
 
103
  | Rank | Feature | Coefficient | Signal |
104
  |------|---------|------------|--------|
105
+ | 1 | `line_count` | +2.80 | Posters pack many short text lines |
106
+ | 2 | `edge_density` | +2.61 | Visually busy layouts |
107
+ | 3 | `page_width_pt` | +2.22 | Posters are physically wide |
108
+ | 4 | `img_width` | +2.16 | Large rendered width |
109
+ | 5 | `size_per_page_kb` | +1.82 | Dense, high-resolution single pages |
110
+ | 6 | `color_diversity` | +1.70 | Posters are visually rich |
111
+ | 7 | `page_count` | -1.64 | More pages pushes away from poster |
112
+ | 8 | `font_count` | +1.52 | Many fonts across poster panels |
113
+ | 9 | `is_landscape` | +1.26 | Many posters are landscape |
114
+ | 10 | `file_size_kb` | -1.25 | Multi-page documents are bigger overall |
115
+
116
+ Structural and visual cues carry most of the decision; three embedding dimensions appear among the fifteen largest coefficients.
117
 
118
  ## Training Data
119
 
 
186
  - **CPU**: Any modern CPU (no GPU needed)
187
  - **RAM**: ≥4GB
188
  - **Python**: ≥3.10
189
+ - **Dependencies**: numpy, model2vec, scikit-learn, pdfplumber, pypdfium2, Pillow
190
 
191
  ## Citation
192
 
 
195
  title = {PosterSentry: Multimodal Scientific Poster Classifier},
196
  author = {O'Neill, Jamey and Portillo, Dorian and Zeinali, Nahid and Soundarajan, Sanjay and Blake, Gerard and Sarin, Parth and Buttrick, Adam and Patel, Bhavesh},
197
  year = {2026},
198
+ version = {1.1.0},
199
  url = {https://huggingface.co/fairdataihub/poster-sentry},
200
  note = {Part of the posters.science initiative}
201
  }
config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "model_type": "poster-sentry",
3
- "version": "1.0.0",
4
  "architecture": "logistic_regression_multimodal",
5
  "embedding_backbone": "minishlab/potion-base-32M",
6
  "embedding_dim": 512,
@@ -15,10 +15,14 @@
15
  "head_file": "models/poster_sentry_head.npz",
16
  "scaler": "StandardScaler",
17
  "classifier": "LogisticRegression",
18
- "accuracy": 0.9016,
19
- "accuracy_ci95": [0.8726, 0.9245],
20
- "oof_accuracy": 0.8897,
 
 
 
21
  "training_samples": 3381,
22
  "label_provenance": "human-validated (three-reviewer survey with blinded adjudication)",
23
- "library_name": "model2vec"
24
- }
 
 
1
  {
2
  "model_type": "poster-sentry",
3
+ "version": "1.1.0",
4
  "architecture": "logistic_regression_multimodal",
5
  "embedding_backbone": "minishlab/potion-base-32M",
6
  "embedding_dim": 512,
 
15
  "head_file": "models/poster_sentry_head.npz",
16
  "scaler": "StandardScaler",
17
  "classifier": "LogisticRegression",
18
+ "accuracy": 0.8917,
19
+ "accuracy_ci95": [
20
+ 0.8622,
21
+ 0.9161
22
+ ],
23
+ "oof_accuracy": 0.8797,
24
  "training_samples": 3381,
25
  "label_provenance": "human-validated (three-reviewer survey with blinded adjudication)",
26
+ "library_name": "model2vec",
27
+ "pdf_backend": "pdfplumber + pypdfium2"
28
+ }
models/poster_sentry_head.npz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2d73da8cbcc05819144c250fc700f1cb44034f26e82024eea8d976505f177bc0
3
  size 10004
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26b89dca324e939ecf57e6aeae06336bcc0fd43e947b6c9955acc3be2fda9c9c
3
  size 10004