ENTROPHY is the first open, click-level record of how finance, legal, and HR workflows are carried out on real enterprise softwareβmodern SaaS, browsers, and legacy desktop apps alike. Nine domain professionals executed 283 authentic workflow runs over five working days, producing 33 hours of screen-level activity across 19 applications.
This repository contains the accompanying code for ENTROPHY that evaluates the zero-shot performance of frontier Large Language Models (LLMs) on workflow classification and segmentation tasks.
- π Key Features
- ποΈ Project Structure
- β‘ Quick Start
- π§ Installation
- π Dataset
- βοΈ Configuration
- π Usage
- π§ͺ Experiments & Evaluation
- Multi-domain Workflow Analysis: Process user interaction data from diverse enterprise domains
- Zero-shot LLM Evaluation: Test frontier models on workflow understanding without fine-tuning
- Comprehensive Task Suite:
- Classification: Identify workflow types from interaction sequences
- Segmentation: Split concatenated workflows into individual process instances
- Similarity Analysis: Compare workflow patterns using semantic embeddings
- Multi-provider LLM Support: OpenAI, Anthropic, Google, Hugging Face models
- Rich Visualizations: Generate publication-quality plots and analysis reports
- Reproducible Research: Detailed configuration and comprehensive logging
entrophy/
βββ π README.md # Comprehensive project documentation
βββ π LICENSE # CC BY-NC-SA 4.0 International License
βββ π requirements.txt # Python dependencies with versions
β
βββ π src/ # Source code
β βββ π __init__.py # Package initialization
β βββ π data_processor.py # Data loading and preprocessing utilities
β βββ π classification.py # Workflow classification implementation
β βββ π segmentation.py # Workflow segmentation implementation
β βββ π generate_plots.py # Visualization and plotting utilities
β βββ π similarity_analysis/ # Similarity analysis modules
β βββ π similarities.ipynb # Jupyter notebook for similarity analysis
β βββ π process_similarity_heatmap.pdf # Generated heatmap
β βββ π finance_embeddings.csv # Pre-computed embeddings
β βββ π legal_embeddings.csv # Pre-computed embeddings
β βββ π hr_embeddings.csv # Pre-computed embeddings
β
βββ π configs/ # Configuration files
β βββ π classification.yaml # Classification task configuration
β βββ π segmentation.yaml # Segmentation task configuration
β
βββ π data/ # Dataset files
β βββ π process_definitions.json # Workflow process definitions
β βββ π json/ # Raw interaction data
β βββ π hr.json # HR domain workflows (download from Kaggle)
β βββ π legal.json # Legal domain workflows (download from Kaggle)
β βββ π finance.json # Finance domain workflows (download from Kaggle)
β
βββ π outputs/ # Experimental results
βββ π figures/ # Generated visualizations
Get up and running with ENTROPHY in under 5 minutes:
# 1. Clone the repository
git clone https://github.com/your-username/entrophy.git
cd entrophy
# 2. Set up environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Run a quick classification experiment
python src/classification.py --config configs/classification.yaml
# 5. Generate similarity analysis (optional)
cd src/similarity_analysis && jupyter notebook similarities.ipynb- Python: 3.11 or higher
- Memory: 8GB+ RAM recommended
- Storage: 2GB+ available space
- GPU: Optional but recommended for local model inference
# Create conda environment
conda create -n entrophy python=3.11
conda activate entrophy
# Install PyTorch with CUDA support (optional)
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
# Install other dependencies
pip install -r requirements.txt# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Upgrade pip and install dependencies
pip install --upgrade pip
pip install -r requirements.txt# Test the installation
python -c "import torch; print(f'PyTorch: {torch.__version__}')"
python -c "import transformers; print(f'Transformers: {transformers.__version__}')"
python -c "from src.data_processor import WorkflowDataProcessor; print('β
Installation successful!')"ENTROPHY contains real-world workflow data from three enterprise domains:
| Domain | Workflows | Size | Description |
|---|---|---|---|
| Finance | 94 instances | 14MB | Invoice processing, payments, revenue accounting |
| Legal | 89 instances | 9.6MB | MSA/SOW creation, contract iterations |
| HR | 100 instances | 13MB | Employee onboarding, leave management |
ENTROPHY uses YAML configuration files for reproducible experiments:
Classify individual workflow instances into predefined categories:
# Using configuration file
python src/classification.py --config configs/classification.yamlSegment concatenated workflows into individual process instances:
# Using configuration file
python src/segmentation.py --config configs/segmentation.yamlAnalyze workflow similarities using semantic embeddings:
# Open Jupyter notebook
cd src/similarity_analysis
jupyter notebook similarities.ipynbCreate publication-quality plots and analysis reports:
python src/generate_plots.py --input_root outputs/ --output_dir figures/- Classification Performance: Accuracy, precision, recall, F1-score
- Confusion Matrices: Model performance breakdown by class
- Segmentation Metrics: Boundary detection accuracy, edit distance
- Cross-domain Comparisons: Performance across HR, Legal, Finance
- Similarity Heatmaps: Workflow pattern similarities
- Accuracy: Overall classification correctness
- Precision/Recall/F1: Per-class and macro-averaged metrics
- Confusion Matrix: Detailed error analysis
- Support: Number of instances per class
- Boundary Precision/Recall: Accuracy of workflow boundary detection
- Edit Distance: Sequence alignment cost between predicted and true segments
- Tolerance-based Accuracy: Boundary detection within tolerance window
outputs/
βββ finance/
β βββ classification/
β βββgpt-4.1/
β βββ report.json # Classification metrics
β βββ confusion_matrix.json # Confusion matrix data
β βββ detailed_results.json # Per-instance results
β βββ prompt_and_generated_text.json # Raw model outputs
β βββdeepseek-r1/
β βββ ...
β βββ segmentation/
β βββgpt-4.1/
β βββ segmentation_results.json # Segmentation metrics
β βββ prompts_and_responses.json # Raw model outputs
β βββ visualization_sequence_*.png # Per-instance visuals
β βββdeepseek-r1/
β βββ ...
βββ hr/
β βββ ...
βββ legal/
βββ ...
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Key Points:
- β Attribution: Credit must be given to the original authors
- β NonCommercial: Only non-commercial use is allowed
- β ShareAlike: Adaptations must use the same license
- β Academic Research: Permitted and encouraged
- β Commercial Use: Not permitted without explicit permission
For the complete license text, see LICENSE or visit https://creativecommons.org/licenses/by-nc-sa/4.0/
- Workfabric Team for dataset collection and curation
- Domain Experts who participated in workflow data collection
Β© 2025 Workfabric. ENTROPHY is licensed under CC BY-NC-SA 4.0 International.