paper-with-me

Papers

Flashback: A Reversible Bilateral Run-Peeling Decomposition of Strings

2026-04-29 · Thomas Konstantinovsky, Gur Yaari arxiv

We introduce Flashback, a reversible string decomposition that repeatedly peels the maximal leading and trailing character runs from a sentinel-wrapped input, recording each pair as one bilateral token. Decomposition and reconstruction both run in O(n) time and space. Our central result is a run-pairing theorem: Flashback is equivalent to pairing the first run of the string with the last, the second with the second-to-last, and so on. This gives an exact token count of 1+[r/2] for a string with r maximal runs, and matches a lower bound that holds for any admissible bilateral run-peeling scheme. From the run-pairing theorem the main structural properties follow as corollaries: the irreducible peeling kernel uses at most two symbols; palindromes are precisely the strings whose run-length encoding is symmetric with an odd number of runs; the image of the decomposition admits an explicit finite-state characterisation; and changing one run length rewrites exactly one content token.

📄 PDF Abstract BibTeX arXiv:2604.26190

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Multi-Stage Graph Peeling Algorithm for Probabilistic Core Decomposition

2021-08-13 · Yang Guo, Xuekui Zhang, Fatemeh Esfahani, Venkatesh Srinivasan 외

Mining dense subgraphs where vertices connect closely with each other is a common task when analyzing graphs. A very popular notion in subgraph analysis is core decomposition. Recently, Esfahani et al. presented a probab…

FlashbackCL: Mitigating Temporal Forgetting in Federated Learning

2026-06-02 · Mubarak A. Ojewale, Adriana E. Chis, Jorge M. Cortes-Mendoza, Bernardo Pulido-Gaytan 외 arxiv

Federated Learning (FL) of foundation and edge models increasingly targets deployments where client data distributions drift over time, yet existing forgetting-mitigation methods assume each client's distribution is stat…

Federated LearningContinual Learning

Joint Flashback Adaptation for Forgetting-Resistant Instruction Tuning

2025-05-21 · Yukun Zhao, Lingyong Yan, Zhenyang Li, Shuaiqiang Wang 외

Large language models have achieved remarkable success in various tasks. However, it is challenging for them to learn new tasks incrementally due to catastrophic forgetting. Existing approaches rely on experience replay,…

Arithmetic ReasoningInstruction Following

Go Back in Time: Generating Flashbacks in Stories with Event Temporal Prompts

2022-05-04 · NAACL 2022 7 · Rujun Han, Hong Chen, Yufei Tian, Nanyun Peng

Stories or narratives are comprised of a sequence of events. To compose interesting stories, professional writers often leverage a creative writing technique called flashback that inserts past events into current storyli…

Diversity

FlashBack:Efficient Retrieval-Augmented Language Modeling for Long Context Inference

2024-05-07 · Runheng Liu, Xingchen Xiao, Heyan Huang, Zewen Chi 외

Retrieval-Augmented Language Modeling (RALM) by integrating large language models (LLM) with relevant documents from an external corpus is a proven method for enabling the LLM to generate information beyond the scope of …

Language ModelingLanguage ModellingRetrieval