
Sign up to save your podcasts
Or


This academic paper investigates the mechanism behind in-context learning (ICL) in large language models (LLMs). The authors propose a theoretical analysis suggesting that ICL can be understood as kernel regression, where the model uses input-output examples within the prompt to make predictions on new data. Through analysis of attention patterns and experiments across different tasks, the study provides evidence that LLMs allocate significant attention to the demonstration samples, particularly their labels, and that internal key and value vectors store relevant information for this process. While the kernel regression framework explains phenomena like the importance of example similarity and output formats, the paper acknowledges that certain aspects of ICL, such as sensitivity to sample order, remain unexplained by this model.
This research investigates the location of task recognition within Large Language Models (LLMs) during in-context learning. By employing layer-wise context masking on various LLMs and tasks (Machine Translation and Code Generation), the study identifies a "task recognition" point where the model no longer needs attention to the input context. The findings indicate potential for computational savings by reducing redundant processing and reveal a correspondence between this task recognition point and effective layers for parameter-efficient fine-tuning. The paper characterizes a three-phase process of in-context learning and explores the roles of instructions and examples, suggesting task recognition happens primarily in middle layers of the network.
This document introduces LLM-AutoDiff, a novel framework for Automatic Prompt Engineering (APE) that aims to automate the challenging task of designing prompts for complex Large Language Model (LLM) workflows. By viewing these workflows as computation graphs where textual inputs are treated as trainable parameters, the system uses a "backward engine" LLM to generate textual gradients – feedback that guides the iterative improvement of prompts. Unlike previous methods that focus on single LLM calls, LLM-AutoDiff supports multi-component pipelines, including functional operations like retrieval, handles cycles in iterative processes, and separates different parts of prompts (like instructions and examples) into peer nodes for more precise feedback. The system also incorporates efficiency techniques like computing gradients only for errors and a two-stage validation process. Experiments demonstrate that LLM-AutoDiff outperforms existing text-gradient and few-shot optimization baselines across various tasks, showcasing the potential of this auto-differentiable approach for scaling and optimizing intricate LLM applications.
This academic paper introduces metaTextGrad, a novel meta-learning approach designed to enhance large language model (LLM) performance during inference by learning better loss functions and initialization strategies, referred to as inference templates. While existing methods like TextGrad refine LLM outputs iteratively, they often require extensive manual tuning and are sensitive to prompt wording. metaTextGrad addresses these limitations by employing a meta-learning framework that optimizes the prompts used for evaluation and the initial text provided to the LLM, significantly improving accuracy on complex question-answering benchmarks like BBH, MMLU, and GPQA. The research demonstrates the potential of using meta-learning to create more adaptable and efficient LLM-based optimization systems.
This paper introduces semantic operators, a declarative model for AI-powered data processing that leverages the capabilities of large language models (LLMs) for complex data transformations. The core concept is to provide a structured way to perform operations like filtering, joining, and aggregating data using natural language descriptions. By defining a "gold algorithm" for each operator, the system ensures accuracy while an optimization framework enables significant performance improvements with statistical accuracy guarantees. The authors present LOTUS, an open-source system implementing these operators and demonstrate its effectiveness and efficiency on various real-world applications, outperforming existing methods.
This paper explores how to measure the isolated causal effect of a specific linguistic feature, such as "netspeak" or "profanity," within a text on a reader's perception or behavior, like finding a review helpful. The core challenge lies in accurately representing the non-focal language—everything in the text except the targeted feature—as approximations of this non-focal language can introduce omitted variable bias and impact the accuracy of the estimated effect. The authors introduce a framework and metrics, including fidelity and overlap, to assess the quality of these approximations and the robustness of the resulting effect estimates, demonstrating their method's ability to recover true effects in experiments and analyze how different language representations influence the results.
This academic paper explores "sleep-time compute" for large language models (LLMs), a concept where models process information from a given context while idle, anticipating potential future queries. The authors introduce Stateful GSM-Symbolic and Stateful AIME, datasets created by splitting existing reasoning problems into context and questions to test this approach. Their experiments show that sleep-time compute significantly reduces the need for test-time compute to achieve similar accuracy, offering a more efficient inference process. Furthermore, by preparing for multiple related questions about the same context, sleep-time compute can lower the average cost per query. The paper concludes that sleep-time compute is most effective when queries are predictable from the provided context.
This paper presents J1, a new method for training large language models to act as judges that evaluate other models' responses. The J1 approach utilizes reinforcement learning to encourage these judge models to produce detailed, step-by-step reasoning before making a judgment, similar to a chain of thought. By converting both straightforward and subjective tasks into verifiable problems with rewards for accurate judgments and consistency, J1 demonstrates improved performance across various benchmarks compared to other state-of-the-art judge models. The research also explores different J1 variations, including Pairwise-J1 (comparing two responses) and Pointwise-J1 (scoring individual responses), highlighting the effectiveness of Pointwise-J1 in mitigating position bias in evaluations.
This paper introduces ShiQ, a novel offline reinforcement learning algorithm designed for fine-tuning large language models (LLMs) by adapting traditional Q-learning methods. The authors address the challenges of applying Q-learning to LLMs, such as computational cost and initialization issues, by deriving theoretically grounded loss functions from Bellman equations. ShiQ enables off-policy, token-wise learning and is evaluated on various benchmarks, including multi-turn settings, where it demonstrates effectiveness compared to existing methods like DPO and CoPG. The paper details the theoretical basis of ShiQ and includes empirical results from both synthetic and real-world datasets.
This academic paper proposes a new causal framework for learning optimal strategies in natural language tasks that involve multiple steps, where the final result is only known at the end. Unlike methods requiring extensive data and multiple models, their approach utilizes Q-learning with a single model to estimate multi-stage decision processes. By performing gradient ascent on language embeddings, they optimize the process, coupled with a decoding strategy to convert optimized embeddings back into understandable language. Tested on scenarios like improving mental health interventions and countering hate speech, their method outperforms existing techniques, showing notable gains in achieving desired outcomes while maintaining fluency and content, which human evaluations also support.
From the publisher's feed