Neurosymbolics for Data Engineering: Achieving Long Context Token Reduction Without Finetuning
Vishvesh Bhat
Abstract
Large Language Models are increasingly deployed for sophisticated data engineering tasks such as generating structured queries from natural language, Text-to-SQL, and automating complex spreadsheet operations. However, maximizing their utility demands both higher finetuning-free accuracy and solutions to the computational bottleneck imposed by the Transformer architectures inherent quadratic (On2) time complexity. This paper introduces a novel drop-in neurosymbolic layer designed to seamlessly integrate into existing LLM backbones enhancing logical reasoning and mitigating long-context resource consumption. On the reasoning front, the layer immediately and significantly improves performance yielding an average accuracy increase of 85% across rigorous benchmarks including BIRD-CRITIC and LiveSQLBench, critically achieving these gains without any task specific finetuning or RLHF. Concurrently, we repurpose this approach to address the severe computational strain of long context inference. By leveraging symbolic processing to prioritize and compress relevant contextual information the layer reduces the effective token usage by over 50% and brings the effective time complexity down from O(n2) to approximately O(n) on certain long context tasks. This dual impact approach not only makes LLMs substantially more reliable for data engineering but also drastically reduces the computational pressure on inference chips, making long context tasks more manageable and cost effective.
Create a lesson
Related papers
Alignment without Transfer: Tokenization Impacts Cross-lingual Representations during Multilingual Language Model Pretraining
Shared title terminology · Jonathan von Rad, Pontus Stenetorp, Yao Lu
LongCat Recall Sparse Attention: Co-Designing Key Organization and Retrieval for Long-Context Inference
Shared title terminology · Hao Zhang, Bin Xiao, Kefeng Zhang
LoopCache: Accelerating Long-Context Self-Speculative Decoding for Looped Transformers
Shared title terminology · Zizhuo Fu, Haochen Huang, Shengxuan Qiu et al.
CompLLM: Compression for Long Context Q&A
Shared title terminology · Gabriele Berton, Jayakrishnan Unnikrishnan, Son Tran et al.
Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scale
Shared title terminology · Siddharth Gollapudi, Nilesh Gupta, Prasann Singhal et al.
MultiSynt/MT: Trillion-Token Multi-Parallel Pre-Training Data Translated Across 36 Languages
Shared title terminology · Maximilian Idahl, Jörg Tiedemann, Sampo Pyysalo et al.