VERUS-LM: a Versatile Framework for Combining LLMs with Symbolic Reasoning
Paper · 2025 · Benjamin Callewaert, Simon Vandevelde and Joost Vennekens
Summary
A question about a set of rules can ask for a decision, an explanation, or a change that would lead to a better outcome. An insurance applicant might ask whether they qualify, what determines the premium, or which choice would lower it. Those questions draw on the same policy, but answering them requires different kinds of reasoning. VERUS-LM is a framework for handling that variety. It uses an LLM to turn a description of the rules into a formal knowledge base and lets a symbolic solver carry out the operation each question calls for. The framework can reuse the knowledge base as questions change.
The authors split the work into knowledge base construction and inference. During construction, the system identifies the concepts in a description, writes logical statements about them, and asks the solver to check the result. It attempts to repair both invalid syntax and contradictions in the formalization. During inference, a classifier identifies the kind of answer the user wants. The system then extracts any facts or goals specific to the question, such as the value to minimize, and sends the corresponding request to the IDP-Z3 reasoning engine. When the question supplies simple data, a grammar derived from the knowledge base can constrain the extraction step. Questions that introduce complex logical statements call for a more capable LLM.
The authors built DivLR to test a range of reasoning operations within the same evaluation. It contains 115 questions across six domains. The full pipeline with Gemini 1.5 Pro handling question-time extraction reached a reported average accuracy of 91.8% on DivLR, compared with 66.7% for Gemini answering directly. The pipeline with Phi 3.5 mini instruct handling extraction reached 80.3%. On established benchmarks, VERUS-LM was competitive on collections focused on particular reasoning tasks and led the reported comparison on the more varied AR-LSAT benchmark, where it scored 68.36% accuracy against 43.91% for the next-highest entry, SymbCoT.
The repair experiments show where some of that improvement comes from. Syntax repair let the solver run on more cases while leaving accuracy among executable cases roughly stable overall. Checking for contradictions made still more cases executable and improved total accuracy on every benchmark in the repair comparison. Some newly executable cases still led to wrong answers. A solver can establish whether formal rules are consistent and reason from them, while the question of whether those rules capture the original description remains open. The authors release the VERUS-LM code and datasets used for their experiments.
Deep dive: VERUS-LM: a Versatile Framework for Combining LLMs with Symbolic Reasoning
VERUS-LM translates rules into a reusable knowledge base and uses a symbolic solver to answer different kinds of questions about them. · about 31 minutes to read
The problem and its context
A domain can support many different questions
The insurance example in the paper makes the distinction between knowing a policy and doing something with it easy to see. Eligibility asks whether the requirements permit a particular applicant. An explanation asks which requirement accounts for the decision. Calculating a premium asks what follows when the relevant car details are supplied. Finding a lower premium asks the system to compare permitted possibilities using a quantity that can be minimized. The policy supplies common material for each question, including the concepts of a customer, a car, and a risk factor. The user’s request determines what to do with that material.
A conventional natural-language interface makes it easy for the user to pose any of these questions. The challenge is that a fluent answer can conceal a faulty calculation or an inference that does not follow from the policy. The paper describes chain-of-thought prompting as a way to elicit intermediate steps and cites the GPT-4 technical report and the Gemini technical report in discussing progress in LLM reasoning. A written chain of steps gives the reader something to inspect, but its appearance alone cannot guarantee that each step is valid. The authors focus on a different division of work, in which generated text is translated into a form whose consequences can be checked by an inference engine.
A symbolic solver offers the opposite tradeoff. Given a formal specification, it can determine whether the constraints permit a solution or whether a conclusion follows under the stated rules. An ordinary policy description is a long way from that specification. It can omit premises that a reader would supply, leave terms ambiguous, or mix background rules with details about a particular case. In a hybrid system the LLM handles that interpretation. The solver takes over once there is a precise representation to work from. The reliability of the final result consequently depends on both the translation and the inference.
This arrangement raises a design question. Suppose a user follows up an eligibility question by asking what they could change to lower the premium. If the formal representation was produced specifically for the first question, it may have discarded facts relevant to the second. A system might therefore have to read the same policy again and formalize it differently. That adds work, and it creates another opportunity to interpret the same sentence in a different way. VERUS-LM treats a domain description as the source of a reusable specification, with the details of a particular reasoning request supplied when it arrives.
What earlier hybrid systems put into the solver
The earlier systems discussed in the paper share a broad pattern. An LLM receives a description and produces a formal expression, a program, or a collection of facts. An inference engine evaluates that material. Their differences concern the representation, the amount of work delegated to the LLM, and the strategies for recovering from translation errors.
One approach uses answer set programming, in which a solver searches for solutions to a declarative program. The procedure reviewed by the authors divides program generation into stages. It identifies the constants that name relevant objects, introduces predicates that express their properties or relationships, and writes rules that use those symbols. That decomposition gives the LLM a more focused job at each stage. A related approach asks the LLM to produce atomic facts from a story and combines them with rules written by hand. In the latter setup, the rules represent domain knowledge that the system can rely on across examples, but those modules must already exist for the domains it serves.
LINC pairs first-order logic with a prover. First-order logic lets a representation refer to objects, express their properties and relations, and quantify over objects. LINC deals with unreliable translation by generating several formalizations and voting over the resulting answers. This gives the system a way to make progress when candidate translations differ. It still depends on the formalizations providing good inputs to the prover. A vote aggregates their results and can favor a common answer even when the candidates share an interpretation error.
Logic-LM broadens the set of problems it can express by supporting several formal representations. The authors describe support for logic programs, first-order logic, constraint satisfaction, and satisfiability encodings. Logic-LM also feeds solver errors back to the LLM so it can attempt to repair a malformed formalization. This introduces a way to recover from errors that the solver can diagnose. It also illustrates the architectural choice facing VERUS-LM. Several solver-facing formats can cover several kinds of problems, while a shared format can let several operations use the same domain specification.
Symbolic Chain-of-Thought uses formal statements in a different way. It translates the problem into first-order logic, then prompts the LLM itself to conduct the reasoning in explicit steps. The authors present it as a relevant comparison because the reasoning process is guided by symbolic representations even though it does not run through a separate engine. This makes the procedure more tolerant of syntax that a formal parser would reject. Where VERUS-LM relies on strict parsing and solver execution, this approach relies on the LLM following a prompted reasoning procedure.
Why diverse questions matter
The paper identifies a common dependence on demonstrations tied to a particular task or dataset. In few-shot learning, examples inside a prompt specify what a successful transformation looks like. A demonstration for a familiar class of puzzle can show how to introduce variables and constraints, or how to present the conclusion. The authors’ concern is what happens when the domain, the wording, and the purpose of the question vary together. Writing a new set of demonstrations can become part of the cost of serving each new domain or reasoning task.
AR-LSAT illustrates the variety they have in mind. A description of what a store sells and the rules governing a sale can support a question about which items are on sale, a question about what follows after an added condition, or a question about the fewest items that can be on sale. A candidate list can be tested for feasibility. An added condition can change what follows from the rules. A minimum requires evaluating the possible choices according to a quantity. Even within a multiple-choice benchmark, the operation that leads to an answer can vary from question to question.
The design requirements follow from these distinctions. The framework should offer several operations over the same rules. It should represent reusable domain knowledge separately from the instructions for the current query. Finally, the construction prompts should teach a general formalization procedure rather than assume access to demonstrations from the target dataset. The authors choose an engine that already supports several operations in a common language, making the representation itself the point of reuse.
The method, step by step
From an account of the rules to a solver request
VERUS-LM starts with the description of a domain. It prepares a vocabulary of names and relationships, translates the description into sentences in a formal language, and checks whether the resulting knowledge base can be used by the solver. After the knowledge base is ready, the system can take a question, decide which operation fits it, and translate any extra details. The formal inference is performed by IDP-Z3. Its output is then expressed in natural language.
How VERUS-LM builds knowledge and answers a question
The steps in order.
The boundary between the phases determines what gets reused. A domain rule can say how a premium depends on the value and kind of car. The value of a particular car belongs to the current case. The request to minimize the premium belongs to the current operation. With those roles separated, the same domain rule can be used for a calculation with a fixed car or for an optimization in which the car type is allowed to vary.
The engine uses FO(·), a typed extension of first-order logic. The dot in the name denotes the extensions to the core formalism. The paper highlights types, aggregates, and definitions, including inductive definitions. A type gives a set of objects that may fill a position in a predicate or function. An aggregate can count a set of objects satisfying a condition. A definition expresses how a relation or quantity is determined within the specification. These features give the system a common language for domains that involve both qualitative relations and numerical quantities.
Vocabulary, structure, and theory
A FO(·) vocabulary declares the symbols the rest of the specification can use. In the insurance example, Customer and Car are types. A predicate called applicant tells whether a customer is applying. A function called risk_factor assigns a real-valued risk factor to a car type, while age supplies integer ages. Symbols for a selected car type, its value, and the premium can be used without taking an argument. In logical terms these are constants, represented here as functions with no inputs.
A structure supplies interpretations for the symbols. It can assign an age to each named customer in a case, for instance. A partial structure leaves some interpretations open so the solver can complete them under the rules. The theory supplies those rules. It consists of sentences that must hold in any acceptable completion. The difference is important in the insurance example. Fixing a customer’s age supplies a fact about the case. Requiring that everyone who applies be an adult constrains which arrangements of applicants and ages the theory permits.
The first rule of the example is written as follows.
∀p ∈ Customer (applicant(p) ⇒ age(p) ≥ 18)
The symbol ∀ means that the rule applies to every p in the type Customer, with ∈ indicating membership. The expression applicant(p) says that the customer p is an applicant. The arrow ⇒ makes that the condition for the requirement on the right. The term age(p) gives the age of the same customer, and ≥ 18 requires that age to be at least 18. Parentheses group the rule and mark each function or predicate argument. This formula states a necessary condition on applying. The rule by itself does not determine that every adult has applied.
The paper gives a second rule to express the premium calculation.
premium() = (car_value() / 100) × risk_factor(car_type())
The term premium() gives the premium. The empty parentheses show that premium, car_value, and car_type have no arguments. The term car_value() gives the value of the selected car, which / divides by 100. The function risk_factor takes car_type() as its argument. The × symbol multiplies that risk factor by the scaled car value, and = requires the expression to equal the premium. The parentheses around the division group it as one factor in the product.
The role of a structure can be seen in the paper’s interpretation of Ann’s age.
age(Ann)ˢ = 16
The symbol Ann names a customer, and age(Ann) is the term for that customer’s age. The superscript S, shown as ˢ, means that the term is evaluated in structure S. The equality assigns the value 16 to that evaluation. The same convention applies to other terms and to sentences, whose values in a complete interpretation are truth values.
The relationship between a satisfying structure and a theory is expressed as follows.
S ⊨ T
Here S is a structure, T is a theory, and ⊨ means that S satisfies T. Every sentence in the theory is true under the interpretations in S. In the insurance example, a structure that marks Ann as an applicant while giving her the age in the preceding formula violates the adulthood rule. The engine can use that relationship in different directions. It can check a proposed interpretation, fill in unknown values, or explain why an assignment conflicts with the rules.
Making the knowledge base
The first generation step identifies types, predicates, and functions from the description. The prompt explains how each kind of symbol is used and contains three general examples drawn from outside the evaluation datasets. It also asks for a natural-language annotation for each symbol. These annotations give the next stage an explicit account of what a name means. A declaration can tell the system that a function accepts a car and returns a real number. Its annotation carries the further information that the number represents a risk factor.
The second generation step writes the logical sentences. Its prompt includes an outline of FO(·) grammar and two examples showing how to associate individual sentences with their intended meaning. It receives both the generated vocabulary and the original description. This lets it refer back to the description while expressing it in the agreed vocabulary. The prompt also asks the LLM to consider implicit information and commonsense assumptions. Such information can be necessary when a human reader would supply a missing premise. It can also change the consequences of the theory, which makes it part of the formalization that would need checking for fidelity.
A complication arises when a reasoning task assumes that the description may omit objects. IDP-Z3 requires a complete enumeration of the elements of its types except for the built-in real and integer types. This is a closed-world treatment of the typed domain. Under the open-world assumption needed by FOLIO and ProofWriter, the named objects need not exhaust the possibilities. VERUS-LM approximates that behavior by putting an extra, unknown element into each enumerated type. This gives the solver a possible object beyond those explicitly named. The resulting domain is still a particular finite enumeration, so the extra element can approximate some consequences of an open domain without reproducing its semantics in general.
Once the initial theory has been generated, syntax refinement checks whether the specification is valid for the reasoning engine. FOLINT, the engine’s static analysis tool, provides detailed diagnostics. When a problem is found, the LLM is given its previous output, the diagnostic, and examples of common syntax errors and remedies. It can revise the theory, the vocabulary, or both. The use of feedback here is inspired by work on iterative correction, including Self-Refine and Self-Debug, as well as by Logic-LM’s solver feedback loop.
After syntax is accepted, semantic refinement asks whether the base theory admits a satisfying structure. At this stage a user goal has yet to be imposed. For a planning problem, for instance, the base theory would describe what actions are permitted and how they change the situation. A particular goal might be impossible to reach, but that is a question for inference. If the base rules themselves cannot coexist, the pipeline treats the contradiction as possible evidence of a translation error.
IDP-Z3 can return a minimal unsatisfiable subset, meaning a set of assignments and constraints that together have no solution and contain no smaller conflicting subset within that set. This gives the LLM a localized explanation to use in writing a revision. It can reconsider how it expressed the rules that participated in the conflict. The framework repeats the checks and repairs until the errors are cleared or an attempt limit is reached. A successful check establishes that the repaired formalization admits a solution. Preserving the meaning of the original rules is a separate question.
Choosing what the solver should do
Once there is a knowledge base, the first step for a new question is to identify the requested operation. The paper implements this decision with a BERT sentence classifier, with Sentence-BERT cited in connection with the classifier. The authors use fine-tuning to adapt it to a custom dataset of over 1000 natural-language questions paired with their intended operations. In this pipeline, the classifier learns to map the language of a request to an operation. The rules from which an answer is derived are generated separately from a domain description.
The classifier distinguishes eight operations. The clearest way to understand the distinctions is to ask what a successful solver call must return.
- Generation or expansion asks for satisfying structures, possibly by completing a partial interpretation. In the insurance example, the caller can supply the car type and value and ask the solver to fill in the remaining interpretations.
- Satisfiability asks whether any satisfying structure exists. It can answer whether a proposed arrangement is feasible without asking for all its consequences.
- Optimization asks for a satisfying structure that minimizes or maximizes a specified term. The answer depends on both the domain constraints and the quantity selected as the objective.
- Propagation asks which atomic statements are true or false across all satisfying structures. An atomic statement is an elementary claim about the vocabulary, such as whether a named customer is an applicant.
- Explanation asks why an atomic statement is forced to be true or false. When the theory has no satisfying structure, the operation can instead explain the inconsistency.
- Range determination asks which values a function term can take across the permitted structures. It can reveal several feasible values even when the solver is unable to force the term to one value.
- Relevance asks which symbols can matter to whether a structure satisfies the theory. A symbol qualifies if some satisfying structure would cease to satisfy the theory after its interpretation changed.
- Logical entailment asks whether a particular sentence follows from the theory. The sentence can be more complex than an individual atom and can itself involve several conditions.
IDP-Z3 directly offers the operations preceding entailment in that list. The paper describes adding entailment as straightforward. These operations can act on a common theory even though the input needed to invoke each one differs. For generation, for instance, a caller can ask for n satisfying structures, where n denotes the number requested. For optimization the caller supplies a term, conventionally written t, whose value is evaluated in each structure under consideration.
Entailment uses the following relation.
T ⊨ φ
Here T is the theory and φ is the statement being tested. The symbol ⊨ says that every structure satisfying T also makes φ true. In the earlier formula the expression to the left of ⊨ was a structure. Here it is a theory, so the relationship concerns what holds throughout the structures admitted by the theory. This is how a question about a particular conclusion differs from a request to find a single feasible arrangement.
For range determination, the paper characterizes each possible output value using the following expression.
fˢ(t⃗ˢ) = v
The symbol f is a function, and t⃗ is the sequence of its argument terms. The superscript S, rendered as ˢ, indicates the interpretation in structure S. Thus fˢ is the function as interpreted there, and t⃗ˢ is the sequence of values obtained by evaluating the argument terms in that structure. Parentheses indicate application of the function. The equality says the application returns value v. A value belongs to the range of the term if this equality holds in some structure satisfying the theory.
A question can also ask for successive operations. The authors describe a multi-step mode that first splits a nested request into simpler steps, handles each as a reasoning task, and then combines their results. The breakdown resembles chain-of-thought prompting at the level of planning the work. Each individual reasoning task still goes through the solver. This adds a way to ask a compound question without extending the set of primitive operations to cover every combination.
Translating the question’s remaining information
Recognizing an operation still leaves details to extract. A question about insurance may supply the ages of Ann and Brit. It may ask for a specific objective to be minimized. In either case the pipeline already knows the vocabulary, so it can generate a grammar for the extraction output from the knowledge base. The authors use the grammar mechanism in llama.cpp as an example of how to restrict what the generator produces. The restriction can ensure that a value is assigned to a declared symbol with an appropriate type. It narrows the space of answers the extractor has to consider.
A grammar has different responsibilities from the question interpreter. It can prevent an integer value from filling a slot that expects a car type. The interpretation step still has to select the age mentioned for the right customer and decide whether a phrase identifies the premium or another term as the objective. A well-typed assignment can therefore be wrong for the question even though the solver accepts it. This distinction becomes relevant in the DivLR test, where some errors involve how the extractor treats a familiar concept.
Other questions introduce conditions that need an entire logical formula. An entailment request, for instance, may require translating the proposed conclusion itself. The authors use a larger LLM for such construction, which can also introduce vocabulary symbols when the question requires them. They treat this as comparable in difficulty to the translation done when building the knowledge base. The question-time work in this case goes beyond filling slots in an existing typed structure.
The framework leaves the choice of extractor to the application rather than implementing automatic detection of formula complexity. Possible policies discussed in the paper include always using the larger LLM or choosing based on the detected operation. Its benchmark procedure uses Phi 3.5 mini instruct for extraction when complex new formulas are unnecessary and Gemini 1.5 Pro otherwise. The potential resource advantage is specific to this portion of the pipeline. Typed extraction can run locally with a smaller LLM, which the authors also point out can keep the data in that step from being sent to a remote service.
Experiments and results
DivLR tests the breadth of the pipeline
The authors’ evaluation starts with a custom dataset because the standard collections they review mostly emphasize a limited range of operations. DivLR contains 115 questions spanning all eight operations. Its six domains concern investment strategies, COVID restrictions, water irrigation needs, handyman tasks, and two versions of body mass index. The ordinary BMI domain uses the familiar definition. The alternative, B*, uses made-up calculations and ranges. This pair makes it possible to compare responses when the rules in the problem agree with familiar information and when the problem supplies different rules.
The authors evaluate four configurations. Phi 3.5 mini instruct and Gemini 1.5 Pro each answer directly as baselines. The VERUS-LM configurations, V-SLM and V-LLM, use the same respective systems for question-time information extraction before the symbolic operation. The comparison thus covers two questions at once. It tests what happens when the complete hybrid pipeline is used and how its results change when the component that interprets the question is replaced. V-SLM is a designation for the extraction setting. It does not mean that every generation step in VERUS-LM is performed by Phi.
Reported average answer accuracy across DivLR domains
Both VERUS-LM configurations exceed the direct baselines in the reported average.
The numbers
| System or setting | accuracy % |
|---|---|
| Phi 3.5 mini instruct direct | 39.5 |
| Gemini 1.5 Pro direct | 66.7 |
| VERUS-LM with Phi extraction (this paper) | 80.3 |
| VERUS-LM with Gemini extraction | 91.8 |
The per-domain results reveal qualifications that the average hides. With Gemini extracting the question details, VERUS-LM reached 100% accuracy in the investment strategies domain and 95.5% on irrigation. The corresponding accuracies with Phi extraction were 86.4% and 86.4%. On COVID restrictions, Phi extraction instead gave the higher pipeline score, 94.7% against 89.5%. In the handyman domain, both versions scored above direct Gemini, with accuracies of 86.7% for V-SLM, 93.3% for V-LLM, and 60% for the direct Gemini baseline.
BMI is where the extraction choice mattered most visibly across the domain results. V-SLM reached 61.1% on standard BMI and 66.7% on B*. Direct Gemini reached 66.7% on standard BMI, ahead of V-SLM in that domain. On B*, direct Gemini scored 50%, while direct Phi scored 11.1%. With Gemini inside the pipeline, the standard BMI score was 88.9% and the B* score was 83.3%. These comparisons show both the overall benefit of the pipeline and the importance of keeping the domain-level results visible. A higher average does not mean that either extraction setting beats every direct baseline on every domain.
The authors also report classification and execution separately by operation. The classifier’s stated average detection accuracy is 92.6%. Logical entailment, explanation, and range determination account for different shares of the evaluation and have different detection rates. The table reports 100% detection accuracy for entailment and explanation, and 92.9% for range determination. Propagation, the largest category in the table at 28.1% of questions, has the lowest listed detection accuracy, 76.5%. Optimization accounts for 26.3% of the questions, with detection accuracy of 90.0%. Generation or expansion and relevance each occupy 1.8% of the dataset, so perfect detection in either category concerns a small part of the evaluation.
Detection accuracy measures whether the question is assigned the intended operation. An execution result reflects whether the pipeline answers successfully when that operation is used. The scores can therefore diverge. In the DivLR task table, entailment is detected with 100% accuracy, while the listed execution accuracies are 27.3% with Phi extraction and 90.9% with Gemini extraction. The prose gives 29.6% for the weaker entailment setting, so it contains a different value from the task table. Both accounts point to the same qualitative result. The extractor can struggle to construct the formula even when the pipeline has identified the right operation.
The smaller extractor was competitive in several categories. The task table shows 100% execution accuracy for V-SLM in satisfiability and range determination, against 90.9% and 85.7% respectively for V-LLM. On optimization, the listed execution accuracies are 93.3% and 96.7%. The table reports 68.6% for V-SLM on propagation and 91.2% for V-LLM. The authors connect propagation difficulties in the smaller setting to its errors in the BMI domains. Entailment and propagation therefore give different reasons to inspect performance when deciding how much extraction capacity an application needs.
The experiments ran on a Mac with an M2 Pro CPU and 32GB of RAM, with quantized Phi 3 serving as the Phi configuration.5. The outcome measured by the DivLR comparison is accuracy. Although the authors motivate the smaller extractor partly in terms of computational cost and local execution, the reported accuracy results do not directly measure savings in the full pipeline.
Established benchmarks test different inputs to inference
The standard-benchmark comparison helps show which features generalize beyond DivLR. PrOntoQA and LogicalDeduction are treated as satisfiability tasks. The former has a binary choice in the paper’s overview. LogicalDeduction asks the system to evaluate candidate arrangements, expressed as statements about positions or order. In the authors’ setup, both can be handled with question-specific data supplied to the solver.
ProofWriter and FOLIO use answer categories corresponding to true, false, or unknown. The paper classifies ProofWriter as a propagation method that uses data gathered during inference. It treats FOLIO as entailment requiring formulas at inference time. The shared answer labels thus hide an important implementation difference. A question whose content can be expressed as data over the vocabulary can use the smaller extraction setting. A question that needs a new logical sentence uses the larger one.
AR-LSAT contains a mixture of reasoning tasks and can require formulas at inference time. Its candidate answers may concern a possible arrangement, a consequence of a condition, or the size of a feasible set. The comparison includes GPT-4 answering directly, GPT-4 with chain-of-thought prompting, Logic-LM, and SymbCoT. It also includes LINC on ProofWriter and FOLIO, the benchmarks for which the paper reports its scores. The baseline values come from earlier publications as indicated in the benchmark table. The Logic-LM row includes the system’s refinement procedure and excludes its fallback to an LLM when syntax repair repeatedly fails.
On PrOntoQA, VERUS-LM reached 95.8% accuracy. SymbCoT reached 99.60%, and GPT-4 with chain-of-thought reached 98.79%. On ProofWriter, the VERUS-LM result was 93.83%, while LINC reached 98% and SymbCoT reached 82.50%. The results show that the shared architecture can remain competitive when a benchmark emphasizes a particular operation, even though one of the specialized approaches can score higher.
FOLIO and LogicalDeduction continue that pattern. On FOLIO, VERUS-LM reached 78.43% accuracy, below SymbCoT at 83.33% and above the reported Logic-LM score of 68.55%. On LogicalDeduction, VERUS-LM reached 88.67%, compared with 93.00% for SymbCoT and 87.63% for Logic-LM. The benchmark table reports the VERUS-LM average accuracy as 85.02%, compared with 80.47% for SymbCoT and 69.56% for GPT-4 with chain-of-thought. LINC has no corresponding average in that table because it has results for only part of the benchmark set.
The largest benchmark advantage appears on AR-LSAT
System comparison on AR-LSAT answer accuracy
VERUS-LM leads the reported comparison on questions spanning several reasoning tasks.
The numbers
| System or setting | accuracy % |
|---|---|
| Logic-LM with refinement and no fallback | 23.40 |
| GPT-4 direct | 33.33 |
| GPT-4 with chain-of-thought | 35.06 |
| SymbCoT | 43.91 |
| VERUS-LM (this paper) | 68.36 |
The AR-LSAT result is consistent with the paper’s argument for choosing an operation that fits the question. The authors report that the classifier routed 45.89% of the AR-LSAT questions to entailment and 31.17% to satisfiability. The reported execution accuracies for those groups were 66.04% and 69.01%. Range determination accounted for 16.88% of the detected tasks and had an execution accuracy of 79.49%. Optimization accounted for 6.06%, with execution accuracy of 71.43%. These percentages describe assignments made by the system and outcomes within those assignments. They are not a separate report of classifier accuracy against task labels for AR-LSAT.
The paper also gives a concrete example of why the choice of formal language can matter here. A condition about the number of CDs on sale can be written using an aggregate.
#{c ∈ CD : on_sale(c)} ≥ 3
The symbol # counts the elements in the set enclosed in braces. The variable c ranges over elements of the CD type, as indicated by ∈. The colon introduces the condition for inclusion. The predicate on_sale(c) says that the CD represented by c is on sale. The comparison ≥ 3 requires the resulting count to be at least 3. A condition like this can be reused when the solver checks a candidate or evaluates possible counts.
The authors connect the benchmark result to generic prompts, the expressiveness of FO(·), and support for multiple operations. The detected task distribution shows that the pipeline exercised several of those operations on this benchmark. The aggregate shows how a type of condition found in the benchmark fits the representation. The score compares the full system to the reported baselines. It gives the advantage of the combined design under this evaluation, with the contribution of individual design choices addressed only where the paper runs a more focused comparison.
What the ablations show
Repair increases the share of questions that can run
The repair study makes the most direct comparison between versions of VERUS-LM. The authors run the pipeline with its initial knowledge base, with syntax repair, and with syntax repair followed by semantic repair. They report how frequently a knowledge base is both syntactically valid and satisfiable, how frequently a correct response is returned among those executable cases, and how often a correct response is returned across all cases. The paper calls these execution rate, execution accuracy, and total accuracy. Total accuracy is the product of execution rate and execution accuracy when both are expressed as proportions.
This distinction matters because a repair stage can change which cases qualify for execution. Suppose repair makes a difficult case syntactically valid and consistent so the solver can attempt it. Even if that case is harder than the cases that already worked, processing it can raise the number of correct answers in the full benchmark. The execution accuracy can decline at the same time because it is measured over an enlarged set of cases. The metrics distinguish an increase in solver coverage from an increase in the correctness of answers conditional on running the solver.
VERUS-LM refinement settings on AR-LSAT total accuracy
Syntax repair improves total accuracy, and adding satisfiability-based repair improves it further.
The numbers
| System or setting | total accuracy % |
|---|---|
| Initial formalization | 50.8 |
| Syntax repair | 64 |
| Syntax and semantic repair (this paper) | 68.4 |
On AR-LSAT, the execution rate was 60.2% with the initial formalization, 81.8% with syntax repair, and 98.7% with both repair stages. The corresponding execution accuracies were 84.3%, 78.2%, and 69.3%. This is the clearest example of the distinction between the ability to run a question and the ability to answer it correctly. The initial setting processed the smallest share of cases, with the highest conditional accuracy. The full setting processed nearly all of them and achieved the highest total accuracy. Its 68.4% figure is the precision used in the refinement table, while the benchmark comparison reports 68.36%.
FOLIO shows a related pattern. Its execution rate rises from 71.6% with no refinement to 89.2% with syntax repair and 100% with both stages. Execution accuracy goes from 80.8% to 80.6% and then 78.4%. Total accuracy rises from 57.8% to 74% and then 78.4%. With every case executable in the final setting, the conditional and total accuracies coincide in the reported figures. The difference between reaching that coverage and answering all of those cases correctly is still substantial.
The shape of the tradeoff varies by benchmark. On PrOntoQA, execution accuracy remains close across the settings, with 97% initially, 97.3% after syntax repair, and 97.6% after both stages. Total accuracy goes from 71.8% to 86.8% and then 95.8%. On ProofWriter, execution accuracy is 95.7% both before and after syntax repair, then 94.8% with semantic repair included. Total accuracy increases from 86.2% to 88.3% and then 93.8% in the refinement table. On LogicalDeduction, syntax repair changes the execution rate from 93.3% to 93.7%, while including both forms of repair brings it to 99.3%. The total accuracies for those settings are 83.6%, 84%, and 88.7%.
The authors report that syntax refinement increases execution rate by an average of 11.2%, with execution accuracy roughly stable overall. The individual AR-LSAT figures show that stability is an overall characterization rather than a description of every benchmark. The paper reports an additional average increase of 10% in execution rate when semantic refinement is included. The ablation establishes the practical effect of running these stages in sequence. The semantic stage takes cases where the accepted syntax still leaves a contradiction and gives the pipeline a chance to process them.
The reduction in conditional accuracy on several benchmarks also clarifies the meaning of a repair. When a theory with conflicting rules becomes satisfiable, the solver has confirmed that the new theory can be true under some interpretation. The repair could achieve this by correcting a genuine translation error, but it could also weaken or alter a rule that should have been preserved. The authors suggest that initially inconsistent cases often originate in descriptions that are harder to formalize. Their experiment measures the resulting answers and execution status. It cannot identify the exact cause of every remaining wrong answer.
Switching extraction settings exposes a different bottleneck
The DivLR comparison holds the solver-based framework in place and changes the LLM interpreting the question. This is a more focused comparison than setting the entire pipeline against an LLM answering directly. The task results suggest that grammar-guided extraction can be sufficient when the information takes the form of facts over a known vocabulary. In entailment, the system must construct a new formula. The smaller extractor’s lower execution accuracy despite perfect detection in the table indicates that selecting the right operation is insufficient when the expression that operation needs is hard to produce.
The BMI pair changes the domain rule while keeping the familiar name and subject matter. The authors report that Phi sometimes tried to do a BMI calculation itself when asked to extract facts for the solver. They conjecture that familiarity with the conventional calculation influenced this behavior. The direct Gemini results also decline from standard BMI to B*, while the Gemini-based pipeline still answers a substantial share of B* correctly. This gives a concrete example of why delegating the calculation to the solver can help. If an extractor passes the case details through as requested, the calculation can follow the rule in the knowledge base even when that rule is unfamiliar.
These comparisons support narrower claims than a controlled removal of each feature of VERUS-LM would support. The repair study varies what happens to the initial knowledge base. The DivLR settings vary how the question is interpreted. The AR-LSAT results show use of several operations, but the paper does not report a matching run that forces every question through the same operation or replaces FO(·) while holding the other components fixed. The evidence for those architectural choices comes from the behavior and aggregate performance of the complete system.
Limitations
Limits the authors identify
The authors identify validation of formula meaning as an unresolved problem. A parser can detect whether a sentence follows the formal grammar. A satisfiability check can determine whether the sentences admit a common interpretation. Neither check directly compares every consequence of the formal theory with the meaning of the natural-language description. The adulthood rule gives a simple example. Turning a necessary requirement into a sufficient one changes who the system would judge eligible. Both formulations can be grammatical and satisfiable. The authors discuss involving a domain expert who can validate the knowledge without having prior training in logic.
The semantic repair procedure also depends on a choice about what contradictions mean. It assumes that an inconsistency in the base domain is evidence of a mistake worth repairing. That is appropriate when a coherent domain description has been mistranslated. The authors point out that some inputs are expected to contain inconsistent statements, giving reasoning over false news as an example. In such a setting, identifying and preserving a contradiction can be part of the reasoning task. An automatic attempt to make the theory satisfiable can change the information the user wanted to examine.
The formal language and engine set further limits. The authors identify higher-order logic as outside the scope of FO(·) as used here. They also acknowledge that the extra unknown element used to approximate open-world reasoning has limited applicability. Allowing a possible unnamed object in a type does not recreate every domain that might be considered under open-world semantics. An evaluation in which the approximation succeeds therefore provides evidence for the tested problems, while the formal behavior can differ on other inputs. The authors also note the engine’s difficulty with satisfiability problems over very large domains and leave accuracy in substantially different logical paradigms uncertain.
Limits of the experiments and their interpretation
DivLR demonstrates that the pipeline can classify and execute a wider range of operations than any of its more focused benchmarks assesses on its own. The dataset still has an uneven task distribution. In particular, relevance and generation or expansion occupy small shares of the questions. Accuracy in those categories is evidence that the system can handle the examples it was given. It provides a limited basis for predicting performance across the full variety of requests those operations can express. Similarly, the paper’s description of multi-step inference does not come with a separate benchmark score establishing how frequently it decomposes complex questions correctly.
The standard-benchmark scores describe a system with an extraction setting selected according to the kinds of inputs each dataset needs at inference time. VERUS-LM can use a small extractor when the required information is simple and a larger one when it needs to write formulas. It does not demonstrate an automatic decision procedure that reliably makes that distinction for a stream of heterogeneous questions. The change affects both accuracy and cost. Choosing an extractor by benchmark characteristics gives a clear experimental setup, while mixed application traffic raises a routing question of its own.
The AR-LSAT comparison establishes a lead over the configurations in the benchmark table. An earlier discussion in the paper also gives a Logic-LM result of 43.04% accuracy on AR-LSAT, while the comparison table gives 23.40% for the configuration with refinement and without the fallback. Those figures accompany different reporting contexts and should be read with those contexts in view. More generally, the benchmark outcomes combine differences in prompting, representation, solver execution, repair, and extraction. The separate repair comparison isolates the effect of adding stages to VERUS-LM. The leaderboard cannot determine how much of its AR-LSAT advantage came from each of the remaining choices.
Knowledge reuse is an architectural feature with a clear operational consequence. Once the domain has been formalized, the system can serve further questions without recompiling its rules from natural language for each operation. The paper does not report a timed comparison of repeated querying or a measured cost curve as the number of questions grows. The same distinction applies to local extraction. The method permits constrained extraction on local hardware, while the benchmark accuracy figures do not quantify end-to-end cost or the amount of data an application could keep local.
Finally, the BMI experiment shows that answers can be sensitive to whether a problem follows a familiar definition. The authors’ explanation in terms of information learned during training is a hypothesis about the source of that behavior. The comparison changes the stated rules and observes the resulting answers. It gives no direct evidence about which training examples influenced a particular response or whether retraining would be necessary to correct it. The more immediate conclusion concerns the system boundary. Supplying the solver with the intended rules helps only when the data and conditions extracted from the current question also preserve their intended meaning.
What came after
Empowering LLMs with Logical Reasoning: A Comprehensive Survey cites VERUS-LM in a survey of logical reasoning with LLMs. The connection is at the level of research scope. VERUS-LM supplies an example of a system that distributes logical reasoning across language interpretation, formal representation, and symbolic inference. The survey citation establishes that the framework appears in that broader literature. It does not establish a new evaluation of VERUS-LM or identify a component the survey adopts.
Adaptive LLM-Symbolic Reasoning via Dynamic Logical Solver Composition cites the paper from a more specific line of work on composing solvers dynamically. This suggests a comparison around a design decision already visible in VERUS-LM. VERUS-LM selects an operation within a shared reasoning engine and aims to reuse one formalization. Solver composition puts the choice of how to combine symbolic tools at the center of the problem. The citation and the later work’s stated scope establish that connection, while leaving open which parts of VERUS-LM, if any, it implements or evaluates directly.
Cite
Cite as Benjamin Callewaert, Simon Vandevelde and Joost Vennekens. 2025. VERUS-LM: a Versatile Framework for Combining LLMs with Symbolic Reasoning. arXiv:2501.14540 · EPTCS 439, 2026, pp. 47-62.
@misc{callewaert2025verus,
title = {{VERUS-LM: a Versatile Framework for Combining LLMs with Symbolic Reasoning}},
author = {Benjamin Callewaert, Simon Vandevelde and Joost Vennekens},
year = {2025},
doi = {10.4204/eptcs.439.5},
eprint = {2501.14540},
archivePrefix = {arXiv},
url = {https://doi.org/10.4204/eptcs.439.5}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/callewaert-2025-verus-lm-versatile-framework-combining/