Abstract
Symbols such as numerical sequences, chemical formulas, and table delimiters exist widely, playing important roles in symbol-related tasks such as abstract reasoning, chemical property prediction, and tabular question-answering. Compared to tasks based on natural language expressions, large language models (LLMs) have limitations in understanding and reasoning on symbol-based representations, making it difficult for them to handle symbol-related problems. In this paper, we propose symbol-to-language (S2L), a method that converts symbol-based representations to language-based representations, providing valuable information for language models during reasoning. We found that, for both closed-source and open-source LLMs, the capability to solve symbol-related problems can be largely enhanced by incorporating such language-based representations. For example, by employing S2L for GPT-4, there can be substantial improvements of +21.9% and +9.5% accuracy for 1D-ARC and Dyck language tasks, respectively. There is also a consistent improvement in other six general symbol-related tasks such as table understanding and Tweet analysis.
Introduction
Large Language Models (LLMs) like GPT-4 are predominantly trained on natural language data. Consequently, they often struggle with non-natural language representations such as numerical sequences, chemical SMILES strings, or bracket patterns. This difficulty stems from two primary factors identified by the authors:
- The Understanding Gap: LLMs lack exposure to low-frequency symbols, making it hard to decode their underlying meaning.
- Cognitive Overload: Symbolic problems force models to simultaneously interpret symbols and perform logical reasoning, a dual task that often leads to failure even when the logic is straightforward.
Methodology: Symbol-to-Language (S2L)
To bridge this gap, we propose Symbol-to-Language (S2L), a tuning-free framework that translates abstract symbols into descriptive natural language. This moves the problem into the model's linguistic "comfort zone," allowing it to dedicate its full capacity to reasoning logic rather than decoding.
The S2L process consists of two main stages:
- Conversion: Symbols are translated into text via LLM-based prompting or tool-based methods (e.g., using Python rules or chemical translators). Tool-based conversion is generally more reliable and prevents hallucination.
- Integration: The resulting language-based representation is either substituted for the original symbols or concatenated with them. Concatenation is particularly effective for tasks like table understanding, where raw symbols serve as precise anchors.
Experimental Evaluation
We evaluated S2L across eight diverse tasks, including abstract reasoning (1D-ARC), bracket matching (Dyck language), chemical property prediction (ChemLLM Bench), and emoji sentiment analysis.
Key Results in Abstract Reasoning
In the 1D-ARC task, which requires reasoning about 1D grids, S2L provided a significant performance boost. As shown in the figure below, converting the numerical representation into a linguistic description allowed GPT-4 to correctly solve problems it previously failed, jumping from 59.7% to 81.6% accuracy.
Quantitative improvements across other benchmarks were equally substantial:
- Dyck Language: GPT-4 improved by +9.5%, while the open-source OpenChat-7B saw a +30.9% jump.
- Chemical Properties: GPT-3.5's accuracy on the BBBP dataset improved by +29.2% using S2L with a translator tool.
- Emoji Analysis: S2L improved GPT-3.5’s correlation with human emotion ratings by over 43%.
Discussion and Conclusion
S2L demonstrates that natural language acts as a "high-bandwidth" interface for LLMs. By offloading the "decoding" of symbols to a descriptive layer, the model can dedicate its full attention to reasoning. While highly effective for 1D data, future work is needed to address the complexity of 2D/3D visual grids and mitigate hallucination risks when external tools are unavailable.
Summary updated