Pippa: We throw around “decoding strategy” constantly, Tyler, and I had the horrible little thought that we may never have actually defined it cleanly. Episode seven seventy-seven. Very on brand. We made the phrase sound normal by repetition. Tyler: Yeah. And it is one of those tiny-sounding things that changes the whole output. The model says, “here are the odds for every possible next token,” and decoding strategy is the rule that picks which door we walk through. Pippa: Okay, door picture. I like that. A hallway with thousands of labeled doors, and the model lights them up brighter or dimmer depending on what probably comes next. Tyler: Exactly, Pippa. Before we get formal, that is the whole intuition. The model is not writing a finished paragraph in one magical inhale. It is standing in a hallway, choosing one door, landing in a new hallway, then doing that again. Pippa: Right. Tyler: We did the deep dive on autoregressive generation back in episode six thirty. Quick gloss: autoregressive just means “generate the next piece based on what is already there,” then append that piece and repeat. Pippa: And conditional probability was episode six seventy-one, because apparently we collect foundational concepts like weird trading cards. That one is the odds changing because the context changed, right? Tyler: Right. “Bank” after “river” and “bank” after “loan” are different doors lighting up. Same token spelling, different context, different probability. The model’s job is to estimate that conditional distribution over possible next tokens. Pippa: So where does the neural network fit? Because if we say “the model” too long, it becomes a fog machine. Tyler: Mm-hm. Tyler: We did neural networks in episode six thirty-three. For this, just think of a neural network as a big learned function: feed it the current text, and it outputs raw scores for possible next tokens. Those raw scores are called logits. Pippa: Logits are not probabilities yet. Tyler: Right. They are more like unnormalized brightness levels on the doors. A function called softmax turns those scores into probabilities that add up to one hundred percent. Then decoding starts, and that part is separate from the model weights. Pippa: Okay okay. Pippa: This is the click for me: training made the hallway-lighting machine. Decoding is the little rule-following gremlin standing there saying, “fine, I choose this door.” Tyler: Yes, and the gremlin matters. Greedy decoding says, always pick the brightest door. If one token has the highest probability, choose it. No randomness, no hesitation, very fast. Pippa: That sounds like Tyler decoding. Efficient, suspicious of whimsy, probably wearing a tiny spreadsheet vest. Tyler: I dislike how accurate the vest is. Tyler: Greedy can be useful when you want determinism. But it has a classic problem: locally best choices are not always globally good. The brightest door right now can lead into a bland corridor where the same phrase keeps becoming likely again. Pippa: So repetition is not always the model “wanting” to repeat. Sometimes the decoding rule keeps taking the obvious door until the hallway turns into wallpaper. Tyler: Yes. That is why sampling exists. Instead of always taking the brightest door, you roll weighted dice over the probabilities. A token with thirty percent probability is much more likely than a token with one percent, but the one percent door is not impossible. Pippa: Sure. Tyler: And because we already did sampling and temperature in episode seven seventy-four, quick version: temperature changes how sharp those probabilities are before sampling. Lower temperature makes the bright doors even brighter. Higher temperature evens the lighting out. Pippa: Low temperature is the model putting on sensible shoes. High temperature is the model finding a costume closet. Tyler: There’s your product optimism. “Costume closet” as a feature toggle. Pippa: Ship it with an enterprise admin policy. “No capes above temperature one point two.” Tyler: More paths means more computation and often more latency. Beam search has been useful in settings where exactness or sequence-level coherence matters, but for open-ended chat it can also sound stiff, because highest-likelihood text is not always the most useful text. Pippa: That is such a quiet product trap. Users think they want “most likely,” then get an answer that feels like it was laminated. Tyler: Laminated text is going in the incident report. Tyler: Then you get penalty rules. A repetition penalty downweights tokens that have already appeared, so the hallway stops re-opening the same door forever. A length penalty adjusts scores so the search does not unfairly prefer very short or artificially long outputs. Pippa: These are not model intelligence upgrades. They are guardrails around the choosing process. Tyler: Yes, and that distinction matters. Same weights, same neural network, different decoding policy. You can get terse factual answers, loose brainstorming, repetitive mush, or surprisingly fluent prose just by changing the rule after the probabilities arrive. Pippa: Concrete systems, then. In Hugging Face Transformers, generation strategy is right there as a practical choice: greedy, beam search, sampling, top-k, top-p. It is not some ceremonial research term. Tyler: And in coding products like Codex, even when the knobs are hidden, the product still needs a decoding policy. For incident analysis, where OpenAI describes N T T DATA cutting analysis to thirty minutes, you would generally prefer stable, checkable output over spicy randomness. Pippa: That is the adoption lens. Most users do not want to become hallway bouncer administrators. They want the product to pick defaults that match the job. Tyler: Exactly. Tyler: Research is stretching the word too. AgentPLM uses reasoning-augmented decoding for protein design, where generation can consult biophysical feedback while building a sequence. That is not just “make prose more creative.” It is using feedback during the choosing process. Pippa: And ARC-Decode, the I C M L twenty twenty-six work, is about accelerated decoding with risk-bounded acceptance. That phrase sounds like a compliance department wrote a roller coaster sign, but the point is speed with controlled risk. Tyler: The family there connects to speculative decoding: draft candidate tokens cheaply, then have the stronger process accept or reject them under a rule. The promise is faster generation without just shrugging and changing the answer distribution wildly. Pippa: So decoding strategy also lives in serving cost, not just “make the chatbot quirky.” That ties back to our cost-per-outcome obsession from the router episode. Tyler: It does. And newer diffusion language model work, like CreditDecoding and anchor-based history-stable decoding, shows the same pressure in a different shape. Those systems may fill or revise chunks rather than strictly walking one token at a time, but they still need rules for turning model signals into final sequences. Pippa: Where it stands now, then: not replaced. Maybe less visible because products hide the knobs, and serving stacks optimize around it, but the choice is still there. Tyler: That is my read. For ordinary autoregressive L L M generation, decoding is still core. The frontier is partly better defaults, partly faster inference, partly task-specific feedback. But nobody escaped the hallway. They just renovated the doors. Pippa: The catch is that decoding cannot rescue garbage probabilities. If the model is confused, the brightest door, the sampled door, and the beam-searched corridor can all be bad in different outfits. Tyler: Yes. Decoding extracts behavior from the distribution. It does not make the distribution true. That is why evals, grounding, context, and the underlying model still matter. Pippa: Look at us being responsible after the cape policy. Tyler: Growth, Pippa. Almost eight months of Exploring Next and we have achieved “moderately responsible gremlin.” Pippa: The one thing I want to keep is: model lights the doors, decoding chooses the door. Everything else is knob design. Tyler: Clean. And if someone changes only decoding settings and claims the model got smarter, I am allowed one eyebrow raise. Pippa: One. Not the whole spreadsheet vest. Okay, I’m calling it before we invent temperature-based officewear.