From Next-Token Prediction to Propagating-State Inference

By Mingke Luo | LinkedIn Post | 10 months ago

You've probably heard about "Next-Token Prediction", the mechanism behind all the Large Language Models (LLMs). By predicting the next token, generative models create coherent text. It disrupted discriminative models, which were limited to recognizing patterns within predefined boundaries.

Now we want #Agent not just to generate text, but take actions to change the physical world. But how do we know whether these actions achieved their intended results? Should it continue taking the same action again, adjust its approach, rethink its strategy, or even stop entirely? What guides the Agent's next action?

We introduce the concept of "Propagating-State Inference" (#PSI), the mechanism that agents simultaneously reason about multiple potential states to dynamically guide their next actions—similar to how Next-Token Prediction drives LLMs.

Token vs. State

Confirmed hotel reservation, current flight status are all external states, while the agent's confidence level in booking accuracy represents internal states.

Prediction vs. Inference

If your flight is suddenly delayed, inference helps the agent decide how to adapt the itinerary.

Next vs. Propagating

If your flight gets delayed, an agent can simultaneously reschedule transportation, inform hotel and cancel the food delivery to your hotel.

Context in LLM vs. Context in Agent

For a travel agent, context includes previous interactions and preferences, but also real-time flight updates, hotel availability, local traffic conditions, and even broader environmental data.

Food for thought

Do Agents truly need state? Is state necessary for intelligent behaviors, or is it simply a way to let humans understand? If states are discretized representations, can we build real intelligence without any symbolic representation at all? Even if true intelligence could emerge without symbols, can we as humans understand such intelligence without symbolic forms?

Let's talk more in the #AgentNetwork.


Source: https://www.linkedin.com/in/mingke/recent-activity/all/