Source-linked AI summary

Metacognitive Reasoning in Energy Based Models using Instance Based Learning Theory

Tailia Malloy, Prateek Kumar Rajput, Serge Lionel Nikiema, Cleotilde Gonzalez, Tegawendé F. Bissyandé

arXiv:2610.00399v1cs.LG

TL;DR

LLM metacognitive approaches face limits in estimating uncertainty before responding and allocating compute, while post-hoc explanations may not track the processes behind behavior. MERITED combines IBL with an EBT to allocate inference resources; its reported task results vary, with optimal stopping faster and depth choice yielding higher observed mean accuracy.

  • Problem

    LLM explanations of reasoning may be disconnected from the processes that produce behavior, and the paper focuses on metacognitive control at the level of individual outputs.

    Source: Introduction · p. 1
  • Method

    MERITED integrates IBL with an EBT to allocate inference computation, using IBL to select depth or decide when to stop.

    Source: Energy Based Transformers · p. 2, Instance-Based Learning Theory · p. 4, Conclusion · p. 8
  • Results

    On ARC-Easy both MERITED policies reached 58%; on OpenBookQA depth choice reached 29.4% and stopping 28.4%, with neither gain over GPT-2 significant; stopping was 76.1% faster than static depth 10.

    Source: Results · pp. 7–8
  • Takeaways & Limitations

    The authors present MERITED as a mechanism for adaptive metacognitive control within an integrated system, with IBL controlling resources and the EBT answering questions.

    Source: Conclusion · p. 8

    The evaluation is a proof of concept with a 191-million-parameter EBT, and whether the reported improvements generalize to larger models remains unclear.

    Source: Conclusion · p. 8

Abstract

from arXiv · show

Metacognition involves reasoning about cognitive processes themselves. An example is in resource allocation where we choose how much time and effort to put into a reasoning task before we begin based on our confidence. Current Artificial Intelligence (AI) systems that rely on Large Language Models (LLMs) cannot estimate their uncertainty about an output without first responding, and cannot dynamically allocate resources to producing an output, making this type of metacognitive process difficult. A recently proposed alternative to classic transformer architectures that addresses these two concerns is the Energy Based Model (EBM) which allows for interpretable uncertainty modeling and dynamic allocation of compute resources. While EBMs can allow for control of these two processes, the actual metacognitive task of determining compute allocation based on uncertainty is not directly addressed. Instance-Based Learning Theory (IBLT) provides an approach to modeling human-like decisions from experience that has previously been applied to predicting human metacognitive reasoning. In this paper we introduce a framework for MEtacognitive Reasoning with Instance-based Learning Theory and Energy Dynamics (MERITED). Grounded in IBLT, this framework allows for control of the computational effort allocated in an EBM to allow for metacognitive control over reasoning effort based on uncertainty while remaining computationally efficient. This work has two main contributions, the training and open weight sharing of a 191M parameter reasoning EBM, and an implementation of the MERITED framework for dynamic compute allocation using an IBL model.

Introduction

Metacognitive reasoning includes using uncertainty to decide how much effort to allocate. AI systems’ post-hoc explanations may not reliably reflect the processes that produced their behavior, motivating a focus on individual outputs.

Introduction

  • Metacognition can use uncertainty to guide how much effort is allocated to a task, sometimes without deliberate reflection.Limited awareness of underlying cognitive processes complicates determining how AI systems should structure metacognitive reasoning.Source: Introduction · p. 1
  • AI explanations of their reasoning may be disconnected from the processes that produced their behavior, making post-hoc rationalizations potentially obscure model behavior.The cited work notes that sophisticated explanations can appear to describe metacognition without reliably connecting to the behavior-generating processes.Source: Introduction · p. 1
  • Prior LLM approaches select reasoning depth through self-prompting during chain-of-thought reasoning, while this paper focuses on individual token-level outputs.The authors motivate this focus by concerns about the trustworthiness of explanations generated after reasoning.Source: Introduction · p. 1

Background

MERITED integrates an Instance-Based Learning model with an Energy-Based Transformer to control computational resources based on experience. It targets metacognitive allocation for short outputs, distinguishing its approach from prior cognitive-model integrations.

Background

  • MERITED integrates a cognitive model with an AI system to improve the system’s metacognitive ability.The integrated system is an Energy Based Transformer, which the authors describe as supporting uncertainty representation and controllable computation allocation.Source: Background · p. 1
  • An IBL model selects the EBT’s thinking depth before inference and during its optimization process to allocate computational resources based on experience.The authors identify this as addressing a metacognitive allocation task not directly handled by flexible EBTs.Source: Background · p. 2
  • Unlike prior cognitive-model integrations that often improve cognitive models, MERITED targets AI-system operation and metacognition about short outputs.The paper contrasts its EBM-based uncertainty estimation and computation control with CogRouter’s selection of reasoning depth; it also reports a CogRouter comparison with GPT-2 on its evaluation task.Source: Background · p. 2

Generative Models

The section introduces generative and energy-based models, then explains how EBTs iteratively optimize candidate outputs and expose uncertainty and compute allocation to IBL-based metacognitive control.

Generative Models

  • Generative models learn an underlying data distribution; energy-based models define that distribution through an energy function.The figure compares GANs, autoregressive transformers, and EBMs as input-process-output models; EBTs add energy-based optimization, with an output representation used for IBL similarity.Source: Generative Models · p. 2, Figure 1 · p. 3

Energy Based Models

  • MCMC sampling can make inference computationally expensive, while contrastive divergence training permits a variable number of inference steps for resource control.The cited discussion describes MCMC as a way to leverage the energy gradient and notes that inference can use different step counts.Source: Energy Based Models · p. 2

Energy Based Transformers

  • An EBT uses a transformer backbone to score candidate outputs with energy, then iteratively refines candidates and selects the minimum-energy result.Inference can use a fixed step count or stop early; the algorithm updates candidates using the energy gradient and step size.Source: Energy Based Transformers · pp. 2–3

Metacognitive Reasoning with EBTs

  • MERITED uses IBL to address how EBT uncertainty should guide resource allocation, predicting task difficulty and allocating computation before or during inference.EBT energy supports uncertainty modeling without first producing a response, while inference can control optimization steps; the authors also note that stopping short is not expected to improve performance for a sufficiently large model already using high depth effectively.Source: Metacognitive Reasoning with EBTs · p. 3, Modeling Uncertainty · p. 3, Dynamic Compute Allocation · p. 3

Instance-Based Learning Theory

IBLT models decision making using memories of state, action, and outcome. It predicts choices among options through utilities derived from retrieved instances and their similarity to the options under consideration.

Instance-Based Learning Theory

  • IBLT models human information processing and decision making with instances containing a state, action, and outcome.These memory components are analogous to chunks in the ACT-R cognitive architecture.Source: Instance-Based Learning Theory · p. 4
  • IBL groups state-action pairs into options and predicts choice probabilities from their predicted utility values.The model’s option-selection probability is a softmax over utilities; the action-selection temperature controls stochasticity.Source: Instance-Based Learning Theory · p. 4
  • Option utilities blend the utilities of instances retrieved from memory, with retrieval probability based on instance activation.The model also defines activation using decay and noise parameters and compares options with a similarity function.Source: Instance-Based Learning Theory · p. 4

EBT-IBL Integration

MERITED integrates IBL with an EBT, using the EBT’s energy function and representations to guide reasoning-compute allocation. It supports both upfront selection of MCMC settings and stopping decisions made during optimization.

EBT-IBL Integration

  • MERITED uses IBL with EBT energy profiles to distinguish easier inputs from harder ones that benefit from additional MCMC steps.The energy function also provides a task-grounded feature space for similarity, while question-answering accuracy supplies utility history for depth selections.Source: EBT-IBL Integration · p. 4

EBT Similarity Measure

  • The IBL state combines the EBT energy distribution and input embedding with actions representing step-size choices or stop/continue decisions.The similarity measure combines energy-based distance, cosine similarities, and an indicator function for actions.Source: EBT Similarity Measure · p. 4

MCMC Step Selection

  • IBL can select the number of MCMC steps and step size jointly before inference, using energy-based similarity to past options.The options include the context, step size, and number of steps.Source: MCMC Step Selection · p. 5

MCMC Optimal Stopping

  • Alternatively, IBL can decide at each MCMC step whether to continue, comparing the expected energy reduction with the stopping decision.Upfront selection makes one prediction; per-step stopping adapts compute as the energy trajectory unfolds.Source: MCMC Optimal Stopping · p. 5

Experimentation

The experiments compare two IBL-based MERITED policies with static EBT depths and GPT-2 on ARC-Easy and OpenBookQA, measuring accuracy and runtime. MERITED improves the unweighted mean accuracy over static settings, while the policies differ in their accuracy–runtime trade-off.

Tasks and Data Splits

  • Evaluations used 100 ARC-Easy and 500 OpenBookQA questions, with 10 random-seed runs per evaluation and the same questions across models.OpenBookQA used 4,957 questions from the main training split, so its results characterize the experimental policy rather than test-set generalization.Source: Tasks and Data Splits · p. 6

Models, Inference, and Scoring

  • The EBT condition used 191M parameters and static MCMC depths {1, 2, 4, 8, 10}; GPT-2 was the approximately 124M-parameter baseline.Candidate scores were sums of conditional token log-probabilities, and the prediction was the candidate with the highest score.Source: Models, Inference, and Scoring · p. 6

Metrics, Timing, and Statistical Analysis

  • The IBL state combines the EBT candidate-energy distribution with an L2-normalized question-prompt embedding; OpenBookQA’s prompt representation also includes rendered choices and a label-only response instruction.Reported significance tests used one split and one seed, lacked multiple-comparison correction, and selected each IBL policy from 450 configurations on the same evaluation data; p-values are descriptive.Source: IBL State, Memory, and Depth Control · p. 6, Metrics, Timing, and Statistical… · p. 7

IBL State, Memory, and Depth Control

  • Depth choice queried IBL once using the depth-1 state and ran the selected depth as a separate trajectory; optimal stopping queried STOP or CONTINUE after each MCMC step and forced a stop at depth 10.The depth-choice memory held 100 state-action-outcome instances from 20 questions; optimal stopping used 360 memory instances.Source: IBL State, Memory, and Depth Control · p. 6

Results

  • 58% accuracy on ARC-Easy for both MERITED policies was 3 percentage points above the best static EBT result and 16 points above GPT-2.Depth choice used mean depth 5.62, while optimal stopping terminated at mean depth 2.69; both were 2 points below the 60% omniscient oracle.Source: Results · p. 7
  • 29.4% on OpenBookQA made depth choice the strongest observed condition, ahead of optimal stopping (28.4%), static depth 8 (27.2%), and GPT-2 (26.8%).The gains over GPT-2 were not significant; the 36.4% depth-choice oracle was 7 points above learned depth choice, and most items remained incorrect at every tested depth.Source: Results · p. 7
  • 2.0883 seconds (depth choice) and 0.73 seconds (optimal stopping) were the mean runtimes per question; optimal stopping was 64.9% faster than depth choice.Within the cached-state timing boundary, optimal stopping was 76.1% faster than static depth 10 (3.06 seconds), while losing 0.50 points of unweighted mean accuracy relative to depth choice.Source: Results · pp. 7–8, Figure 3 · p. 7
  • 51.8% (IBL depth choice) and 52.2% (IBL optimal stopping) exceeded 48.2% (best static means, depths 2 and 10) and 44.0% (GPT-2) in unweighted mean accuracy.The pooled depth-choice comparison with GPT-2 had p = 0.036 and the optimal-stop comparison p = 0.068; both are descriptive given the selection caveat.Source: Results · p. 7, Table 1 · p. 8

Conclusion

MERITED integrates an IBL model with an Energy-Based Transformer (EBT) to predict task difficulty and allocate inference-time computation. Across two question-answering tasks, it improved performance over static allocation while reducing response time versus consistently high computation, with findings bounded by the study’s scale and task scope.

Conclusion

  • Across two question-answering tasks, MERITED improved performance over static computation allocation while reducing response time compared with always using high computation.The framework integrates IBL with a newly trained 191-million-parameter EBT and was compared with static allocation strategies and GPT-2.Source: Conclusion · p. 8
  • MERITED uses IBL for metacognitive control while the EBT answers questions, reversing the common integration direction in which generative models extend cognitive-model representations.The authors relate this arrangement to complementarity within an integrated computational system.Source: Conclusion · p. 8
  • The findings are a proof of concept for a 191-million-parameter EBT; generalization to larger models and metacognitive control of chain-of-thought or graph-of-thought reasoning remain unexplored.The study uses two question-answering tasks and calls for future evaluation on larger EBTs and more complex reasoning domains.Source: Conclusion · p. 8

Supplementary Materials

The supplementary materials include inference and training algorithms, an explanation of the EBT training objective, and tables describing the CogRouter evaluation wrapper, model configurations, and combined two-task results.

Supplementary Materials

  • The described inference implementation omits an optional repeated MCMC sampling step tied to EBT answer confirmation, which this study does not examine.The supplementary materials also include the inference and training algorithm listings.Source: Supplementary Materials · p. 10
  • The supplementary materials provide an inference algorithm and a training algorithm; the training procedure minimizes the energy assigned to the target output given its context.The inference algorithm lists the context, EBT, step count, step size, and sample count as inputs or hyperparameters.Source: Supplementary Materials · p. 10
  • The CogRouter table specifies the evaluation wrapper, not a separately fine-tuned GPT-2 checkpoint.The main text notes that the comparison implementation was adjusted to fit the single-next-token question-answering evaluation.Source: Table 2 · p. 10
  • The model-configuration table compares the 191M EBT with the GPT-2 small baseline for the ARC-Easy multiple-choice comparison.Dashes indicate parameters that do not apply to the standard autoregressive baseline.Source: Table 3 · p. 11
  • The combined best-sweep table compares models across ARC-Easy and OBQA, uses GPT-2 as the baseline, and marks one-sided significance over that baseline at α = 0.05.Accuracy and runtime standard deviations are computed across the two task-level values; bold indicates the best column performance, excluding hypothetical optimal depth-choice.Source: Table 4 · p. 11
Loading 2610.00399v1…