arXiv Science⌕ Search

arXiv · 2610.12718

A Distributional Framework for Behavioral Characterization and Risk Management of Large Language Models

Abstract

Large language models are stochastic by nature. Repeated executions under the same experimental conditions may produce different responses. We propose a framework that can be applied across the model lifecycle, from task design to residual behavior and continuous monitoring. The method consists of building an empirical response distribution estimated through Monte Carlo simulation. Semantic interventions are introduced to study how these distributions change. We illustrate the framework with two different tasks, borrower classification and music album recommendation, and quantify the resulting distributional changes. The framework is linked to model risk management and governance by measuring robustness and control effectiveness, and characterizing residual behavior. Since it relies only on observed responses, it can also be applied to black-box models accessed through commercial APIs.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

David García-Lorite, Raul Merino. 2026-10-08. A Distributional Framework for Behavioral Characterization and Risk Management of Large Language Models. https://arxiv.org/abs/2610.12718

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Is TabPFN the Silver Bullet for Insurance Pricing?

Modelling claim frequency and severity for non-life insurance pricing predominantly relies on generalised linear models (GLMs), with gradient-boosted machines as the leading machine learning alternative. Tabular foundation models (TFMs) present a fundamentally different inference paradigm. By pre-training on large collections of synthetic datasets, TFMs enable inference on new data through in-context learning, without any dataset-specific preprocessing, fitting, or hyperparameter tuning. This paper presents a first empirical evaluation of TabPFN for motor insurance pricing, benchmarking two versions of TabPFN against GLM and XGBoost on two publicly available motor third-party liability (MTPL) datasets. Our results show that TabPFN does not consistently outperform established baselines: it falls behind the GLM on claim frequency, where its performance depends on the size of the in-context training set, but it is competitive on claim severity, where data are scarcer. Its inference times are substantially longer. Although tabular foundation models are promising, particularly in data-scarce settings, TabPFN is not yet ready to replace established actuarial methods for claim frequency.

q-fin.RM↗

Enhancing credit risk scorecards with transactional-based behavioural features

Background: Credit risk modelling is fundamental in financial institutions, typically using credit history, repayment behaviour, income, and outstanding debt to estimate a borrower's probability of default. Although transactional data are sometimes incorporated through aggregated measures such as recency, frequency, and monetary indicators, behavioural information embedded in raw transaction narratives remains largely unexplored due to its unstructured nature. This limits opportunities to extract richer behavioural insights. Aim: This research investigates payment narratives from transactional data as an alternative data source for credit risk modelling. Setting: The study uses transactional data from a large South African financial institution focused on small and medium enterprises. Method: Techniques such as natural language processing and regular expressions are used to transform unstructured transaction descriptions into meaningful, explainable behavioural features by categorising transactions into interpretable spending categories. A novel categorisation algorithm was developed and evaluated for classification accuracy. The extracted features are incorporated into a credit risk scorecard to assess their predictive value. Results: The categorisation algorithm demonstrates high classification accuracy. Using these features in the scorecard resulted in a significant increase in Gini compared to a scorecard without them. Conclusion: Text-based transactional information can be systematically extracted, categorised, and operationalised to enhance credit risk model performance. Contribution: The study develops a novel, integrated, explainable methodology for transforming transactional text into behavioural features, introduces a structured RegEx-based categorisation approach, and demonstrates their predictive value within traditional scorecard frameworks.

q-fin.RM↗

Systemic risk in interbank networks: disentangling balance sheets and network effects

We study how the level of systemic risk empirically observed in an interbank network differs from the expected risk implied by the balance sheets composition of the participating banks, abstracting from the specific configuration of bilateral exposures. To this end, using different contagion models (i.e., interbank asset valuation functions), we measure observed systemic risk on e-MID network data from 2005 to 2012 and compare it with the expected risk generated by a null model: an ensemble of interbank networks whose links represent possible market clearing configurations. This counterfactual is obtained through a maximum-entropy approach that preserves banks' balance sheet variables and diversification patterns, while randomizing the configuration of exposures. We find that the aggregate levels of observed and expected systemic risks are generally consistent but diverge significantly during turbulent periods - specifically following the default of Lehman Brothers (2009) and the VLTRO implementation by the ECB (2012). At the individual level, however, banks often appear more or less risky than implied by their balance sheet alone, due to their position in the network. Our results show, on the one hand, that balance sheet information embedded in a suitable maximum-entropy framework provides reliable estimates of aggregate systemic risk; on the other hand, they highlight the importance of detailed network information for accurate stress testing of individual banks, particularly after systemic events.

q-fin.RM↗