<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Guiding Language Models of Code with Global Context using Monitors · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/2306.10763/</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/2306.10763/feed.xml" rel="self" type="application/rss+xml" /><item><title>Guiding Language Models of Code with Global Context using Monitors — mentioned by _jayhack_</title><link>https://news.ycombinator.com/item?id=43979926</link><guid isPermaLink="false">urn:hackerpapers:mention:2306.10763:43979926</guid><pubDate>Wed, 14 May 2025 01:57:49 GMT</pubDate><description>&lt;p&gt;Also worth checking out MultiLSPy, effectively a python wrapper around multiple LSPs: https://github.com/microsoft/multilspy Used in multiple similar publications, including &amp;quot;Guiding Language Models of Code with Global Context using Monitors&amp;quot; (https://arxiv.org/abs/2306.10763), which uses static analysis beyond the type system to filter out e.g. invalid variable names, invalid control flow etc.&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2306.10763/"&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>Guiding Language Models of Code with Global Context using Monitors — mentioned by emrek1</title><link>https://news.ycombinator.com/item?id=39675126</link><guid isPermaLink="false">urn:hackerpapers:mention:2306.10763:39675126</guid><pubDate>Tue, 12 Mar 2024 01:20:05 GMT</pubDate><description>&lt;p&gt;Each of those is great, and more sophisticated strategies are being developed all the time: incorporating static analysis at inference time to ensure code is more than just syntactically correct [0]; to multi-LLM call agent-based frameworks [1]; decomposing hard tasks into many &amp;quot;easier&amp;quot; LLM tasks [2]; analyzing internal activations to identify potential hallucinations [3]; activation steering to control generations [4]; and &amp;quot;Language Model Arithmetic&amp;quot; to compose biases for style, vocab, etc [5]. But each also either requires tight integration with an LLM inference/serving engine (to access…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2306.10763/"&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>Guiding Language Models of Code with Global Context using Monitors — mentioned by disconcision</title><link>https://news.ycombinator.com/item?id=38480483</link><guid isPermaLink="false">urn:hackerpapers:mention:2306.10763:38480483</guid><pubDate>Thu, 30 Nov 2023 23:01:50 GMT</pubDate><description>&lt;p&gt;it&amp;#x27;s been done, in a limited way: https://arxiv.org/abs/2306.10763; we&amp;#x27;re working on extended this, but yeah, there are a lot of details to work out&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2306.10763/"&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>Guiding Language Models of Code with Global Context using Monitors — mentioned by namibj</title><link>https://news.ycombinator.com/item?id=38260751</link><guid isPermaLink="false">urn:hackerpapers:mention:2306.10763:38260751</guid><pubDate>Tue, 14 Nov 2023 08:57:22 GMT</pubDate><description>&lt;p&gt;Yeah. E.g. GPT-4-turbo&amp;#x27;s JSON-mode seems to forcibly block non-JSON-compliant outputs, at least in some way. They document that forgetting to instruct it to emit JSON may lead to producing whitespace until the output length limit is reached. In related info, there is &amp;quot;Guiding Language Models of Code with Global Context using Monitors&amp;quot; ( https://arxiv.org/abs/2306.10763 ), which essentially gives IDE-typical type-aware autocomplete to an LLM to primarily study the scenario of enforcing type-consistent method completion in a Java repository.&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2306.10763/"&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>Guiding Language Models of Code with Global Context using Monitors — mentioned by LakshyAAAgrawal</title><link>https://news.ycombinator.com/item?id=37130885</link><guid isPermaLink="false">urn:hackerpapers:mention:2306.10763:37130885</guid><pubDate>Tue, 15 Aug 2023 06:33:35 GMT</pubDate><description>&lt;p&gt;In our experience, at least for code generation, the experience has been that base models can be improved significantly by guiding token level generation. In our paper titled &amp;quot;Guiding Language Models of Code with Global Context using Monitors&amp;quot; (https://arxiv.org/abs/2306.10763), we propose Monitor Guided Decoding, which interfaces LLMs to static analysis, and guides the model to generate type-consistent code. Without any kind of fine-tuning, we show that using static analysis to guide token level generation at specific points leads to significantly improved quality of generated code, both in…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2306.10763/"&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>Guiding Language Models of Code with Global Context using Monitors — mentioned by LakshyAAAgrawal</title><link>https://news.ycombinator.com/item?id=37126851</link><guid isPermaLink="false">urn:hackerpapers:mention:2306.10763:37126851</guid><pubDate>Mon, 14 Aug 2023 21:12:28 GMT</pubDate><description>&lt;p&gt;Hi, the paper at https://arxiv.org/abs/2306.10763 titled &amp;quot;Guiding Language Models of Code with Global Context using Monitors&amp;quot; shows how to have the language models generate code without hallucinated dereferences.&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2306.10763/"&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>
