arXiv:2608.30086cs.CLAug 2026

Manuscript Offprint

arXiv:2608.30086

When Does a Classifier Help an LLM? Classifier-Guided Prompting and Hybrid Classifier-LLM Models for Credit-Default Prediction

Rishi Datta, Lavanya Prahallad

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Rishi Datta

Amador Valley High School

Pleasanton, California, USA

rishidatta20@gmail.com

Lavanya Prahallad

Research Spark Hub Inc.

Dublin, California, USA

lavanya@researchsparkhub.com

Abstract—Credit-default prediction is an important task in financial decision making. Traditional methods use fitted classifiers such as logistic regression and random forests on tabular features. Large language models (LLMs) have recently been applied to this task through prompting. In this work we study how a fitted classifier and an LLM can be combined for credit-default prediction. We distinguish telling the LLM to imitate a classifier from using the classifier to build the prompt. We hypothesize that a fitted classifier can supply the ranking ability that an LLM prompt lacks. We experiment on the Default of Credit Card Clients dataset, and report recall, F1, and the area under the ROC and precision-recall curves, with bootstrap confidence intervals. We observe that a few-shot LLM has the highest recall (0.47) and F1 (0.50) of any single model but ranks worse than a random forest (AUC-ROC 0.72 against 0.79). Instructing the LLM to imitate a classifier gives no significant change. Pruning the prompt to the classifier's eight most important features raises recall by 0.071 and F1 by 0.032. Adding the classifier's predicted probability to the prompt raises the LLM's AUC-ROC from 0.72 to 0.78, matching the random forest, while keeping 0.118 higher recall than it. The reverse composition, and the use of several classifiers, do not help. We thus recommend a simple classifier-guided prompt for LLM-based credit prediction.

Index Terms—Credit risk, large language models, tabular data, random forest, prompting, class imbalance

I. INTRODUCTION

Credit-default prediction is an important task in financial decision making. Given a client's repayment history, credit limit, bill amounts, payment amounts, and demographic details, a model estimates the probability that the client will default. Traditional methods treat this as a supervised classification problem. Logistic regression and tree ensembles such as random forests are common and strong baselines, because they capture the nonlinear interactions found in credit data [1]–[3].

Large language models (LLMs) have recently been used for financial decision support, because they follow instructions and produce natural-language explanations [4]. Several studies apply LLMs to credit and financial tasks. Feng et al. [5] instruction-tune a credit LLM and compare it with GPT-4. Sanz-Guerrero and Arroyo [6] build a risk indicator from peer-to-peer loan descriptions. Domain models and surveys map the wider area [7], [8], and a review of interpretable credit LLMs organizes architectures and explanation methods [9]. Explainability-focused pipelines usually keep the prediction in a conventional model and use the model output for explanation [10], [11]. Most of this work uses text inputs such as loan descriptions, or fine-tuned domain models. We instead study prompting over structured tabular records with a general model.

A separate line of work studies LLMs on tabular prediction directly. TabLLM [12] shows that few-shot classification of serialized tables is competitive with trees at very low shot counts. A survey [13] and newer methods extend this through fine-tuning [14] and retrieval-augmented in-context learning [15]. These studies show that LLMs can predict on tabular data, but they also find tree ensembles stronger as the data grow.

An LLM given tabular records is not the same as a fitted classifier. A fitted classifier learns parameters from labeled data. An LLM can only be instructed at inference time. This raises a practical question that, to our knowledge, has not been isolated for credit risk: when, and how, does a fitted classifier help an LLM, and does the LLM help the classifier? We consider three ways a classifier can be connected to an LLM prompt. The first is imitation: we tell the LLM to reason like the classifier, using a role instruction or feature-importance hints. The second is prompt construction: we use the classifier to decide what goes in the prompt, that is, which features to show and which few-shot examples to use. The third is a hybrid: we feed the classifier's output into the prompt, or the LLM's output into the classifier. Related methods use LLMs to select or engineer features [16]–[18] and compare trees with LLMs [19]. Our prompt-construction condition inverts feature selection: we use a fitted classifier's importances to prune the prompt. Our hybrid conditions test both directions of composition.

We hypothesize that a fitted classifier can supply information that an LLM prompt lacks, in particular the ability to rank clients by risk. We experiment on the Default of Credit Card Clients dataset. We use a fixed set of 2000 held-out clients, and report recall, precision, F1, and AUC, with bootstrap confidence intervals. We compare a few-shot LLM with fitted logistic regression, random forest, and AdaBoost. We then test imitation prompts, classifier-guided feature pruning, few-shot example selection, and hybrid models in both directions. We also study whether diffusion-based augmentation of the minority class helps a fitted classifier, and compare it with SMOTE [20] and class-weighting; diffusion models such as TabDDPM [21] and LLM-based synthesizers [22] motivate this comparison. Throughout, we report null and negative results together with the positive ones.

References (22)