LIVE · Thursday 3 December

Adding Free-Text Notes to an XGBoost Approve/Deny Model: Which Option Fits Your Team, and Who Builds It

A buyer's guide to embeddings, LLM-extracted features, AutoGluon multimodal, TabPFN with text, zero-shot LLMs and fine-tuned decision models, with published results and a worked cost per 1,000 decisions.

By Thomas10 min read

Most teams whose XGBoost approve/deny model ignores free-text notes should keep XGBoost and add LLM-extracted features from the notes. That option costs about eight cents per 1,000 decisions at OpenAI's list prices, and each feature can be named in an adverse-action notice. Sentence embeddings are cheaper but harder to explain. AutoGluon multimodal and TabPFN with text are worth testing only after that, and a zero-shot LLM should not make the decision.

The right option depends on whether the decision is credit and who will maintain the model

Two questions narrow the choice before accuracy does. The first is whether the decision is a credit decision. If it is, the Equal Credit Opportunity Act and Regulation B require specific principal reasons for every denial. Section 1002.9(b)(2) says that the reasons "must be specific and indicate the principal reason(s) for the adverse action." Insurance claims, refunds and fraud holds fall outside ECOA, so there the choice is mainly about accuracy and cost.

The second question is who will build and maintain the model. A team that already runs XGBoost in production has the pipeline, monitoring and validation in place. Adding columns keeps all of that. Replacing the model means validating something new from scratch.

The table compares the options on the evidence that has been published and on how each one explains a denial.

Option Published evidence How a denial is explained What it needs
XGBoost + LLM-extracted fields No published lending study SHAP value on a named field An approved field list and an LLM API
XGBoost + text scores or embeddings AUC 0.6575 to 0.6644 on Lending Club with a BERT score; 76.5% average accuracy in PORTAL SHAP on unnamed or opaque columns An embedding or text model
AutoGluon multimodal preset AutoGluon's tabular predictor averaged 78.4% on 51 mixed datasets in PORTAL Ensemble of several models A GPU for the text model
Zero-shot LLM ROC-AUC 0.61 to 0.67 against 0.73 for LightGBM on LendingClub Written rationale that may not match the model An LLM API

TabPFN with a text adapter and a fine-tuned decision model are left out of the table because neither has published lending results. Both are covered in the sections that follow. No study has run all of these options on the same splits. Calibration, safe deferral, latency and disparate impact across the options have not been measured.

A lender with an ML team should extract named fields from the notes and keep XGBoost

This is the strongest fit for most credit teams. An LLM reads each note and fills in a fixed set of fields, such as "note reports a recent job loss" or "stated purpose of the loan." OpenAI's Structured Outputs guide says that it constrains completed, non-refusal responses to a supplied JSON Schema, including enum values. The application still has to handle refusals and incomplete responses.

The fields then go into XGBoost as ordinary columns. XGBoost's pred_contribs option returns exact TreeSHAP values for each prediction. If "recent job loss" has the largest negative contribution for a declined applicant, the notice can state that the application reported a recent loss of employment.

That mapping matters because of how the CFPB has read the rule. Circular 2022-03, issued May 26, 2022, said that adverse-action requirements "apply equally to all credit decisions, regardless of the technology used to make them." Circular 2023-03, issued September 19, 2023, said that checking the closest reason on a sample form is not enough. The CFPB announced on May 9, 2025 that it was withdrawing both circulars among 67 guidance documents, according to Holland & Knight. Venable says that the withdrawal took effect on May 12, 2025. The regulation text that they interpreted still contains the specific-reasons requirement.

Named fields also help with proxies for protected traits. Notes can mention names or family situation, or show language patterns that correlate with protected characteristics. Compliance can review the field list and drop any field that could act as a proxy. A CFPB rule effective July 21, 2026 effectively eliminated disparate impact under ECOA, according to Venable. Disparate treatment through proxies remains unlawful, and the Fair Housing Act and many state laws still allow effects-based claims.

No published study measures this option on lending data. The test has to happen on your own decisions.

A team that needs a quick test can add sentence embeddings first

Embeddings are the fastest way to find out whether the notes carry any signal. A model from Sentence Transformers, the library maintained by Hugging Face, turns each note into a vector. PCA then reduces it to a few dozen columns for XGBoost.

The closest lending evidence uses a related method, and it shows a real but small gain. Sanz-Guerrero and Arroyo fine-tuned BERT on 119,101 Lending Club loan descriptions and added its score to XGBoost. AUC rose from 0.6575 to 0.6644, and the BERT score became the third most influential feature. On the 51-dataset benchmark in the PORTAL paper, XGBoost with embeddings averaged 76.5% classification accuracy. CatBoost with embeddings averaged 78.4%.

The drawback is explanation. A SHAP value on embedding column 17 has no meaning for an applicant. Adding up all the embedding columns gives "content of the loan description," which resembles the vague wording that Circular 2023-03 warned against. Embeddings suit a feasibility test, or a decision outside credit where reasons are not required.

A team outside credit, or with GPUs to spare, can test AutoGluon or TabPFN

AutoGluon's multimodal preset is the most automatic option. Its 1.6.1 docs say that the preset fine-tunes an Electra BERT text model and ensembles it with LightGBM, CatBoost, XGBoost and a neural net. A GPU is required for the text model. In the PORTAL comparison, AutoGluon's tabular predictor, which is not the multimodal preset, averaged 78.4% accuracy. That is level with CatBoost plus embeddings. The result is an ensemble, which is harder to explain than one XGBoost model.

TabPFN is the newest option and carries the most uncertainty. The TabPFN-2.5 paper reports a 100% win rate against default XGBoost on classification datasets of up to 10,000 rows and 500 features. The TabPFN-2.5 abstract does not mention text. A June 2026 paper proposed a Text Adapter that feeds sentence embeddings into TabPFN without PCA, but its abstract gives no results. The TabPFN code is Apache 2.0, while the TabPFN-2.5 weights are released under non-commercial licences. Prior Labs sells commercial licences, API access and VPC deployment for TabPFN-3.5.

The broader research is cautious. A 2025 benchmark of 13 datasets with text found that adding text helped on 11, but its authors call the problem "unsolved." MulTaBench, a NeurIPS 2026 benchmark, found that tuning text representations to the target task improves results. Neither study used lending data.

No team should let a zero-shot LLM make the decision

A zero-shot LLM reads the whole application and answers approve or deny without training. A CIKM 2025 workshop paper tested three open models of 7 to 9 billion parameters on about 396,000 LendingClub records. Their ROC-AUC ranged from 0.61 to 0.67, against 0.73 for LightGBM.

The explanations diverged too. LightGBM linked higher interest rates to better repayment odds, while all three LLMs showed the opposite relationship. The authors treat the models' self-explanations as unverified rationales. They suggest LLMs only as a fallback in small-data settings, with independent audits. Whether fine-tuning the same model on a lender's decisions closes the gap has not been measured.

Your own ML team should own the model, because its logic is what you will have to defend

Examiners and declined applicants will ask why a decision was made, so ownership of the field list, the extraction step and validation belongs in-house. Compliance or model risk management should sign off on the fields and the reason mapping before launch. The parts are available off the shelf, and the table compares who can supply them.

Who builds it What it needs Fits when
In-house ML team Labelled decisions, a field list approved by compliance, model-risk validation You already run XGBoost in production
Open-source tools: Sentence Transformers, AutoGluon, TabPFN, openjev-sdk Engineers to integrate them, and a GPU for AutoGluon text models You want full control and no per-call fees
Prior Labs, for TabPFN A commercial licence or API key, with VPC deployment offered for TabPFN-3.5 Small tables where TabPFN's accuracy matters
Managed decision-model vendor Your past decisions as training data, plus validation of a model that you did not build You lack ML staff and can validate an outside model

Keeping XGBoost and adding extracted fields remains the right answer when the team already runs XGBoost and the decision is credit.

A team without ML staff can use a managed decision-model vendor, but still has to validate it

Some vendors fine-tune a decision model on the table and notes together and then serve it. This option suits a team that has years of labelled decisions but no one to build the pipeline. It moves the build work outside and leaves the validation work inside.

The open-source version of this approach is the MIT-licensed openjev-sdk. It trains models that choose one option from a supplied list and return a probability for each option. One method fine-tunes an encoder such as ModernBERT-large that serves on CPU. Its README warns that zero-shot probabilities are "softmaxed next-token likelihoods, not calibrated judgements."

Parsec is one managed vendor. Its decision-models page says that it tunes models on a customer's own decisions and builds the evaluations and training sets. Parsec says that a post-trained model "can reach production within two weeks," a claim that comes without a measured delivery record. The page gives no price for custom tuning and names no deployment options. It does not describe how ranked reasons would map to adverse-action codes, so a lender would need that mapping designed and validated.

Removing notes written after the decision comes before choosing any option

Every option fails if the notes contain the outcome. Underwriting notes such as "declined, DTI too high" are written during or after review. A model trained on them scores well in testing and badly on new applicants. The Lending Club descriptions in the 2024 study came from the borrower's application form, which is why they were usable.

A leakage check needs three steps:

  1. Keep only notes with a timestamp before the decision, and drop notes with no timestamp.
  2. Remove post-decision phrases such as "declined," "approved" and reason-code text, then check a sample by hand.
  3. Train with and without the removed notes and compare AUC, since a large drop shows real leakage.

The size of that drop for underwriting notes has not been published.

A lender making 50,000 decisions a month would spend about $4 a month on extraction

The worked example shows the running cost of the text step at list prices. It assumes 50,000 decisions a month and notes of about 300 tokens. Extraction uses a prompt of 800 input tokens, including the schema, and returns 100 output tokens. The prices come from OpenAI's API pricing page.

  1. Extracting fields with gpt-5-nano, at $0.05 per million input tokens and $0.40 per million output tokens, costs $0.08 per 1,000 decisions. That is $4.00 a month.
  2. Running the same extraction on gpt-6-luna, at $0.10 and $0.50 per million, costs $0.13 per 1,000, or $6.50 a month.
  3. Embedding the notes with text-embedding-3-small at $0.02 per million tokens costs about $0.006 per 1,000, or $0.30 a month.
  4. Backfilling 200,000 historical notes to build the training set costs about $16 with gpt-5-nano, or $8 through the Batch API at half price.
  5. Asking gpt-6.2-sol to decide each application zero-shot, at 1,500 input and 300 output tokens, costs $6.00 per 1,000, or $300 a month.

The zero-shot route costs about 75 times more than extraction with gpt-5-nano and has the weakest published accuracy. The XGBoost model itself is not included, because it is already running. Self-hosting costs for AutoGluon, TabPFN or a fine-tuned decision model depend on hardware and have not been measured on the same workload.

Sources

More in Research

All Research →