Text Classification
Transformers
Safetensors
English
qwen3_5_text
text-generation
Rodinia
finance
financial-ai
decision-intelligence
typed-decisions
financial-classification
calibrated-probabilities
probability-calibration
risk-assessment
sentiment-analysis
portfolio-analysis
0.8b
sociodynamics-ai
Instructions to use NeoSapian/Rodinia with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeoSapian/Rodinia with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="NeoSapian/Rodinia")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NeoSapian/Rodinia") model = AutoModelForCausalLM.from_pretrained("NeoSapian/Rodinia", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,7 +16,6 @@ tags:
|
|
| 16 |
- risk-assessment
|
| 17 |
- sentiment-analysis
|
| 18 |
- portfolio-analysis
|
| 19 |
-
- qwen
|
| 20 |
- 0.8b
|
| 21 |
- sociodynamics-ai
|
| 22 |
---
|
|
@@ -26,7 +25,7 @@ tags:
|
|
| 26 |
|
| 27 |
**Rodinia** is a specialized financial decision intelligence model developed by **Sociodynamics AI**.
|
| 28 |
|
| 29 |
-
Unlike conventional financial language models designed primarily to generate natural-language responses, Rodinia
|
| 30 |
|
| 31 |
It uses a specialized classification interface built around three decision types:
|
| 32 |
|
|
@@ -34,9 +33,9 @@ It uses a specialized classification interface built around three decision types
|
|
| 34 |
- **Score:** Evaluates a state against predefined ordinal levels.
|
| 35 |
- **Noul:** Produces a binary yes/no decision.
|
| 36 |
|
| 37 |
-
Rodinia uses next-token logits over predefined option tokens to calculate decision probabilities. It does not require free-form natural-language generation to produce its decisions.
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
---
|
| 42 |
|
|
@@ -48,7 +47,7 @@ The model is a full fine-tune of `Qwen/Qwen3.5-0.8B-Base` and uses temperature c
|
|
| 48 |
| Repository | `NeoSapian/Rodinia` |
|
| 49 |
| Developer | Sociodynamics AI |
|
| 50 |
| Model size | 0.8B parameters |
|
| 51 |
-
|
|
| 52 |
| Training | Full fine-tuning |
|
| 53 |
| Domain | Financial decision intelligence |
|
| 54 |
| Model category | Typed decision model |
|
|
@@ -63,84 +62,63 @@ The model is a full fine-tune of `Qwen/Qwen3.5-0.8B-Base` and uses temperature c
|
|
| 63 |
|
| 64 |
Rodinia follows a different approach from generative financial LLMs.
|
| 65 |
|
| 66 |
-
A generative model typically receives a financial prompt and produces a textual explanation. Rodinia instead receives a financial state and
|
| 67 |
-
|
| 68 |
-
It evaluates the state against those questions and returns probability distributions over the available decision options.
|
| 69 |
-
|
| 70 |
-
This makes the output suitable for downstream systems that need structured classification rather than unrestricted text generation.
|
| 71 |
-
|
| 72 |
-
### Core Architecture Flow
|
| 73 |
-
|
| 74 |
-
```text
|
| 75 |
-
Financial State
|
| 76 |
-
|
|
| 77 |
-
v
|
| 78 |
-
Rodinia 0.8B
|
| 79 |
-
|
|
| 80 |
-
v
|
| 81 |
-
Typed Decision Interface
|
| 82 |
-
|
|
| 83 |
-
+---------+---------+
|
| 84 |
-
| | |
|
| 85 |
-
v v v
|
| 86 |
-
Choice Score Noul
|
| 87 |
-
| | |
|
| 88 |
-
+---------+---------+
|
| 89 |
-
|
|
| 90 |
-
v
|
| 91 |
-
Option-token logits
|
| 92 |
-
|
|
| 93 |
-
v
|
| 94 |
-
Softmax calculation
|
| 95 |
-
|
|
| 96 |
-
v
|
| 97 |
-
Probability distributions
|
| 98 |
-
|
|
| 99 |
-
v
|
| 100 |
-
Temperature calibration
|
| 101 |
-
|
|
| 102 |
-
v
|
| 103 |
-
Structured decisions
|
| 104 |
-
```
|
| 105 |
|
| 106 |
-
|
| 107 |
|
| 108 |
-
#
|
|
|
|
|
|
|
| 109 |
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
-
|
| 115 |
|
| 116 |
-
Its decision interface operates over predefined output tokens rather than relying on unrestricted text generation.
|
| 117 |
|
| 118 |
## 2.1 Decision Processing
|
| 119 |
|
| 120 |
-
For an input state
|
| 121 |
|
| 122 |
-
For a choice task with candidate options
|
| 123 |
|
| 124 |
-
|
| 125 |
P(c_i \mid x,q) =
|
| 126 |
\frac{\exp(z_i/T)}
|
| 127 |
{\sum_{j=1}^{K}\exp(z_j/T)}
|
| 128 |
-
|
| 129 |
|
| 130 |
Where:
|
| 131 |
|
| 132 |
-
-
|
| 133 |
-
-
|
| 134 |
-
-
|
| 135 |
-
-
|
| 136 |
|
| 137 |
The selected decision is:
|
| 138 |
|
| 139 |
-
|
| 140 |
\hat{c} =
|
| 141 |
\underset{c_i \in C}{\operatorname{argmax}}
|
| 142 |
\; P(c_i \mid x,q)
|
| 143 |
-
|
| 144 |
|
| 145 |
The model selects the candidate with the highest probability.
|
| 146 |
|
|
@@ -158,19 +136,17 @@ The model selects the candidate with the highest probability.
|
|
| 158 |
|
| 159 |
Rodinia applies temperature scaling to adjust the confidence distribution of its predictions.
|
| 160 |
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
$$
|
| 164 |
P_T(c_i \mid x,q) =
|
| 165 |
\frac{\exp(z_i/T)}
|
| 166 |
{\sum_{j=1}^{K}\exp(z_j/T)}
|
| 167 |
-
|
| 168 |
|
| 169 |
-
Where
|
| 170 |
|
| 171 |
-
-
|
| 172 |
-
-
|
| 173 |
-
-
|
| 174 |
|
| 175 |
Temperature scaling adjusts confidence without changing the ranking of candidate options when the same positive temperature is applied to all logits.
|
| 176 |
|
|
@@ -180,8 +156,6 @@ Temperature scaling adjusts confidence without changing the ranking of candidate
|
|
| 180 |
|
| 181 |
Choice selects one option from a predefined collection.
|
| 182 |
|
| 183 |
-
Example:
|
| 184 |
-
|
| 185 |
```json
|
| 186 |
{
|
| 187 |
"type": "choice",
|
|
@@ -205,8 +179,6 @@ Potential applications:
|
|
| 205 |
|
| 206 |
Score classifies an input into predefined ordinal levels.
|
| 207 |
|
| 208 |
-
Example:
|
| 209 |
-
|
| 210 |
```json
|
| 211 |
{
|
| 212 |
"type": "score",
|
|
@@ -232,8 +204,6 @@ The score represents a selected category, not a calibrated numerical probability
|
|
| 232 |
|
| 233 |
Noul is a binary decision interface for yes/no questions.
|
| 234 |
|
| 235 |
-
Example:
|
| 236 |
-
|
| 237 |
```json
|
| 238 |
{
|
| 239 |
"type": "noul",
|
|
@@ -363,8 +333,6 @@ clf = m.JevClassifier(MODEL_ID)
|
|
| 363 |
|
| 364 |
Rodinia can evaluate multiple decision questions against the same financial state.
|
| 365 |
|
| 366 |
-
Example:
|
| 367 |
-
|
| 368 |
```python
|
| 369 |
result = clf.decide(
|
| 370 |
"Company X cuts full-year guidance and CFO resigns.",
|
|
@@ -411,8 +379,6 @@ The model returns structured decision results rather than requiring a generated
|
|
| 411 |
|
| 412 |
Rodinia can evaluate text or JSON-formatted state descriptions.
|
| 413 |
|
| 414 |
-
Example:
|
| 415 |
-
|
| 416 |
```python
|
| 417 |
portfolio_state = {
|
| 418 |
"portfolio_value": 100000,
|
|
@@ -543,7 +509,7 @@ The results show different performance levels across financial classification ta
|
|
| 543 |
Notable observations:
|
| 544 |
|
| 545 |
- Headline classification achieves 97.71% accuracy.
|
| 546 |
-
- Synthetic macro classification achieves 100% accuracy.
|
| 547 |
- Synthetic portfolio classification achieves 97.34% accuracy.
|
| 548 |
- Financial sentiment classification achieves 76.28%.
|
| 549 |
- FOMC classification achieves 67.86%.
|
|
@@ -585,7 +551,7 @@ Lower ECE indicates better calibration.
|
|
| 585 |
|
| 586 |
Measures the squared error between predicted probabilities and actual outcomes.
|
| 587 |
|
| 588 |
-
Lower Brier Score indicates better probabilistic
|
| 589 |
|
| 590 |
### Negative Log-Likelihood (NLL)
|
| 591 |
|
|
@@ -771,7 +737,7 @@ These are development directions, not claims about currently implemented capabil
|
|
| 771 |
| Model name | Rodinia |
|
| 772 |
| Model repository | NeoSapian/Rodinia |
|
| 773 |
| Parameters | 0.8B |
|
| 774 |
-
|
|
| 775 |
| Fine-tuning | Full fine-tuning |
|
| 776 |
| Decision interface | Typed classification |
|
| 777 |
| Choice | Supported |
|
|
@@ -834,4 +800,4 @@ Users are responsible for validating model outputs before using them in financia
|
|
| 834 |
|
| 835 |
A compact 0.8B typed financial decision intelligence model.
|
| 836 |
|
| 837 |
-
</div>
|
|
|
|
| 16 |
- risk-assessment
|
| 17 |
- sentiment-analysis
|
| 18 |
- portfolio-analysis
|
|
|
|
| 19 |
- 0.8b
|
| 20 |
- sociodynamics-ai
|
| 21 |
---
|
|
|
|
| 25 |
|
| 26 |
**Rodinia** is a specialized financial decision intelligence model developed by **Sociodynamics AI**.
|
| 27 |
|
| 28 |
+
Unlike conventional financial language models designed primarily to generate natural-language responses, Rodinia interprets financial states and produces structured, typed decisions with associated probability distributions.
|
| 29 |
|
| 30 |
It uses a specialized classification interface built around three decision types:
|
| 31 |
|
|
|
|
| 33 |
- **Score:** Evaluates a state against predefined ordinal levels.
|
| 34 |
- **Noul:** Produces a binary yes/no decision.
|
| 35 |
|
| 36 |
+
Rodinia uses next-token logits over predefined option tokens to calculate decision probabilities. It does not require free-form natural-language generation to produce its primary decisions.
|
| 37 |
|
| 38 |
+
Rodinia is a specialized 0.8B financial decision model and uses temperature calibration fitted on a held-out split.
|
| 39 |
|
| 40 |
---
|
| 41 |
|
|
|
|
| 47 |
| Repository | `NeoSapian/Rodinia` |
|
| 48 |
| Developer | Sociodynamics AI |
|
| 49 |
| Model size | 0.8B parameters |
|
| 50 |
+
| Model architecture | Rodinia 0.8B |
|
| 51 |
| Training | Full fine-tuning |
|
| 52 |
| Domain | Financial decision intelligence |
|
| 53 |
| Model category | Typed decision model |
|
|
|
|
| 62 |
|
| 63 |
Rodinia follows a different approach from generative financial LLMs.
|
| 64 |
|
| 65 |
+
A generative model typically receives a financial prompt and produces a textual explanation. Rodinia instead receives a financial state and explicitly defined decision questions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
+
It evaluates the state against those questions and returns probability distributions over the available decision options. This makes the output suitable for downstream systems that need structured classification rather than unrestricted text generation.
|
| 68 |
|
| 69 |
+
## 1.2 Core Architecture Flow
|
| 70 |
+
|
| 71 |
+
The architecture below shows how Rodinia processes a financial state together with typed decision questions and converts the model's option-token logits into calibrated, structured decisions.
|
| 72 |
|
| 73 |
+
<p align="center">
|
| 74 |
+
<img src="rodinia-architecture.png"
|
| 75 |
+
alt="Rodinia 0.8B typed financial decision architecture"
|
| 76 |
+
width="100%">
|
| 77 |
+
</p>
|
| 78 |
|
| 79 |
+
**Architecture sequence:**
|
| 80 |
+
|
| 81 |
+
1. **Financial state / text input:** Receives financial news, portfolio information, market-state descriptions, or other supported text.
|
| 82 |
+
2. **Typed decision questions:** Receives the decision task and its predefined answer space.
|
| 83 |
+
3. **Rodinia 0.8B:** Processes the supplied state and question.
|
| 84 |
+
4. **Decision interface:** Extracts logits associated with the predefined answer-option tokens.
|
| 85 |
+
5. **Typed decision branches:** Routes the task through Choice, Score, or Noul.
|
| 86 |
+
6. **Option-token logits and softmax:** Converts the relevant logits into a probability distribution.
|
| 87 |
+
7. **Temperature calibration:** Applies the fitted calibration temperature to adjust confidence.
|
| 88 |
+
8. **Structured decision outputs:** Returns the selected category and its probability distribution.
|
| 89 |
+
|
| 90 |
+
---
|
| 91 |
|
| 92 |
+
# 2. Model Architecture
|
| 93 |
|
| 94 |
+
Rodinia is a specialized 0.8B model for financial text and structured state interpretation. Its decision interface operates over predefined output tokens rather than relying on unrestricted text generation.
|
| 95 |
|
| 96 |
## 2.1 Decision Processing
|
| 97 |
|
| 98 |
+
For an input state \(x\), the model processes a question \(q\) and obtains logits over predefined answer tokens.
|
| 99 |
|
| 100 |
+
For a choice task with candidate options \(C\), the probability distribution is calculated using temperature-scaled softmax:
|
| 101 |
|
| 102 |
+
\[
|
| 103 |
P(c_i \mid x,q) =
|
| 104 |
\frac{\exp(z_i/T)}
|
| 105 |
{\sum_{j=1}^{K}\exp(z_j/T)}
|
| 106 |
+
\]
|
| 107 |
|
| 108 |
Where:
|
| 109 |
|
| 110 |
+
- \(z_i\): Logit associated with candidate option \(i\).
|
| 111 |
+
- \(T\): Calibration temperature.
|
| 112 |
+
- \(K\): Number of candidate options.
|
| 113 |
+
- \(P(c_i \mid x,q)\): Probability assigned to candidate option \(i\).
|
| 114 |
|
| 115 |
The selected decision is:
|
| 116 |
|
| 117 |
+
\[
|
| 118 |
\hat{c} =
|
| 119 |
\underset{c_i \in C}{\operatorname{argmax}}
|
| 120 |
\; P(c_i \mid x,q)
|
| 121 |
+
\]
|
| 122 |
|
| 123 |
The model selects the candidate with the highest probability.
|
| 124 |
|
|
|
|
| 136 |
|
| 137 |
Rodinia applies temperature scaling to adjust the confidence distribution of its predictions.
|
| 138 |
|
| 139 |
+
\[
|
|
|
|
|
|
|
| 140 |
P_T(c_i \mid x,q) =
|
| 141 |
\frac{\exp(z_i/T)}
|
| 142 |
{\sum_{j=1}^{K}\exp(z_j/T)}
|
| 143 |
+
\]
|
| 144 |
|
| 145 |
+
Where \(T\) is the calibration temperature.
|
| 146 |
|
| 147 |
+
- \(T > 1\): Produces a softer probability distribution.
|
| 148 |
+
- \(T < 1\): Produces a sharper probability distribution.
|
| 149 |
+
- \(T = 1\): Leaves the original softmax distribution unchanged.
|
| 150 |
|
| 151 |
Temperature scaling adjusts confidence without changing the ranking of candidate options when the same positive temperature is applied to all logits.
|
| 152 |
|
|
|
|
| 156 |
|
| 157 |
Choice selects one option from a predefined collection.
|
| 158 |
|
|
|
|
|
|
|
| 159 |
```json
|
| 160 |
{
|
| 161 |
"type": "choice",
|
|
|
|
| 179 |
|
| 180 |
Score classifies an input into predefined ordinal levels.
|
| 181 |
|
|
|
|
|
|
|
| 182 |
```json
|
| 183 |
{
|
| 184 |
"type": "score",
|
|
|
|
| 204 |
|
| 205 |
Noul is a binary decision interface for yes/no questions.
|
| 206 |
|
|
|
|
|
|
|
| 207 |
```json
|
| 208 |
{
|
| 209 |
"type": "noul",
|
|
|
|
| 333 |
|
| 334 |
Rodinia can evaluate multiple decision questions against the same financial state.
|
| 335 |
|
|
|
|
|
|
|
| 336 |
```python
|
| 337 |
result = clf.decide(
|
| 338 |
"Company X cuts full-year guidance and CFO resigns.",
|
|
|
|
| 379 |
|
| 380 |
Rodinia can evaluate text or JSON-formatted state descriptions.
|
| 381 |
|
|
|
|
|
|
|
| 382 |
```python
|
| 383 |
portfolio_state = {
|
| 384 |
"portfolio_value": 100000,
|
|
|
|
| 509 |
Notable observations:
|
| 510 |
|
| 511 |
- Headline classification achieves 97.71% accuracy.
|
| 512 |
+
- Synthetic macro classification achieves 100.00% accuracy.
|
| 513 |
- Synthetic portfolio classification achieves 97.34% accuracy.
|
| 514 |
- Financial sentiment classification achieves 76.28%.
|
| 515 |
- FOMC classification achieves 67.86%.
|
|
|
|
| 551 |
|
| 552 |
Measures the squared error between predicted probabilities and actual outcomes.
|
| 553 |
|
| 554 |
+
Lower Brier Score indicates better probabilistic performance.
|
| 555 |
|
| 556 |
### Negative Log-Likelihood (NLL)
|
| 557 |
|
|
|
|
| 737 |
| Model name | Rodinia |
|
| 738 |
| Model repository | NeoSapian/Rodinia |
|
| 739 |
| Parameters | 0.8B |
|
| 740 |
+
| Model architecture | Rodinia 0.8B |
|
| 741 |
| Fine-tuning | Full fine-tuning |
|
| 742 |
| Decision interface | Typed classification |
|
| 743 |
| Choice | Supported |
|
|
|
|
| 800 |
|
| 801 |
A compact 0.8B typed financial decision intelligence model.
|
| 802 |
|
| 803 |
+
</div>
|