File size: 4,318 Bytes
6bd4bee 5464bcd 6bd4bee 5464bcd 183eb5e 6bd4bee 5464bcd 6bd4bee 5464bcd 6bd4bee 5464bcd 6bd4bee 5464bcd 6bd4bee 5464bcd 6bd4bee 5464bcd 6bd4bee 5464bcd 6bd4bee 5464bcd 6bd4bee 5464bcd 6bd4bee 0cb52e1 183eb5e 6bd4bee 183eb5e 6bd4bee 5464bcd 183eb5e 0cb52e1 5464bcd 0cb52e1 183eb5e 5464bcd 183eb5e 5464bcd 6bd4bee 5464bcd | 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 | ---
library_name: transformers
license: cc-by-nc-sa-4.0
base_model: microsoft/layoutlmv3-base
tags:
- generated_from_trainer
- invoice-processing
- information-extraction
- czech-language
- document-ai
- layout-aware-model
- multimodal-model
- synthetic-data
- layout-augmentation
metrics:
- precision
- recall
- f1
- accuracy
model-index:
- name: LayoutLMv3InvoiceCzech-V1
results: []
---
# LayoutLMv3InvoiceCzech (V1 – Synthetic + Random Layout)
This model is a fine-tuned version of [microsoft/layoutlmv3-base](https://huggingface.co/microsoft/layoutlmv3-base) for structured information extraction from Czech invoices.
It achieves the following results on the evaluation set:
- Loss: 0.1750
- Precision: 0.6800
- Recall: 0.6904
- F1: 0.6851
- Accuracy: 0.9714
---
## Model description
LayoutLMv3InvoiceCzech (V1) extends the baseline multimodal model by introducing layout variability into the training data.
The model leverages:
- textual features
- spatial layout (bounding boxes)
- visual features (image embeddings)
It performs token-level classification to extract structured invoice fields:
- supplier
- customer
- invoice number
- bank details
- totals
- dates
Compared to V0, this version is trained on synthetically generated invoices with **randomized layouts**, improving robustness to structural variations.
---
## Training data
The dataset consists of:
- synthetically generated invoices based on templates
- augmented variants with randomized layouts
- corresponding bounding boxes
- rendered document images
Key properties:
- variable positioning of fields
- layout perturbations (shifts, spacing, ordering)
- preserved label consistency
- fully synthetic data
This dataset introduces **layout diversity** and tests how multimodal models respond to structural variability.
---
## Role in the pipeline
This model corresponds to:
**V1 – Synthetic templates + randomized layouts**
It is used to:
- evaluate the impact of layout variability on multimodal models
- compare against:
- V0 (fixed layouts)
- later hybrid and real-data stages (V2, V3)
- analyze interaction between visual and spatial features
---
## Intended uses
- Research in multimodal document understanding
- Benchmarking LayoutLMv3 under layout variability
- Comparison with BERT and LiLT
- Czech invoice information extraction
---
## Limitations
- Still trained only on synthetic data
- Layout variability is artificial
- Visual features are derived from clean renderings
- No real-world noise (OCR errors, scanning artifacts)
---
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 1e-05
- train_batch_size: 8
- eval_batch_size: 1
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 0.1
- num_epochs: 10
- mixed_precision_training: Native AMP
---
### Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
| No log | 1.0 | 75 | 0.1545 | 0.6769 | 0.6701 | 0.6735 | 0.9711 |
| No log | 2.0 | 150 | 0.1658 | 0.6732 | 0.6937 | 0.6833 | 0.9695 |
| No log | 3.0 | 225 | 0.1750 | 0.6800 | 0.6904 | 0.6851 | 0.9714 |
| No log | 4.0 | 300 | 0.1946 | 0.6881 | 0.6159 | 0.6500 | 0.9707 |
| No log | 5.0 | 375 | 0.1896 | 0.6941 | 0.6717 | 0.6827 | 0.9717 |
| No log | 6.0 | 450 | 0.1979 | 0.6609 | 0.6430 | 0.6518 | 0.9704 |
| 0.0193 | 7.0 | 525 | 0.1991 | 0.6702 | 0.6396 | 0.6545 | 0.9706 |
| 0.0193 | 8.0 | 600 | 0.2014 | 0.6503 | 0.6261 | 0.6379 | 0.9698 |
| 0.0193 | 9.0 | 675 | 0.1955 | 0.6523 | 0.6413 | 0.6468 | 0.9702 |
| 0.0193 | 10.0 | 750 | 0.1956 | 0.6535 | 0.6447 | 0.6491 | 0.9704 |
---
## Framework versions
- Transformers 5.0.0
- PyTorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2 |