Zubnet AIAprenderWiki › Drift Detection
Infraestrutura

Drift Detection

Data Drift, Model Drift, Concept Drift
Monitorar mudanças na distribuição de dados ou comportamento do modelo ao longo do tempo que poderiam degradar a performance. Data drift: os dados de entrada mudam (demografias de clientes mudam, novas categorias de produto aparecem). Concept drift: a relação entre entradas e saídas corretas muda (o que constitui spam evolui). Model drift: as previsões do modelo gradualmente se tornam menos precisas mesmo que o modelo em si não tenha mudado.

Por que importa

Modelos são treinados em dados históricos, mas o mundo continua mudando. Um modelo de detecção de fraude treinado em 2024 vai perder os novos padrões de fraude de 2025. Um sistema de recomendação treinado em comportamento pré-pandemia vai fazer sugestões ruins pós-pandemia. Detecção de drift pega essas degradações antes que se tornem caras — alertando você que o modelo precisa de retreinamento ou atualização.

Deep Dive

Data drift detection: compare the statistical distribution of current inputs to the training data distribution. If features shift significantly (using tests like KS test, PSI, or Jensen-Shannon divergence), the model may be operating outside its training distribution. Example: a credit scoring model trained on applicants aged 25–55 starts receiving applications from 18-year-olds — a population it's never seen.

Concept Drift

Concept drift is harder to detect because the inputs look the same but the correct outputs change. During COVID, "normal" purchase patterns shifted dramatically — buying 100 rolls of toilet paper went from "probable fraud" to "Tuesday." The model's predictions became wrong not because the model degraded, but because reality changed. Detecting concept drift requires comparing predictions to ground truth, which often arrives with a delay.

For LLMs

LLM drift manifests differently: user query patterns shift (new topics emerge), provider model updates change behavior (API model versions change silently), and the world changes (outdated training data). Monitoring strategies include: tracking output quality scores over time, detecting shifts in topic distribution of queries, alerting on increases in user-reported issues, and periodically re-evaluating on a fixed benchmark to detect provider-side changes.

Conceitos relacionados

← Todos os termos
ESC