Where A Small Language Model Helps in Invoice Categorisation, Understood Through Embedding Geometry
Not on the map. Why?
Abstract (arXiv)
Categorising invoices into the correct General Ledger (GL) code underpins financial reporting and tax compliance. This is a skilled accounting judgement rather than a routine task: the correct category depends subtly on the nature of the purchasing business, the vendor and the invoice text. Whilst AI is increasingly being adopted across industries to automate tasks, including invoice categorisation, implementations built on in-house small language models (SLMs) can simultaneously reduce cost and improve data security, confidentiality, and interpretability. We investigate this approach by first analysing the pre-trained embedding geometry of a small sentence transformer (SBERT) and classic SLM (DeBERTa). The sentence-embedding space of this financial corpus is globally anisotropic but composed of locally isotropic clusters, extending prior token-level findings to sentence embeddings in a financial setting, and these clusters are strongly correlated with the vendor identity. SBERT fine-tuned on a single GPU reaches 0.96 accuracy on invoice classification, above both a zero-shot LLM and a vendor identity baseline, increasing performance for smaller, challenging categories and new clients. For this important generalisation problem, SBERT reaches 0.9 F1 with roughly 100 client-specific invoices, showing that an in-house SLM implementation is promising. Combining these results with geometric analysis shows that pre-trained embedding geometry is associated with classification performance and reveals a counterintuitive finding that a structured input that would help a human reader does not improve the SLM performance.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 22 of its 40 references that are in the map. First posted on arXiv 18 Aug 2026.
Builds on
22 of 40 references.
References · 22
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2020Shortcut Learning in Deep Neural Networkscited by 1,928
- 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,400
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2018A Convergence Theory for Deep Learning via Over-Parameterizationcited by 784
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2019Beyond temperature scaling: Obtaining well-calibrated multiclass probabilities with Dirichlet calibrationcited by 359
- 2025Small Language Models are the Future of Agentic AIcited by 254
- 2019Representation Degeneration Problem in Training Natural Language Generation Modelscited by 250
- 2018A mathematical theory of semantic development in deep neural networkscited by 182
10 more
- 2024Fine-Tuned 'Small' LLMs (Still) Significantly Outperform Zero-Shot Generative AI Models in Text Classificationcited by 66
- 2021Learning to Remove: Towards Isotropic Pre-trained BERT Embeddingcited by 23
- 2021How Does Fine-tuning Affect the Geometry of Embedding Space: A Case Study on Isotropycited by 23
- 2024Unique Security and Privacy Threats of Large Language Models: A Comprehensive Surveycited by 20
- 2023Exploring Anisotropy and Outliers in Multilingual Language Models for Cross-Lingual Semantic Sentence Similaritycited by 17
- 2023Conformal inference is (almost) free for neural networks trained with early stoppingcited by 14
- 2024Identifying Banking Transaction Descriptions via Support Vector Machine Short-Text Classification Based on a Specialized Labelled Corpuscited by 4
- 2024TopoLedgerBERT: Topological Learning of Ledger Description Embeddings using Siamese BERT-Networkscited by 2
- 2025Testing the assumptions about the geometry of sentence embedding spaces: the cosine measure need not applycited by 2
- 2025Categorising SME Bank Transactions with Machine Learning and Synthetic Data Generationcited by 1
Built on by
Not cited yet.