Since code is generated by LLM these days, how does specific syntactic constructs like a Symbol which essentially carries the context and can be manipulated with python operators help when compared to a normal python code generated by LLM with all the checks and balances instructed by a human? For example, I can write in this syntax to convert all fruits to vegetables or I can simply prompt an LLM to construct a prog…
Hallucination obstruction, I'd imagine. When you have an LLM create a formal system, it can be verified way easier than a general purpose one
SymbolicAI: A neuro-symbolic perspective on LLMs
41–50 of 66 posts
Re: SymbolicAI: A neuro-symbolic perspective on LLMs
#42That said the neuro + symbolic integration here is, like most systems, pretty shallow/firewalled (taxonomically, Type 3 / Neuro;Symbolic — https://harshakokel.com/posts/neurosymbolic-systems). I think the real magic is going to come when we start heading toward a much more fundamental integration. We're actually working on this at my company (https://onton.com). How do we create a post-LLM system that: 1) features an integrated representation (neither purely symbolic nor dense floating point matrix); 2) can learn incrementally from small amounts of noisy data, without being subject to catastrophic forgetting; 3) can perform mathematical and other symbolic operations with bulletproof reliability; and 4) is hallucination-free?
The cobbling together of existing systems hot-glue style is certainly useful, but I think a unified architecture is going to change everything.
Re: SymbolicAI: A neuro-symbolic perspective on LLMs
#43Re: SymbolicAI: A neuro-symbolic perspective on LLMs
#44FYI, there’s a correctness issue in the part about correctness contracts: valid_opts = ['A', 'B', 'C'] if v not in valid_sizes: valid_sizes is undefined
Re: SymbolicAI: A neuro-symbolic perspective on LLMs
#45What bums me out a bit - "Symbolic AI" is already well defined: https://en.m.wikipedia.org/wiki/Symbolic_artificial_intellig...
Re: SymbolicAI: A neuro-symbolic perspective on LLMs
#46One question, OP, how does cost for this work? Do you pay the LLM inference cost (quite literally if using an external API) every time you run a line that involves natural language computation? E.g. what happens if you call a "symbolic" function in a loop.
Re: SymbolicAI: A neuro-symbolic perspective on LLMs
#47Earlier quoted context omitted.
Why is carrot the vegetablefication of apple?
I think it's interpreting the command as "replace each fruit with a vegetable", and it might intuit "make the resulting vegetables unique from one another" but otherwise it's not trying to find the "most similar" vegetable to every fruit or anything like that.
Re: SymbolicAI: A neuro-symbolic perspective on LLMs
#48Earlier quoted context omitted.
Why is carrot the vegetablefication of apple?
Also if you run it twice, is it gonna be a carrot again?
For instance, with temperature 1 there *could be* a path that satisfies your instruction which otherwise gets missed. There's interesting work here at the intersection of generative grammars and LLMs, where you can cast the problem as an FSM/PA automaton such that you only sample from that grammar with the LLM (you use something like logits_bias to turn off unwanted tokens and keep only those that define the grammar). You can define grammars with libs like lark or parsimonious, and this was how people solved JSON format with LLMs -- JSON is a formal grammar.
Contracts alleviate some of this through post validation, *as long as* you find a way to semantically encode your deterministic constraint.
Re: SymbolicAI: A neuro-symbolic perspective on LLMs
#49what are the implicaitons and actual real world application of this? better agents? more accurate, debuggable LLM answers?
Re: SymbolicAI: A neuro-symbolic perspective on LLMs
#50what are the implicaitons and actual real world application of this? better agents? more accurate, debuggable LLM answers?