How Transformers Changed AutoDL at Alfa-Bank

Artemiy Lyamin, Ivan Trenyov5 May 2026

Problem

Alfa-Bank's internal framework ANNA trained one recurrent network (LSTM/GRU) per data source and fed their embeddings into a mixer model. As cases and sources multiplied, every change in the data marts meant editing the framework core, and new data scientists needed a long ramp-up. It was deployed as a repository copy on a GPU node, not as a library, and on datasets of 10+ million rows the pipeline ran for several days.

Example from the article: on a propensity benchmark (Propensity 2), one training cycle of ANNA 1.2 took 240 minutes on an NVIDIA H100.

Solution in brief

ANNA 2.0 builds, for each client, one sequence per source (bins or precomputed embeddings plus timestamps). A shared transformer encoder reads all sequences, and a bottleneck fusion module merges them without separate pooling. Memory measures (downsampling, nested tensors, cheaper joins), a modality filter and a DARTS-then-Hyperopt search make the pipeline faster and mostly automatic.

Questions this case answers
  • How to replace a set of per-source sequence models joined by manual concatenation with one multimodal model that is cheap to extend with new sources
  • How to keep memory and training time under control when a model reads long variable-length event histories from several sources
  • How to replace one recurrent model per data source with a single multimodal transformer for propensity and churn scoring
  • How to combine transaction sequences, credit-bureau data, compressed feature-store embeddings and click history in one model

Tools and methods

  • Multimodal Bottleneck Transformer Fusion (MBTF) — merges modality sequences through a few latent bottleneck tokens.
  • DARTS — gradient-based architecture search over a supernet.
  • Hyperopt — Bayesian tuning of learning rate, batch size and similar parameters after the architecture is fixed.
  • Apache Spark / Hadoop — builds the per-client sequences.
  • FastText — skipgram embeddings of click-event sequences from Vertica.
  • PyTorch / CatBoost — model code; CatBoost as a comparison baseline on Feature Store data.
Continue reading — it's free

Google or a one-time email code. No password.