TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Language models as compilers: Simulating pseudocode execution

170 点作者 milliondreams大约 1 年前

15 条评论

pkoird大约 1 年前
Any sufficiently advanced LLM is indistinguishable from Prolog.<p>I half-jest but I envision the direction of LLM research to head towards a parser-oriented setup where LLMs merely extract the entities and relations and the actual logic is done by a logical engine such as Prolog.
评论 #39938252 未加载
评论 #39937428 未加载
评论 #39939193 未加载
评论 #39940243 未加载
评论 #39940526 未加载
评论 #39938802 未加载
评论 #39940434 未加载
评论 #39939471 未加载
评论 #39937857 未加载
评论 #39937439 未加载
评论 #39992700 未加载
评论 #39939739 未加载
评论 #39939572 未加载
评论 #39940527 未加载
Voultapher大约 1 年前
Non deterministic compilers, yay! Where do I sign up?<p>In more seriousness, miscompilations or in general unexpected behavior caused by layers below you are expensive to find and fix. I think LLMs have a long way to go before such use cases seem appealing to me.
评论 #39940837 未加载
评论 #39941279 未加载
评论 #39940442 未加载
评论 #39940629 未加载
imranq大约 1 年前
Reading the paper, the connection to compilers is more of an analogy rather than a direct technical link.<p>The authors propose using an LLM to reframe the task as high level psuedocode, and then reason on that code on the specific details of the task<p>No compilers were used or compiled - no real code was generated or executed. Its just the idea that a programming language syntax has good structure to process details, and a way to interpret some of the results. Many of the other comments here seem like they didn&#x27;t read the paper at all and are reacting to the headline
novideogame大约 1 年前
I think the title is a little misleading. The main difference between this paper and CoC (Chain of Code) is that the LLM is instructed to make a plan to solve all the given instances and then code that plan in pseudocode, while in CoC the plan is to solve the single instance given.<p>From the paper: The main difference between THINK-AND-EXECUTE and CoC is that we use pseu- docodes which are generated to express logic shared among the tasks instances, while CoC incorporates pseudocode as part of the intermediate reasoning steps towards the solution of a given instance. Hence, the results indicate the advantages of applying pseudocode for the generation of task-level instruction over solely using them as a part of rationales.<p>I find the phrase &quot;as a part of rationales&quot; a little strange, but English is not my native language.
Mathnerd314大约 1 年前
The phase 2 prompt is complete, but the phase 3 prompt&#x27;s initial part ends in &quot;When constructing the main function, ...&quot;, and no mention of random seeds, so I guess this paper is not reproducible at all.
m3kw9大约 1 年前
If you train a LLM to compile, you probably also want to set the randomness to zero, if that is the case you’ve just “brute forced” an actual compiler
评论 #39938844 未加载
spxneo大约 1 年前
This seems quite promising. Using pseudo-code as an intermediary step isn&#x27;t new but seems like this takes it a bit further. Will need to see some code and test it out.
jumploops大约 1 年前
English is terribly imprecise, so it makes sense to use pseudo instructions to improve the bounds&#x2F;outcome of a language model’s execution.<p>I do wonder how long hacks like this will be necessary; as it stands, many of these prompting techniques are essentially artificially expanding the input to enhance reasoning ability (increasing tokens, thus increasing chance of success).
评论 #39938763 未加载
ingigauti大约 1 年前
Couple of weeks ago I published a new programming language called Plang (as in pseudo language) that uses LLM to translate user intent into executable code, basically LLM as a compiler.<p>It saves you incredible amount of work, cutting code writing down by 90%+. The built code is deterministic(it will never change after build) and as a programmer you can validate the code that will be executed. It compiles to C#, so it handles GC, encoding, etc. that languages need to solve, so I can focus on other areas.<p>Plang also has some features that other language don&#x27;t have, e.g. events on variables, built in identity and interesting(I think) approach to privacy.<p>I have not been advertising to much since it is still early development and I create still to many breaking changes, but help is welcome(and needed) so if it something that is interesting to you the repo is at <a href="https:&#x2F;&#x2F;github.com&#x2F;plangHQ">https:&#x2F;&#x2F;github.com&#x2F;plangHQ</a>
评论 #39940968 未加载
inciampati大约 1 年前
It&#x27;s going to be really fascinating to see this applied instead of chain of thought and other kinds of reasoning approaches, because it&#x27;s generic. It should in principle work on every kind of LLM.
eeue56大约 1 年前
I wrote a toy language along these lines a while back[0]. Basically, types and function signatures, with comments in English, produce a valid program. You write a type and a comment, and the compiler goes through GPT to run the code. Fun novel idea.<p>[0] - <a href="https:&#x2F;&#x2F;github.com&#x2F;eeue56&#x2F;neuro-lingo">https:&#x2F;&#x2F;github.com&#x2F;eeue56&#x2F;neuro-lingo</a>
评论 #39961560 未加载
lionkor大约 1 年前
How is it better than a compiler written by people?
emmender2大约 1 年前
Researchers are trying their damndest to build a &quot;reasoning&quot; layer using LLMs as the foundation. But, they need to go back to the drawing-board and understand from first principles what it means to reason. For this in my view, they need to go back to epistemology (and refer to Peirce and logicians like him).
skeledrew大约 1 年前
Seeing this makes me want to reactivate an old project[0]. Been thinking more and more that LLMs could give it superpowers.<p>[0] <a href="https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;neulang&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;neulang&#x2F;</a>
29athrowaway大约 1 年前
Up next: A LLM that can tell me if a program stops