Position Paper June 10, 2025 Kevin Regan & Adam Zimet

Building a Semantic Layer
for Financial Close

Structuring accounting data for LLM reasoning and agentic workflows.


TL;DR

01 LLMs are powerful but context-blind — they can't infer meaning from raw financial data the way a human analyst can.
02 A semantic specification layer encodes definitions, dependencies, and business logic alongside the numbers — giving machines the context they need to reason correctly.
03 In a live test, an LLM with semantic context correctly computed Q2 totals, percentage changes, and trends from a payload that didn't include the aggregate totals at all.
04 This framework is extendable to balance sheets, cash flow, variance analysis, and beyond — and could shift finance ops from periodic manual processes to continuous, intelligent systems.

Abstract

Large Language Models can perform many types of analysis and automation remarkably well — but only under the right structural conditions. LLMs struggle to infer relationships and semantics from normalized tables that lack contextual cues or domain-specific definitions. Databases often present non-linguistic symbol structures: arbitrary labels, cryptic encodings, and implicit relationships. Current solutions attempt to generalize LLM-to-SQL translation but overlook the semantic abstraction needed to bridge these two paradigms. This paper proposes a semantic specification framework for codifying monthly financial reporting into a machine-interpretable format — a semantic bridge that allows LLMs and agent-based systems to more accurately interpret, query, and execute operations on complex financial data and workflows.

Note: Capitalized Terms in this paper refer to specific concepts defined in the proposed framework. See the glossary at the end for full definitions. This paper assumes that production-ready numeric tokenization will perform computation reliably in the future.

The close process and management reporting are linked — but serve different objectives

The monthly close process focuses on financial accuracy and control: ensuring transactions are posted, reconciled, and verified. Management reporting uses those outputs to serve a separate set of objectives:

  • Comparing actuals to expectations and monitoring performance against targets
  • Analyzing variances and tracking cash flow
  • Supporting audit and compliance readiness, particularly for public or regulated firms

Management reporting draws on the verified outputs of the close to produce distributable materials — income statements, balance sheets, cash flow statements, and internal management reports. Critically, all these outputs have historically been designed for humans to read, interpret, and act on.

What if management reporting also produced deliverables designed specifically for machines — agentic systems capable of reading, reasoning over, and eventually acting on structured financial data?

The case for a machine-readable financial document

Today, the outputs of financial reporting are delivered in PDFs, spreadsheets, and slide decks — with business logic and context embedded implicitly in spreadsheet formulas, narrative prose, and institutional knowledge. Machines struggle to interpret or act on these insights consistently without extensive prompt engineering or brittle one-off transformations.

When a financial analyst looks at a single line item in an Excel workbook or PowerPoint slide, they are not just seeing a number. They are interpreting it through layers of preexisting knowledge: the business drivers, expected seasonality, operational activity, and prior period benchmarks. This context is second nature to humans.

To an LLM or autonomous agent, that same number is just an arbitrary key-value pair buried in a file — with no semantic signal to indicate what it means, where it came from, or why it matters.

Human interpretation
LLM interpretation
Advisory Fees: Professional services revenue; likely project-based and high margin
Advisory Fees: A label and value; no understanding of service type or revenue quality
Maintenance Revenue: Recurring revenue from service contracts; tied to customer retention
Maintenance Revenue: No concept of recurrence or contractual basis
Miscellaneous Income: Irregular or non-operating income (e.g., penalties, rebates, FX gains)
Miscellaneous Income: No visibility into what this includes or why it might be significant
6/25: Understood as the June 2025 reporting period
6/25: Ambiguous; could be a date, version number, or label fragment
The challenge is not that machines lack intelligence — it's that the information they're given lacks structure. A machine-readable financial layer, built on semantic definitions and contextual metadata, would provide the scaffolding needed for agents to reason about financial outcomes the same way humans do: only faster, more consistently, and at greater scale.

Semantic specification layer — a worked example

Rather than treating values as isolated numbers in a spreadsheet, the document organizes them into well-defined objects enriched with metadata, business logic, and contextual meaning. Consider the Income Statement for the month ending June 2025, focusing on "Total Service & Other Revenues."

# Line Item 6/25
1Advisory Fees10
2Maintenance Revenue5
3Miscellaneous Income2
4Technical Service Fees3
5Training Income1
6Total Service & Other Revenue21

A semantic definition for "Total Service & Other Revenue" encodes the meaning, not just the value:

JSON — Semantic Definition Object
// Definition object — encodes structure and business meaning { "id": 6, "label": "Total Service & Other Revenues", "group": "service_and_other_income", "parent_section": "income_statement", "description": "Aggregated revenue from services such as maintenance, consulting, and other customer-charged activities that supplement the company's primary offerings.", "tags": ["revenue", "aggregated"], "keywords": [ "service income", "ancillary revenue", "maintenance income", "advisory fees" ], "is_aggregate": true, "aggregation_type": "sum", "computed_from": [ "maintenance_service_revenue", "technical_service_fees", "advisory_fees", "training_income", "miscellaneous_income" ], "formula_hint": "Sum of five component line items billed to customers.", "path": "specs/2025-06_id_5.json" }

The second object pairs actuals with referential connections to the definition:

JSON — Numeric Payload (Q2 2025)
{ "section": "income_statement", "entities": "Combined", "currency": "USD", "periods": ["4/30/2025", "5/31/2025", "6/30/2025"], "data": { "advisory_fees": { "4/30/2025": 9500000.00, "5/31/2025": 9700000.00, "6/30/2025": 10000000.00 }, "maintenance_service_revenue": { "4/30/2025": 4800000.00, "5/31/2025": 4900000.00, "6/30/2025": 5000000.00 } // ... additional line items } }

When these two objects are provided to a model, the results are meaningful:

Model Response — Q2 2025 Analysis
Total Service & Other Revenues for Q2 2025: $61.15M

Advisory Fees: $29.2M  ·  Maintenance: $14.7M  ·  Technical Fees: $8.7M  ·  Misc. Income: $5.7M  ·  Training: $2.85M

Revenue grew steadily month-over-month — May increased 2.78% over April; June increased 3.19% over May. Advisory Fees dominated the mix (~48%). The steady growth across all components suggests broad-based expansion rather than one-off events.
The sums, aggregations, and ratios were all correctly inferred even though "Total Service & Other Revenues" was not explicitly included in the payload. The LLM inferred correct aggregations by referencing the semantic definition — then computed percentage changes and interpreted growth trends not provided upfront. Without encoded metadata, this is not possible.

If it works, these systems would understand workflows — not just automate them

If a financial semantic layer can meaningfully improve LLM accuracy and reliability on financial data, LLMs could augment traditional tools for financial modeling, simulation, and scenario generation. These systems would not merely automate existing workflows — they would understand them, reason over them, and adapt continuously with minimal human intervention.

By embedding financial meaning directly into data structures, agents could:

  • Roll up and unwind intercompany entity activities
  • Perform real-time modeling, simulation, and forecasting based on semantically linked actuals
  • Suggest automated refinements to classifications, accruals, or estimates during the close process
  • Propose and post journal entries in response to business events or policy conditions
  • Maintain explainability and auditability at every step, with clear lineage to underlying logic
Over time, this approach could shift finance operations from periodic, manual processes to continuous, intelligent systems capable of proactive insight, dynamic adjustment, and self-correction — fundamentally redefining the role of enterprise financial infrastructure.

Where existing solutions fall short

Most efforts to incorporate AI into financial workflows have focused on translating natural language into SQL (OpenAI Codex, Microsoft Copilot). These approaches operate syntactically — treating tables as flat and context-free.

Tools like dbt offer semantic modeling, but are typically used for transformation logic in the ELT pipeline — not for encoding financial meaning. Looker's LookML and Microsoft Fabric semantic models bring structure to BI reporting, but lack the financial domain specificity and agent-oriented design needed for reasoning and autonomous action.

ERP systems such as SAP and Oracle maintain chart-of-accounts metadata and can provide structured reporting outputs, but these are rarely agent-accessible in practice. Workiva and Anaplan offer connected reporting capabilities, but the semantics are implicitly tied to spreadsheet formulas and hardcoded logic.

To our knowledge, no solution yet formalizes monthly close outputs in a modular, reusable, and machine-interpretable format designed explicitly for LLM consumption. This work aims to fill that gap.

For real-world viability: auditable, versioned, and governed

Each definition should carry metadata establishing provenance and control:

  • version — A monotonically increasing integer or semantic version string
  • created_by / approved_by — Establish provenance and control
  • effective_period — Restrict use to specific time windows (e.g., fiscal Q2)
  • change_log — A structured array of amendments, timestamps, and reasons

Governance frameworks could follow patterns similar to data contracts, with specification authorship owned by the finance team but validated by data engineering or controls groups. Automated diffing tools should detect semantic drifts across periods, flagging when business logic changes may affect downstream analytics or agentic behavior.

While this paper focused on a single revenue line item, the approach is extendable to: balance sheet metrics, cash flow classifications, variance analysis and explanations, and narrative management reporting.

Models tested

✓
ChatGPT 4o Success
✓
Gemini Flash 2.5 Success
✕
Claude Sonnet 4.0 Failed

Terms used in this framework

Agentic Systems — often powered by LLMs — that can take action autonomously or semi-autonomously. An agentic system doesn't just process information; it can reason, plan, and execute tasks based on its understanding of context and objectives.
Key Value Pair A simple data structure in which each key (or field name) is associated with a specific value. Common in JSON, dictionaries, and structured formats. Example: "account": "COGS".
Layer A conceptual or architectural level that organizes and separates concerns within a system. A "semantic layer" refers to a machine-readable, structured representation that sits above raw data and provides meaning and context.
Line Items Individual entries on a financial report representing a specific category of revenue, expense, asset, liability, or equity. Examples: "Advisory Fees" or "Accounts Payable." Line items can be raw or aggregated.
Object In data structures, a collection of related key-value pairs grouped together as a single unit. In JSON, an object may represent a financial line item and include metadata such as label, ID, and aggregation logic.
Payload The main content of a data transmission — the part that carries the actual value of interest, as opposed to headers, metadata, or structure. In a JSON API call, the payload includes the body of the message (e.g., account balances).
Semantic Refers to the meaning of data elements, not just their format or structure. A semantic system encodes what each value represents in context — so machines can interpret, reason about, and act on it intelligently.