AI Strategy and LLM Application Development in Swedish Public Sector

swedish_tax_authority · Government · 2024 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Public-sector AI strategy and LLM applications

The Swedish Tax Authority needed to scale AI and LLM applications across public-sector domains while operating under sensitive-data, silo, governance, and regulatory constraints.

Constraints:

Architecture

The described operating model combines an AI strategy role, flexible development teams, reusable AI/text-processing capabilities, open-source model/runtime evaluation, on-prem or private-cloud deployment for sensitive data, and risk/governance workflows. The authority’s earlier text categorization, transcription, OCR, risk evaluation, search, and translation capabilities become reusable layers that can be adapted across business silos, while compliance discussions are pushed left into early project ideation rather than left to a pre-deployment review.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  citizen-interaction-channels["citizen-interaction-channels"] --> text-and-data-processing-pipelines["text-and-data-processing-pipelines"]
  text-and-data-processing-pipelines["text-and-data-processing-pipelines"] --> domain-business-silos["domain-business-silos"]
  flexible-development-teams["flexible-development-teams"] --> text-and-data-processing-pipelines["text-and-data-processing-pipelines"]
  flexible-development-teams["flexible-development-teams"] --> domain-business-silos["domain-business-silos"]
  ai-strategy-role["ai-strategy-role"] --> flexible-development-teams["flexible-development-teams"]
  ai-strategy-role["ai-strategy-role"] --> risk-governance-workflow["risk-governance-workflow"]
  ai-strategy-role["ai-strategy-role"] --> open-source-model-stack["open-source-model-stack"]
  open-source-model-stack["open-source-model-stack"] --> private-cloud-runtime["private-cloud-runtime"]
  open-source-model-stack["open-source-model-stack"] --> benchmark-evaluation-layer["benchmark-evaluation-layer"]
  benchmark-evaluation-layer["benchmark-evaluation-layer"] --> risk-governance-workflow["risk-governance-workflow"]
  risk-governance-workflow["risk-governance-workflow"] --> domain-business-silos["domain-business-silos"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
citizen-interaction-channels Website visits, personal page visits, calls, emails, and other interaction sources containing structured and unstructured data. text-and-data-processing-pipelines
text-and-data-processing-pipelines Reusable NLP, OCR, transcription, categorization, risk-model, search, and translation capabilities. citizen-interaction-channels, flexible-development-teams, domain-business-silos
domain-business-silos Purpose-limited public-sector business areas that own particular data and services. text-and-data-processing-pipelines, flexible-development-teams, risk-governance-workflow
flexible-development-teams Teams that build products and reusable solutions across business silos while working with product owners. text-and-data-processing-pipelines, domain-business-silos, ai-strategy-role
ai-strategy-role Bridge between technical development, product-oriented delivery, management steering, and AI portfolio prioritization. flexible-development-teams, risk-governance-workflow, open-source-model-stack
open-source-model-stack Open-source LLMs, tooling, and benchmark ecosystem used for public-sector evaluation and deployability. ai-strategy-role, private-cloud-runtime, benchmark-evaluation-layer
private-cloud-runtime On-premise or private-cloud deployment environment for sensitive data workloads. open-source-model-stack, text-and-data-processing-pipelines
benchmark-evaluation-layer Benchmarks and evaluation frameworks used to choose models and reason about quality. open-source-model-stack, risk-governance-workflow
risk-governance-workflow AI Act/GDPR/security/compliance review, risk assessment, documentation, and cross-disciplinary decision process. ai-strategy-role, domain-business-silos, benchmark-evaluation-layer

Data flow

Citizen and agency interactions generate large amounts of structured numeric data and unstructured text through websites, personal pages, calls, and email. Development teams build reusable AI/text-processing solutions that can be adapted for different domain silos while respecting purpose-specific data boundaries. Open-source models and benchmarks support model selection, with sensitive workloads packaged for private cloud or on-prem environments. AI project ideas move through risk assessment, documentation, and legal/engineering discussion early enough to shape MVP design.

4 supporting quotes
“tizens and tax Authority and if you look from the point of the information modality there you will see that text is uh is a major uh modality in which those interactions occur and the biggest um interaction pools being web uh V website visits uh personal page visits when you log in into your uh pers”transcript, stated
“of communication yes there there there is a lot of structure data that not to be underestimated this is a huge um Iceberg under the water it's a lot of of structured uh digital um numeric data but also enormous amount of unstructured uh Text data that you have so um because of that um like around fi”transcript, stated
“those Solutions are um in a way they are both developed for a particular one but they also could be uh scaled”transcript, stated
“for public sector um you know when you work with a sensitive uh data you simply in some cases do not have other alternative”transcript, stated

Why this architecture

The architecture is organizational as much as technical: public-sector data boundaries force silo-aware reuse, sensitive data pushes the stack toward private/on-prem deployments and open-source tooling, and regulation requires compliance to enter the development loop early. The AI strategy role sits outside pure IT so it can bridge product delivery, management, and technical reality.

4 supporting quotes
“it's some sort of a breaching role between very technical development and and um uh management and steering”transcript, stated
“public sector is a different animal and I just want to clarify why is it that that it's uh very often you have um silos”transcript, stated
“silos here are uh very often by Design so they're meant to be uh separate parts of organization”transcript, stated
“open source is is really big in public sector um for having well well firstly from of course the financial perspective”transcript, stated

Models used: open-source large language models · Llama 3.1 · Mixtral 7B · Cohere · GPT-3.5 · OCR · transcription · text categorization · risk evaluation models

Scale

Alternatives considered (roads not taken)

Treat AI strategy as a purely technical IT role

Rejected because: The role needs to support organizational decision making, prioritization, product delivery, and management steering.

“the reason why it is separate is um that um it's meant also to support the the way how uh AI projects are LED in organizations”transcript, stated

Break public-sector silos to maximize sharing

Rejected because: Some silos exist by design for data security and purpose-specific data use, so reuse must happen through shared development layers rather than unrestricted data sharing.

“the reasoning there is um both from the data security perspective and for um uh for a particular um type of data serving particular purpose only”transcript, stated

Use cloud-hosted commercial models for sensitive public-sector data by default

Rejected because: Sensitive data can force private cloud/on-prem operation, which makes open-source packaging and local infrastructure capacity important.

“we needed to put it on an on Prem service and build a private Cloud”transcript, stated

Handle AI Act/GDPR/security review after product development

Rejected because: The discussion argues for shift-left compliance and security by design before or during the first MVP.

“what you want to do is to start doing security by Design as you usually call it so you're shifting it left”transcript, stated

Patterns

privacy-preserving-processing (privacy)

Sensitive public-sector data pushes some LLM workloads to private cloud or on-prem deployment instead of external hosted APIs.

“you need to make sure that um you know you keep uh data safe basically”transcript, stated

eval-driven-development (evaluation)

Benchmarks and evaluation frameworks help public-sector teams choose among open-source and commercial model options.

“how basically how we judge that you know the model is good so um so that is also like a very big contribution”transcript, stated

data-quality-loop (data-foundation)

The strategy treats text, structured numeric data, and reusable data-processing pipelines as the foundation for AI applications.

“there is a lot of structure data that not to be underestimated this is a huge um Iceberg under the water”transcript, stated

synthetic-data-generation (evaluation)

The discussion cites synthetic data as a way to create benchmarks where the correct answer is known even when human agreement is imperfect.

“it's actually not that hard to use synthetic data we can actually know in in advance”transcript, stated

Tradeoffs

Favor open-source options in public sector

Chose open-source model and tooling ecosystem over exclusive reliance on commercial closed services.

Rationale: Open source helps with financial constraints, community trust, evaluation assets, and packaging for private/on-prem deployments.

“having something that uh you can use take and use and something that has been uh let's say to a certain degree reliably developed by a bigger Community”transcript, stated

Reuse general text-processing solutions across domains

Chose domain-adaptable reusable capabilities over fully bespoke AI applications for every silo.

Rationale: Search, translation, OCR, transcription, and text categorization can be adapted with slight modification to multiple public-sector domains.

“that solution of course uh can be applied with a slide modification to various uh domains”transcript, stated

Use shift-left compliance

Chose documentation and risk assessment at the repo/MVP starting point over late compliance review just before deployment.

Rationale: Early security, GDPR, and AI Act artifacts make compliance more efficient and reduce rework.

“I want to have a GitHub repo where security and gdpr and AI Act is in place to start with this is the starting place”transcript, stated

Gotchas (what bit them)

Public-sector silos can block AI reuse unless the reusable layer respects legal data boundaries.

Root cause: Silos may be intentional for data security and purpose limitation, not just organizational dysfunction.

Resolution: Build flexible development teams and reusable solution components that can adapt across domains without collapsing the silos themselves.

“silos here are uh very often by Design so they're meant to be uh separate parts of organization”transcript, stated
“it is possible to build a uh development layer uh that can be scalable”transcript, stated

Regulatory review can become waterfall-shaped if lawyers interpret the AI Act before engineers shape a viable design.

Root cause: AI compliance is cross-disciplinary, but legal-first workflows may not understand practical engineering tradeoffs.

Resolution: Shift compliance, security, GDPR, and AI Act documentation left into early project and MVP setup with engineers involved.

“it looks very much design heavy approach waterfall design heavy”transcript, stated
“this a cross-disciplinary problem so it's Madness to have lawyers to talk about this first”transcript, stated

Model choice is a small part of production usefulness.

Root cause: The surrounding system, data, UX, fine-tuning, compound-system design, and infrastructure carry most production complexity.

Resolution: Treat LLMs as one component of a larger production system rather than the central architecture.

“the model is basically less than 5% of the system and the most of the work is actually around it”transcript, stated
“in reality it's the system 100%”transcript, stated

Evaluation

The case discusses benchmark-driven model evaluation, open-source benchmark ecosystems, broader frameworks for truthfulness and model selection, and synthetic-data benchmarks where ground truth can be controlled despite imperfect human agreement.

Metrics: benchmark performance · truthfulness · risk assessment completion · human expert consistency · synthetic benchmark accuracy · production robustness

3 supporting quotes
“we rely on the benchmarks heavily”transcript, stated
“it's a very good Insight feature to uh to understand about truthfulness and um things like that”transcript, stated
“we can still create benchmarks right that is more difficult right”transcript, stated

Outcomes

This is a strategy/operating-model case rather than one deployed agent. The transcript grounds scale in decades of digitalization, potentially millions of external users, hundreds of thousands of internal users, and public-sector interactions dominated by text channels.

3 supporting quotes
“text categorization um uh transcription um uh HDR OCR pipelines it's something that uh that really helps”transcript, stated
“various Solutions and those Solutions are um in a way they are both developed for a particular one”transcript, stated
“it's possible to comply with a lot of regulation in a rather efficient way if you just know how”transcript, stated