ramitha2002 commited on
Commit
03ac729
·
verified ·
1 Parent(s): 6012ddf

Publish adaptive inference controller and model card

Browse files
Files changed (2) hide show
  1. README.md +35 -0
  2. controller.joblib +3 -0
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: scikit-learn
3
+ pipeline_tag: text-classification
4
+ tags:
5
+ - cnn-dailymail
6
+ - text-summarization
7
+ - tf-idf
8
+ - logistic-regression
9
+ - adaptive-inference
10
+ ---
11
+
12
+ # Adaptive Inference Controller
13
+
14
+ A fitted controller for selecting an inference depth for article-to-summary generation with an early-exit-capable Llama 3 8B model. The language-model weights remain frozen; this repository contains the separate controller artifact.
15
+
16
+ ## Method
17
+
18
+ The controller uses visible article text and a candidate-depth token for depths 24, 28, and 32. Word TF-IDF features use unigrams and bigrams, and character TF-IDF features use `char_wb` 3–5-grams. The features feed balanced logistic regression. The selected regularization setting is C = 1.0, and the selected routing probability threshold is 0.5. At inference, the controller chooses a fixed depth for the article; routing falls back to depth 32 when no shallower candidate meets the threshold.
19
+
20
+ ## Held-out controller metrics
21
+
22
+ These metrics measure prediction of the binary quality labels at a classification threshold of 0.5.
23
+
24
+ | Metric | Score |
25
+ |---|---:|
26
+ | Accuracy | 75.73% |
27
+ | Precision | 78.01% |
28
+ | Recall | 75.25% |
29
+ | F1 | 76.61% |
30
+
31
+ The label task uses generated summaries and reference highlights from CNN/DailyMail. The controller receives article text and candidate depth as features.
32
+
33
+ ## Artifact
34
+
35
+ `controller.joblib` is the fitted scikit-learn controller pipeline.
controller.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8113a8e7cc01d0b60eaebb2239d5950a020de0ac1d488f5c85c2d41d15a19043
3
+ size 705861