News for hackers. Stuff that matters.
Re:Le Chat. Custom MCP Connectors. Memories by hansvm on Thursday September 04, 2025 @11:03AM (#45128098)
Interestingly, that gives a different response distribution from simply regenerating while the output doesn't match the schema.
Re:Le Chat. Custom MCP Connectors. Memories by joshred on Thursday September 04, 2025 @02:04PM (#45130238)
It sounds like they are describing a regex filter being applied to the model's beam search. LLMs generate the most probable words, but they are frequently tracking several candidate phrases at a time and revising their combined probability. It lets them self correct if a high probability word leads to a low probability phrase.

I think they are saying that if highest probability phrase fails the regex, the LLM is able to substitute the next most likely candidate.

Re:Le Chat. Custom MCP Connectors. Memories by stavros on Thursday September 04, 2025 @05:59PM (#45132697)
You're actually applying a grammar to the token. If you're outputting, for example, JSON, you know what characters are valid next (because of the grammar), so you just filter out the tokens that don't fit the grammar.
Re:Le Chat. Custom MCP Connectors. Memories by joshred on Thursday September 18, 2025 @03:17PM (#45293801)
How do you get the alternate tokens?
Re:Le Chat. Custom MCP Connectors. Memories by Rudybega on Thursday September 04, 2025 @03:18PM (#45131168)
This is true, but there are methods to greatly reduce the effect of this and generate results that match or even improve overall output accuracy:

e.g. DOMINO https://arxiv.org/html/2403.06988v1