<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Efficient Guided Generation for Large Language Models · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/2307.09702/</link><description>Collected HN comments and submissions linking this paper.</description><language>en</language><lastBuildDate>Mon, 02 Nov 2026 11:16:22 GMT</lastBuildDate><atom:link href="https://hackerpaper.kaipfister.de/p/2307.09702/feed.xml" rel="self" type="application/rss+xml" /><item><title>Efficient Guided Generation for Large Language Models — mentioned by mcyc</title><link>https://news.ycombinator.com/item?id=46654094</link><guid isPermaLink="false">urn:hackerpapers:mention:2307.09702:46654094</guid><pubDate>Sat, 17 Jan 2026 00:33:27 GMT</pubDate><description>&lt;p&gt;This is a fantastic guide! I did a lot of work on structured generation for my PhD. Here are a few other pointers for people who might be interested: Some libraries: - Outlines, a nice library for structured generation - https://github.com/dottxt-ai/outlines - Guidance (already covered by FlyingLawnmower in this thread), another nice library - https://github.com/guidance-ai/guidance - XGrammar, a less-featureful but really well optimized constrained generation library - https://github.com/mlc-ai/xgrammar - This one has a lot of cool technical aspects that make it an interesting project Some…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2307.09702/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Efficient Guided Generation for Large Language Models — mentioned by tikhonj</title><link>https://news.ycombinator.com/item?id=40474135</link><guid isPermaLink="false">urn:hackerpapers:mention:2307.09702:40474135</guid><pubDate>Sat, 25 May 2024 10:48:07 GMT</pubDate><description>&lt;p&gt;Looks like it actually changes how you do token generation to conform to a given context-free grammar. It&amp;#x27;s a way to structure how you sample from the model rather than a tweak to the prompt, so it&amp;#x27;s more efficient and guarantees that the output matches the formal grammar. There&amp;#x27;s a reference to the paper that describes the method at the bottom of the README: https://arxiv.org/pdf/2307.09702&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2307.09702/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Efficient Guided Generation for Large Language Models — mentioned by remilouf</title><link>https://news.ycombinator.com/item?id=37126388</link><guid isPermaLink="false">urn:hackerpapers:mention:2307.09702:37126388</guid><pubDate>Mon, 14 Aug 2023 20:28:38 GMT</pubDate><description>&lt;p&gt;Figure 2 in our paper (https://arxiv.org/abs/2307.09702) shows the difference between guidance and outlines to generate a sequence that is valid to a regex. Jsonformer uses the same technique as guidance. Extrapolate this to several fields. Note that we still need to manage the KV cache in outlines. It’s a small interface change that will be made this week hopefully, but we’ve been focusing on constrained generation so far.&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2307.09702/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Efficient Guided Generation for Large Language Models — mentioned by remilouf</title><link>https://news.ycombinator.com/item?id=37126313</link><guid isPermaLink="false">urn:hackerpapers:mention:2307.09702:37126313</guid><pubDate>Mon, 14 Aug 2023 20:21:35 GMT</pubDate><description>&lt;p&gt;Figure 2 in our paper (https://arxiv.org/abs/2307.09702) shows the difference for a single regex.&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2307.09702/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Efficient Guided Generation for Large Language Models — HN submission</title><link>https://news.ycombinator.com/item?id=37125118</link><guid isPermaLink="false">urn:hackerpapers:submission:2307.09702:37125118</guid><pubDate>Mon, 14 Aug 2023 18:52:54 GMT</pubDate><description>&lt;p&gt;Show HN: LLMs can generate valid JSON 100% of the time&lt;/p&gt;&lt;p&gt;Outlines is a Python library that focuses on text generation with large language models. Brandon and I are not LLM experts and started the project a few months ago because we wanted to understand better how the generation process works. Our original background is probabilistic, relational and symbolic programming. Recently we came up with a fast way to generate text that matches a regex (https://blog.normalcomputing.ai/posts/2023-07-27-regex-guide...). The basic idea is simple: regular expressions have an equivalent Deterministic-Finite Automaton (DFA) representation. We can transform this…&lt;/p&gt;&lt;p&gt;854 points; 303 discussion replies on HN. &lt;a href="https://hackerpaper.kaipfister.de/p/2307.09702/"&gt;Paper and source history&lt;/a&gt;. A submission is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Efficient Guided Generation for Large Language Models — mentioned by farissbahi</title><link>https://news.ycombinator.com/item?id=36821819</link><guid isPermaLink="false">urn:hackerpapers:mention:2307.09702:36821819</guid><pubDate>Sat, 22 Jul 2023 00:16:52 GMT</pubDate><description>&lt;p&gt;There&amp;#x27;s a paper as well. :) https://arxiv.org/pdf/2307.09702.pdf&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2307.09702/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item></channel></rss>
