# Technical Document Extraction: Plugin Model Workflow
## Diagram Overview
The image depicts a **plugin model workflow** for text classification, combining a **black-box model** and a **reweighting model** to generate a final inference. The process involves probabilistic outputs for categorical labels, with spatial grounding of components and data flow.
---
## Key Components and Flow
### 1. Input
- **Text Input**: `"This shirt is ..."` (leftmost box)
- **Flow**: Arrows indicate sequential processing through the system.
### 2. Plugin Model (Central Component)
- **Subcomponents**:
- **Black-box Model** (dark gray box)
- **Reweighting Model** (white box)
### 3. Output
- **Next Inference Step**: `"This shirt is adidas ..."` (rightmost box)
---
## Data Tables and Probabilities
### Black-box Model Output
| Word | Probability |
|----------|-------------|
| nice | 0.1 |
| adidas | 0.1 |
| **black**| **0.3** |
| ... | ... |
### Reweighting Model Output
| Word | Probability |
|----------|-------------|
| nice | 0.1 |
| **adidas**| **0.7** |
| black | 0.1 |
| ... | ... |
### Next Inference Step Output
| Word | Probability |
|----------|-------------|
| nice | 0.01 |
| **adidas**| **0.07** |
| black | 0.03 |
| ... | ... |
---
## Color Coding and Spatial Grounding
- **Black-box Model Table**:
- "black" highlighted in **dark yellow** (0.3 probability).
- **Reweighting Model Table**:
- "adidas" highlighted in **light yellow** (0.7 probability).
- **Next Inference Table**:
- "adidas" in **bold** (0.07 probability).
- **Legend**: Not explicitly labeled, but colors correlate to model contributions:
- Dark yellow → Black-box model emphasis.
- Light yellow → Reweighting model emphasis.
---
## Workflow Logic
1. **Input** → **Plugin Model**:
- Text is processed by both the black-box and reweighting models.
2. **Model Outputs**:
- Black-box model assigns higher probability to "black" (0.3).
- Reweighting model assigns higher probability to "adidas" (0.7).
3. **Weighted Sum (X Symbol)**:
- Combines outputs from both models.
4. **Final Inference**:
- "adidas" emerges as the dominant label (0.07 probability).
---
## Key Trends and Data Points
- **Black-box Model**: Prioritizes "black" (0.3) over other labels.
- **Reweighting Model**: Strongly favors "adidas" (0.7), overriding the black-box output.
- **Final Output**: "adidas" is selected despite lower individual probabilities in the black-box model, indicating reweighting dominance.
---
## Notes
- **Language**: All text is in English.
- **Missing Elements**: No explicit legend or axis titles, but spatial and color cues imply model contributions.
- **Assumptions**: The weighted sum (X symbol) likely combines probabilities multiplicatively or additively, though the exact method is not specified.
---
## Final Output
The system concludes that `"This shirt is adidas ..."` based on the reweighting model's influence, despite the black-box model's initial preference for "black."