LLM research · MSc research · 2026
LLM ensembles for IFRS compliance checking
A public IFRS compliance benchmark and a content-conditioned ensemble classifier that beats every LLM and aggregator on the pairs where three frontier LLMs disagree.
The learned ensemble reaches 0.817 weighted F1 on 8,837 human-labeled disagreement pairs, 10.4 points above the best single LLM.
- Role
- First author, MSc research
- Stack
- Python · PyTorch · sentence-transformers · XGBoost · Optuna · GPT-4.1 · Claude Sonnet 4 · Gemini 2.5 Pro · LlamaParse
- Links
- Paper >

Context
This is my MSc research at Ontario Tech, supervised by Dr. Li Yang and Prof. Miguel Vargas Martin, with finance faculty as collaborators. Auditors check whether a company's financial statement disclosures meet the International Financial Reporting Standards (IFRS). They do it by hand, paragraph by paragraph, against hundreds of fine-grained requirements.
LLMs look like an obvious assistant for this. I wanted to know whether an ensemble of them can be accurate on real filings, and what happens when the company being audited writes text aimed at the model.
The problem
No public benchmark existed for IFRS compliance verification. Prior work in this line used proprietary data.
Single LLMs are not reliable enough either. Each model I tested failed in a different way, and the obvious fix (majority or soft voting) made things worse. GPT-4.1 labels 95.5% of the hard pairs Not Complied, and that one biased voter pulls both votes below the best single model.
Then there is the threat model. The LLM reads text written by the party it is judging. If a filer can steer the verdict to Complied, a deficient filing closes with no analyst ever looking at it.
What I built
The pipeline pairs each disclosure with candidate regulations, labels the pairs with three LLMs, sends their disagreements to human analysts, and trains a classifier on the result.

The corpus is 3,489 regulation paragraphs from all 18 active IFRS standards and 39,404 disclosure paragraphs from 329 audited annual statements filed on SEDAR+ (fiscal years 2022 to 2025). I parsed both with LlamaParse.
Retrieval uses a BERT encoder further pre-trained with masked language modelling on SEC EDGAR 10-K filings. On top of it I trained TSDAE and SimCSE stages, then a supervised contrastive stage. The MLM encoder's top-5 matches for 4,000 randomly selected disclosures gave 20,000 pairs; 19,998 of them carry final labels.
GPT-4.1, Claude Sonnet 4 and Gemini 2.5 Pro label every pair at temperature 0 and return structured JSON: a label plus a probability for each class. All three agree on 11,161 pairs. The other 8,837 were labeled by three junior IFRS analysts, blind to the models and to each other, on an annotation platform I built. Two senior specialists adjudicated escalations.
How it works / key decisions
Aggregation as content-conditioned classification. Voting, Dawid-Skene, MACE and CROWDLAB all decide from the model outputs alone. My classifier also reads what the pair says. Its 1,565-dim input joins a 29-dim summary of the LLM panel (class probabilities, entropies, agreement patterns, pairwise KL divergences) with the 1,536-dim frozen SBERT embedding of the regulation and disclosure. An XGBoost meta-learner, tuned by Optuna's TPE sampler over 100 trials, maps that to a label. Which model to trust turns out to depend on the content, so the classifier can learn when to overrule a biased annotator.
Class weights matter. Complied is only 4.4% of the labeled set. Without the tuned class weights the meta-learner collapses to predicting Not Applicable, and weighted F1 drops below 0.75.
Calibration as a diagnostic. I ran EM joint calibration, fitting a temperature per model against the current soft labels. With the bound at 20, the learned temperatures rank the annotators correctly (0.55 for Claude, 5.73 for Gemini, 14.36 for GPT-4.1). ECE fell from 0.811 to 0.508 for GPT-4.1 and from 0.215 to 0.123 for Gemini. With the textbook bound of 5, two temperatures pin at the bound and weighted F1 collapses to 0.503. EM is useful for telling you which model to trust, not for producing the labels.
Clean evaluation. Every classifier score is out-of-fold under stratified 5-fold cross-validation on the 8,837 human-labeled pairs. Those share no pair with the 11,161 unanimous pairs used for contrastive training.
Red-teaming is part of the work. The model reads text written by the party it judges, so I also attack this pipeline with indirect prompt injection and adversarial perturbations. That study is still in review, so its results are not here yet.
Results
On the 8,837 disagreement pairs:
- The ensemble classifier reaches 0.817 weighted F1 and ECE 0.068. Gemini 2.5 Pro, the best single LLM, reaches 0.713. MACE, the best of the eleven unsupervised aggregators, reaches 0.722. Hard and soft voting sit at 0.671 and 0.672.
- A per-pair oracle that picks the right model every time reaches 0.949. The classifier closes 41.9% of the gap between MACE and that oracle.
- Probability features alone stop at 0.727. The frozen text embedding adds 8.1 points.
- The retrieval pipeline reaches 45.3% Recall@15 on regulations held out of training.
The paper is on arXiv. The dataset, checkpoints, classifier code and annotation platform will be released with it.
What I'd do next
My folds are stratified by label, not grouped by filing, so the scores measure generalization to unseen pairs rather than unseen companies. A grouped split is the next test.
Screens

