Back to main page

First Light: Seeking Scaling Behavior in Public Blockchain Data

This is part of our Ledger Foundation Models series, building open financial AI for populations the industry doesn’t see.

In machine learning, a key milestone is reached when a model’s performance starts following a predictable curve as it is trained on more data and doesn’t show signs of flattening. It marks the difference between a classical ML model trained on highly engineered features and a high-capacity model on rawer data—typically a transformer based deep learning neural network—that has the potential to become a foundation model. It’s also an early decision point in our research roadmap where we answer whether we should reasonably continue to invest.

This week, we saw that curve for the first time in our work with public blockchain data.

We’ve been pursuing a fundamental research question: can the transaction histories sitting on public blockchains support foundation modeling for finance, specifically for underwriting, fraud, and other prediction tasks useful to Tala’s customers? The idea is to apply the approach that transformed language modeling to streams of ledger line items.

Most of Tala’s lending today is built on compact, classical machine learning models. The bet is that a transformer pretrained on enormous volumes of raw transaction history mined from public blockchains can learn patterns that small models never see, and that those patterns can later be put to work on harder, data-scarce problems, like efficiently extending our lending to the global majority in emerging markets.

We asked two questions:

  1. Does a model trained on public blockchain transactions keep improving as we give it more data, with no end in sight?
  2. Do these models help on the real prediction tasks we care about?

What we mean by scaling

A scaling law says that as we increase training data, the model’s error on data it has never seen falls along a smooth, predictable curve, as long as the neural network is overparameterized. Overparameterizing, or saturating, the model means making sure there are enough neural units to fully represent the information contained in the training data, plus a margin. Having a curve is valuable because it tells us what the next order of magnitude of data and compute will buy before we spend it.

Question 1: Does the model keep improving as data grows?

It did, across the full range we tested. We pooled public transaction data from three chains (Ethereum, Tron, and Stellar) and trained five model sizes from scratch, from under 100k to 85M parameters. Across 2.5 orders of magnitude of training data, held-out next-event loss fell at every step, from 3.98 to 3.67 nats. Held-out next-event loss measures how often the model is surprised by what happens next on data it hasn’t seen. Lower is better. The curve fits a power law with an exponent of about 0.16 (bootstrap interval 0.158 to 0.168) and a floor near 3.48.

Held-out next-event loss falls at every data step and follows a power law in unique data once the model is large enough.
Held-out next-event loss falls at every data step and follows a power law in unique data once the model is large enough.

What makes us take this seriously:

  • The curve is smooth. Each of the six saturated data budgets improved on the last by more than twice the seed-to-seed noise, meaning the improvement is not a statistical fluke.
  • The models behave as theory predicts. At small data, the larger models memorize: held-out loss sat 0.14 to 0.25 nats above training loss. Larger models only pay off once the data reaches about 100 million tokens. This is the overparameterized regime that scaling laws describe.
  • The curve hasn’t bent. Inference is still improving with more data. This is our signal to keep investing.

Question 2: Do these models help on real tasks?

Early signs say yes. A curve of pretraining held-out loss isn’t valuable on its own. A model can get better at predicting easy things and still fail at tasks we care about. So we also tested whether the pretrained models help on downstream questions.

  • When used as features within a classical prediction model, frozen embeddings from the pretrained model improved prediction performance on all nine on-chain prediction labels tested (e.g., Trees (grey) vs Trees + frozen encoder (orange) in left figure below).
  • A fine-tuned version of the model beat the hand-engineered tree baselines on out-of-time data that the models had never seen by up to 0.018 average precision across all three chains (right figure below).
  • Further evaluation on data 2 months forward that no model had seen still showed gains over the trees with hand-built features on all three chains: Tron (+0.015), Ethereum (+0.012), and Stellar (+0.007) . This is a sign of generalizability and stable performance.
  • Off-chain, a model starting pretrained on public-chain data beat a randomly initialized one on a public banking dataset when labels were scarce, by up to 0.058 in accuracy. Scarce labels are the situation we’re most often in.
Left: on Ethereum, the neural ensemble and blend sit above the tree models (development results). Right: in a month the models never saw, the fine-tuned neural model beats the trees on all three chains.
Left: on Ethereum, the neural ensemble and blend sit above the tree models (development results). Right: in a month the models never saw, the fine-tuned neural model beats the trees on all three chains.

What this means and what comes next

Foundation model behavior shows up, in part, as a curve that keeps going where you expected a wall. We are not at the point of declaring victory, but the signals in public blockchain data are the ones we’d hope to see if the idea works. On our two questions: the model kept improving as data grew, and early results suggest it helps on real tasks when labels are scarce.

If those signals hold as the data grows, the payoff could be significant: a pretrained model that learns from hundreds of millions of public transactions and can be adapted to a small partner with just a few thousand labeled customers. That is the opportunity we’re pursuing. The next step is to test whether the curve carries through to downstream accuracy at a larger scale. If it does—if a public blockchain model can be built and stand on its own—our belief is that it will inevitably lead to transfer learning value for consumer lending tasks and beyond.

We’re building the Ledger Commons in the open. Reach out to labs@tala.co if you’d like to help shape it.

Share this article now: