LukeFP commited on
Commit
1c73970
·
verified ·
1 Parent(s): 3d85842

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +118 -3
README.md CHANGED
@@ -1,6 +1,121 @@
 
1
  ---
2
- language:
3
- - en
 
 
 
 
4
  ---
5
 
6
- Given Text + Abstract in Gemma300 embedding --> return PhySH Discipline and top level concept
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
  ---
3
+ language: ["en"]
4
+ library_name: "pytorch"
5
+ pipeline_tag: "text-classification"
6
+ base_model: "google/embeddinggemma-300m"
7
+ tags: ["multi-label-classification", "hierarchical-classification", "physics", "physh", "transfer-learning"]
8
+ metrics: ["f1"]
9
  ---
10
 
11
+
12
+
13
+ # PhySH Topic Supervised Classifier
14
+
15
+ A hierarchical multi-label classifier that assigns APS Physics Subject Headings (PhySH) to physics papers using their titles and abstracts.
16
+
17
+ ## Model description
18
+
19
+ The model uses frozen [`google/embeddinggemma-300m`](https://huggingface.co/google/embeddinggemma-300m) representations with a two-stage conditioned classifier:
20
+
21
+ 1. **Discipline classifier:** Predicts 18 broad APS disciplines.
22
+ 2. **Concept classifier:** Predicts 186 research-area concepts, conditioned on the discipline probabilities produced by the first stage.
23
+
24
+ This classifier-chain design incorporates the hierarchy between broad disciplines and more specific research concepts.
25
+
26
+ ## Architecture
27
+
28
+ The input is formatted as:
29
+
30
+ ```text
31
+ {title} [SEP] {abstract}
32
+ ```
33
+
34
+ EmbeddingGemma produces a 768-dimensional, L2-normalized representation. The encoder remains frozen during training.
35
+
36
+ ### Frozen encoder
37
+
38
+ ```text
39
+ google/embeddinggemma-300m → 768 dimensions
40
+ ```
41
+
42
+ ### Discipline head
43
+
44
+ ```text
45
+ 768 → 1024 → 512 → 18
46
+ ```
47
+
48
+ ### Concept head
49
+
50
+ ```text
51
+ [768-dimensional embedding; 18 discipline probabilities]
52
+ 786 → 1024 → 512 → 186
53
+ ```
54
+
55
+ Both classification heads use ReLU activations and dropout with `p = 0.3`. Their outputs are independent sigmoid scores rather than a softmax distribution, allowing multiple labels to be assigned to each paper.
56
+
57
+ The two MLP heads contain approximately 2.75 million trainable parameters in total.
58
+
59
+ ## Training
60
+
61
+ * **Objective:** Multi-label binary cross-entropy with logits
62
+ * **Optimizer:** Adam
63
+ * **Encoder:** Frozen
64
+ * **Hardware:** Apple Metal Performance Shaders (MPS)
65
+ * **Optional objective:** Focal loss
66
+ * **Training run:** `20260130_140842`
67
+
68
+ ## Evaluation
69
+
70
+ | Prediction level | Micro-F1 | Macro-F1 |
71
+ | ----------------- | -------: | -------: |
72
+ | Disciplines | 0.799 | 0.683 |
73
+ | Research concepts | 0.641 | 0.423 |
74
+
75
+ The model predicts approximately 2.12 labels per paper, compared with approximately 2.15 labels per paper in the evaluation data.
76
+
77
+ > **Evaluation-data note:** Add the dataset source, number of examples, train/validation/test split sizes, and split methodology before treating these results as independently reproducible.
78
+
79
+ ## Inference
80
+
81
+ Inference applies a configurable threshold to each sigmoid score. If no score passes the threshold, the highest-scoring label is returned as a top-1 fallback.
82
+
83
+ Thresholds should be selected according to the intended precision–recall tradeoff:
84
+
85
+ * **Interactive demo threshold:** `0.35`
86
+ * **Batch-labeling threshold:** `0.85`
87
+
88
+ Try the model in the interactive demo.
89
+
90
+ ## Intended uses
91
+
92
+ This model is intended for:
93
+
94
+ * Organizing and exploring physics literature
95
+ * Suggesting PhySH labels for paper titles and abstracts
96
+ * Supporting search, recommendation, and bibliometric workflows
97
+ * Research on hierarchical multi-label classification
98
+
99
+ Predictions should be treated as label suggestions rather than authoritative APS classifications.
100
+
101
+ ## Limitations
102
+
103
+ * Performance is lower on rare concepts, as reflected by the gap between micro-F1 and macro-F1.
104
+ * Predictions depend on the information available in the title and abstract.
105
+ * The model may not generalize to fields, terminology, or document types that differ substantially from its training data.
106
+ * Output quality and label frequency depend on the selected inference threshold.
107
+ * The frozen encoder limits task-specific representation learning.
108
+
109
+ ## Citation
110
+
111
+ If you use this model, please cite the model repository:
112
+
113
+ ```bibtex
114
+ @misc{physh_topic_supervised_classifier,
115
+ author = {Luke F},
116
+ title = {PhySH Topic Supervised Classifier},
117
+ year = {2026},
118
+ publisher = {Hugging Face},
119
+ url = {https://huggingface.co/LukeFP/physh_topic_supervised_classifier}
120
+ }
121
+ ```