2 min read
Write the benchmark contract before collecting scores
A leaderboard score only answers the question implied by its sampling and scoring rules.
Read the guideChoralSoft Book Guides
Read worked examples from our books on AI and algorithms. Start with 15 new guides from Next-Generation AI, Explained and Evaluated, or explore the other collections below.
Explore practical ways to evaluate agent reliability, inference budgets, model internals and long-term memory.
2 min read
A leaderboard score only answers the question implied by its sampling and scoring rules.
Read the guide2 min read
A retry can improve the chance of seeing at least one success, while a repeated-use requirement asks whether every attempt succeeds.
Read the guide2 min read
A paired benchmark lets task difficulty affect both systems, so the comparison can focus on the cases where the outcomes differ.
Read the guide2 min read
An end-to-end failure rate says how often the workflow breaks.
Read the guide2 min read
An agent can retry a failed step, restart the whole task, or escalate to a human.
Read the guide2 min read
Generating more candidates only helps if the candidate set contains a usable answer and the selection procedure can find it.
Read the guide2 min read
Selecting the highest-scoring output among more candidates puts pressure on the scoring function.
Read the guide2 min read
Cost per attempted request can favor a system that cheaply fails.
Read the guide2 min read
A probe tests whether information can be decoded from a representation under a particular split and probe class.
Read the guide2 min read
Activation patching replaces an internal value from one run with a corresponding value from another run.
Read the guide2 min read
A sparse autoencoder can produce a feature that is easy to label from its strongest examples.
Read the guide2 min read
Agent memory is a pipeline.
Read the guide2 min read
A retention experiment can end before some memories fail.
Read the guide2 min read
A single average can conceal which tasks a model improved on and which it lost.
Read the guide2 min read
A short evaluation plan can prevent decisions about metrics, slices and stopping from being made after the answers are visible.
Read the guideTwenty chapters of statistical methods for LLM development and evaluation, with worked derivations, exercises and a companion Python library.
4 min read
What a clean pilot actually proves, the “rule of three”, and how many trials you need before a one-sided bound is worth reporting.
Read the guide5 min read
When conversations come grouped by customer, treating every row as independent makes your interval too narrow. Here is how to resample the right unit.
Read the guide5 min read
Choosing the lowest-scoring category and then reporting an ordinary interval overstates the evidence. A simultaneous bound fixes it.
Read the guide5 min read
How to estimate the chance that at least one of k samples passes, using n completions per problem, and why you cannot treat the subsets as independent.
Read the guide5 min read
How split conformal prediction turns any classifier’s scores into prediction sets that contain the true label at a rate you choose.
Read the guide5 min read
A cheap judge scores everything and a small human audit corrects it. How to combine them and why the combination can beat either alone.
Read the guide4 min read
Cohen’s kappa corrects for chance agreement. Two worked examples show how high agreement can still hide a weak rubric.
Read the guide4 min read
Random seeds change fine-tuning outcomes. How to estimate seed spread and decide how many runs a comparison needs.
Read the guide5 min read
Checking a metric every day with a 5% test guarantees false alarms. Sequential monitors give you a controlled alarm rate.
Read the guide5 min read
Testing four on/off changes takes 16 runs. A half fraction uses 8, at the cost of aliasing. Here is how to see what you gave up.
Read the guideReinforcement learning is how modern language models are taught to reason, use tools and act over many steps. The book builds the subject from first principles, with the mathematics worked out and the code written from scratch.
5 min read
The three stages that turn a pretrained model into an assistant, and the failure modes to watch at each one.
Read the guide5 min read
How rule-based checks on answers and code replace a learned scorer, and where weak verifiers still leak.
Read the guide4 min read
Reward the final answer, reward each step, or both? The trade-offs in cost, signal density and hackability.
Read the guide4 min read
Why policy entropy falls during RL fine-tuning, how to see it, and what helps preserve diversity.
Read the guide5 min read
Token, turn and episode-level credit, and the tools that make sparse agent rewards learnable.
Read the guide5 min read
Why stale rollouts break policy-gradient assumptions, how importance ratios and clipping help, and what to monitor.
Read the guide5 min read
A training-free baseline with a clean KL bound, rejection-sampling fine-tuning, and when RL is worth its cost.
Read the guide5 min read
Using pass-at-k curves to tell whether RL-trained reasoning models solve new problems or choose better among old answers.
Read the guide4 min read
Two common ways policies exploit proxy rewards, and countermeasures you can apply today.
Read the guide5 min read
Verifiable outcomes, partial credit, penalties and how to test a reward before you train against it.
Read the guideLearn to measure uncertainty and evaluate decisions using calibration, conformal prediction, causal inference, grounded retrieval and off-policy evaluation.
5 min read
How to check whether a model’s probabilities mean what they say, and what expected calibration error can and cannot tell you.
Read the guide4 min read
Divide the logits by a single number fitted on held-out data. It leaves predictions unchanged and often improves calibration.
Read the guide4 min read
Two kinds of “I’m not sure” call for different responses: collect more data, or accept irreducible noise.
Read the guide5 min read
Plain conformal intervals have a fixed width. Combining quantile regression with a conformal correction gives intervals that widen where the data are noisy.
Read the guide5 min read
A common cause can make a treatment look helpful or harmful. Here is how adjusting for the right variable fixes it, and how adjusting for the wrong one breaks it.
Read the guide5 min read
Reweighting observational data so treated and untreated groups look alike, and the positivity check that keeps it honest.
Read the guide5 min read
Three standard ways to score a retriever, what each rewards, and how to pick one for a question-answering pipeline.
Read the guide5 min read
A retrieval system should answer only when the evidence supports it. How to measure support and set an abstention rule.
Read the guide5 min read
Inverse propensity scoring estimates how a new decision policy would have performed using data collected by a different one.
Read the guide5 min read
Two ways to tame the variance of importance-weighted estimates: add a reward model, and cap extreme weights.
Read the guideStudy diffusion and flow models, equivariance, Bayesian optimization, reinforcement learning and the evaluation of generative systems.
5 min read
How a fixed noising schedule works, and the one-line formula that lets you jump to any noise level directly.
Read the guide5 min read
Three equivalent-looking targets for the same model, how they relate, and why the choice affects training.
Read the guide4 min read
A single extra knob trades diversity for prompt adherence. Here is the formula and its failure modes.
Read the guide5 min read
Instead of learning to reverse a noising process, learn a velocity field that carries noise to data along near-straight lines.
Read the guide4 min read
If shifting the input shifts the output, the model is equivariant. If the output ignores the shift, it is invariant. Knowing which you need changes the architecture.
Read the guide5 min read
The surrogate model at the heart of Bayesian optimization: what a Gaussian process gives you and what its kernel assumes.
Read the guide5 min read
Acquisition functions turn a surrogate model’s mean and uncertainty into a decision about what to evaluate next.
Read the guide4 min read
Sparse rewards make learning slow. Potential-based shaping adds guidance while provably leaving the best policy unchanged.
Read the guide5 min read
The Fréchet Inception Distance compares feature statistics of real and generated images. It is useful, and easy to misuse.
Read the guide5 min read
A single score hides whether a generator makes realistic samples, covers the data, or neither. Precision and recall for distributions separate the two.
Read the guideA visual, plain-language guide to algorithms spanning data structures, searching, sorting, graphs, machine learning and generative AI, with a two-page learning spread for every concept.
View book detailsApple BooksAmazon Kindle
4 min read
Roots, leaves, depth and traversal orders: the structure behind folders, web pages and org charts.
Read the guide5 min read
The ordering rule that makes lookups fast, how sorted input can wreck it, and how self-balancing trees fix it.
Read the guide4 min read
Nodes, edges and weights, and why most real networks are best stored as adjacency lists.
Read the guide5 min read
Dijkstra, A* and minimum spanning trees, and why “cheapest route” and “cheapest network” are different questions.
Read the guide5 min read
Why n log n beats n squared, and what each fast sorting method gives up to get there.
Read the guide4 min read
How remembering answers turns a 300-million-call recursion into about 40 computations.
Read the guide5 min read
Why you test on unseen data, what overfitting looks like, and the mistakes that quietly ruin evaluations.
Read the guide5 min read
Why single trees overfit, and how random forests and boosting turn many weak trees into a strong model.
Read the guide5 min read
Classify by looking at the closest examples, group data with k-means, and know where each breaks.
Read the guide5 min read
Collaborative filtering, content-based methods, cold start and feedback loops.
Read the guideUn guide visuel et accessible des algorithmes : structures de données, recherche, tri, graphes, apprentissage automatique et IA générative, avec une double page d’apprentissage pour chaque concept.
View book detailsApple BooksAmazon Kindle
4 min de lecture
Racine, feuilles, profondeur et parcours : la structure derrière les dossiers, les pages web et les organigrammes.
Lire le guide5 min de lecture
La règle d’ordre qui accélère les recherches, ce qui la ruine avec des données triées, et comment les arbres auto-équilibrés y remédient.
Lire le guide4 min de lecture
Nœuds, arêtes et poids, et pourquoi la plupart des réseaux réels se stockent en listes d’adjacence.
Lire le guide5 min de lecture
Dijkstra, A* et arbres couvrants minimaux : pourquoi « l’itinéraire le moins cher » et « le réseau le moins cher » sont deux questions différentes.
Lire le guide5 min de lecture
Pourquoi n log n bat n au carré, et ce que chaque tri rapide sacrifie pour y arriver.
Lire le guide4 min de lecture
Comment mémoriser les réponses fait passer une récursion de 300 millions d’appels à environ 40 calculs.
Lire le guide5 min de lecture
Pourquoi tester sur des données inédites, à quoi ressemble le surapprentissage et les erreurs qui faussent discrètement une évaluation.
Lire le guide5 min de lecture
Pourquoi un arbre seul surapprend, et comment forêts aléatoires et boosting font d’arbres faibles un modèle solide.
Lire le guide5 min de lecture
Classer en regardant les exemples les plus proches, regrouper avec les k-moyennes et connaître les limites de chaque méthode.
Lire le guide5 min de lecture
Filtrage collaboratif, méthodes fondées sur le contenu, démarrage à froid et boucles de rétroaction.
Lire le guideUna guía visual y en lenguaje sencillo sobre los algoritmos: estructuras de datos, búsqueda, ordenamiento, grafos, aprendizaje automático e IA generativa, con una doble página de aprendizaje para cada concepto.
View book detailsApple BooksAmazon Kindle
4 min de lectura
Raíz, hojas, profundidad y recorridos: la estructura detrás de las carpetas, las páginas web y los organigramas.
Leer la guía5 min de lectura
La regla de orden que acelera las búsquedas, cómo la arruinan los datos ordenados y cómo la arreglan los árboles autoequilibrados.
Leer la guía4 min de lectura
Nodos, aristas y pesos, y por qué la mayoría de las redes reales se guardan como listas de adyacencia.
Leer la guía5 min de lectura
Dijkstra, A* y árboles de expansión mínima: por qué «la ruta más barata» y «la red más barata» son preguntas distintas.
Leer la guía5 min de lectura
Por qué n log n supera a n al cuadrado y a qué renuncia cada método rápido para lograrlo.
Leer la guía4 min de lectura
Cómo recordar las respuestas reduce una recursión de 300 millones de llamadas a unos 40 cálculos.
Leer la guía5 min de lectura
Por qué se prueba con datos nuevos, cómo se ve el sobreajuste y los errores que arruinan en silencio una evaluación.
Leer la guía5 min de lectura
Por qué un árbol solo se sobreajusta y cómo los bosques aleatorios y el boosting convierten muchos árboles débiles en un modelo sólido.
Leer la guía5 min de lectura
Clasificar mirando los ejemplos más cercanos, agrupar con k-medias y saber dónde falla cada método.
Leer la guía5 min de lectura
Filtrado colaborativo, métodos basados en el contenido, arranque en frío y bucles de retroalimentación.
Leer la guíaA visual, jargon-free guide to modern AI: how machines learn, what is inside a language model, generative AI, AI that writes code, agents and using AI responsibly.
View book detailsApple BooksAmazon Kindle
4 min read
Why models see pieces instead of words, and how that explains odd spellings, counting slips and usage limits.
Read the guide4 min read
A model can only consider a limited amount of text at once. How that shapes long chats and what to do about it.
Read the guide4 min read
Capability and awareness are different. How to trust an assistant the right amount.
Read the guide4 min read
How one model handles photos, speech and text, and where each kind of input goes wrong.
Read the guide4 min read
Label the task, the audience and the source text, and show the format with a short example.
Read the guide4 min read
Tables, fixed fields and “not found” rules make AI mistakes visible instead of hidden in smooth prose.
Read the guide4 min read
Turn your requirements into tests before the code exists, and avoid letting the AI mark its own homework.
Read the guide4 min read
Why “does it look fake?” is the wrong question, and what to ask about a suspicious image, voice or video.
Read the guide4 min read
Which actions can run automatically, which need a yes from a person, and how to plan the stop.
Read the guide4 min read
Scale the checks to the cost of a mistake, write down the purpose and limits, and keep watching after launch.
Read the guideUn guide visuel et sans jargon de l’IA moderne : comment les machines apprennent, ce qu’il y a dans un modèle de langage, l’IA générative, l’IA qui écrit du code, les agents et l’usage responsable.
View book detailsApple BooksAmazon Kindle
4 min de lecture
Pourquoi les modèles voient des morceaux et non des mots, et ce que cela explique des fautes d’orthographe et des limites d’utilisation.
Lire le guide4 min de lecture
Un modèle ne peut considérer qu’une quantité limitée de texte à la fois. Ce que cela change pour les longues conversations.
Lire le guide4 min de lecture
Capacité et conscience sont deux choses différentes. Comment accorder la bonne dose de confiance à un assistant.
Lire le guide4 min de lecture
Comment un même modèle traite photos, parole et texte, et où chaque type d’entrée peut mal tourner.
Lire le guide4 min de lecture
Nommez la tâche, le public et le texte source, et montrez le format par un court exemple.
Lire le guide4 min de lecture
Tableaux, champs fixes et règle « introuvable » rendent les erreurs de l’IA visibles au lieu de les cacher dans une prose lisse.
Lire le guide4 min de lecture
Transformez vos exigences en tests avant que le code existe, et ne laissez pas l’IA corriger sa propre copie.
Lire le guide4 min de lecture
Pourquoi « est-ce que ça a l’air faux ? » est la mauvaise question, et que demander à propos d’une image, d’une voix ou d’une vidéo suspecte.
Lire le guide4 min de lecture
Quelles actions peuvent s’exécuter seules, lesquelles exigent un oui d’une personne, et comment prévoir l’arrêt.
Lire le guide4 min de lecture
Graduez les contrôles selon le coût d’une erreur, écrivez l’objectif et les limites, et continuez à surveiller après le lancement.
Lire le guideUna guía visual y sin jerga de la IA moderna: cómo aprenden las máquinas, qué hay dentro de un modelo de lenguaje, la IA generativa, la IA que escribe código, los agentes y el uso responsable.
View book detailsApple BooksAmazon Kindle
4 min de lectura
Por qué los modelos ven piezas en lugar de palabras y qué explica eso sobre faltas de ortografía y límites de uso.
Leer la guía4 min de lectura
Un modelo solo puede considerar una cantidad limitada de texto a la vez. Cómo afecta eso a los chats largos.
Leer la guía4 min de lectura
Capacidad y conciencia son cosas distintas. Cómo confiar en un asistente en su justa medida.
Leer la guía4 min de lectura
Cómo un mismo modelo maneja fotos, voz y texto, y dónde falla cada tipo de entrada.
Leer la guía4 min de lectura
Ponga nombre a la tarea, el público y el texto fuente, y muestre el formato con un ejemplo breve.
Leer la guía4 min de lectura
Tablas, campos fijos y la regla «no encontrado» hacen visibles los errores de la IA en lugar de esconderlos en prosa fluida.
Leer la guía4 min de lectura
Convierta sus requisitos en pruebas antes de que exista el código y no deje que la IA corrija su propio examen.
Leer la guía4 min de lectura
Por qué «¿parece falso?» es la pregunta equivocada y qué preguntar ante una imagen, voz o video sospechosos.
Leer la guía4 min de lectura
Qué acciones pueden ejecutarse solas, cuáles requieren el sí de una persona y cómo planificar la parada.
Leer la guía4 min de lectura
Gradúe los controles según el costo de un error, escriba el propósito y los límites, y siga vigilando tras el lanzamiento.
Leer la guía