Transformers
Safetensors
Laya
system-1
action-ranking
decision-model
enterprise-ai
research
experimental
Instructions to use yasserrmd/enterprise-reflux-laya-v21 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yasserrmd/enterprise-reflux-laya-v21 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("yasserrmd/enterprise-reflux-laya-v21", device_map="auto") - Laya
How to use yasserrmd/enterprise-reflux-laya-v21 with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
File size: 6,691 Bytes
8985516 f4f2ba4 8985516 f4f2ba4 8985516 f4f2ba4 8985516 f4f2ba4 8985516 f4f2ba4 8985516 f4f2ba4 8985516 f4f2ba4 8985516 f4f2ba4 8985516 75c4407 f4f2ba4 8985516 f4f2ba4 8985516 f4f2ba4 8985516 f4f2ba4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | ---
license: apache-2.0
library_name: transformers
base_model: convaiinnovations/laya
tags:
- laya
- system-1
- action-ranking
- decision-model
- enterprise-ai
- research
- experimental
---
# Enterprise Reflux Laya V2.1
> [!CAUTION]
> ## Research Prototype β DO NOT USE IN PRODUCTION
>
> **This model is an experimental research prototype and is not production-ready.**
>
> It MUST NOT be used as an authorization, policy, security, approval, or autonomous execution engine.
>
> Evaluation has identified **incorrect high-confidence decisions and unsafe System-1 routing cases**. A high confidence score or ACT probability must **not** be interpreted as permission to execute an action.
>
> Any real deployment would require external deterministic authorization, policy enforcement, precondition validation, risk controls, human approval, and additional safety evaluation.
## Overview
**Enterprise Reflux Laya V2.1** is an experimental System-1 decision model for ranking dynamically supplied enterprise actions.
Given a request, current state/context, and a set of candidate actions, the model attempts to select the most appropriate action or return `NO_ACTION`.
The project explores whether a relatively small specialized decision model can handle fast action selection while escalating uncertain or unsafe decisions to a larger System-2 model or human workflow.
V2.1 is based on **Laya (`convaiinnovations/laya`)** and adds targeted training for:
- Counterfactual state changes
- Hard `NO_ACTION` decisions
- Policy and precondition constraints
- Sibling-action discrimination
- Cross-domain collisions
- ACT / ESCALATE supervision
## Quick Start
Install Laya and load the fine-tuned model with the normal `laya.Agent` runtime.
```bash
pip install laya==0.3.20
```
```python
import laya
MODEL_ID = "yasserrmd/enterprise-reflux-laya-v21"
agent = laya.Agent(
MODEL_ID,
device="cuda", # use "cpu" if CUDA is unavailable
)
state = {
"request": "Release the approved supplier payment.",
"domain": "Finance",
"state": {
"payment_approved": True,
"fraud_clear": True,
},
}
questions = {
"action": {
"type": "choice",
"instructions": (
"Select the single best action for the request and current state. "
"Choose NO_ACTION when no candidate action is valid."
),
"criteria": {
"finance.release_payment": (
"Release a supplier payment only after all required "
"approvals and validations."
),
"finance.hold_payment": (
"Place the supplier payment on hold."
),
"NO_ACTION": (
"Take no action when the request is not currently eligible "
"for any supplied action."
),
},
}
}
result = agent.predict(state, questions)
answer = result["answers"]["action"]
print("Decision:", answer["decision"])
print("Confidence:", answer["confidence"])
print("ACT probability:", answer["act_probability"])
print("Ranking:", answer["ranked"])
```
Candidate actions are supplied dynamically at inference time, so the action set can change from request to request.
> **Important:** `decision`, `confidence`, and `act_probability` are model outputs, not authorization signals. Do not execute a real operation solely because the model selected an action or returned a high ACT probability. Apply deterministic permissions, policy, preconditions, risk controls, and required approvals outside the model before any execution.
## Intended Architecture
```text
Request + State + Candidate Actions
β
βΌ
Deterministic Controls
Authorization / Policy / Risk
β
βΌ
Enterprise Reflux Laya
β
Action Ranking
β
ββββββββ΄βββββββ
β β
ACT ESCALATE
β β
βΌ βΌ
Controlled System-2 /
Execution Human
```
The neural model should therefore be treated as a **decision/ranking component**, not as the final authority to execute an operation.
## Evaluation
Three frozen benchmark suites were used without training or threshold tuning on those benchmark cases.
| Benchmark | Top-1 | Top-2 | Top-3 |
|---|---:|---:|---:|
| Extreme-200 | **71.0%** | 84.5% | 92.0% |
| Hard-400 | **80.75%** | 93.0% | 96.75% |
| Mixed-500 | **79.0%** | 92.4% | 95.6% |
Compared with the previous Enterprise Reflux Laya checkpoint:
| Benchmark | Previous | V2.1 |
|---|---:|---:|
| Extreme-200 Top-1 | 54.0% | **71.0%** |
| Hard-400 Top-1 | 50.0% | **80.75%** |
| Mixed-500 Top-1 | 60.4% | **79.0%** |
These results indicate a substantial improvement in action ranking, particularly on policy, multi-constraint, and hard decision cases.
They **do not demonstrate production safety**.
## Known Limitations
The most important remaining weakness is autonomous execution routing.
Observed System-1 results include:
| Benchmark | Coverage | Accuracy | Unsafe Decisions |
|---|---:|---:|---:|
| Extreme-200 | 20.0% | 77.5% | 9 |
| Hard-400 | 19.75% | 84.81% | 12 |
| Mixed-500 | 37.2% | 90.32% | 18 |
State-sensitive reasoning also remains significantly weaker than several other categories.
The model can additionally produce **high-confidence incorrect predictions**, meaning confidence alone is not a reliable execution-safety mechanism.
## Recommended Use
Appropriate uses include:
- Research
- Benchmarking
- Action-ranking experiments
- System-1 / System-2 architecture research
- Abstention and escalation research
- Decision-model experimentation
**Not appropriate for production autonomous execution.**
Any experiment involving real actions should place deterministic eligibility, permissions, policy, security, and approval controls outside the model.
## Status
**Research Prototype V2.1**
The ranking improvements are promising, but the current work should be considered an experimental checkpoint rather than a deployable enterprise model.
Current research focus:
**better state-sensitive discrimination and safer separation between action ranking and execution authority.**
## Base Model
Built on:
**Laya β `convaiinnovations/laya`**
Credit to the Laya authors for the underlying architecture and decision-model approach.
## Author
**Mohamed Yasser**
Research project exploring lightweight System-1 models, action ranking, decision routing, and specialized alternatives to using large language models for every enterprise decision.
|