TailorPiece: Tailoring Linear Models for Joint Representation

Panagiotis Liakos, Katia Papakonstantinopoulou, Panagiotis Karras, Yannis KotidisOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

TailorPiece is a new suite of algorithms that significantly boosts time-series compression by "tailoring" piecewise linear segments to be more compressible. By optimizing for both the minimum number of segments and their "mergeability," the authors achieve up to a 34% improvement in compression ratios over current state-of-the-art methods while maintaining strict error guarantees.

What Problem Does This Paper Address?

As we move toward an increasingly instrumented world—think IoT sensors in healthcare, transportation, and smart factories—the volume of high-frequency time-series data is exploding. Storing this data is expensive.

One popular way to shrink these datasets is Piecewise Linear Approximation (PLA). Instead of storing every single data point, you represent a sequence of points as a single line segment $(y = ax + b)$, provided the line stays within a maximum error threshold ($\epsilon$).

Recent advances like MixPiece improved this by quantizing the starting values ($b$) and "jointly representing" segments that share similar starting points and slopes. However, these methods were "myopic"—they greedily built segments one by one without considering if a slightly different segment might be easier to group with others later. The challenge is: How do we find the optimal set of segments that are both few in number and highly "mergeable"?

Methods

The authors introduce three primary algorithms to solve this:

  1. MINSEGMENTS: A dynamic programming (DP) algorithm that finds the absolute minimum number of segments required to represent a signal given quantized starting values. This provides a theoretical baseline for the shortest possible sequence.
  2. TAILORPIECEDP: An extension of the DP approach that doesn't just look for the fewest segments, but optimizes a "mergeability" criterion. It uses a composite objective function that favors segments with wider "allowable slope intervals." A wider interval means a segment is more likely to overlap with others, allowing them to be compressed together.
  3. TAILORPIECEGD: A greedy version designed for real-world speed. Unlike standard greedy PLA (which just extends a segment as far as possible), this version uses a "lookahead" mechanism. It evaluates a search space of potential endpoints to see which one allows the next segment to reach the farthest.

Datasets

The researchers evaluated their work using the UCR Time Series Classification Archive, a standard benchmark in the field.

  • They specifically focused on 41 datasets where PLA-based compression is most effective (attaining a compression ratio of at least 10 at 1% error).
  • They also reported aggregate results across the entire archive to ensure the findings weren't limited to specific data types.

Key Insights and Ideas

  • The "Shortest Path" isn't always the best: Surprisingly, the algorithm that produces the absolute minimum number of segments (MINSEGMENTS) often results in worse overall compression than one that produces slightly more segments but with wider slope intervals (TAILORPIECEDP).
  • Wider is Better: The "aha moment" here is that the "mergeability" of a segment is tied to the width of its admissible slope range. By intentionally choosing segments that aren't necessarily the longest possible, you can create "flexible" segments that are much easier to group together in the final encoding.
  • Greedy with a View: The success of TAILORPIECEGD shows that you don't need full global optimality (which is computationally expensive). Just looking one step ahead to see how an endpoint choice affects the next segment's reach provides most of the benefits of DP at a fraction of the cost.

Key Results

  • Compression Gains: TAILORPIECEDP improved compression ratios by up to 34% over MixPiece (the previous leader).
  • Speed vs. Efficiency: TAILORPIECEGD achieved nearly identical space savings to the DP version but ran two orders of magnitude faster, making it the practical choice for large-scale systems.
  • Better Quality for Less Space: When compared against algorithms designed for $L_2$ (average error) optimization, TailorPiece (which uses $L_\infty$ or maximum error) actually provided lower Normalized Root Mean Squared Error (NRMSE) at the same compression ratios.
  • Decompression Speed: The methods outperform traditional PLA approaches in decompression speed because they avoid complex slope-intercept calculations during the read phase.

Limitations and Future Work

  • Computational Overhead of DP: While TAILORPIECEDP is the most effective, its dynamic programming nature makes it slow for very long sequences, which is why the greedy version was developed.
  • Parameter Tuning: The greedy algorithm relies on a parameter ($q$) to tune the search space, and the DP version uses an exponent ($p$) to balance segment count vs. interval width. While the paper suggests good defaults, optimal values might vary by dataset.
  • Future Directions: The authors suggest these "tailoring" principles could be applied to other types of approximations beyond linear models, such as polynomial or constant-value approximations.

Summary updated

Abstract

The need to represent a long data series using a sequence of line segments abiding by a maximum error threshold arises in various domains. This problem, known as Piecewise Linear Approximation (PLA), has a long history and has recently gained attention with the rise of applications dealing with time-stamped data. State-of-the-art PLA methods achieve space savings over lossless compression techniques with tolerable precision loss by quantizing starting points and representing similar line segments jointly. However, these methods do not tailor line segments for their eventual joint representation and do not minimize the number of segments either. In this paper, we present TailorPiece, a suite of algorithms for lossy PLA-based compression that explicitly tailor linear segments for both small sequence length and joint representation under a given error threshold and starting-value quantization. Our first algorithm, TailorPieceDP, optimizes a mergeability criterion of PLA segment descriptions; in a degenerate form, it reduces to an algorithm that represents the data series by the minimum number of PLA segments. Our second algorithm, TailorPieceGD, greedily selects the endpoint of each PLA segment within a tunable search space that allows the subsequent segment to extend farther, thereby balancing compression and runtime. Through experimentation, we show that TailorPieceDP achieves improvements of up to 34% over prior art in compression ratio and TailorPieceGD gains similar savings with a runtime reduced by two orders of magnitude.
BibTeX
@misc{liakos2026tailorpiece,
  author = {Panagiotis Liakos and Katia Papakonstantinopoulou and Panagiotis Karras and Yannis Kotidis},
  title = {{TailorPiece: Tailoring Linear Models for Joint Representation}},
  year = {2026},
  url = {https://openreview.net/forum?id=iUUIk8Nhnj},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure