mlsanityData to 7 Oct 2026

PositionID: LLMs can Control Lengths, Copy and Paste with Explicit Positional Awareness

arXiv 2410.07035 ↗First posted 9 Oct 2024cs.CL cs.AIcited by 9

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Large Language Models (LLMs) demonstrate impressive capabilities across various domains, including role-playing, creative writing, mathematical reasoning, and coding. Despite these advancements, LLMs still encounter challenges with length control, frequently failing to adhere to specific length constraints due to their token-level operations and insufficient training on data with strict length limitations. We identify this issue as stemming from a lack of positional awareness and propose novel approaches--PositionID Prompting and PositionID Fine-Tuning--to address it. These methods enhance the model's ability to continuously monitor and manage text length during generation. Additionally, we introduce PositionID CP Prompting to enable LLMs to perform copy and paste operations accurately. Furthermore, we develop two benchmarks for evaluating length control and copy-paste abilities. Our experiments demonstrate that our methods significantly improve the model's adherence to length constraints and copy-paste accuracy without compromising response quality.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 19 of its 32 references that are in the map. First posted on arXiv 9 Oct 2024.

Builds on

19 of 32 references.

Closest ancestors · 2

Same direction, newest first

  1. 2023Code Llama: Open Foundation Models for Code24 Aug
  2. 2023LLaMA: Open and Efficient Foundation Language Models27 Feb

Other references · 17

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
  5. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  6. 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 865
  7. 2024Yi: Open Foundation Models by 01.AIcited by 706
  8. 2016NewsQA: A Machine Comprehension Datasetcited by 330
  9. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
  10. 2020ReClor: A Reading Comprehension Dataset Requiring Logical Reasoningcited by 211
  11. 2018WikiHow: A Large Scale Text Summarization Datasetcited by 203
  12. 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
5 more
  1. 2023Controlled Text Generation with Natural Language Instructionscited by 87
  2. 2023Evaluating Large Language Models on Controlled Generation Taskscited by 73
  3. 2019Question Answering for Privacy Policies: Combining Computational and Legal Perspectivescited by 65
  4. 2024Contextual Position Encoding: Learning to Count What's Importantcited by 53
  5. 2024Weaver: Foundation Models for Creative Writingcited by 25

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 4.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Plan-and-Write: Structure-Guided Length Control for LLMs without Model Retraining
  2. 2025Beyond Single-Task: Robust Multi-Task Length Generalization for LLMs
  3. 2025Long-Short Alignment for Effective Long-Context Modeling in LLMs
  4. 2025A Survey of LLM Alignment: Instruction Understanding, Intention Reasoning, and Reliable Generation
  5. 2025LIFEBench: Evaluating Length Instruction Following in Large Language Models
  6. 2025LongWriter-Zero: Mastering Ultra-Long Text Generation via Reinforcement Learning
  7. 2024LongWriter: Unleashing 10,000+ Word Generation from Long Context LLMs
  8. 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models