paper-with-me

Papers

A circuit for predicting hierarchical structure in-context in Large Language Models

2025-09-25 · Tankred Saanum, Can Demircan, Samuel J. Gershman, Eric Schulz arxiv

Large Language Models (LLMs) excel at in-context learning, the ability to use information provided as context to improve prediction of future tokens. Induction heads have been argued to play a crucial role for in-context learning in Transformer Language Models. These attention heads make a token attend to successors of past occurrences of the same token in the input. This basic mechanism supports LLMs' ability to copy and predict repeating patterns. However, it is unclear if this same mechanism can support in-context learning of more complex repetitive patterns with hierarchical structure. Natural language is teeming with such cases: The article "the" in English usually prefaces multiple nouns in a text. When predicting which token succeeds a particular instance of "the", we need to integrate further contextual cues from the text to predict the correct noun. If induction heads naively attend to all past instances of successor tokens of "the" in a context-independent manner, they cannot support this level of contextual information integration. In this study, we design a synthetic in-context learning task, where tokens are repeated with hierarchical dependencies. Here, attending uniformly to all successor tokens is not sufficient to accurately predict future tokens. Evaluating a range of LLMs on these token sequences and natural language analogues, we find adaptive induction heads that support prediction by learning what to attend to in-context. Next, we investigate how induction heads themselves learn in-context. We find evidence that learning is supported by attention heads that uncover a set of latent contexts, determining the different token transition relationships. Overall, we not only show that LLMs have induction heads that learn, but offer a complete mechanistic account of how LLMs learn to predict higher-order repetitive patterns in-context.

📄 PDF Abstract BibTeX arXiv:2509.21534

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

A general approach for identifying hierarchical symmetry constraints for analog circuit layout

2020-09-30 · Kishor Kunal, Jitesh Poojary, Tonmoy Dhar, Meghna Madhusudan 외

Analog layout synthesis requires some elements in the circuit netlist to be matched and placed symmetrically. However, the set of symmetries is very circuit-specific and a versatile algorithm, applicable to a broad varie…

Graph MatchingGraph Neural Network

Family-Aware Residual Architecture for Predicting Quantum Circuit Simulation Performance

2026-06-10 · Honjar Xing, Yehong Jiang, Xianbang Wang, Zehua Wang 외 arxiv

Approximate tensor-network simulators enable classical simulation of quantum circuits beyond the reach of exact methods, but selecting optimal approximation parameters -- such as bond dimension thresholds -- remains a co…

Surprise! Uniform Information Density Isn't the Whole Story: Predicting Surprisal Contours in Long-form Discourse

2024-10-21 · Eleftheria Tsipidi, Franz Nowak, Ryan Cotterell, Ethan Wilcox 외

The Uniform Information Density (UID) hypothesis posits that speakers tend to distribute information evenly across linguistic units to achieve efficient communication. Of course, information rate in texts and discourses …

Form

Circuit Diagram Retrieval Based on Hierarchical Circuit Graph Representation

2025-02-05 · Ming Gao, Ruichen Qiu, Zeng Hui Chang, Kanjian Zhang 외

In the domain of analog circuit design, the retrieval of circuit diagrams has drawn a great interest, primarily due to its vital role in the consultation of legacy designs and the detection of design plagiarism. Existing…

Graph SimilarityImage RetrievalRetrieval

Quantum Hierarchical Reinforcement Learning via Variational Quantum Circuits

2026-05-05 · Yu-Ting Lee, Samuel Yen-Chi Chen, Fu-Chieh Chang arxiv

Reinforcement learning is one of the most challenging learning paradigms where efficacy and efficiency gains are extremely valuable. Hierarchical reinforcement learning is a variant that leverages temporal abstraction to…

Hierarchical Reinforcement Learning