I Spent Two Years Learning NLP. Then a Model Did It All in One Prompt.

I pasted a deliberately awful message into a general-purpose language model: “hey so i need to like move my thing from tmrw to fri?? same time is fine. also does it cost extra if i do that.” No training, no dataset, no preprocessing, no pipeline. It came back with two intents correctly separated, a reschedule and a pricing question, plus the original day, the new day, and the observation that the time should stay the same. I have spent two years building intent classifiers, tuning TF-IDF weights, and hand-crafting state machines, and I am currently co-writing a paper about doing exactly that. One prompt did all of it better. The feeling was about half wonder and half a quiet, sinking “so what was the point?”

What survived

I’ve spent three months answering that question properly, and the answer is more reassuring than I expected. Roughly a third of what I learned is obsolete. Training a dedicated intent classifier for every small language task is no longer the default, and my regex rules are museum pieces. The rest didn’t just survive; it became more important.

The transformer architecture I’d struggled through in papers turns out to be the thing running underneath that prompt, simply scaled up enormously. Embeddings, the idea that meaning is geometry, got promoted from a component of my chatbot to the foundation of a whole new way of searching documents. Managing conversation state got harder, not easier, because the context window is now a budget I have to spend carefully. The latency lessons from my voice assistant carry over untouched. And the thing I’m most relieved about is evaluation. Nothing about these models makes the question “how do you know it works?” less important. If anything, outputs that sound fluent and confident make it far more urgent. My working conclusion is that frameworks are perishable but fundamentals and methodology aren’t. The libraries I learned in 2022 are already fading. The chain rule and the question “compared to what?” are not.

Learning what the model actually sees

The obvious move is to start prompting and stop there, but my chatbot taught me that understanding the layer beneath is what lets you fix the layer above. So I went after the primitives first. Tokenisation explained an embarrassing number of strange behaviours at once. Models don’t see letters; they see fragments of words, so “strawberry” becomes something like “str,” “aw,” “berry.” That’s why they miscount letters, why some languages cost noticeably more to process, and why odd strings get shredded. Tokens are also the unit of cost and the unit of the context limit, so understanding them is really understanding your budget.

Sampling did the same for the mysterious sliders labelled temperature and top-p. They’re simply operations on a probability distribution: one sharpens or flattens it, the other cuts off the unlikely tail. That led me to the most useful mental model I’ve picked up all year. A language model is a probability distribution over the next token, and you sample from it over and over. Once you really believe that, hallucination stops being shocking. A model that produces a fluent falsehood isn’t malfunctioning. It’s doing exactly what it was built to do, because “plausible next word” and “true statement” are different things that happen to coincide most of the time. Which means the fix has to be architectural rather than moral. You can’t scold a distribution into honesty. You have to build something around it.

That also changed how I write prompts. My early ones read like polite pleading. Now I write them like specifications: here is your role, here is the exact output format, extract only what is stated, keep relative dates relative, return null rather than guess. And, above all, an explicit instruction for what to do when the answer isn’t there, because that’s the case the model will otherwise fill with something invented.

The markdown fence

The incident that changed my thinking most was tiny. I asked a model for JSON and it gave me JSON wrapped in a markdown code fence, the kind you’d use when pasting code into a chat. My parser choked. I fixed it with a one-line string strip and was about to move on, when it occurred to me what I’d actually done. I would never take raw input from a web form and write it straight into a database without checking it. Yet I’d been taking raw model output and doing exactly that, simply because the output looked like it came from something intelligent rather than something probabilistic.

So I wrote my first defensive parser that week: strip the wrapping, parse, check the result against a schema, and reject anything that doesn’t conform. If the output is a sample from a distribution, validating it isn’t paranoia. It’s the only thing standing between a plausible-looking mistake and whatever happens downstream. I have a feeling this one small habit is going to matter more than anything else I learned this year.

Reading a field that moves weekly

My paper habit has changed character too. There’s no current textbook on any of this. The knowledge lives in preprints and engineering blogs, some a few weeks old and some already overtaken, so keeping up means reading primary sources continuously and accepting that some of what I read is wrong. That’s made me more sceptical rather than less. Before I believe an exciting result, I now ask three things: is the baseline it beats actually strong, could the model have seen the test data during training, and what does the limitations section admit? A surprising amount of this year’s excitement doesn’t survive all three.

The next step is building something real. I want a system that answers questions from a collection of documents, and I’m going to build it by hand first, the same way I hand-wrote regex before touching classifiers. But one thing is already bothering me. The paper I’m writing compares voice assistant designs, and I had clear metrics: error rate, accuracy, latency. For a document question-answering system, what’s the metric? “Answered correctly” isn’t a number, and “faithful to the source” isn’t a dataset. After two projects taught me that invented test data lies, that worries me more than it would have a year ago

Leave a Reply