Cloud vs. Local:A Study on Practical LLMBasedDocument Classification in Infosec

Information security (infosec) is an ever more pressing issue for companies and institutions to managewith the expanding digital landscape. Coinciding with this are the large improvements to LLM researchand development makes the implementation of a system which utilizes it attractive for companies. Animportant aspect within infosec is document classification. With the rapid developments of LLMmodels that can be run locally and different services offered by distributors which gives differentapproaches on how to implement and develop an LLM system. The aim of this paper is to develop andevaluate two different practical approaches of a LLM system that assesses and classifies documents asthey relate to an internal classification policy. This is to illuminate the question of whether selecting alarger model via pay-to-use services offers better classification performance and capabilities ratherthan a smaller model hosted locally on readily available hardware. This paper considers and takesinspiration from similar approaches to LLM classification but changes the approach to reducedevelopment time of fine-tunes and instead utilizes a hierarchical system of descriptive explanation ofeach category of classification label. The results show that a small model can give accurate, consistent,and qualitative classifications just as well or for some documents better than a larger model, in thiscase Microsoft's Copilot. It provides an alternative to external providers who offer a pay-to-use costfor their model, due the solution provided which utilizes a smaller model makes it is easily and costeffective to scale up.

Publication Details

Journal
KTH Publication Database DiVA (KTH Royal Institute of Technology)
Published
2025-01-01
Primary Topic
Information and Cyber Security
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cloud vs. Local:A Study on Practical LLMBasedDocument Classification in Infosec

KTH Publication Database DiVA (KTH Royal Institute of Technology)
Information and Cyber Security
article

Cloud vs. Local:A Study on Practical LLMBasedDocument Classification in Infosec

article en

Abstract

Information security (infosec) is an ever more pressing issue for companies and institutions to managewith the expanding digital landscape. Coinciding with this are the large improvements to LLM researchand development makes the implementation of a system which utilizes it attractive for companies. Animportant aspect within infosec is document classification. With the rapid developments of LLMmodels that can be run locally and different services offered by distributors which gives differentapproaches on how to implement and develop an LLM system. The aim of this paper is to develop andevaluate two different practical approaches of a LLM system that assesses and classifies documents asthey relate to an internal classification policy. This is to illuminate the question of whether selecting alarger model via pay-to-use services offers better classification performance and capabilities ratherthan a smaller model hosted locally on readily available hardware. This paper considers and takesinspiration from similar approaches to LLM classification but changes the approach to reducedevelopment time of fine-tunes and instead utilizes a hierarchical system of descriptive explanation ofeach category of classification label. The results show that a small model can give accurate, consistent,and qualitative classifications just as well or for some documents better than a larger model, in thiscase Microsoft's Copilot. It provides an alternative to external providers who offer a pay-to-use costfor their model, due the solution provided which utilizes a smaller model makes it is easily and costeffective to scale up.

KTH Publication Database DiVA (KTH Royal Institute of Technology)
Industry, innovation and infrastructure
Openalex Percentile: Top 36%
Information and Cyber Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.