--- license: other language: - en library_name: transformers pipeline_tag: text-classification tags: - Rodinia - finance - financial-ai - decision-intelligence - typed-decisions - financial-classification - calibrated-probabilities - probability-calibration - risk-assessment - sentiment-analysis - portfolio-analysis - 0.8b - sociodynamics-ai --- # Rodinia ### A 0.8B Typed Financial Decision Intelligence Model **Rodinia** is a specialized financial decision intelligence model developed by **Sociodynamics AI**. Unlike conventional financial language models designed primarily to generate natural-language responses, Rodinia is designed to interpret financial states and produce structured, typed decisions with associated probability distributions. It uses a specialized classification interface built around three decision types: - **Choice:** Selects the most appropriate option from a predefined set. - **Score:** Evaluates a state against predefined ordinal levels. - **Noul:** Produces a binary yes/no decision. 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. The model is a full fine-tuned 0.8B financial decision intelligence model and uses temperature calibration fitted on a held-out split. --- # 1. Model Overview | Property | Description | |---|---| | Model | Rodinia | | Repository | `NeoSapian/Rodinia` | | Developer | Sociodynamics AI | | Model size | 0.8B parameters | | Architecture | Rodinia 0.8B | | Training | Full fine-tuning | | Domain | Financial decision intelligence | | Model category | Typed decision model | | Inference | Single forward pass per state | | Output | Structured decisions and probabilities | | Decision types | Choice, Score, Noul | | Calibration | Temperature scaling | | Primary language | English | | Intended application | Financial text and state classification | ## 1.1 Design Philosophy Rodinia follows a different approach from generative financial LLMs. A generative model typically receives a financial prompt and produces a textual explanation. Rodinia instead receives a financial state and a set of explicitly defined decision questions. 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. ## 1.2 Core Architecture Flow Rodinia processes financial information through a typed decision architecture. The system converts financial states into predefined classification decisions and associated probability distributions.

Rodinia 0.8B Typed Financial Decision Intelligence Architecture

### Architecture Processing Stages 1. **Financial State Input:** Receives financial news, portfolio information, market-state descriptions, or other supported financial text. 2. **Typed Decision Questions:** Receives explicitly defined decision questions and their available answer options. 3. **Rodinia 0.8B:** Processes the supplied financial state and decision question. 4. **Typed Decision Interface:** Determines the appropriate decision type. 5. **Decision Branches:** Processes the task through Choice, Score, or Noul. 6. **Option-Token Logits:** Extracts logits associated with predefined answer tokens. 7. **Probability Calculation:** Applies softmax to produce probability distributions. 8. **Temperature Calibration:** Adjusts the confidence distribution using the fitted calibration temperature. 9. **Structured Decision Output:** Returns the selected decision and its associated probabilities. --- # 2. Model Architecture 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. ## 2.1 Decision Processing For an input state $x$, the model processes a question $q$ and obtains logits over predefined answer tokens. For a choice task with candidate options $C$, the probability distribution is calculated using temperature-scaled softmax: $$ P(c_i \mid x,q) = \frac{\exp(z_i/T)} {\sum_{j=1}^{K}\exp(z_j/T)} $$ Where: - $z_i$: Logit associated with candidate option $i$. - $T$: Calibration temperature. - $K$: Number of candidate options. - $P(c_i \mid x,q)$: Probability assigned to candidate option $i$. The selected decision is: $$ \hat{c} = \underset{c_i \in C}{\operatorname{argmax}} P(c_i \mid x,q) $$ The model selects the candidate with the highest probability. ### Decision Processing Steps 1. Receive a financial state or text input. 2. Receive one or more typed decision questions. 3. Process the state and question using Rodinia. 4. Extract logits corresponding to predefined answer tokens. 5. Calculate probability distributions. 6. Apply temperature calibration. 7. Return structured decision outputs. ## 2.2 Probability Calibration Rodinia applies temperature scaling to adjust the confidence distribution of its predictions. The calibrated probability is: $$ P_T(c_i \mid x,q) = \frac{\exp(z_i/T)} {\sum_{j=1}^{K}\exp(z_j/T)} $$ Where $T$ is the calibration temperature. - $T > 1$: Produces a softer probability distribution. - $T < 1$: Produces a sharper probability distribution. - $T = 1$: Leaves the original softmax distribution unchanged. Temperature scaling adjusts confidence without changing the ranking of candidate options when the same positive temperature is applied to all logits. ## 2.3 Typed Decision Interfaces ### A. Choice Choice selects one option from a predefined collection. Example: ```json { "type": "choice", "instructions": "Which topic does this headline describe?", "criteria": { "earnings": "Financial results and guidance", "personnel": "Executive changes", "m&a": "Mergers and acquisitions" } } ``` Potential applications: - Financial news categorization - Event classification - Economic topic identification - Market event classification ### B. Score Score classifies an input into predefined ordinal levels. Example: ```json { "type": "score", "instructions": "How negative is this financial news?", "levels": [ "mild", "moderate", "severe" ] } ``` Potential applications: - News severity classification - Financial risk categorization - Sentiment intensity assessment - Event impact categorization The score represents a selected category, not a calibrated numerical probability of a future market outcome. ### C. Noul Noul is a binary decision interface for yes/no questions. Example: ```json { "type": "noul", "instructions": "Is this news negative for the stock?" } ``` Potential applications: - Positive/negative news classification - Binary financial event classification - Rule-based screening support - Financial text evaluation --- # 3. Training Methodology Rodinia was trained using full fine-tuning. The training process combines real-world financial classification datasets and synthetic, rule-labelled decision tasks. ## 3.1 Training Objectives The primary training objectives include: - Financial headline classification - Financial sentiment classification - Financial topic classification - Monetary policy classification - Binary financial decisions - Ordinal decision classification - Structured portfolio assessments ## 3.2 Training Data | Dataset category | Training objective | |---|---| | FinGPT Headline | Financial headline yes/no classification | | FinGPT Sentiment | Financial sentiment classification | | FPB | Financial phrase sentiment | | FiQA | Financial question and sentiment tasks | | Twitter Financial News | Financial sentiment and topic classification | | FOMC | Hawkish/dovish classification | | Extra Tweet/Text Sets | Additional financial text classification | | Synthetic Company | Formula-based company assessments | | Synthetic Loan | Rule-labelled loan assessments | | Synthetic Macro | Rule-labelled macroeconomic assessments | | Synthetic Portfolio | Portfolio concentration, drift, risk buckets and HHI | Additional tweet and text datasets were included only when they passed the label audit. ## 3.3 Real-World Financial Text The model learns patterns from: - Financial headlines - News sentiment - Financial phrase classification - Social media financial content - Monetary policy-related text - Financial event topics These datasets support financial text understanding and classification. ## 3.4 Synthetic Decision Data Synthetic datasets provide explicitly defined decision tasks with labels generated using deterministic rules or mathematical formulas. Portfolio-related synthetic tasks include: - Portfolio concentration - Portfolio drift - Risk bucket classification - Herfindahl-Hirschman Index (HHI) Synthetic labels allow the model to learn structured mappings between numerical states and decision categories. However, performance on synthetic tasks should not be interpreted as equivalent to performance on real-world financial decision-making. --- # 4. Inference and Usage Rodinia provides a typed decision interface through `JevClassifier`. It does not use conventional text-generation inference for its primary decision outputs. ## 4.1 Installation ```bash pip install -U transformers torch huggingface_hub ``` ## 4.2 Basic Initialization ```python from huggingface_hub import hf_hub_download import importlib.util import sys MODEL_ID = "NeoSapian/Rodinia" # Download the decision interface p = hf_hub_download( repo_id=MODEL_ID, filename="jev_common.py" ) # Load the Python module s = importlib.util.spec_from_file_location( "jev_common", p ) m = importlib.util.module_from_spec(s) sys.modules["jev_common"] = m s.loader.exec_module(m) # Initialize Rodinia clf = m.JevClassifier(MODEL_ID) ``` ## 4.3 Multi-Question Financial Evaluation Rodinia can evaluate multiple decision questions against the same financial state. Example: ```python result = clf.decide( "Company X cuts full-year guidance and CFO resigns.", { "bearish": { "type": "noul", "instructions": "Is this news negative for the stock?" }, "topic": { "type": "choice", "instructions": "Which topic?", "criteria": { "earnings": "Results and financial guidance", "personnel": "Executive changes", "m&a": "Mergers and acquisitions" } }, "severity": { "type": "score", "instructions": "How negative is this?", "levels": [ "mild", "moderate", "severe" ] } } ) print(result) ``` This example evaluates: 1. Whether the news is bearish. 2. Which financial topic it describes. 3. How severe the negative news is. The model returns structured decision results rather than requiring a generated explanation. ## 4.4 Structured Financial State Evaluation Rodinia can evaluate text or JSON-formatted state descriptions. Example: ```python portfolio_state = { "portfolio_value": 100000, "cash_percentage": 12, "largest_holding_percentage": 38, "sector_exposure": { "technology": 52, "finance": 25, "healthcare": 15, "other": 8 } } result = clf.decide( str(portfolio_state), { "concentration": { "type": "choice", "instructions": "Classify the portfolio concentration.", "criteria": { "low": "Low concentration", "moderate": "Moderate concentration", "high": "High concentration" } } } ) print(result) ``` This demonstrates the typed decision interface. The reliability of a portfolio assessment depends on the training distribution and should be independently validated against exact calculations. --- # 5. Evaluation Methodology Rodinia was evaluated on a held-out test set containing 7,290 examples. The evaluation covers: - Classification accuracy - Expected Calibration Error (ECE) - Brier Score - Negative Log-Likelihood (NLL) The evaluation includes overall performance, decision-type performance, and dataset-wise performance. ## 5.1 Overall Performance | Metric | Raw | Calibrated | |---|---:|---:| | Accuracy | 89.63% | 89.63% | | ECE | 0.0505 | 0.0112 | | Brier Score | 0.1534 | 0.1431 | | NLL | 0.3040 | 0.2624 | ### Overall Evaluation Summary - Total evaluation examples: 7,290 - Raw accuracy: 89.63% - Raw ECE: 0.0505 - Calibrated ECE: 0.0112 - Raw Brier Score: 0.1534 - Calibrated Brier Score: 0.1431 - Raw NLL: 0.3040 - Calibrated NLL: 0.2624 ## 5.2 Performance by Decision Type | Decision type | Samples | Accuracy | Raw ECE | Calibrated ECE | |---|---:|---:|---:|---:| | Choice | 1,424 | 89.54% | 0.0570 | 0.0266 | | Score | 2,043 | 79.15% | 0.0898 | 0.0326 | | Noul | 3,823 | 95.27% | 0.0278 | 0.0077 | ### Choice — 89.54% The model demonstrates strong performance in selecting among predefined financial categories. ### Score — 79.15% Ordinal classification is more challenging than binary classification. This remains an area for further improvement. ### Noul — 95.27% Binary decision classification achieves the highest accuracy among the three evaluated decision types. ## 5.3 Complete Decision-Type Metrics | Type | Brier Raw | Brier Calibrated | NLL Raw | NLL Calibrated | |---|---:|---:|---:|---:| | Choice | 0.1521 | 0.1416 | 0.3135 | 0.2748 | | Score | 0.3022 | 0.2827 | 0.5894 | 0.5208 | | Noul | 0.0744 | 0.0690 | 0.1478 | 0.1196 | --- # 6. Dataset-Wise Evaluation The following table reports the held-out evaluation results by source category. | Dataset | Samples | Accuracy | |---|---:|---:| | Climate | 41 | 82.93% | | ESG Environmental | 61 | 95.08% | | ESG Governance | 58 | 93.10% | | ESG Social | 72 | 95.83% | | Financial Classification | 60 | 88.33% | | FOMC | 112 | 67.86% | | Headline | 1,788 | 97.71% | | Sentiment | 1,383 | 76.28% | | Synthetic Company | 435 | 98.62% | | Synthetic Loan | 264 | 98.11% | | Synthetic Macro | 279 | 100.00% | | Synthetic Portfolio | 940 | 97.34% | | TFNS | 136 | 91.18% | | Topic | 650 | 91.23% | | Tweets2 | 536 | 79.48% | | WCB | 231 | 66.67% | | WCB Time | 117 | 86.32% | | WCB Uncertain | 127 | 85.04% | ## 6.1 Evaluation Observations The results show different performance levels across financial classification tasks. Notable observations: - Headline classification achieves 97.71% accuracy. - Synthetic macro classification achieves 100.00% accuracy. - Synthetic portfolio classification achieves 97.34% accuracy. - Financial sentiment classification achieves 76.28%. - FOMC classification achieves 67.86%. - WCB classification achieves 66.67%. Synthetic datasets have formula-generated or rule-generated labels and should be considered separately from real-world financial text benchmarks. Some dataset slices are small. Their accuracy values should not be interpreted as stable estimates of generalization performance. --- # 7. Probability Calibration An important component of Rodinia is probability calibration. A classification model can achieve high accuracy while producing poorly calibrated confidence values. For example, a model that predicts 90% confidence on 100 decisions should ideally be correct approximately 90 times. Rodinia uses temperature scaling to adjust the distribution of output probabilities. ## 7.1 Calibration Results | Metric | Before Calibration | After Calibration | |---|---:|---:| | ECE | 0.0505 | 0.0112 | | Brier Score | 0.1534 | 0.1431 | | NLL | 0.3040 | 0.2624 | ## 7.2 Calibration Metrics Explained ### Expected Calibration Error (ECE) Measures the difference between predicted confidence and observed accuracy across confidence groups. Lower ECE indicates better calibration. ### Brier Score Measures the squared error between predicted probabilities and actual outcomes. Lower Brier Score indicates better probabilistic accuracy. ### Negative Log-Likelihood (NLL) Measures how much probability the model assigns to the correct outcomes. Lower NLL indicates better probabilistic performance. ## 7.3 Calibration Limitations Calibration was measured on a held-out distribution. Performance may deteriorate when the model receives: - New financial domains - Different question formats - Unseen financial instruments - Distribution-shifted market conditions - Questions outside the training tasks Calibration does not establish that the model understands future market behavior or produces reliable investment probabilities. --- # 8. Intended Applications Rodinia is intended to serve as a structured decision component inside larger financial software systems. ## 8.1 Financial News Intelligence Potential applications: - Headline classification - Financial sentiment classification - Event identification - News topic categorization - Binary news assessments ## 8.2 Financial Risk Classification Potential applications: - Predefined risk-category classification - Ordinal severity assessment - Portfolio state categorization - Structured risk-screening workflows ## 8.3 Portfolio Analytics Potential applications: - Portfolio concentration classification - Portfolio drift categorization - HHI-based assessment - Rule-labelled portfolio decision tasks For arithmetic-heavy portfolio calculations, use deterministic financial computation and use Rodinia as a classification layer. ## 8.4 Financial Decision Pipelines Rodinia can be integrated into pipelines that combine: 1. Financial data collection 2. State construction 3. Typed model decisions 4. Probability interpretation 5. Independent rule validation 6. Downstream application logic --- # 9. What Rodinia Is Not Rodinia is not a conventional generative financial chatbot. It is not designed to: - Generate unrestricted financial explanations. - Predict stock prices or market returns. - Forecast future asset performance. - Guarantee profitable investment decisions. - Replace financial analysts. - Replace deterministic portfolio calculations. - Provide personalized investment advice. A negative headline classification does not mean that a stock price will fall. A high-risk portfolio classification does not establish that the portfolio will incur a loss. The model evaluates the supplied state against a defined classification question. --- # 10. Limitations and Responsible Use Users should consider the following limitations before deploying Rodinia. ### Training Distribution The model's performance depends on the similarity between deployment data and training data. ### Synthetic Data Portfolio and other synthetic tasks use rule-generated labels. High accuracy on those tasks does not independently establish real-world financial expertise. ### Calibration Probability calibration is distribution-dependent and may degrade under distribution shift. ### Arithmetic Exact financial calculations should be performed using deterministic code. ### Decision Definitions Choice and score outputs depend on the criteria and levels supplied by the user. ### Financial Safety Rodinia should be used as a decision-support component, not as an autonomous investment authority. Always independently validate high-impact financial decisions. --- # 11. Model Deployment Rodinia is hosted on Hugging Face. **Model repository:** https://huggingface.co/NeoSapian/Rodinia The repository contains the model implementation and supporting files required by the inference interface. For deployment, use the provided `jev_common.py` implementation rather than assuming the model is compatible with a generic text-generation pipeline. ### Deployment Considerations - Load the model using its provided classifier interface. - Use the correct tokenizer and model configuration. - Preserve the typed decision interface. - Apply the appropriate calibration configuration. - Validate input and output formats. - Independently validate high-impact decisions. --- # 12. Research and Development Rodinia explores a specialized model and inference approach for structured financial decision-making. Its development focuses on: - Compact financial decision models - Typed question interfaces - Structured classification - Probability calibration - Financial dataset auditing - Synthetic rule-labelled decision tasks - Efficient decision inference ### Future Development Directions Potential future improvements include: - Broader financial domain coverage - Improved FOMC classification - Better financial sentiment classification - Out-of-distribution evaluation - Temporal validation - More robust calibration - Real-world portfolio decision benchmarks - Multi-source financial state evaluation These are development directions, not claims about currently implemented capabilities. --- # 13. Technical Summary | Component | Specification | |---|---| | Model name | Rodinia | | Model repository | NeoSapian/Rodinia | | Parameters | 0.8B | | Architecture | Rodinia 0.8B | | Fine-tuning | Full fine-tuning | | Decision interface | Typed classification | | Choice | Supported | | Score | Supported | | Noul | Supported | | Probability output | Supported | | Temperature calibration | Supported | | Free-form text generation | Not the intended inference interface | | Evaluation examples | 7,290 | | Overall accuracy | 89.63% | | Calibrated ECE | 0.0112 | | Developer | Sociodynamics AI | --- # 14. Developer ## Sociodynamics AI **Rodinia is developed by Sociodynamics AI.** Rodinia is part of the organization's research into compact specialized AI systems and structured decision intelligence. The project explores how smaller language models can be adapted to perform specialized classification and decision tasks with structured probabilistic outputs. **Model:** Rodinia **Parameters:** 0.8B **Domain:** Financial Decision Intelligence **Organization:** Sociodynamics AI Hugging Face: https://huggingface.co/NeoSapian/Rodinia --- # 15. License and Disclaimer The model is distributed under the license specified in the repository. The underlying model and its licensing terms must also be respected. This model is provided for research, experimentation, and decision-support applications. It does not constitute financial, investment, legal, or tax advice. The developers make no guarantee regarding the accuracy of individual decisions, future market performance, or financial outcomes. Users are responsible for validating model outputs before using them in financial applications. ---
# RODINIA ### Structured Intelligence for Financial Decisions. **Developed by Sociodynamics AI** A compact 0.8B typed financial decision intelligence model.